/**
 * YesStreaming WHMCS client theme (child of Twenty-One)
 * @version 1.6.0
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --ys-accent: #ec4899;
    --ys-accent-dark: #db2777;
    --ys-blue: #2563eb;
    --ys-cyan: #22d3ee;
    --ys-violet: #7c3aed;
    --ys-green: #16a34a;
    --ys-rose: #e11d48;
    --ys-amber: #d97706;
    --ys-ink: #0f172a;
    --ys-text: #1e293b;
    --ys-muted: #64748b;
    --ys-line: #e2e8f0;
    --ys-bg: #f3f5f9;
    --ys-surface: #ffffff;
    --ys-radius: 18px;
    --ys-radius-sm: 12px;
    --ys-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --ys-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 10px 30px rgba(15, 23, 42, 0.06);
    --ys-gradient: linear-gradient(135deg, #ec4899 0%, #a855f7 55%, #6366f1 100%);
    --ys-gradient-cool: linear-gradient(135deg, #22d3ee 0%, #2563eb 100%);
}

/* ===== Base ===== */
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: var(--ys-text);
    background: var(--ys-bg);
    -webkit-font-smoothing: antialiased;
}

body a {
    color: var(--ys-blue);
}

body a:hover {
    color: var(--ys-accent-dark);
    text-decoration: none;
}

/* ===== Header ===== */
body #header.header,
body #header .navbar,
body #header .topbar,
body #header .main-navbar-wrapper {
    background: transparent !important;
    border: 0 !important;
}

body #header.header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--ys-line) !important;
}

body #header .topbar {
    font-size: 0.8rem;
    padding: 0.4rem 0 0;
}

body #header .topbar,
body #header .topbar .btn,
body #header .topbar .input-group-text {
    color: var(--ys-muted) !important;
    background: transparent !important;
    border: 0;
}

body #header .topbar .btn-active-client {
    color: var(--ys-ink) !important;
    font-weight: 600;
}

body #header .navbar-light {
    padding: 0.6rem 0;
}

body .logo-img {
    max-height: 38px;
    width: auto;
}

body .ys-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    color: var(--ys-ink) !important;
}

body .ys-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 10px;
    background: var(--ys-gradient);
    color: #fff;
    font-weight: 800;
}

/* Knowledgebase search */
body #header .search {
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    min-width: 300px;
}

body #header .search .btn,
body #header .search .form-control {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--ys-text);
}

body #header .cart-btn {
    color: var(--ys-ink) !important;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
}

body #header .cart-btn .badge {
    background: var(--ys-accent);
    color: #fff;
}

/* Main nav */
body .main-navbar-wrapper {
    padding: 0 0 0.35rem;
}

body .main-navbar-wrapper .navbar-nav .nav-link {
    color: var(--ys-muted) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

body .main-navbar-wrapper .navbar-nav .nav-link:hover,
body .main-navbar-wrapper .navbar-nav .show > .nav-link {
    color: var(--ys-ink) !important;
    background: #f1f5f9;
}

body .main-navbar-wrapper .navbar-nav .active > .nav-link {
    color: var(--ys-accent-dark) !important;
    background: #fdf2f8;
}

body .dropdown-menu {
    border: 1px solid var(--ys-line);
    border-radius: var(--ys-radius-sm);
    box-shadow: var(--ys-shadow);
    padding: 0.4rem;
}

body .dropdown-item {
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
}

body .dropdown-item:hover,
body .dropdown-item:focus {
    background: #fdf2f8;
    color: var(--ys-accent-dark);
}

/* ===== Layout ===== */
body .master-breadcrumb {
    background: transparent !important;
    border: 0;
    padding-top: 1.25rem;
}

body .master-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    font-size: 0.85rem;
}

body #main-body {
    background: transparent;
    padding: 0.75rem 0 3rem;
}

/* ===== Cards & sidebar ===== */
body .card {
    border: 1px solid var(--ys-line);
    border-radius: var(--ys-radius);
    box-shadow: var(--ys-shadow-sm);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

body .card-header {
    background: var(--ys-surface);
    border-bottom: 1px solid var(--ys-line);
    padding: 1rem 1.25rem;
}

body .card-title,
body .card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ys-ink);
}

body .card-footer {
    background: #f8fafc;
    border-top: 1px solid var(--ys-line);
}

body .card-footer:empty {
    display: none;
}

body [class*='card-accent-'] {
    border-top: 1px solid var(--ys-line) !important;
}

body .list-group-item {
    border-color: var(--ys-line);
    padding: 0.8rem 1.25rem;
}

body .list-group-item-action:hover {
    background: #f8fafc;
}

body .sidebar .list-group-item.active {
    background: #fdf2f8;
    color: var(--ys-accent-dark);
    border-color: var(--ys-line);
    font-weight: 600;
}

/* ===== Buttons & forms ===== */
body .btn {
    border-radius: 10px;
    font-weight: 600;
}

body .btn-primary,
body .btn-success {
    background: var(--ys-accent);
    border-color: var(--ys-accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.25);
}

body .btn-primary:hover,
body .btn-primary:focus,
body .btn-success:hover,
body .btn-success:focus {
    background: var(--ys-accent-dark);
    border-color: var(--ys-accent-dark);
    color: #fff;
}

body .btn-default {
    background: #fff;
    border: 1px solid var(--ys-line);
    color: var(--ys-text);
}

body .btn-default:hover {
    background: #f8fafc;
}

body .form-control,
body .custom-select {
    border-radius: 10px;
    border-color: var(--ys-line);
    min-height: 44px;
}

body .form-control:focus,
body .custom-select:focus {
    border-color: var(--ys-accent);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
}

body .badge,
body .label {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.3em 0.7em;
}

body .table thead th {
    border-top: 0;
    color: var(--ys-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ===== Page background ===== */
body {
    background: linear-gradient(180deg, #eef1fb 0, #f5f6fa 420px, #f5f6fa 100%) !important;
    background-attachment: fixed;
}

/* ===== Clean sidebar ===== */
body .sidebar .card {
    border: 0;
    box-shadow: none;
    background: transparent;
    margin-bottom: 1.5rem;
}

body .sidebar .card-header {
    background: transparent;
    border: 0;
    padding: 0 0.75rem 0.5rem;
}

body .sidebar .card-title {
    font-size: 0.72rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ys-muted) !important;
}

body .sidebar .card-title i,
body .sidebar .card-minimise {
    display: none !important;
}

body .sidebar .card-body {
    padding: 0.25rem 0.75rem 0.5rem;
    font-size: 0.88rem;
}

body .sidebar .card-footer {
    background: transparent;
    border: 0;
    padding: 0.25rem 0.75rem;
}

body .sidebar .list-group-item {
    border: 0;
    background: transparent;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--ys-text);
}

body .sidebar .list-group-item:hover {
    background: #fff;
}

body .sidebar .list-group-item.active {
    background: #fff;
    color: var(--ys-accent-dark);
    box-shadow: var(--ys-shadow-sm);
}

/* ===== Dashboard: full width, no sidebar ===== */
body:has(.ys-dash) #main-body .row > .col-lg-4.col-xl-3,
body:has(.ys-dash) #main-body .sidebar {
    display: none !important;
}

body:has(.ys-dash) #main-body .primary-content {
    flex: 0 0 100%;
    max-width: 100%;
}

body:has(.ys-dash) #main-body > .container {
    max-width: 1100px;
}

body:has(.ys-dash) .master-breadcrumb {
    display: none;
}

body:has(.ys-due) [menuItemName='Overdue Invoices'],
body:has(.ys-due) [menuItemName='Unpaid Invoices'] {
    display: none;
}

/* ===== Dashboard hero ===== */
.ys-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 0 1.25rem;
}

.ys-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.2rem;
    color: var(--ys-ink);
}

.ys-hero-sub {
    margin: 0;
    color: var(--ys-muted);
}

.ys-hero-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

body .ys-btn-ghost {
    background: #fff;
    color: var(--ys-ink);
    border: 1px solid var(--ys-line);
}

body .ys-btn-ghost:hover {
    color: var(--ys-accent-dark);
    border-color: #cbd5e1;
}

/* ===== Due invoices ===== */
.ys-due {
    background: #fff;
    border: 1px solid #fbcfe8;
    border-left: 4px solid var(--ys-accent);
    border-radius: var(--ys-radius);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--ys-shadow-sm);
}

.ys-due-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.ys-due-head strong {
    display: block;
    color: var(--ys-ink);
}

.ys-due-head span {
    color: var(--ys-muted);
    font-size: 0.88rem;
}

.ys-due-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: #fdf2f8;
    color: var(--ys-accent) !important;
}

.ys-due-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ys-due-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid #f1f5f9;
}

.ys-due-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ys-due-num {
    font-weight: 600;
    color: var(--ys-ink);
}

.ys-due-date {
    font-size: 0.82rem;
    color: var(--ys-muted);
}

.ys-due-item.is-overdue .ys-due-date {
    color: var(--ys-rose);
    font-weight: 600;
}

.ys-due-total {
    font-weight: 700;
    color: var(--ys-ink);
    white-space: nowrap;
}

body .ys-due-pay {
    padding: 0.4rem 1rem;
    box-shadow: none;
}

body .ys-due-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
}

/* ===== Home panels ===== */
body .client-home-cards .card {
    border-radius: var(--ys-radius);
}

body .client-home-cards .card-header {
    border-bottom: 1px solid #f1f5f9;
}

body .client-home-cards .card-title i {
    color: var(--ys-accent);
}

/* ===== Product details ===== */
body .product-details {
    padding: 0.25rem;
}

body .product-details .product-status {
    background: #fff !important;
    border: 1px solid var(--ys-line);
    border-radius: var(--ys-radius);
    color: var(--ys-ink) !important;
    overflow: hidden;
    margin-bottom: 1rem;
}

body .product-details .product-icon {
    padding: 1.75rem 1.25rem 1.25rem;
}

body .product-details .product-icon .fa-stack {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

body .product-details .product-icon .fa-circle {
    color: #fdf2f8 !important;
}

body .product-details .product-icon .fa-inverse {
    color: var(--ys-accent) !important;
}

body .product-details .product-icon h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ys-ink);
    margin: 0 0 0.3rem;
}

body .product-details .product-icon h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ys-muted);
    margin: 0;
}

body .product-details .product-status-text {
    display: block;
    width: fit-content;
    margin: 0 auto 1.25rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #f1f5f9 !important;
    color: var(--ys-muted) !important;
}

body .product-status-active .product-status-text {
    background: #dcfce7 !important;
    color: #15803d !important;
}

body .product-status-pending .product-status-text {
    background: #fef3c7 !important;
    color: #b45309 !important;
}

body .product-status-suspended .product-status-text,
body .product-status-terminated .product-status-text,
body .product-status-cancelled .product-status-text {
    background: #ffe4e6 !important;
    color: #be123c !important;
}

body .product-details .btn-block {
    border-radius: 12px;
    height: 44px;
}

body .product-details .btn-danger {
    background: #fff;
    border: 1px solid #fecdd3;
    color: var(--ys-rose);
    box-shadow: none;
}

body .product-details .btn-danger:hover {
    background: #fff1f2;
    color: var(--ys-rose);
}

body .product-details .col-md-6.text-center {
    text-align: left !important;
    background: #f8fafc;
    border-radius: var(--ys-radius);
    padding: 0.5rem 1.5rem 1.25rem;
    color: var(--ys-ink);
    font-weight: 600;
}

body .product-details .col-md-6.text-center h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ys-muted);
    margin: 1.1rem 0 0.2rem;
}

/* Modern tabs */
body .nav-tabs,
body .nav-tabs.responsive-tabs-sm {
    border: 0;
    gap: 0.35rem;
    background: #eef1f6;
    padding: 0.3rem;
    border-radius: 12px;
    display: inline-flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

body .nav-tabs .nav-link {
    border: 0 !important;
    border-radius: 9px;
    color: var(--ys-muted);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.45rem 0.9rem;
}

body .nav-tabs .nav-link:hover {
    color: var(--ys-ink);
}

body .nav-tabs .nav-link.active {
    background: #fff !important;
    color: var(--ys-ink) !important;
    box-shadow: var(--ys-shadow-sm);
}

body .tab-content.bg-white,
body .tab-content > .tab-pane.bg-white {
    border: 1px solid var(--ys-line) !important;
    border-radius: var(--ys-radius);
}

/* ===== Accent buttons ===== */
body .btn-primary,
body .btn-success,
body .btn-warning,
body .btn-orange {
    background: var(--ys-gradient) !important;
    border: 0 !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.22);
}

body .btn-primary:hover,
body .btn-success:hover,
body .btn-warning:hover,
body .btn-orange:hover {
    filter: brightness(1.07);
    color: #fff !important;
}

body .btn-sm {
    font-size: 0.82rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9px;
}

/* ===== Product status: no coloured block ===== */
body .product-details .product-status,
body .product-details .product-status .product-icon,
body .product-details .product-status[class*='product-status-'] {
    background: #fff !important;
    color: var(--ys-ink) !important;
}

body .product-details .product-icon .fa-circle {
    color: #f3e8ff !important;
}

body .product-details .product-icon .fa-inverse {
    color: var(--ys-violet) !important;
}

/* ===== Main menu ===== */
body .main-navbar-wrapper {
    padding: 0 0 0.75rem;
}

body .main-navbar-wrapper .navbar-nav {
    gap: 0.15rem;
}

body .main-navbar-wrapper #nav {
    background: #fff;
    border: 1px solid var(--ys-line);
    border-radius: 14px;
    padding: 0.3rem;
    box-shadow: var(--ys-shadow-sm);
}

body .main-navbar-wrapper .navbar-nav .nav-link {
    border-radius: 10px;
    font-weight: 600;
    color: #475569 !important;
}

body .main-navbar-wrapper .navbar-nav .active > .nav-link {
    background: var(--ys-gradient);
    color: #fff !important;
}

body .main-navbar-wrapper .dropdown-toggle::after {
    border-top-width: 0.25em;
    opacity: 0.6;
}

/* ===== Credit balance ===== */
body a.ys-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.85rem 0.35rem 0.4rem;
    background: #fff;
    border: 1px solid var(--ys-line);
    border-radius: 12px;
    color: var(--ys-ink);
}

body a.ys-credit:hover {
    border-color: #d8b4fe;
    color: var(--ys-ink);
}

.ys-credit > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    background: #f3e8ff;
    color: var(--ys-violet);
}

.ys-credit-body {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.ys-credit-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ys-muted);
}

.ys-credit-value {
    font-weight: 800;
    font-size: 0.95rem;
}

.ys-hero-actions {
    align-items: center;
}

/* ===== Recent support tickets: larger ===== */
body [menuItemName='Recent Support Tickets'] .card-title {
    font-size: 1.1rem;
}

body [menuItemName='Recent Support Tickets'] .list-group-item {
    padding: 1rem 1.25rem;
    font-size: 0.98rem;
    line-height: 1.5;
}

body [menuItemName='Recent Support Tickets'] .list-group {
    min-height: 220px;
}

body .client-home-cards .row > div:has([menuItemName='Recent Support Tickets']) {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ===== Control panel login (module output) ===== */
body .module-client-area {
    text-align: center;
    margin: 1.25rem 0;
}

body .module-client-area .btn,
body .module-client-area input[type='submit'],
body .module-client-area button,
body .product-details-tab-container input[type='submit'] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 260px;
    height: 48px;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff !important;
    background: var(--ys-gradient) !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(168, 85, 247, 0.28);
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

body .module-client-area .btn:hover,
body .module-client-area input[type='submit']:hover,
body .module-client-area button:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
}

/* ===== Product page: info tab as key/value list ===== */
body .tab-content > .tab-pane {
    padding: 1.5rem;
}

body .tab-content > .tab-pane > .row {
    margin: 0;
    padding: 0.7rem 0;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}

body .tab-content > .tab-pane > .row:last-of-type {
    border-bottom: 0;
}

body .tab-content > .tab-pane > .row > [class*='col-sm-5'] {
    text-align: left !important;
    color: var(--ys-muted);
    font-size: 0.85rem;
}

body .tab-content > .tab-pane > .row > [class*='col-sm-5'] strong {
    font-weight: 600;
}

body .tab-content > .tab-pane > .row > [class*='col-sm-7'] {
    text-align: left !important;
    color: var(--ys-ink);
    font-weight: 600;
}

body .tab-content .btn-default {
    border-radius: 10px;
}

body .product-details .product-status .product-icon .fa-stack {
    font-size: 1.2rem;
}

/* ===== Account details: credit panel ===== */
.ys-credit-panel {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 100%);
    border-radius: 12px;
}

.ys-credit-panel .ys-credit-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ys-ink);
}

.ys-credit-panel .ys-credit-label {
    font-size: 0.75rem;
    color: var(--ys-muted);
}

/* ===== Dashboard product cards ===== */
body [menuItemName='Active Products/Services'] .list-group {
    display: grid;
    gap: 0.6rem;
    padding: 0.9rem;
}

body [menuItemName='Active Products/Services'] .list-group-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--ys-line) !important;
    border-radius: 14px !important;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body [menuItemName='Active Products/Services'] .list-group-item:hover {
    border-color: #d8b4fe !important;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.1);
    transform: translateY(-1px);
}

body [menuItemName='Active Products/Services'] .list-group-item .label,
body [menuItemName='Active Products/Services'] .list-group-item .status {
    background: #dcfce7 !important;
    color: #15803d !important;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
}

body [menuItemName='Active Products/Services'] .list-group-item .btn {
    margin-left: auto;
    float: none !important;
    font-size: 0 !important;
    padding: 0.45rem 1rem;
    border: 0 !important;
    border-radius: 10px;
    background: var(--ys-gradient) !important;
    box-shadow: 0 6px 14px rgba(168, 85, 247, 0.22);
}

body [menuItemName='Active Products/Services'] .list-group-item .btn::after {
    content: 'Manage \2192';
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}

body [menuItemName='Active Products/Services'] .card-footer {
    background: transparent;
    border-top: 0;
    text-align: center;
}

/* ===== Colourful menu ===== */
body #nav > li > .nav-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    --ys-nav: #64748b;
    --ys-nav-bg: #f1f5f9;
}

body #nav > li > .nav-link::before {
    font-family: 'Font Awesome 5 Pro', 'Font Awesome 5 Free', 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 7px;
    color: var(--ys-nav);
    background: var(--ys-nav-bg);
    content: '\f0c9';
    transition: background 0.15s ease, color 0.15s ease;
}

body #nav > li#Primary_Navbar-Home > .nav-link { --ys-nav: #7c3aed; --ys-nav-bg: #f3e8ff; }
body #nav > li#Primary_Navbar-Home > .nav-link::before { content: '\f015'; }
body #nav > li#Primary_Navbar-Services > .nav-link { --ys-nav: #db2777; --ys-nav-bg: #fce7f3; }
body #nav > li#Primary_Navbar-Services > .nav-link::before { content: '\f519'; }
body #nav > li#Primary_Navbar-Domains > .nav-link { --ys-nav: #2563eb; --ys-nav-bg: #dbeafe; }
body #nav > li#Primary_Navbar-Domains > .nav-link::before { content: '\f0ac'; }
body #nav > li#Primary_Navbar-Billing > .nav-link { --ys-nav: #059669; --ys-nav-bg: #d1fae5; }
body #nav > li#Primary_Navbar-Billing > .nav-link::before { content: '\f555'; }
body #nav > li#Primary_Navbar-Support > .nav-link { --ys-nav: #d97706; --ys-nav-bg: #fef3c7; }
body #nav > li#Primary_Navbar-Support > .nav-link::before { content: '\f1cd'; }
body #nav > li#Primary_Navbar-Open_Ticket > .nav-link { --ys-nav: #0891b2; --ys-nav-bg: #cffafe; }
body #nav > li#Primary_Navbar-Open_Ticket > .nav-link::before { content: '\f3ff'; }
body #nav > li#Primary_Navbar-Affiliates > .nav-link { --ys-nav: #e11d48; --ys-nav-bg: #ffe4e6; }
body #nav > li#Primary_Navbar-Affiliates > .nav-link::before { content: '\f0c0'; }
body #nav > li[id*='Website'] > .nav-link { --ys-nav: #4f46e5; --ys-nav-bg: #e0e7ff; }
body #nav > li[id*='Website'] > .nav-link::before { content: '\f35d'; }

body #nav > li > .nav-link:hover,
body #nav > li.show > .nav-link {
    background: var(--ys-nav-bg) !important;
    color: var(--ys-nav) !important;
}

body #nav > li > .nav-link:hover::before,
body #nav > li.show > .nav-link::before,
body #nav > li.active > .nav-link::before {
    background: var(--ys-nav);
    color: #fff;
}

body #nav > li.active > .nav-link {
    background: var(--ys-nav-bg) !important;
    color: var(--ys-nav) !important;
}

body #nav .dropdown-menu {
    margin-top: 0.5rem;
    border-radius: 14px;
    padding: 0.45rem;
    min-width: 220px;
}

body #nav .dropdown-item {
    font-weight: 500;
}

body #nav .dropdown-divider {
    margin: 0.35rem 0.5rem;
    border-color: #f1f5f9;
}

/* ===== Notifications ===== */
body #accountNotifications {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.8rem 0.3rem 0.35rem !important;
    border-radius: 999px !important;
    background: #fff !important;
    border: 1px solid var(--ys-line) !important;
    color: var(--ys-ink) !important;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: var(--ys-shadow-sm);
}

body #accountNotifications i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--ys-gradient);
    color: #fff;
    font-size: 0.68rem;
    margin: 0 !important;
}

body #accountNotifications:hover {
    border-color: #d8b4fe !important;
}

body .popover {
    border: 1px solid var(--ys-line);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    max-width: 380px;
    font-family: 'Inter', system-ui, sans-serif;
}

body .popover .arrow::before {
    border-bottom-color: var(--ys-line);
}

body .popover-body {
    padding: 0.5rem;
}

body .client-alerts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

body .client-alerts li a {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
    color: var(--ys-text);
    transition: background 0.15s ease;
}

body .client-alerts li a:hover {
    background: #faf5ff;
    color: var(--ys-ink);
}

body .client-alerts li a > i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: #f3e8ff;
    color: var(--ys-violet);
    font-size: 0.85rem;
}

body .client-alerts li a > i.text-danger,
body .client-alerts li a > i.fa-exclamation-triangle {
    background: #ffe4e6;
    color: var(--ys-rose) !important;
}

body .client-alerts li a > i.text-warning {
    background: #fef3c7;
    color: #b45309 !important;
}

body .client-alerts li a > i.text-info {
    background: #dbeafe;
    color: var(--ys-blue) !important;
}

body .client-alerts .message {
    font-size: 0.86rem;
    line-height: 1.4;
}

body .client-alerts .none {
    padding: 0.75rem;
    text-align: center;
    color: var(--ys-muted);
}

/* ===== Stat cards ===== */
.ys-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

body a.ys-stat {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 1.2rem;
    background: var(--ys-surface);
    border: 1px solid var(--ys-line);
    border-radius: var(--ys-radius);
    color: var(--ys-text);
    box-shadow: var(--ys-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

body a.ys-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--ys-shadow);
    border-color: #cbd5e1;
    color: var(--ys-text);
}

.ys-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    font-size: 1.15rem;
}

.ys-stat-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ys-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--ys-ink);
}

.ys-stat-label {
    font-size: 0.82rem;
    color: var(--ys-muted);
    font-weight: 500;
}

.ys-stat--services .ys-stat-icon { background: #fdf2f8; color: var(--ys-accent); }
.ys-stat--domains .ys-stat-icon { background: #eff6ff; color: var(--ys-blue); }
.ys-stat--tickets .ys-stat-icon { background: #f5f3ff; color: var(--ys-violet); }
.ys-stat--invoices .ys-stat-icon { background: #ecfdf5; color: var(--ys-green); }
.ys-stat--alert .ys-stat-icon { background: #fff1f2; color: var(--ys-rose); }

body a.ys-stat--alert {
    border-color: #fecdd3;
}

/* ===== Footer ===== */
body #footer.footer {
    background: transparent !important;
    border-top: 1px solid var(--ys-line);
    color: var(--ys-muted);
    padding: 2rem 0;
}

body #footer .nav-link {
    color: var(--ys-muted);
}

body #footer .nav-link:hover {
    color: var(--ys-accent-dark);
}

/* ===== Login (full screen) ===== */
body:has(.ys-auth) #header,
body:has(.ys-auth) .master-breadcrumb,
body:has(.ys-auth) #footer {
    display: none !important;
}

body:has(.ys-auth) #main-body {
    padding: 0;
}

body:has(.ys-auth) #main-body > .container {
    max-width: none;
    padding: 0;
}

body:has(.ys-auth) #main-body .row {
    margin: 0;
}

body:has(.ys-auth) .primary-content {
    padding: 0;
    flex: 0 0 100%;
    max-width: 100%;
}

.ys-auth {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
    background: #fff;
}

.ys-auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 15%, rgba(236, 72, 153, 0.55) 0, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(124, 58, 237, 0.6) 0, transparent 50%),
        linear-gradient(160deg, #0f0a1e 0%, #1e1240 55%, #0b1530 100%);
}

.ys-auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 460px;
}

body .ys-auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.ys-auth-logo img {
    max-height: 44px;
    width: auto;
}

.ys-auth-headline {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 1rem;
}

.ys-auth-lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 2rem;
}

.ys-auth-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.ys-auth-points li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.ys-auth-points i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f9a8d4;
}

/* Animated audio bars */
.ys-auth-wave {
    position: absolute;
    left: 3.5rem;
    right: 3.5rem;
    bottom: 2.5rem;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 56px;
    opacity: 0.55;
}

.ys-auth-wave span {
    flex: 1;
    height: 30%;
    border-radius: 4px;
    background: linear-gradient(180deg, #f9a8d4 0%, #a78bfa 100%);
    animation: ys-wave 1.4s ease-in-out infinite;
}

.ys-auth-wave span:nth-child(2) { animation-delay: 0.15s; }
.ys-auth-wave span:nth-child(3) { animation-delay: 0.3s; }
.ys-auth-wave span:nth-child(4) { animation-delay: 0.45s; }
.ys-auth-wave span:nth-child(5) { animation-delay: 0.6s; }
.ys-auth-wave span:nth-child(6) { animation-delay: 0.75s; }
.ys-auth-wave span:nth-child(7) { animation-delay: 0.9s; }

@keyframes ys-wave {
    0%, 100% { height: 25%; }
    50% { height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ys-auth-wave span {
        animation: none;
        height: 55%;
    }
}

.ys-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: #fff;
}

.ys-auth-card {
    width: 100%;
    max-width: 420px;
}

.ys-auth-head h2 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ys-ink);
    margin: 0 0 0.35rem;
}

.ys-auth-head p {
    color: var(--ys-muted);
    margin: 0 0 1.75rem;
}

body .ys-login-form label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ys-ink);
    margin-bottom: 0.4rem;
}

.ys-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

body .ys-link-muted {
    font-size: 0.84rem;
    color: var(--ys-muted);
}

.ys-field {
    position: relative;
}

.ys-field > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

body .ys-field .form-control {
    height: 50px;
    padding-left: 2.75rem;
    padding-right: 3rem;
    background: #f8fafc;
    border: 1px solid var(--ys-line);
    border-radius: 12px;
}

body .ys-field .form-control:focus {
    background: #fff;
}

body .ys-reveal {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #94a3b8;
    box-shadow: none;
}

body .ys-reveal:hover {
    color: var(--ys-ink);
}

body .ys-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0 1.25rem;
    font-weight: 500 !important;
    color: var(--ys-muted) !important;
    cursor: pointer;
}

.ys-check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--ys-accent);
}

body .ys-btn-login {
    height: 50px;
    border-radius: 12px;
    font-size: 1rem;
    background: var(--ys-gradient);
    border: 0;
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

body .ys-btn-login:hover,
body .ys-btn-login:focus {
    background: var(--ys-gradient);
    filter: brightness(1.06);
}

.ys-auth-social {
    margin-top: 1.5rem;
}

.ys-auth-social:empty {
    display: none;
}

body .ys-auth-social .btn,
body .ys-auth-social .social-signin-btns .btn {
    width: 100%;
    margin: 0 0 0.6rem;
    border-radius: 12px;
    height: 46px;
    background: #fff !important;
    color: var(--ys-ink) !important;
    border: 1px solid var(--ys-line) !important;
    box-shadow: none;
}

body .ys-auth-social .btn:hover {
    background: #f8fafc !important;
}

.ys-auth-foot {
    margin: 1.75rem 0 0;
    text-align: center;
    color: var(--ys-muted);
    font-size: 0.92rem;
}

body .ys-auth-foot a {
    font-weight: 700;
    color: var(--ys-accent-dark);
}

/* ===== Responsive ===== */
@media (max-width: 1199.98px) {
    body .main-navbar-wrapper .navbar-collapse {
        background: #fff;
        border: 1px solid var(--ys-line);
        border-radius: var(--ys-radius-sm);
        padding: 0.75rem;
        box-shadow: var(--ys-shadow);
        margin-bottom: 0.75rem;
    }

    .ys-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .ys-auth {
        grid-template-columns: 1fr;
    }

    .ys-auth-brand {
        padding: 2rem 1.5rem 4.5rem;
    }

    .ys-auth-headline {
        font-size: 1.9rem;
    }

    .ys-auth-points {
        display: none;
    }

    .ys-auth-wave {
        left: 1.5rem;
        right: 1.5rem;
        bottom: 1.25rem;
        height: 36px;
    }
}

@media (max-width: 575.98px) {
    .ys-hero {
        padding: 1rem 0;
    }

    .ys-due-item {
        flex-wrap: wrap;
    }

    .ys-due-info {
        flex-basis: 100%;
    }

    .ys-hero-title {
        font-size: 1.6rem;
    }

    .ys-stats {
        gap: 0.75rem;
    }

    body a.ys-stat {
        padding: 0.9rem;
    }

    .ys-stat-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}
