﻿     :root {
        --ink: #10142B;
        --ink2: #171B3A;
        --ink-line: rgba(255, 255, 255, .08);
        --bg: #F5F6FA;
        --paper: #FFFFFF;
        --primary: #6D5EF5;
        --primary-dark: #5647D9;
        --primary-tint: #EFEDFF;
        --emerald: #12A150;
        --emerald-tint: #E3F8EA;
        --amber: #D98B1E;
        --amber-tint: #FCF0DC;
        --sky: #0EA5C4;
        --sky-tint: #E1F5FA;
        --rose: #E1435B;
        --rose-tint: #FCE7EB;
        --teal: #0D9488;
        --teal-tint: #DFF5F2;
        --indigo: #4F55D0;
        --indigo-tint: #EAEBFC;
        --violet: #8B5CF6;
        --violet-tint: #F1EBFF;
        --ink-txt: #151831;
        --muted: #6B7085;
        --line: #E7E8F0;
        --radius: 16px;
        --sidebar-w: 270px;
        --sidebar-w-collapsed: 82px;
    }
    
    * {
        box-sizing: border-box;
        min-width: 0;
    }
    
    body {
        background: var(--bg);
        font-family: 'Poppins', sans-serif;
        color: var(--ink-txt);
        font-size: 14px;
        -webkit-font-smoothing: antialiased;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .font-head {
        font-family: 'Outfit', sans-serif;
    }
    
    a {
        text-decoration: none;
    }
    
     ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
     ::-webkit-scrollbar-thumb {
        background: #D7D9E6;
        border-radius: 8px;
    }
    
     ::-webkit-scrollbar-track {
        background: transparent;
    }
    /* ===== BACKDROP (mobile) ===== */
    
    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(10, 12, 28, .5);
        z-index: 1025;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }
    
    .sidebar-backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }
    /* ===== SIDEBAR ===== */
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: var(--sidebar-w);
        background:
            radial-gradient(ellipse 100% 50% at 20% 0%, rgba(109, 94, 245, .16) 0%, transparent 55%),
            linear-gradient(190deg, #0E1226 0%, #151936 55%, #12162F 100%);
        display: flex;
        flex-direction: column;
        z-index: 1030;
        transition: transform .25s ease, width .25s ease;
        border-right: 1px solid rgba(255, 255, 255, .05);
    }
    
    .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 22px 22px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, .07);
        overflow: hidden;
    }
    
    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        background: linear-gradient(135deg, #7B6CF8 0%, var(--primary) 50%, #5B4BE0 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, .1) inset,
            0 8px 18px -4px rgba(109, 94, 245, .55);
        position: relative;
    }
    
    .brand-mark::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(160deg, rgba(255, 255, 255, .22) 0%, transparent 45%);
        pointer-events: none;
    }
    
    .brand-mark i {
        color: #fff;
        width: 21px;
        height: 21px;
        position: relative;
        z-index: 1;
    }
    
    .brand-name {
        color: #fff;
        font-weight: 700;
        font-size: 18px;
        line-height: 1.1;
        letter-spacing: -.2px;
        white-space: nowrap;
    }
    
    .brand-sub {
        color: rgba(255, 255, 255, .42);
        font-size: 11px;
        letter-spacing: .4px;
        margin-top: 2px;
        white-space: nowrap;
    }
    
    .brand-text {
        overflow: hidden;
        transition: opacity .15s ease;
    }
    
    .sidebar-scroll {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 16px 14px 10px;
    }
    
    .sidebar-scroll::-webkit-scrollbar {
        width: 4px;
    }
    
    .sidebar-scroll::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, .12);
        border-radius: 4px;
    }
    
    .nav-item {
        margin-bottom: 3px;
    }
    
    .side-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 13px;
        border-radius: 11px;
        color: rgba(255, 255, 255, .6);
        font-size: 13.6px;
        transition: background .18s ease, color .18s ease, box-shadow .18s ease;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
    }
    
    .side-link i.si {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        opacity: .85;
        transition: opacity .18s ease;
    }
    
    .side-link:hover {
        background: rgba(255, 255, 255, .06);
        color: #fff;
    }
    
    .side-link:hover i.si {
        opacity: 1;
    }
    
    .side-link.active {
        background: linear-gradient(90deg, var(--primary), #8A6FF8);
        color: #fff;
        font-weight: 600;
        box-shadow: 0 8px 20px -8px rgba(109, 94, 245, .6);
    }
    
    .side-link.active i.si {
        opacity: 1;
    }
    
    .side-link.open:not(.active) {
        background: rgba(109, 94, 245, .14);
        color: #fff;
    }
    
    .side-link .lbl {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .side-link .chev {
        width: 15px;
        height: 15px;
        opacity: .4;
        flex-shrink: 0;
        transition: transform .2s ease;
    }
    
    .side-link.open .chev {
        transform: rotate(90deg);
        opacity: .9;
    }
    
    .side-submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }
    
    .side-submenu.open {
        max-height: 400px;
    }
    
    .sub-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 13px 9px 43px;
        border-radius: 9px;
        color: rgba(255, 255, 255, .5);
        font-size: 12.6px;
        margin-top: 2px;
        position: relative;
        white-space: nowrap;
        transition: background .15s ease, color .15s ease;
    }
    
    .sub-link:before {
        content: "";
        position: absolute;
        left: 27px;
        top: 50%;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .3);
        transform: translateY(-50%);
        transition: background .15s ease;
    }
    
    .sub-link:hover {
        background: rgba(255, 255, 255, .06);
        color: #fff;
    }
    
    .sub-link:hover:before {
        background: var(--primary);
    }
    
    .sub-link.active {
        background: rgba(109, 94, 245, .28);
        color: #fff;
        font-weight: 600;
    }
    
    .sub-link.active:before {
        background: var(--primary);
    }
    
    .sidebar-footer {
        padding: 14px;
        border-top: 1px solid rgba(255, 255, 255, .07);
        overflow: hidden;
    }
    
    .admin-mini-card {
        display: flex;
        align-items: center;
        gap: 11px;
        background: rgba(255, 255, 255, .05);
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 13px;
        padding: 11px;
        margin-bottom: 8px;
        white-space: nowrap;
        overflow: hidden;
        transition: border-color .2s ease;
    }
    
    .admin-mini-card:hover {
        border-color: rgba(109, 94, 245, .3);
    }
    
    .admin-mini-avatar {
        width: 40px;
        height: 40px;
        border-radius: 11px;
        background: linear-gradient(135deg, var(--primary), var(--violet));
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 700;
        font-size: 14px;
        flex-shrink: 0;
        position: relative;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset;
    }
    
    .admin-mini-avatar .dot {
        position: absolute;
        bottom: -2px;
        right: -2px;
        width: 11px;
        height: 11px;
        border-radius: 50%;
        background: var(--emerald);
        border: 2px solid #12162F;
    }
    
    .admin-mini-meta {
        overflow: hidden;
        min-width: 0;
    }
    
    .admin-mini-name {
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.15;
    }
    
    .admin-mini-role {
        color: rgba(255, 255, 255, .42);
        font-size: 10.8px;
    }
    
    .admin-mini-status {
        color: var(--emerald);
        font-size: 10.5px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 5px;
        margin-top: 1px;
    }
    
    .admin-mini-status .pulse {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--emerald);
        box-shadow: 0 0 0 0 rgba(18, 161, 80, .5);
        animation: statusPulse 2s ease infinite;
    }
    
    @keyframes statusPulse {
        0% {
            box-shadow: 0 0 0 0 rgba(18, 161, 80, .45);
        }
        70% {
            box-shadow: 0 0 0 5px rgba(18, 161, 80, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(18, 161, 80, 0);
        }
    }
    
    .logout-link {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #F3899A;
        font-size: 13px;
        font-weight: 500;
        padding: 10px 13px;
        border-radius: 11px;
        white-space: nowrap;
        overflow: hidden;
        transition: background .18s ease;
    }
    
    .logout-link:hover {
        background: rgba(225, 67, 91, .1);
        color: #F3899A;
    }
    
    .logout-link i {
        width: 17px;
        height: 17px;
        flex-shrink: 0;
    }
    /* ===== COLLAPSED (desktop) ===== */
    
    .sidebar.collapsed {
        width: var(--sidebar-w-collapsed);
    }
    
    .sidebar.collapsed .brand-text,
    .sidebar.collapsed .lbl,
    .sidebar.collapsed .chev,
    .sidebar.collapsed .admin-mini-name,
    .sidebar.collapsed .admin-mini-role,
    .sidebar.collapsed .admin-mini-status,
    .sidebar.collapsed .logout-link span,
    .sidebar.collapsed .side-submenu {
        display: none;
    }
    
    .sidebar.collapsed .sidebar-brand {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
    
    .sidebar.collapsed .side-link {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
    
    .sidebar.collapsed .admin-mini-card {
        justify-content: center;
        padding: 8px;
    }
    
    .sidebar.collapsed .logout-link {
        justify-content: center;
    }
    /* ===== MAIN ===== */
    
    .main {
        margin-left: var(--sidebar-w);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        flex: 1;
        transition: margin-left .25s ease;
    }
    
    .main.expanded {
        margin-left: var(--sidebar-w-collapsed);
    }
    
    .topbar {
        background: var(--paper);
        padding: 14px 30px;
        display: flex;
        align-items: center;
        gap: 14px;
        border-bottom: 1px solid var(--line);
        position: sticky;
        top: 0;
        z-index: 1020;
    }
    
    .burger-btn {
        width: 40px;
        height: 40px;
        border-radius: 11px;
        border: 1px solid var(--line);
        background: var(--paper);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ink-txt);
        flex-shrink: 0;
    }
    
    .burger-btn:hover {
        background: var(--bg);
    }
    
    .search-wrap {
        display: flex;
        align-items: center;
        gap: 9px;
        background: var(--bg);
        border: 1px solid var(--line);
        border-radius: 11px;
        padding: 0 14px;
        max-width: 320px;
        width: 100%;
        transition: .15s ease;
    }
    
    .search-wrap:focus-within {
        border-color: var(--primary);
        background: var(--paper);
        box-shadow: 0 0 0 3px var(--primary-tint);
    }
    
    .search-wrap i {
        width: 16px;
        height: 16px;
        color: var(--muted);
        flex-shrink: 0;
    }
    
    .search-wrap input {
        border: none;
        background: transparent;
        outline: none;
        padding: 10px 0;
        font-size: 13.3px;
        color: var(--ink-txt);
        width: 100%;
    }
    
    .search-wrap input::placeholder {
        color: #9FA3B8;
    }
    
    .icon-btn {
        width: 40px;
        height: 40px;
        border-radius: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line);
        background: var(--paper);
        color: var(--ink-txt);
        position: relative;
        flex-shrink: 0;
    }
    
    .icon-btn:hover {
        background: var(--bg);
    }
    
    .notif-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 9px;
        background: var(--rose);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--paper);
    }
    
    .profile-chip {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 5px 12px 5px 5px;
        border-radius: 12px;
        border: 1px solid var(--line);
        cursor: pointer;
        background: var(--paper);
        flex-shrink: 0;
    }
    
    .profile-chip:hover {
        background: var(--bg);
    }
    
    .profile-avatar {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--primary), var(--violet));
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 700;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .profile-name {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.15;
        color: var(--ink-txt);
    }
    
    .profile-role {
        font-size: 10.8px;
        color: var(--muted);
    }
    
    .profile-menu {
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 20px 44px -18px rgba(16, 20, 43, .25);
        padding: 10px;
        min-width: 235px;
        margin-top: 10px !important;
    }
    
    .profile-menu .pm-head {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 8px 12px;
        border-bottom: 1px solid var(--line);
        margin-bottom: 8px;
    }
    
    .profile-menu .pm-head .profile-avatar {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 14px;
    }
    
    .profile-menu .pm-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 10px;
        border-radius: 9px;
        font-size: 13px;
        color: var(--ink-txt);
        font-weight: 500;
    }
    
    .profile-menu .pm-item i {
        width: 16px;
        height: 16px;
        color: var(--muted);
    }
    
    .profile-menu .pm-item:hover {
        background: var(--primary-tint);
        color: var(--primary-dark);
    }
    
    .profile-menu .pm-item:hover i {
        color: var(--primary-dark);
    }
    
    .profile-menu .pm-item.danger {
        color: var(--rose);
    }
    
    .profile-menu .pm-item.danger i {
        color: var(--rose);
    }
    
    .profile-menu .pm-item.danger:hover {
        background: var(--rose-tint);
    }
    
    .profile-menu hr {
        margin: 6px 0;
        border-color: var(--line);
    }
    
    .content {
        padding: 24px 30px 40px;
        flex: 1;
        background:
            radial-gradient(ellipse 80% 40% at 100% 0%, rgba(109, 94, 245, .04) 0%, transparent 55%),
            var(--bg);
    }
    
    .page-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        margin-bottom: 22px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .page-title {
        font-family: 'Outfit', sans-serif;
        font-weight: 700;
        font-size: 23px;
        margin: 0;
        color: var(--ink-txt);
        letter-spacing: -.4px;
    }
    
    .page-sub {
        font-size: 12.8px;
        color: var(--muted);
        margin-top: 2px;
    }
    
    .breadcrumb-mini {
        font-size: 12px;
        color: var(--muted);
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .breadcrumb-mini i {
        width: 13px;
        height: 13px;
    }
    
    .breadcrumb-mini a {
        color: var(--muted);
    }
    
    .breadcrumb-mini .sep {
        opacity: .5;
    }
    
    .breadcrumb-mini .cur {
        color: var(--primary);
        font-weight: 600;
    }
    /* ===== STAT CARDS ===== */
    
    .stat-card {
        --stat-accent: var(--primary);
        background: var(--paper);
        border-radius: var(--radius);
        padding: 18px 18px;
        border: 1px solid rgba(231, 232, 240, .9);
        height: 100%;
        display: flex;
        align-items: flex-start;
        gap: 13px;
        transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
        overflow: hidden;
        position: relative;
        box-shadow: 0 1px 2px rgba(16, 20, 43, .03), 0 8px 24px -16px rgba(16, 20, 43, .12);
    }
    
    .stat-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--stat-accent), transparent 85%);
        opacity: .55;
        transition: opacity .2s ease;
    }
    
    .stat-card::after {
        content: "";
        position: absolute;
        top: -40px;
        right: -30px;
        width: 90px;
        height: 90px;
        border-radius: 50%;
        background: radial-gradient(circle, color-mix(in srgb, var(--stat-accent) 14%, transparent), transparent 70%);
        pointer-events: none;
    }
    
    .stat-card:has(.bg-indigo-t) { --stat-accent: var(--indigo); }
    .stat-card:has(.bg-emerald-t) { --stat-accent: var(--emerald); }
    .stat-card:has(.bg-rose-t) { --stat-accent: var(--rose); }
    .stat-card:has(.bg-sky-t) { --stat-accent: var(--sky); }
    .stat-card:has(.bg-teal-t) { --stat-accent: var(--teal); }
    .stat-card:has(.bg-amber-t) { --stat-accent: var(--amber); }
    .stat-card:has(.bg-violet-t) { --stat-accent: var(--violet); }
    .stat-card:has(.bg-primary-t) { --stat-accent: var(--primary); }
    
    .stat-card:hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--stat-accent) 28%, var(--line));
        box-shadow: 0 12px 28px -14px rgba(16, 20, 43, .2), 0 0 0 1px color-mix(in srgb, var(--stat-accent) 10%, transparent);
    }
    
    .stat-card:hover::before {
        opacity: 1;
    }
    
    .stat-body {
        min-width: 0;
        flex: 1;
        position: relative;
        z-index: 1;
    }
    
    .stat-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
    }
    
    .stat-icon i {
        width: 20px;
        height: 20px;
        stroke-width: 2.1;
    }
    
    .stat-label {
        font-size: 12px;
        color: var(--muted);
        font-weight: 500;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: .1px;
    }
    
    .stat-value {
        font-family: 'Outfit', sans-serif;
        font-size: clamp(15px, 1.6vw, 20px);
        font-weight: 700;
        color: var(--ink-txt);
        line-height: 1.15;
        word-break: break-word;
        letter-spacing: -.3px;
    }
    
    .stat-trend {
        font-size: 11.2px;
        font-weight: 600;
        margin-top: 8px;
        display: inline-flex;
        align-items: center;
        gap: 3px;
        flex-wrap: wrap;
        padding: 3px 8px 3px 5px;
        border-radius: 999px;
        width: fit-content;
        max-width: 100%;
    }
    
    .stat-trend i {
        width: 12px;
        height: 12px;
        flex-shrink: 0;
    }
    
    .trend-up {
        color: var(--emerald);
        background: rgba(18, 161, 80, .08);
    }
    
    .trend-down {
        color: var(--rose);
        background: rgba(225, 67, 91, .08);
    }
    
    .stat-trend .stt-lbl {
        color: var(--muted);
        font-weight: 400;
    }
    
    .bg-primary-t {
        background: linear-gradient(145deg, #F3F1FF, var(--primary-tint));
        color: var(--primary);
    }
    
    .bg-emerald-t {
        background: linear-gradient(145deg, #ECFBF1, var(--emerald-tint));
        color: var(--emerald);
    }
    
    .bg-amber-t {
        background: linear-gradient(145deg, #FFF8EB, var(--amber-tint));
        color: var(--amber);
    }
    
    .bg-sky-t {
        background: linear-gradient(145deg, #ECF9FC, var(--sky-tint));
        color: var(--sky);
    }
    
    .bg-rose-t {
        background: linear-gradient(145deg, #FEF0F3, var(--rose-tint));
        color: var(--rose);
    }
    
    .bg-teal-t {
        background: linear-gradient(145deg, #ECF9F7, var(--teal-tint));
        color: var(--teal);
    }
    
    .bg-indigo-t {
        background: linear-gradient(145deg, #F0F1FE, var(--indigo-tint));
        color: var(--indigo);
    }
    
    .bg-violet-t {
        background: linear-gradient(145deg, #F6F1FF, var(--violet-tint));
        color: var(--violet);
    }
    /* ===== PANEL ===== */
    
    .panel {
        background: var(--paper);
        border-radius: var(--radius);
        border: 1px solid rgba(231, 232, 240, .9);
        padding: 22px;
        height: 100%;
        box-shadow: 0 1px 2px rgba(16, 20, 43, .03), 0 10px 28px -18px rgba(16, 20, 43, .12);
        transition: box-shadow .2s ease, border-color .2s ease;
    }
    
    .panel:hover {
        border-color: #dde0ec;
        box-shadow: 0 8px 28px -16px rgba(16, 20, 43, .16);
    }
    
    .panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 18px;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .panel-title {
        font-family: 'Outfit', sans-serif;
        font-weight: 700;
        font-size: 15.5px;
        margin: 0;
        color: var(--ink-txt);
        letter-spacing: -.2px;
    }
    
    .panel-select {
        font-size: 12.3px;
        border: 1px solid var(--line);
        border-radius: 9px;
        padding: 6px 12px;
        background: var(--bg);
        color: var(--ink-txt);
        font-weight: 500;
        transition: border-color .15s ease, box-shadow .15s ease;
        cursor: pointer;
    }
    
    .panel-select:hover,
    .panel-select:focus {
        border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
        outline: none;
        box-shadow: 0 0 0 3px rgba(109, 94, 245, .1);
    }
    
    .view-all {
        font-size: 12.5px;
        color: var(--primary);
        font-weight: 600;
        white-space: nowrap;
        transition: color .15s ease;
    }
    
    .view-all:hover {
        color: var(--primary-dark);
    }
    
    .kpi-row {
        display: flex;
        gap: 26px;
        margin-bottom: 16px;
        flex-wrap: wrap;
    }
    
    .kpi-item .kl {
        font-size: 11.5px;
        color: var(--muted);
        margin-bottom: 3px;
    }
    
    .kpi-item .kv {
        font-family: 'Outfit', sans-serif;
        font-weight: 700;
        font-size: 16px;
        color: var(--ink-txt);
        letter-spacing: -.2px;
    }
    
    .kpi-dot {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        display: inline-block;
        margin-right: 6px;
    }
    
    .chart-box {
        position: relative;
        height: 210px;
        width: 100%;
    }
    
    .donut-wrap {
        position: relative;
        height: 190px;
    }
    
    .donut-center {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }
    
    .donut-center .num {
        font-family: 'Outfit', sans-serif;
        font-size: 18px;
        font-weight: 700;
        color: var(--ink-txt);
    }
    
    .donut-center .lbl {
        font-size: 10.5px;
        color: var(--muted);
    }
    
    .legend-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 12.3px;
        padding: 8px 0;
        border-bottom: 1px solid var(--line);
        gap: 8px;
    }
    
    .legend-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .legend-left {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--ink-txt);
        font-weight: 500;
        white-space: nowrap;
    }
    
    .legend-val {
        font-weight: 700;
        color: var(--ink-txt);
        white-space: nowrap;
    }
    /* ===== TABLES ===== */
    
    .table-panel {
        background: var(--paper);
        border-radius: var(--radius);
        border: 1px solid rgba(231, 232, 240, .9);
        padding: 22px;
        height: 100%;
        box-shadow: 0 1px 2px rgba(16, 20, 43, .03), 0 10px 28px -18px rgba(16, 20, 43, .12);
        transition: box-shadow .2s ease, border-color .2s ease;
    }
    
    .table-panel:hover {
        border-color: #dde0ec;
        box-shadow: 0 8px 28px -16px rgba(16, 20, 43, .16);
    }
    
    table.rec-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }
    
    table.rec-table thead th {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .4px;
        color: var(--muted);
        font-weight: 600;
        padding: 10px 8px;
        border-bottom: 1px solid var(--line);
        text-align: left;
        white-space: nowrap;
        background: linear-gradient(180deg, #FAFBFD 0%, transparent 100%);
    }
    
    table.rec-table tbody td {
        padding: 12px 8px;
        font-size: 13px;
        border-bottom: 1px solid var(--line);
        color: var(--ink-txt);
        vertical-align: middle;
        white-space: nowrap;
        transition: background .15s ease;
    }
    
    table.rec-table tbody tr:last-child td {
        border-bottom: none;
    }
    
    table.rec-table tbody tr:hover {
        background: #F7F8FC;
    }
    
    .uid-cell {
        font-weight: 600;
        color: var(--primary);
        font-size: 12.3px;
    }
    
    .user-cell {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .u-avatar {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11.5px;
        font-weight: 700;
        color: #fff;
        flex-shrink: 0;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
    }
    
    .amt-cell {
        font-weight: 600;
    }
    
    .status-pill {
        font-size: 11px;
        font-weight: 600;
        padding: 4px 11px;
        border-radius: 20px;
        display: inline-block;
    }
    
    .status-active {
        background: var(--emerald-tint);
        color: #0E8A44;
    }
    
    .status-pending {
        background: var(--amber-tint);
        color: #B5730F;
    }
    
    .status-approved {
        background: var(--emerald-tint);
        color: #0E8A44;
    }
    
    .status-inactive {
        background: var(--rose-tint);
        color: #C2344A;
    }
    
    .status-blocked {
        background: #F3F3F6;
        color: #5A5F73;
        border: 1px solid #E0E1EA;
    }
    
    /* ===== USERS PAGE ===== */
    
    .page-crumb {
        font-size: 12px;
        color: var(--muted);
        margin-bottom: 6px;
        font-weight: 500;
    }
    
    .page-crumb span {
        margin: 0 4px;
        opacity: .6;
    }
    
    .users-panel {
        background: var(--paper);
        border-radius: var(--radius);
        border: 1px solid rgba(231, 232, 240, .9);
        box-shadow: 0 1px 2px rgba(16, 20, 43, .03), 0 10px 28px -18px rgba(16, 20, 43, .12);
        overflow: hidden;
    }
    
    .users-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 18px 20px;
        flex-wrap: wrap;
        border-bottom: 1px solid var(--line);
    }
    
    .users-search {
        flex: 1;
        min-width: 240px;
        max-width: 420px;
        display: flex;
        align-items: center;
        gap: 10px;
        background: var(--bg);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 0 14px;
        height: 44px;
        transition: border-color .15s ease, box-shadow .15s ease;
    }
    
    .users-search:focus-within {
        border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
        box-shadow: 0 0 0 3px rgba(109, 94, 245, .12);
        background: #fff;
    }
    
    .users-search i {
        width: 17px;
        height: 17px;
        color: var(--muted);
        flex-shrink: 0;
    }
    
    .users-search input {
        border: 0;
        outline: 0;
        background: transparent;
        width: 100%;
        font-size: 13.2px;
        color: var(--ink-txt);
        font-family: inherit;
    }
    
    .users-search input::placeholder {
        color: #9AA0B4;
    }
    
    .users-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .btn-soft,
    .btn-primary-solid {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        height: 42px;
        padding: 0 16px;
        border-radius: 11px;
        font-size: 13.2px;
        font-weight: 600;
        font-family: inherit;
        border: 1px solid transparent;
        cursor: pointer;
        white-space: nowrap;
        transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
    }
    
    .btn-soft i,
    .btn-primary-solid i {
        width: 16px;
        height: 16px;
    }
    
    .btn-soft {
        background: #fff;
        border-color: var(--line);
        color: var(--ink-txt);
    }
    
    .btn-soft:hover {
        background: var(--bg);
        border-color: #d5d7e4;
    }
    
    .btn-soft.danger {
        color: var(--rose);
    }
    
    .btn-soft.danger:hover {
        background: var(--rose-tint);
        border-color: #f0c4cc;
    }
    
    .btn-primary-solid {
        background: linear-gradient(135deg, var(--primary), #8A6FF8);
        color: #fff;
        box-shadow: 0 8px 18px -8px rgba(109, 94, 245, .65);
    }
    
    .btn-primary-solid:hover {
        filter: brightness(1.04);
        color: #fff;
    }
    
    .filter-count {
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: var(--primary-tint);
        color: var(--primary);
        font-size: 10.5px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .users-tabs {
        display: flex;
        gap: 6px;
        padding: 0 20px 14px;
        flex-wrap: wrap;
        border-bottom: 1px solid var(--line);
    }
    
    .utab {
        border: 0;
        background: transparent;
        padding: 8px 14px;
        border-radius: 999px;
        font-size: 12.8px;
        font-weight: 500;
        color: var(--muted);
        cursor: pointer;
        font-family: inherit;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        transition: background .15s ease, color .15s ease;
    }
    
    .utab span {
        font-size: 11px;
        font-weight: 600;
        background: #EEF0F6;
        color: var(--muted);
        padding: 2px 7px;
        border-radius: 999px;
    }
    
    .utab:hover {
        background: var(--bg);
        color: var(--ink-txt);
    }
    
    .utab.active {
        background: var(--primary-tint);
        color: var(--primary-dark);
        font-weight: 600;
    }
    
    .utab.active span {
        background: rgba(109, 94, 245, .18);
        color: var(--primary-dark);
    }
    
    .filter-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
        padding: 16px 20px;
        background: linear-gradient(180deg, #FAFBFE, #F7F8FC);
        border-bottom: 1px solid var(--line);
    }
    
    .fg-item label {
        display: block;
        font-size: 11.5px;
        font-weight: 600;
        color: var(--muted);
        margin-bottom: 6px;
    }
    
    .fg-item select,
    .fg-item input {
        width: 100%;
        height: 40px;
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 0 12px;
        background: #fff;
        font-size: 12.8px;
        color: var(--ink-txt);
        font-family: inherit;
        outline: none;
    }
    
    .fg-item select:focus,
    .fg-item input:focus {
        border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
        box-shadow: 0 0 0 3px rgba(109, 94, 245, .1);
    }
    
    .bulk-bar {
        display: none;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        padding: 12px 20px;
        background: linear-gradient(90deg, rgba(109, 94, 245, .08), rgba(109, 94, 245, .03));
        border-bottom: 1px solid rgba(109, 94, 245, .15);
    }
    
    .bulk-bar.show {
        display: flex;
    }
    
    .bulk-left {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 13px;
        color: var(--ink-txt);
    }
    
    .bulk-link {
        border: 0;
        background: transparent;
        color: var(--primary);
        font-weight: 600;
        font-size: 12.5px;
        cursor: pointer;
        font-family: inherit;
        padding: 0;
    }
    
    .bulk-right {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .btn-sm-act {
        height: 34px;
        padding: 0 12px;
        font-size: 12.3px;
        border-radius: 9px;
    }
    
    .users-table-wrap {
        padding: 0 8px 0 12px;
    }
    
    .users-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        min-width: 1180px;
    }
    
    .users-table thead th {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .35px;
        color: var(--muted);
        font-weight: 600;
        padding: 14px 10px;
        border-bottom: 1px solid var(--line);
        text-align: left;
        white-space: nowrap;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 1;
    }
    
    .users-table tbody td {
        padding: 14px 12px;
        font-size: 13px;
        border-bottom: 1px solid #EEF0F5;
        color: var(--ink-txt);
        vertical-align: middle;
        white-space: nowrap;
    }
    
    .users-table tbody tr:last-child td {
        border-bottom: none;
    }
    
    .users-table tbody tr:hover td {
        background: #F7F8FC;
    }
    
    .users-table .user-cell {
        gap: 11px;
    }
    
    .users-table .u-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 12px;
        box-shadow: 0 4px 10px -4px rgba(16, 20, 43, .35);
    }
    
    .users-table .uname {
        font-size: 13.4px;
        font-weight: 600;
        color: #151831;
    }
    
    .users-table .amt-cell {
        font-weight: 700;
        font-family: 'Outfit', sans-serif;
        letter-spacing: -.2px;
    }
    
    .users-table .status-pill,
    .users-table .kyc-pill {
        font-size: 11.2px;
        padding: 5px 12px;
        border-radius: 999px;
        font-weight: 600;
    }
    
    .col-check {
        width: 42px;
        padding-left: 8px !important;
        padding-right: 4px !important;
    }
    
    .chk {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        margin: 0;
    }
    
    .chk input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }
    
    .chk span {
        width: 17px;
        height: 17px;
        border-radius: 5px;
        border: 1.5px solid #C9CDDA;
        background: #fff;
        display: inline-block;
        position: relative;
        transition: all .15s ease;
    }
    
    .chk input:checked + span {
        background: var(--primary);
        border-color: var(--primary);
        box-shadow: 0 2px 6px rgba(109, 94, 245, .35);
    }
    
    .chk input:checked + span::after {
        content: "";
        position: absolute;
        left: 5px;
        top: 2px;
        width: 4px;
        height: 8px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }
    
    .uid {
        font-weight: 600;
        color: var(--primary);
        font-size: 12.4px;
    }
    
    .uid.soft {
        color: var(--ink-txt);
        background: var(--bg);
        padding: 4px 8px;
        border-radius: 7px;
        font-weight: 600;
        font-size: 12px;
    }
    
    .uname {
        font-weight: 600;
        font-size: 13.2px;
        line-height: 1.2;
        color: var(--ink-txt);
    }
    
    .uemail-m {
        display: none;
        font-size: 11px;
        color: var(--muted);
        margin-top: 2px;
    }
    
    .muted-cell {
        color: var(--muted);
        font-size: 12.5px;
    }
    
    .kyc-pill {
        font-size: 11px;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 20px;
        display: inline-block;
    }
    
    .kyc-ok {
        background: var(--emerald-tint);
        color: #0E8A44;
    }
    
    .kyc-pending {
        background: var(--amber-tint);
        color: #B5730F;
    }
    
    .kyc-rejected {
        background: var(--rose-tint);
        color: #C2344A;
    }
    
    .act-group {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        justify-content: flex-end;
        width: 100%;
    }
    
    .act-btn {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        border: 1px solid transparent;
        background: transparent;
        color: var(--muted);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all .15s ease;
    }
    
    .act-btn i {
        width: 15px;
        height: 15px;
    }
    
    .act-btn:hover {
        background: var(--primary-tint);
        color: var(--primary);
        border-color: rgba(109, 94, 245, .15);
    }
    
    .act-menu {
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: 0 14px 34px -14px rgba(16, 20, 43, .28);
        padding: 6px;
        min-width: 180px;
    }
    
    .act-menu .dropdown-item {
        display: flex;
        align-items: center;
        gap: 9px;
        border-radius: 8px;
        font-size: 12.8px;
        font-weight: 500;
        padding: 8px 10px;
        color: var(--ink-txt);
    }
    
    .act-menu .dropdown-item i {
        width: 15px;
        height: 15px;
        color: var(--muted);
    }
    
    .act-menu .dropdown-item:hover {
        background: var(--primary-tint);
        color: var(--primary-dark);
    }
    
    .act-menu .dropdown-item:hover i {
        color: var(--primary-dark);
    }
    
    .act-menu .dropdown-item.text-danger {
        color: var(--rose);
    }
    
    .act-menu .dropdown-item.text-danger i {
        color: var(--rose);
    }
    
    .act-menu .dropdown-item.text-danger:hover {
        background: var(--rose-tint);
    }
    
    .users-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: wrap;
        padding: 14px 20px 16px;
        border-top: 1px solid var(--line);
        background: #FCFCFE;
    }
    
    .uf-left {
        font-size: 12.6px;
        color: var(--muted);
    }
    
    .uf-left strong {
        color: var(--ink-txt);
    }
    
    .uf-mid {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .uf-label {
        font-size: 12.4px;
        color: var(--muted);
    }
    
    .uf-select {
        height: 34px;
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 0 10px;
        background: #fff;
        font-size: 12.5px;
        font-family: inherit;
        color: var(--ink-txt);
    }
    
    .uf-pages {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .pg-btn {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        border-radius: 9px;
        border: 1px solid var(--line);
        background: #fff;
        color: var(--ink-txt);
        font-size: 12.6px;
        font-weight: 500;
        font-family: inherit;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all .15s ease;
    }
    
    .pg-btn i {
        width: 15px;
        height: 15px;
    }
    
    .pg-btn:hover:not(:disabled):not(.active) {
        background: var(--bg);
        border-color: #d5d7e4;
    }
    
    .pg-btn.active {
        background: linear-gradient(135deg, var(--primary), #8A6FF8);
        border-color: transparent;
        color: #fff;
        box-shadow: 0 6px 14px -6px rgba(109, 94, 245, .55);
    }
    
    .pg-btn:disabled {
        opacity: .4;
        cursor: not-allowed;
    }
    
    .pg-dots {
        color: var(--muted);
        padding: 0 4px;
        font-size: 13px;
    }
    
    @media (max-width: 1200px) {
        .filter-grid {
            grid-template-columns: repeat(3, 1fr);
        }
        .muted-cell {
            display: none;
        }
        .uemail-m {
            display: block;
        }
    }
    
    @media (max-width: 768px) {
        .filter-grid {
            grid-template-columns: 1fr 1fr;
        }
        .users-search {
            max-width: none;
            width: 100%;
        }
        .users-actions {
            width: 100%;
        }
        .users-actions .btn-soft,
        .users-actions .btn-primary-solid {
            flex: 1;
        }
    }
    
    @media (max-width: 576px) {
        .filter-grid {
            grid-template-columns: 1fr;
        }
    }
    .btn-icon-only {
        width: 42px;
        padding: 0;
    }
    
    .reason-pill {
        font-size: 11.2px;
        font-weight: 600;
        padding: 5px 12px;
        border-radius: 999px;
        display: inline-block;
        white-space: nowrap;
    }
    
    .reason-warn {
        background: var(--amber-tint);
        color: #B5730F;
    }
    
    .reason-danger {
        background: var(--rose-tint);
        color: #C2344A;
    }
    
    a.act-btn {
        text-decoration: none;
    }
    
    /* ===== USER DETAILS ===== */
    
    .ud-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 18px;
        align-items: start;
    }
    
    .ud-profile-card {
        background: var(--paper);
        border: 1px solid rgba(231, 232, 240, .9);
        border-radius: var(--radius);
        padding: 22px;
        display: flex;
        justify-content: space-between;
        gap: 24px;
        flex-wrap: wrap;
        box-shadow: 0 1px 2px rgba(16, 20, 43, .03), 0 10px 28px -18px rgba(16, 20, 43, .12);
        margin-bottom: 16px;
    }
    
    .ud-profile-left {
        display: flex;
        align-items: center;
        gap: 16px;
        min-width: 0;
    }
    
    .ud-avatar {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        background: linear-gradient(145deg, #8B7BFF, var(--primary) 45%, #5A4AE8);
        color: #fff;
        font-family: 'Outfit', sans-serif;
        font-weight: 700;
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 8px 20px -8px rgba(109, 94, 245, .55);
    }
    
    .ud-name-row {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        margin-bottom: 8px;
    }
    
    .ud-name {
        font-family: 'Outfit', sans-serif;
        font-size: 22px;
        font-weight: 700;
        margin: 0;
        color: var(--ink-txt);
        letter-spacing: -.3px;
    }
    
    .ud-contact-row {
        display: flex;
        flex-wrap: wrap;
        gap: 14px 18px;
        font-size: 12.8px;
        color: var(--muted);
    }
    
    .ud-contact-row span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }
    
    .ud-contact-row i {
        width: 14px;
        height: 14px;
        color: var(--primary);
    }
    
    .ud-profile-right {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-width: 220px;
    }
    
    .ud-info-line {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        font-size: 12.6px;
    }
    
    .ud-info-line span {
        color: var(--muted);
    }
    
    .ud-info-line strong {
        color: var(--ink-txt);
        font-weight: 600;
        text-align: right;
    }
    
    .ud-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .ud-tab {
        border: 0;
        background: #EEF0F6;
        color: var(--muted);
        font-size: 12.8px;
        font-weight: 600;
        font-family: inherit;
        padding: 9px 16px;
        border-radius: 999px;
        cursor: pointer;
        transition: all .15s ease;
    }
    
    .ud-tab:hover {
        background: #E4E7F0;
        color: var(--ink-txt);
    }
    
    .ud-tab.active {
        background: linear-gradient(135deg, var(--primary), #8A6FF8);
        color: #fff;
        box-shadow: 0 8px 18px -8px rgba(109, 94, 245, .55);
    }
    
    .ud-tab-panel {
        display: none;
    }
    
    .ud-tab-panel.active {
        display: block;
    }
    
    .ud-info-card {
        background: var(--paper);
        border: 1px solid rgba(231, 232, 240, .9);
        border-radius: var(--radius);
        padding: 20px 22px;
        height: 100%;
        box-shadow: 0 1px 2px rgba(16, 20, 43, .03), 0 10px 28px -18px rgba(16, 20, 43, .12);
    }
    
    .ud-card-title {
        font-family: 'Outfit', sans-serif;
        font-size: 15.5px;
        font-weight: 700;
        margin: 0 0 16px;
        color: var(--ink-txt);
    }
    
    .ud-kv-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 14px;
        padding: 11px 0;
        border-bottom: 1px solid #F0F1F6;
        font-size: 13px;
    }
    
    .ud-kv-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .ud-kv-row:first-child {
        padding-top: 0;
    }
    
    .ud-kv-row span:first-child {
        color: var(--muted);
        font-weight: 500;
    }
    
    .ud-kv-row strong {
        color: var(--ink-txt);
        font-weight: 600;
        text-align: right;
    }
    
    .ud-kv-row .text-success {
        color: var(--emerald) !important;
    }
    
    .ud-actions {
        background: var(--paper);
        border: 1px solid rgba(231, 232, 240, .9);
        border-radius: var(--radius);
        padding: 16px;
        box-shadow: 0 1px 2px rgba(16, 20, 43, .03), 0 10px 28px -18px rgba(16, 20, 43, .12);
        position: sticky;
        top: 18px;
    }
    
    .ud-actions-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }
    
    .ud-actions-head h3 {
        font-family: 'Outfit', sans-serif;
        font-size: 15px;
        font-weight: 700;
        margin: 0;
        color: var(--ink-txt);
    }
    
    .ud-close {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--muted);
        background: var(--bg);
        transition: all .15s ease;
    }
    
    .ud-close i {
        width: 15px;
        height: 15px;
    }
    
    .ud-close:hover {
        color: var(--ink-txt);
        background: #E8EAF2;
    }
    
    .ud-actions-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .ud-action-btn {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 13px;
        border-radius: 11px;
        border: 1px solid var(--line);
        background: #fff;
        color: var(--ink-txt);
        font-size: 13px;
        font-weight: 500;
        font-family: inherit;
        cursor: pointer;
        text-align: left;
        transition: all .15s ease;
    }
    
    .ud-action-btn i {
        width: 16px;
        height: 16px;
        color: var(--primary);
        flex-shrink: 0;
    }
    
    .ud-action-btn:hover {
        border-color: rgba(109, 94, 245, .3);
        background: var(--primary-tint);
        color: var(--primary-dark);
    }
    
    .ud-action-btn.danger {
        color: var(--rose);
    }
    
    .ud-action-btn.danger i {
        color: var(--rose);
    }
    
    .ud-action-btn.danger:hover {
        background: var(--rose-tint);
        border-color: #f0c4cc;
        color: var(--rose);
    }
    
    .ud-action-btn.danger.outline {
        border-color: #f0c4cc;
        background: #fff;
    }
    
    @media (max-width: 1100px) {
        .ud-layout {
            grid-template-columns: 1fr;
        }
        .ud-actions {
            position: static;
            order: -1;
        }
    }
    
    @media (max-width: 768px) {
        .ud-profile-card {
            flex-direction: column;
        }
        .ud-profile-right {
            width: 100%;
            padding-top: 12px;
            border-top: 1px solid var(--line);
        }
    }
    /* ===== FOOTER ===== */
    
    .app-footer {
        background: var(--paper);
        border-top: 1px solid var(--line);
        padding: 16px 30px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12.3px;
        color: var(--muted);
    }
    
    .app-footer a {
        color: var(--primary);
        font-weight: 600;
    }
    
    .footer-links {
        display: flex;
        gap: 18px;
        flex-wrap: wrap;
    }
    
    @media (max-width: 991px) {
        .sidebar {
            transform: translateX(-100%);
            width: var(--sidebar-w) !important;
        }
        .sidebar.show {
            transform: translateX(0);
        }
        .sidebar.collapsed .brand-text,
        .sidebar.collapsed .lbl,
        .sidebar.collapsed .chev,
        .sidebar.collapsed .admin-mini-name,
        .sidebar.collapsed .admin-mini-role,
        .sidebar.collapsed .admin-mini-status,
        .sidebar.collapsed .logout-link span {
            display: initial;
        }
        .sidebar.collapsed .sidebar-brand,
        .sidebar.collapsed .side-link,
        .sidebar.collapsed .admin-mini-card,
        .sidebar.collapsed .logout-link {
            justify-content: flex-start;
            padding-left: 13px;
            padding-right: 13px;
        }
        .sidebar.collapsed .sidebar-brand {
            padding-left: 22px;
        }
        .main {
            margin-left: 0 !important;
        }
        .search-wrap {
            display: none;
        }
    }
    
    @media (max-width: 576px) {
        .profile-role {
            display: none;
        }
    }

    /* ===== LOGIN PAGE ===== */
    
    .login-body {
        min-height: 100vh;
        margin: 0;
        display: block;
        background: #070A18;
        font-family: 'Poppins', sans-serif;
        overflow-x: hidden;
    }
    
    .login-shell {
        min-height: 100vh;
        display: grid;
        grid-template-columns: 1.08fr .92fr;
    }
    
    .login-brand {
        position: relative;
        overflow: hidden;
        background:
            radial-gradient(ellipse 100% 80% at 0% -10%, rgba(109, 94, 245, .45) 0%, transparent 50%),
            radial-gradient(ellipse 80% 60% at 100% 100%, rgba(14, 165, 196, .16) 0%, transparent 45%),
            radial-gradient(ellipse 50% 40% at 70% 30%, rgba(139, 92, 246, .18) 0%, transparent 50%),
            linear-gradient(165deg, #070A18 0%, #10142B 45%, #0A0E1C 100%);
        color: #fff;
        padding: 44px 52px;
        display: flex;
        flex-direction: column;
    }
    
    .login-grid {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
        background-size: 48px 48px;
        mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
        pointer-events: none;
        opacity: .7;
    }
    
    .login-brand-glow {
        position: absolute;
        inset: 0;
        background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .04) 50%, transparent 65%);
        animation: loginShimmer 9s ease-in-out infinite;
        pointer-events: none;
    }
    
    @keyframes loginShimmer {
        0%, 100% { opacity: .35; transform: translateX(-12%); }
        50% { opacity: 1; transform: translateX(12%); }
    }
    
    .login-brand-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(50px);
        pointer-events: none;
    }
    
    .login-brand-orb-1 {
        width: 320px;
        height: 320px;
        background: rgba(109, 94, 245, .4);
        top: -80px;
        right: -60px;
        animation: orbFloat 7s ease-in-out infinite;
    }
    
    .login-brand-orb-2 {
        width: 220px;
        height: 220px;
        background: rgba(14, 165, 196, .2);
        bottom: 8%;
        left: -70px;
        animation: orbFloat 9s ease-in-out infinite reverse;
    }
    
    .login-brand-orb-3 {
        width: 140px;
        height: 140px;
        background: rgba(139, 92, 246, .25);
        bottom: 35%;
        right: 18%;
        animation: orbFloat 6s ease-in-out infinite;
    }
    
    @keyframes orbFloat {
        0%, 100% { transform: translateY(0) scale(1); }
        50% { transform: translateY(20px) scale(1.05); }
    }
    
    .login-brand-inner {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        height: 100%;
        max-width: 540px;
    }
    
    .login-logo {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: auto;
    }
    
    .login-logo .brand-mark {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, .14) inset,
            0 12px 28px -6px rgba(109, 94, 245, .7),
            0 0 32px rgba(109, 94, 245, .35);
    }
    
    .login-logo .brand-name {
        font-family: 'Outfit', sans-serif;
        font-size: 26px;
        font-weight: 700;
        letter-spacing: -.45px;
        line-height: 1.1;
    }
    
    .login-logo .brand-sub {
        font-size: 11px;
        letter-spacing: 1.4px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .4);
        margin-top: 4px;
        font-weight: 500;
    }
    
    .login-hero-copy {
        margin: 40px 0 28px;
        animation: loginRise .75s ease both;
    }
    
    @keyframes loginRise {
        from { opacity: 0; transform: translateY(18px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .login-pill {
        display: inline-flex;
        align-items: center;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .8px;
        text-transform: uppercase;
        color: #C4B9FF;
        background: rgba(109, 94, 245, .18);
        border: 1px solid rgba(109, 94, 245, .35);
        padding: 6px 12px;
        border-radius: 999px;
        margin-bottom: 18px;
    }
    
    .login-hero-copy h1 {
        font-family: 'Outfit', sans-serif;
        font-size: clamp(30px, 3.4vw, 42px);
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: -.7px;
        margin: 0 0 16px;
        max-width: 12ch;
        background: linear-gradient(135deg, #fff 30%, rgba(196, 185, 255, .9) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    
    .login-hero-copy p {
        font-size: 15px;
        line-height: 1.7;
        color: rgba(255, 255, 255, .55);
        margin: 0;
        max-width: 40ch;
    }
    
    .login-features {
        list-style: none;
        padding: 0;
        margin: 0 0 28px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        animation: loginRise .75s ease .1s both;
    }
    
    .login-features li {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 13.5px;
        color: rgba(255, 255, 255, .72);
        font-weight: 500;
    }
    
    .login-features li i {
        width: 18px;
        height: 18px;
        color: #A594FF;
        flex-shrink: 0;
    }
    
    .login-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-bottom: 36px;
        animation: loginRise .75s ease .16s both;
    }
    
    .login-stat {
        background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 16px;
        padding: 18px 14px;
        backdrop-filter: blur(14px);
        transition: transform .2s ease, border-color .2s ease;
    }
    
    .login-stat:hover {
        transform: translateY(-3px);
        border-color: rgba(109, 94, 245, .4);
    }
    
    .login-stat strong {
        display: block;
        font-family: 'Outfit', sans-serif;
        font-size: 22px;
        font-weight: 700;
        letter-spacing: -.35px;
        margin-bottom: 4px;
    }
    
    .login-stat span {
        font-size: 11.5px;
        color: rgba(255, 255, 255, .42);
        font-weight: 500;
    }
    
    .login-brand-footer {
        margin-top: auto;
        font-size: 12px;
        color: rgba(255, 255, 255, .32);
    }
    
    .login-form-panel {
        position: relative;
        background:
            radial-gradient(ellipse 70% 50% at 100% -10%, rgba(109, 94, 245, .1) 0%, transparent 55%),
            radial-gradient(ellipse 50% 40% at 0% 100%, rgba(14, 165, 196, .06) 0%, transparent 50%),
            linear-gradient(180deg, #EEF0F8 0%, #F5F6FA 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 28px;
    }
    
    .login-form-wrap {
        position: relative;
        width: 100%;
        max-width: 440px;
        background: rgba(255, 255, 255, .92);
        border: 1px solid rgba(255, 255, 255, .9);
        border-radius: 24px;
        padding: 38px 36px 32px;
        box-shadow:
            0 1px 2px rgba(16, 20, 43, .04),
            0 28px 56px -24px rgba(16, 20, 43, .28),
            0 0 0 1px rgba(231, 232, 240, .8);
        backdrop-filter: blur(16px);
        animation: loginRise .7s ease .08s both;
        overflow: hidden;
    }
    
    .login-form-accent {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), #8B5CF6, #0EA5C4);
    }
    
    .login-welcome {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .8px;
        text-transform: uppercase;
        color: var(--primary);
        background: linear-gradient(135deg, #EFEDFF, #F4F1FF);
        padding: 6px 12px;
        border-radius: 999px;
        margin-bottom: 14px;
        border: 1px solid rgba(109, 94, 245, .12);
    }
    
    .login-form-head h2 {
        font-family: 'Outfit', sans-serif;
        font-size: 30px;
        font-weight: 700;
        letter-spacing: -.5px;
        margin: 0 0 8px;
        color: var(--ink-txt);
    }
    
    .login-form-head p {
        font-size: 13.5px;
        color: var(--muted);
        margin: 0 0 22px;
        line-height: 1.5;
    }
    
    .login-alert {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 11px 13px;
        border-radius: 12px;
        font-size: 12.5px;
        font-weight: 500;
        margin-bottom: 16px;
        line-height: 1.4;
    }
    
    .login-alert i {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        margin-top: 1px;
    }
    
    .login-alert.err {
        background: var(--rose-tint);
        color: #C2344A;
        border: 1px solid #f3c5cd;
    }
    
    .login-alert.ok {
        background: var(--emerald-tint);
        color: #0E8A44;
        border: 1px solid #bfe8cd;
    }
    
    .lf-field {
        margin-bottom: 16px;
    }
    
    .lf-field label {
        display: block;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--ink-txt);
        margin-bottom: 7px;
    }
    
    .lf-label-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 7px;
    }
    
    .lf-label-row label {
        margin-bottom: 0;
    }
    
    .lf-link {
        font-size: 12.3px;
        font-weight: 600;
        color: var(--primary);
    }
    
    .lf-link:hover {
        color: var(--primary-dark);
    }
    
    .lf-input {
        display: flex;
        align-items: center;
        gap: 10px;
        height: 52px;
        padding: 0 14px;
        border: 1.5px solid var(--line);
        border-radius: 14px;
        background: #F8F9FD;
        transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    }
    
    .lf-input:focus-within {
        border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
        box-shadow: 0 0 0 4px rgba(109, 94, 245, .14);
        background: #fff;
    }
    
    .lf-field.has-error .lf-input {
        border-color: #E1435B;
        background: #FFF8F9;
        box-shadow: 0 0 0 4px rgba(225, 67, 91, .1);
    }
    
    .lf-field.has-error .lf-input > i {
        color: #E1435B;
    }
    
    .lf-field.has-success .lf-input {
        border-color: #12A150;
        background: #F7FDF9;
    }
    
    .lf-field.has-success .lf-input > i {
        color: #12A150;
    }
    
    .lf-error {
        display: none;
        margin-top: 6px;
        font-size: 12px;
        font-weight: 500;
        color: #E1435B;
    }
    
    .lf-input > i {
        width: 17px;
        height: 17px;
        color: var(--muted);
        flex-shrink: 0;
        transition: color .15s ease;
    }
    
    .lf-input input {
        flex: 1;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 13.8px;
        color: var(--ink-txt);
        font-family: inherit;
        min-width: 0;
    }
    
    .lf-input input::placeholder {
        color: #9AA0B4;
    }
    
    .lf-eye {
        border: 0;
        background: transparent;
        padding: 4px;
        color: var(--muted);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }
    
    .lf-eye:hover {
        color: var(--primary);
        background: var(--primary-tint);
    }
    
    .lf-eye i {
        width: 17px;
        height: 17px;
    }
    
    .lf-check {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        color: var(--muted);
        cursor: pointer;
        margin: 4px 0 20px;
        user-select: none;
    }
    
    .lf-check input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }
    
    .lf-box {
        width: 18px;
        height: 18px;
        border-radius: 6px;
        border: 1.5px solid #C9CDDA;
        background: #fff;
        position: relative;
        flex-shrink: 0;
        transition: all .15s ease;
    }
    
    .lf-check input:checked + .lf-box {
        background: var(--primary);
        border-color: var(--primary);
        box-shadow: 0 2px 6px rgba(109, 94, 245, .35);
    }
    
    .lf-check input:checked + .lf-box::after {
        content: "";
        position: absolute;
        left: 5px;
        top: 2px;
        width: 4px;
        height: 8px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }
    
    .lf-submit {
        width: 100%;
        height: 54px;
        border: 0;
        border-radius: 14px;
        background: linear-gradient(135deg, #6D5EF5 0%, #7C6AF7 45%, #8B5CF6 100%);
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        font-family: inherit;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
        position: relative;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, .12) inset,
            0 14px 32px -10px rgba(109, 94, 245, .7);
        transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
    }
    
    .lf-submit .lf-btn-icon {
        width: 18px;
        height: 18px;
        transition: transform .2s ease;
    }
    
    .lf-submit:hover:not(:disabled) {
        filter: brightness(1.05);
        transform: translateY(-2px);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, .14) inset,
            0 18px 36px -10px rgba(109, 94, 245, .75);
    }
    
    .lf-submit:hover:not(:disabled) .lf-btn-icon {
        transform: translateX(4px);
    }
    
    .lf-submit:disabled {
        cursor: wait;
        opacity: .9;
    }
    
    .lf-btn-loader {
        display: none;
        width: 18px;
        height: 18px;
        border: 2px solid rgba(255, 255, 255, .35);
        border-top-color: #fff;
        border-radius: 50%;
        animation: spin .7s linear infinite;
    }
    
    .lf-submit.loading .lf-btn-text,
    .lf-submit.loading .lf-btn-icon {
        display: none;
    }
    
    .lf-submit.loading .lf-btn-loader {
        display: inline-block;
    }
    
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    
    .login-demo {
        margin-top: 16px;
        text-align: center;
        font-size: 12px;
        color: var(--muted);
        background: #F4F6FB;
        border: 1px dashed #D8DCE8;
        border-radius: 10px;
        padding: 9px 12px;
    }
    
    .login-demo span {
        font-weight: 600;
        color: var(--ink-txt);
    }
    
    .login-secure {
        margin-top: 14px;
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 14px;
        border-radius: 12px;
        background: linear-gradient(135deg, #F4F7FF, #F8F9FD);
        border: 1px solid #E8EBF5;
        font-size: 12px;
        color: var(--muted);
        line-height: 1.45;
    }
    
    .login-secure i {
        width: 15px;
        height: 15px;
        color: var(--primary);
        flex-shrink: 0;
        margin-top: 1px;
    }
    
    .login-help {
        margin-top: 18px;
        text-align: center;
        font-size: 12.8px;
        color: var(--muted);
    }
    
    .login-help a {
        color: var(--primary);
        font-weight: 600;
    }
    
    .login-help a:hover {
        color: var(--primary-dark);
    }
    
    @media (max-width: 991px) {
        .login-shell {
            grid-template-columns: 1fr;
        }
        .login-brand {
            min-height: auto;
            padding: 28px 24px 30px;
        }
        .login-hero-copy {
            margin: 26px 0 18px;
        }
        .login-hero-copy h1 {
            max-width: none;
            font-size: 28px;
            color: #fff;
            background: none;
            -webkit-background-clip: unset;
            background-clip: unset;
        }
        .login-features {
            margin-bottom: 18px;
        }
        .login-stats {
            margin-bottom: 8px;
        }
        .login-brand-footer {
            display: none;
        }
        .login-form-panel {
            padding: 8px 16px 36px;
        }
        .login-form-wrap {
            padding: 28px 22px 24px;
            border-radius: 20px;
        }
    }
    
    @media (max-width: 480px) {
        .login-stats {
            grid-template-columns: 1fr;
        }
        .login-features {
            display: none;
        }
    }

/* ===== INVESTMENT PAGES ===== */

.status-completed {
    background: #F3F3F6;
    color: #5A5F73;
    border: 1px solid #E0E1EA;
}

.toolbar-date {
    height: 38px;
    border: 1px solid #E2E5F0;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 12.5px;
    font-family: inherit;
    color: var(--ink-txt);
    background: #fff;
    outline: none;
}

.toolbar-date:focus {
    border-color: rgba(109, 94, 245, .45);
    box-shadow: 0 0 0 3px rgba(109, 94, 245, .12);
}

.uid-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
    font-weight: 500;
}

.inv-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #fff;
    border: 1px solid #E8EBF5;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px -12px rgba(16, 20, 43, .18);
}

.inv-fin-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.inv-fin-item {
    background: #fff;
    border: 1px solid #E8EBF5;
    border-radius: 12px;
    padding: 12px 14px;
}

.inv-fin-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.inv-fin-value {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-txt);
    letter-spacing: -.2px;
}

.inv-fin-value.accent {
    color: var(--primary);
}

.inv-donut-wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    padding: 8px 4px 4px;
}

.inv-donut {
    --p1: 70;
    --p2: 20;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(
        #6D5EF5 0 calc(var(--p1) * 1%),
        #12A150 calc(var(--p1) * 1%) calc((var(--p1) + var(--p2)) * 1%),
        #D98B1E calc((var(--p1) + var(--p2)) * 1%) 100%
    );
    display: grid;
    place-items: center;
    position: relative;
    flex-shrink: 0;
}

.inv-donut::before {
    content: "";
    position: absolute;
    inset: 18px;
    background: #fff;
    border-radius: 50%;
}

.inv-donut-center {
    position: relative;
    z-index: 1;
    text-align: center;
}

.inv-donut-total {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-txt);
}

.inv-donut-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.inv-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inv-leg-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inv-leg-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.inv-leg-label {
    font-size: 12px;
    color: var(--muted);
}

.inv-leg-value {
    font-size: 13.5px;
    font-weight: 650;
    color: var(--ink-txt);
    font-family: 'Outfit', sans-serif;
}

.ud-actions-list a.ud-action-btn {
    text-decoration: none;
}

.set-panel {
    background: #fff;
    border: 1px solid #E8EBF5;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 6px 18px -12px rgba(16, 20, 43, .18);
}

.set-panel-title {
    font-size: 14.5px;
    font-weight: 650;
    color: var(--ink-txt);
    margin: 0 0 14px;
}

.set-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 16px;
}

.set-field label {
    display: block;
    font-size: 12px;
    font-weight: 550;
    color: var(--muted);
    margin-bottom: 6px;
}

.set-field input,
.set-field select,
.set-field textarea {
    width: 100%;
    height: 40px;
    border: 1px solid #E2E5F0;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 13px;
    font-family: inherit;
    color: var(--ink-txt);
    background: #FBFBFE;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.set-field textarea {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
    line-height: 1.5;
}

.set-field input:focus,
.set-field select:focus,
.set-field textarea:focus {
    border-color: rgba(109, 94, 245, .45);
    box-shadow: 0 0 0 3px rgba(109, 94, 245, .12);
    background: #fff;
}

.set-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inv-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.inv-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.inv-toggle-track {
    width: 40px;
    height: 22px;
    border-radius: 20px;
    background: #D8DCE8;
    position: relative;
    flex-shrink: 0;
    transition: background .18s ease;
}

.inv-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(16, 20, 43, .25);
    transition: transform .18s ease;
}

.inv-toggle input:checked + .inv-toggle-track {
    background: var(--primary);
}

.inv-toggle input:checked + .inv-toggle-track .inv-toggle-thumb {
    transform: translateX(18px);
}

.inv-toggle-text {
    font-size: 13px;
    font-weight: 550;
    color: var(--ink-txt);
}

.inv-notes {
    background: #fff;
    border: 1px solid #E8EBF5;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 6px 18px -12px rgba(16, 20, 43, .18);
    position: sticky;
    top: 84px;
}

.inv-notes-title {
    font-size: 14.5px;
    font-weight: 650;
    color: var(--ink-txt);
    margin: 0 0 14px;
}

.inv-notes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inv-notes-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.8px;
    line-height: 1.45;
    color: var(--muted);
}

.inv-notes-list i {
    width: 16px;
    height: 16px;
    color: #12A150;
    flex-shrink: 0;
    margin-top: 1px;
    background: var(--emerald-tint);
    border-radius: 50%;
    padding: 2px;
    box-sizing: content-box;
}

@media (max-width: 1199px) {
    .inv-fin-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .inv-summary-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .inv-fin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .set-grid {
        grid-template-columns: 1fr;
    }
    .inv-notes {
        position: static;
    }
}

/* ===== ADMIN SETTINGS ===== */

.as-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    margin-bottom: 22px;
    padding: 0 2px;
    border-bottom: 1px solid var(--line);
}

.as-tab {
    position: relative;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 13.4px;
    font-weight: 600;
    font-family: inherit;
    padding: 12px 2px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color .18s ease;
}

.as-tab i {
    width: 16px;
    height: 16px;
}

.as-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2.5px;
    border-radius: 3px 3px 0 0;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.as-tab:hover {
    color: var(--ink-txt);
}

.as-tab.active {
    color: var(--primary);
}

.as-tab.active::after {
    transform: scaleX(1);
}

.as-panels {
    max-width: 560px;
}

.as-card {
    display: none;
    background: #fff;
    border: 1px solid rgba(231, 232, 240, .95);
    border-radius: 18px;
    padding: 24px 22px 22px;
    box-shadow: 0 1px 2px rgba(16, 20, 43, .03), 0 14px 32px -20px rgba(16, 20, 43, .16);
    position: relative;
    overflow: hidden;
    flex-direction: column;
}

.as-card.active {
    display: flex;
}

.as-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #8B5CF6 55%, #0EA5C4);
    opacity: .5;
}

.as-card-head {
    margin-bottom: 18px;
}

.as-card-head h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--ink-txt);
    letter-spacing: -.25px;
}

.as-card-head p {
    margin: 0;
    font-size: 12.6px;
    color: var(--muted);
    line-height: 1.45;
}

.as-avatar-block {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    background:
        radial-gradient(120px 80px at 12% 20%, rgba(109, 94, 245, .1), transparent 70%),
        linear-gradient(145deg, #F8F9FD, #F3F4FB);
    border: 1px solid #E8EAF2;
    margin-bottom: 18px;
}

.as-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.as-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 3px solid #fff;
    outline: 2px solid rgba(109, 94, 245, .35);
    background: linear-gradient(145deg, #8B7BFF, var(--primary) 45%, #5A4AE8);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px -10px rgba(109, 94, 245, .55);
}

.as-avatar-status {
    position: absolute;
    right: 4px;
    bottom: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--emerald);
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 1px rgba(18, 161, 80, .25);
}

.as-outline-btn {
    height: 40px;
    padding: 0 14px;
    border-radius: 11px;
    border: 1.5px solid rgba(109, 94, 245, .35);
    background: #fff;
    color: var(--primary);
    font-size: 12.6px;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.as-outline-btn i {
    width: 15px;
    height: 15px;
}

.as-outline-btn:hover {
    background: var(--primary-tint);
    border-color: var(--primary);
    box-shadow: 0 8px 18px -12px rgba(109, 94, 245, .55);
}

.as-hint {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 7px;
}

.as-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
    flex: 1;
}

.as-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-txt);
    margin-bottom: 7px;
}

.as-field label span {
    color: var(--rose);
}

.as-field input,
.as-select-wrap select {
    width: 100%;
    height: 46px;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    padding: 0 14px;
    background: #F8F9FD;
    font-size: 13.3px;
    font-family: inherit;
    color: var(--ink-txt);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    appearance: none;
}

.as-field input:focus,
.as-select-wrap select:focus {
    border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
    box-shadow: 0 0 0 4px rgba(109, 94, 245, .12);
    background: #fff;
}

.as-select-wrap {
    position: relative;
}

.as-select-wrap select {
    padding-right: 38px;
    cursor: pointer;
}

.as-select-wrap > i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--muted);
    pointer-events: none;
}

.as-field.has-error input,
.as-field.has-error .as-pass {
    border-color: #E1435B;
    background: #FFF8F9;
}

.as-error {
    min-height: 16px;
    margin-top: 5px;
    font-size: 11.8px;
    font-weight: 500;
    color: #E1435B;
}

.as-pass {
    display: flex;
    align-items: center;
    height: 46px;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    background: #F8F9FD;
    padding-right: 6px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.as-pass:focus-within {
    border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
    box-shadow: 0 0 0 4px rgba(109, 94, 245, .12);
    background: #fff;
}

.as-pass input {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    height: 100%;
    flex: 1;
}

.as-eye {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--muted);
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.as-eye:hover {
    background: var(--primary-tint);
    color: var(--primary);
}

.as-eye i {
    width: 16px;
    height: 16px;
}

.as-pass-rules {
    background: linear-gradient(145deg, #F4F1FF, #F8F6FF);
    border: 1px solid rgba(109, 94, 245, .14);
    border-radius: 14px;
    padding: 14px 14px 12px;
}

.as-pass-title {
    font-size: 12.4px;
    font-weight: 700;
    color: var(--ink-txt);
    margin-bottom: 10px;
}

.as-pass-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.as-pass-rules li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.2px;
    color: var(--muted);
    font-weight: 500;
    transition: color .15s ease;
}

.as-pass-rules li i {
    width: 15px;
    height: 15px;
    color: #B7BCCD;
    flex-shrink: 0;
    transition: color .15s ease;
}

.as-pass-rules li.ok {
    color: #0E8A44;
}

.as-pass-rules li.ok i {
    color: var(--emerald);
}

.as-logo-block label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-txt);
    margin-bottom: 8px;
}

.as-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.as-logo-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F4F5FA;
    border: 1px dashed #D5D8E4;
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 150px;
}

.as-logo-preview .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.as-logo-preview .brand-mark i {
    width: 16px;
    height: 16px;
}

.as-logo-preview span {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink-txt);
}

.as-submit {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #8A6FF8);
    color: #fff;
    font-size: 13.8px;
    font-weight: 600;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-top: auto;
    box-shadow: 0 12px 26px -10px rgba(109, 94, 245, .65);
    transition: transform .15s ease, filter .15s ease;
}

.as-submit i {
    width: 16px;
    height: 16px;
}

.as-submit:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    color: #fff;
}

.as-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 14px 16px;
    border-radius: 14px;
    background: #151831;
    color: #fff;
    font-size: 13.2px;
    font-weight: 500;
    box-shadow: 0 18px 40px -16px rgba(16, 20, 43, .55);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.as-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.as-toast i {
    width: 18px;
    height: 18px;
    color: #5EE9A0;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .as-tabs {
        gap: 4px 18px;
    }
    .as-panels {
        max-width: 100%;
    }
    .as-avatar-block {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== ROI MANAGEMENT ===== */

.roi-set-panel {
    background: #fff;
    border: 1px solid rgba(231, 232, 240, .95);
    border-radius: 18px;
    padding: 22px 22px 18px;
    box-shadow: 0 1px 2px rgba(16, 20, 43, .03), 0 14px 32px -20px rgba(16, 20, 43, .16);
}

.roi-set-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.roi-set-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) minmax(140px, 180px);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #E8EAF2;
    border-radius: 14px;
    background: linear-gradient(180deg, #FCFCFE, #F7F8FC);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.roi-set-item:hover {
    border-color: rgba(109, 94, 245, .28);
    box-shadow: 0 10px 22px -16px rgba(109, 94, 245, .35);
}

.roi-set-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.roi-set-icon i {
    width: 18px;
    height: 18px;
}

.roi-set-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-txt);
    letter-spacing: -.15px;
}

.roi-set-desc {
    font-size: 11.8px;
    color: var(--muted);
    margin-top: 2px;
    line-height: 1.4;
}

.roi-set-control input,
.roi-set-control select {
    width: 100%;
    height: 42px;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    padding: 0 12px;
    background: #fff;
    font-size: 13px;
    font-family: inherit;
    color: var(--ink-txt);
    outline: none;
}

.roi-set-control input:focus,
.roi-set-control select:focus {
    border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
    box-shadow: 0 0 0 4px rgba(109, 94, 245, .12);
}

.roi-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #EEF2FF, #F0F7FF);
    border: 1px solid rgba(79, 85, 208, .16);
    color: #3A4270;
    font-size: 12.6px;
    line-height: 1.5;
}

.roi-info-banner i {
    width: 18px;
    height: 18px;
    color: var(--indigo);
    flex-shrink: 0;
    margin-top: 1px;
}

.roi-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px;
    background: #F3F4FA;
    border-radius: 12px;
}

.roi-type-btn {
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s ease;
}

.roi-type-btn.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 12px -6px rgba(16, 20, 43, .28);
}

.roi-type-btn[data-type="debit"].active {
    color: #C2344A;
}

.roi-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(145deg, #F8F9FD, #F3F4FB);
    border: 1px solid #E8EAF2;
    border-radius: 14px;
    margin-bottom: 14px;
}

.roi-user-card .u-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, #8B7BFF, var(--primary));
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.roi-user-meta .uname {
    font-weight: 650;
    color: var(--ink-txt);
    font-size: 14px;
}

.roi-user-meta .uid-sub {
    font-size: 12px;
    color: var(--muted);
}

.roi-balance-grid {
    display: grid;
    gap: 8px;
}

.roi-balance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 11px;
    background: #F7F8FC;
    border: 1px solid #E8EAF2;
}

.roi-balance-item span {
    font-size: 12.2px;
    color: var(--muted);
}

.roi-balance-item strong {
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    color: var(--ink-txt);
}

.roi-preview-card .ud-kv-row:last-child strong {
    color: var(--primary);
    font-size: 15px;
}

.roi-donut {
    --p1: 82;
    --p2: 12;
    background: conic-gradient(
        #12A150 0 calc(var(--p1) * 1%),
        #D98B1E calc(var(--p1) * 1%) calc((var(--p1) + var(--p2)) * 1%),
        #E1435B calc((var(--p1) + var(--p2)) * 1%) 100%
    );
}

@media (max-width: 1100px) {
    .roi-set-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .roi-set-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }
    .roi-set-control {
        grid-column: 1 / -1;
    }
}

/* ===== REFERRAL MANAGEMENT ===== */

.ref-stat-grid > .col {
    min-width: 0;
}

@media (max-width: 1199px) {
    .ref-stat-grid > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575px) {
    .ref-stat-grid > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.ref-earn-donut {
    background: conic-gradient(
        #6D5EF5 0 calc(var(--p1) * 1%),
        #12A150 calc(var(--p1) * 1%) calc((var(--p1) + var(--p2)) * 1%),
        #D98B1E calc((var(--p1) + var(--p2)) * 1%) 100%
    );
}

.ref-tree {
    padding: 8px 4px 12px;
}

.ref-node {
    position: relative;
}

.ref-node-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #E8EAF2;
    border-radius: 14px;
    box-shadow: 0 6px 16px -12px rgba(16, 20, 43, .18);
    transition: border-color .15s ease, box-shadow .15s ease;
    max-width: 420px;
}

.ref-node-card:hover {
    border-color: rgba(109, 94, 245, .3);
    box-shadow: 0 12px 24px -14px rgba(109, 94, 245, .35);
}

.ref-node-card .u-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ref-node-meta {
    flex: 1;
    min-width: 0;
}

.ref-node-meta .uname {
    font-size: 13.5px;
    font-weight: 650;
    color: var(--ink-txt);
}

.ref-chev {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: #F3F4FA;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.ref-chev i {
    width: 15px;
    height: 15px;
}

.ref-chev:hover,
.ref-chev.open {
    background: var(--primary-tint);
    color: var(--primary);
}

.ref-children {
    display: none;
    margin-left: 28px;
    padding-left: 18px;
    border-left: 2px dashed #D9DCE8;
    margin-top: 10px;
}

.ref-children.open {
    display: block;
}

.ref-children > .ref-node {
    margin-bottom: 10px;
    position: relative;
}

.ref-children > .ref-node::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 24px;
    width: 16px;
    height: 2px;
    background: #D9DCE8;
}

.ref-tree-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #EEF0F6;
    font-size: 12.5px;
    color: var(--muted);
}

.ref-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 26px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--primary-tint);
    color: var(--primary-dark);
    font-size: 11.5px;
    font-weight: 700;
}

.ref-pair {
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, #F8F9FD, #F3F4FB);
    border: 1px solid #E8EAF2;
}

.ref-pair .user-cell {
    flex: 1;
    min-width: 0;
}

#refDetailDrawer {
    width: min(420px, 100vw);
}

#refDetailDrawer .offcanvas-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

/* ===== COMMISSION MANAGEMENT ===== */

.com-bonus-donut {
    background: conic-gradient(
        #6D5EF5 0 calc(var(--p1) * 1%),
        rgba(109, 94, 245, .35) calc(var(--p1) * 1%) calc((var(--p1) + var(--p2)) * 1%),
        #E8EAF2 calc((var(--p1) + var(--p2)) * 1%) 100%
    );
}

.set-panel .set-grid + .mt-3 .btn-primary-solid,
.set-panel .inv-toggle {
    margin-top: 4px;
}
