        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background: #080A11;
            color: #F8FAFC;
            overflow-x: hidden;
            min-height: 100vh;
        }
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(90,120,255,.25); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(90,120,255,.4); }

        /* === ANIMATED BACKGROUND === */
        .bg-layer {
            position: fixed; inset: 0; z-index: 0;
            overflow: hidden; pointer-events: none;
        }
        .bg-layer .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: .3;
            animation: orbFloat 18s ease-in-out infinite;
        }
        .bg-layer .orb:nth-child(1) {
            width: 600px; height: 600px;
            background: radial-gradient(circle, #3B82F6, transparent);
            top: -10%; left: -5%;
            animation-delay: 0s;
        }
        .bg-layer .orb:nth-child(2) {
            width: 500px; height: 500px;
            background: radial-gradient(circle, #7C3AED, transparent);
            bottom: -8%; right: -4%;
            animation-delay: -6s;
        }
        .bg-layer .orb:nth-child(3) {
            width: 400px; height: 400px;
            background: radial-gradient(circle, #06B6D4, transparent);
            top: 40%; left: 50%;
            animation-delay: -12s;
        }
        @keyframes orbFloat {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(40px, -50px) scale(1.05); }
            66% { transform: translate(-30px, 30px) scale(.95); }
        }

        /* Particles */
        .particles { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
        .particle {
            position: absolute;
            width: 2px; height: 2px;
            background: rgba(90,120,255,.4);
            border-radius: 50%;
            animation: particleDrift 20s linear infinite;
        }
        @keyframes particleDrift {
            0% { transform: translateY(100vh) translateX(0); opacity: 0; }
            10% { opacity: 1; }
            90% { opacity: 1; }
            100% { transform: translateY(-10vh) translateX(50px); opacity: 0; }
        }

        /* === LAYOUT === */
        .app { position: relative; z-index: 2; display: flex; min-height: 100vh; }
        .sidebar {
            width: 260px; flex-shrink: 0;
            background: rgba(17, 20, 34, 0.95);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-right: 1px solid rgba(255, 255, 255, 0.07);
            display: flex; flex-direction: column;
            height: 100vh; position: sticky; top: 0;
            transform: translateZ(0);
            will-change: transform, width;
            transition: width .3s cubic-bezier(0.16, 1, 0.3, 1), transform .3s ease;
            overflow: hidden;
            z-index: 100;
        }
        .sidebar.collapsed { width: 72px; }
        .sidebar.collapsed .sidebar-brand span,
        .sidebar.collapsed .nav-label,
        .sidebar.collapsed .sidebar-section-label { display: none; }
        .sidebar.collapsed .sidebar-brand { justify-content: center; padding: 16px 0; }
        .sidebar.collapsed .nav-item { justify-content: center; padding: 12px; }
        .sidebar.collapsed .nav-item i { margin: 0; }
        .sidebar.collapsed .nav-badge { display: none; }

        .sidebar-brand {
            padding: 20px 20px 16px;
            display: flex; align-items: center; gap: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.07);
            flex-shrink: 0;
        }
        .sidebar-brand .logo-icon {
            width: 36px; height: 36px; border-radius: 10px;
            background: linear-gradient(135deg, #6366F1, #0EA5E9);
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
        }
        .sidebar-brand .logo-icon i { color: #fff; width: 20px; height: 20px; }
        .sidebar-brand span {
            font-size: 16px; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif;
            background: linear-gradient(135deg, #fff 70%, #94A3B8);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            white-space: nowrap;
        }

        .sidebar-scroll {
            flex: 1; overflow-y: auto; padding: 12px 8px;
        }
        .sidebar-section { margin-bottom: 20px; }
        .sidebar-section-label {
            font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
            color: rgba(148,163,184,.6);
            padding: 0 16px; margin-bottom: 6px;
            white-space: nowrap;
        }
        .nav-item {
            display: flex; align-items: center; gap: 12px;
            padding: 11px 16px; border-radius: 12px;
            color: #94A3B8; text-decoration: none;
            font-size: 13px; font-weight: 500;
            transition: all .2s cubic-bezier(.4,0,.2,1);
            cursor: pointer; position: relative;
            white-space: nowrap;
        }
        .nav-item i { width: 18px; height: 18px; flex-shrink: 0; }
        .nav-item:hover { background: rgba(99, 102, 241, 0.08); color: #fff; }
        .nav-item.active {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(14, 165, 233, 0.12));
            color: #fff;
            box-shadow: 0 4px 20px rgba(99, 102, 241, 0.12);
        }
        .nav-item.active::before {
            content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
            width: 3px; height: 22px; border-radius: 0 4px 4px 0;
            background: linear-gradient(180deg, #6366F1, #0EA5E9);
            box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
        }
        .nav-badge {
            margin-left: auto; font-size: 10px; font-weight: 700;
            background: rgba(99, 102, 241, 0.18); color: #6366F1;
            padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(99, 102, 241, 0.2);
        }
        .nav-item.logout { margin-top: auto; color: #ef4444; }
        .nav-item.logout:hover { background: rgba(239, 68, 68, 0.1); }

        .sidebar-footer {
            padding: 12px 16px; border-top: 1px solid rgba(90,120,255,.08);
            flex-shrink: 0;
        }
        .sidebar-footer .user-mini {
            display: flex; align-items: center; gap: 10px;
        }
        .sidebar-footer .user-mini .avatar {
            width: 32px; height: 32px; border-radius: 8px;
            background: linear-gradient(135deg, #3B82F6, #7C3AED);
            display: flex; align-items: center; justify-content: center;
            font-size: 13px; font-weight: 700; flex-shrink: 0;
        }
        .sidebar-footer .user-mini .info { flex: 1; min-width: 0; }
        .sidebar-footer .user-mini .info .name { font-size: 13px; font-weight: 600; }
        .sidebar-footer .user-mini .info .plan { font-size: 10px; color: #22C55E; }
        .sidebar.collapsed .sidebar-footer .user-mini .info { display: none; }
        .sidebar.collapsed .sidebar-footer .user-mini .avatar { margin: 0 auto; }

        .sidebar-toggle {
            position: absolute; right: -14px; top: 20px;
            width: 28px; height: 28px; border-radius: 50%;
            background: rgba(18,24,40,.9);
            border: 1px solid rgba(90,120,255,.15);
            backdrop-filter: blur(8px);
            display: flex; align-items: center; justify-content: center;
            cursor: pointer; z-index: 10;
            color: #94A3B8; transition: all .25s;
        }
        .sidebar-toggle:hover { color: #fff; border-color: rgba(90,120,255,.3); }
        .sidebar-toggle i { width: 14px; height: 14px; transition: transform .3s; }
        .sidebar.collapsed .sidebar-toggle i { transform: rotate(180deg); }

        /* === MAIN CONTENT === */
        .main {
            flex: 1; min-width: 0;
            padding: 0 32px 32px;
            max-width: 1440px;
        }
        @media (min-width: 1600px) { .main { margin: 0 auto; } }

        /* === TOP NAVBAR === */
        .topbar {
            display: flex; align-items: center; gap: 16px;
            padding: 14px 0; margin-bottom: 24px;
            position: sticky; top: 0; z-index: 50;
            background: rgba(7,11,22,.7);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }
        .topbar::after {
            content: ''; position: absolute; bottom: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(90,120,255,.1), transparent);
        }
        .topbar-search {
            flex: 1; max-width: 400px; position: relative;
        }
        .topbar-search i {
            position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
            width: 16px; height: 16px; color: rgba(148,163,184,.5);
            pointer-events: none;
        }
        .topbar-search input {
            width: 100%; height: 40px;
            background: rgba(18,24,40,.6);
            border: 1px solid rgba(90,120,255,.1);
            border-radius: 12px; padding: 0 14px 0 40px;
            font-size: 13px; color: #fff; font-family: inherit;
            outline: none; transition: all .25s;
        }
        .topbar-search input::placeholder { color: rgba(148,163,184,.4); }
        .topbar-search input:focus { border-color: rgba(59,130,246,.3); box-shadow: 0 0 20px rgba(59,130,246,.05); background: rgba(18,24,40,.8); }
        .topbar-search kbd {
            position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
            font-size: 10px; color: rgba(148,163,184,.3);
            background: rgba(255,255,255,.03); padding: 2px 6px; border-radius: 4px;
            border: 1px solid rgba(255,255,255,.04);
        }

        .topbar-actions {
            display: flex; align-items: center; gap: 6px;
        }
        .topbar-select {
            display: flex; align-items: center; gap: 6px;
            padding: 6px 12px; border-radius: 10px;
            font-size: 12px; color: #94A3B8; cursor: pointer;
            transition: all .2s; border: 1px solid transparent;
            background: transparent; font-family: inherit;
        }
        .topbar-select:hover { background: rgba(90,120,255,.06); border-color: rgba(90,120,255,.1); }
        .topbar-select i { width: 14px; height: 14px; }

        .topbar-icon-btn {
            width: 36px; height: 36px; border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            color: #94A3B8; cursor: pointer; position: relative;
            transition: all .2s; border: none; background: transparent;
        }
        .topbar-icon-btn:hover { background: rgba(90,120,255,.08); color: #fff; }
        .topbar-icon-btn i { width: 18px; height: 18px; }
        .topbar-icon-btn .badge {
            position: absolute; top: 4px; right: 4px;
            width: 16px; height: 16px; border-radius: 50%;
            background: #ef4444; color: #fff;
            font-size: 9px; font-weight: 700;
            display: flex; align-items: center; justify-content: center;
            border: 2px solid #070B16;
        }

        .topbar-user {
            display: flex; align-items: center; gap: 10px;
            padding: 4px 12px 4px 4px; border-radius: 12px;
            cursor: pointer; transition: all .2s;
            margin-left: 4px;
        }
        .topbar-user:hover { background: rgba(90,120,255,.06); }
        .topbar-user .avatar {
            width: 32px; height: 32px; border-radius: 8px;
            background: linear-gradient(135deg, #3B82F6, #7C3AED);
            display: flex; align-items: center; justify-content: center;
            font-size: 13px; font-weight: 700;
        }
        .topbar-user .info { line-height: 1.3; }
        .topbar-user .info .name { font-size: 13px; font-weight: 600; }
        .topbar-user .info .badge-premium {
            font-size: 9px; font-weight: 600; color: #F59E0B;
            background: rgba(245,158,11,.1); padding: 1px 6px; border-radius: 4px;
            border: 1px solid rgba(245,158,11,.15);
        }
        .topbar-user .chevron { width: 14px; height: 14px; color: #94A3B8; }

        /* === HEADER === */
        .dashboard-header {
            display: flex; align-items: flex-start; justify-content: space-between;
            gap: 24px; margin-bottom: 32px;
            flex-wrap: wrap;
        }
        .dashboard-header .left { }
        .dashboard-header .left h1 {
            font-size: 32px; font-weight: 800; letter-spacing: -.03em;
            background: linear-gradient(135deg, #fff 60%, rgba(255,255,255,.6));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            margin-bottom: 6px;
        }
        .dashboard-header .left p {
            font-size: 14px; color: #94A3B8; line-height: 1.5;
            max-width: 520px;
        }
        .header-summary {
            display: flex; gap: 16px; padding: 16px 24px;
            background: linear-gradient(135deg, rgba(18,24,40,.8), rgba(18,24,40,.6));
            border: 1px solid rgba(90,120,255,.15);
            border-radius: 16px;
            box-shadow: 0 0 40px rgba(59,130,246,.05);
            backdrop-filter: blur(12px);
            flex-shrink: 0;
        }
        .header-summary .item { text-align: center; min-width: 80px; }
        .header-summary .item:not(:last-child) { padding-right: 16px; border-right: 1px solid rgba(90,120,255,.08); }
        .header-summary .item .value { font-size: 20px; font-weight: 700; }
        .header-summary .item .label { font-size: 11px; color: #94A3B8; margin-top: 2px; }
        .header-summary .item .value.gold { color: #F59E0B; }
        .header-summary .item .value.blue { color: #3B82F6; }
        .header-summary .item .value.green { color: #22C55E; }

        /* === STATS GRID === */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px; margin-bottom: 32px;
        }
        @media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr; } }

        .stat-card {
            position: relative; overflow: hidden;
            padding: 20px; border-radius: 16px;
            background: rgba(18,24,40,.75);
            border: 1px solid rgba(90,120,255,.08);
            backdrop-filter: blur(12px);
            transition: all .3s cubic-bezier(.4,0,.2,1);
            cursor: default;
        }
        .stat-card::before {
            content: ''; position: absolute; inset: 0;
            border-radius: 16px; padding: 1px;
            background: linear-gradient(135deg, rgba(90,120,255,.1), transparent, rgba(90,120,255,.05));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor; mask-composite: exclude;
            pointer-events: none;
        }
        .stat-card:hover {
            transform: translateY(-4px);
            border-color: rgba(90,120,255,.15);
            box-shadow: 0 16px 40px rgba(0,0,0,.3), 0 0 30px rgba(59,130,246,.05);
        }
        .stat-card .top {
            display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
        }
        .stat-card .icon {
            width: 40px; height: 40px; border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
        }
        .stat-card .icon i { width: 20px; height: 20px; color: #fff; }
        .stat-card .change {
            font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px;
        }
        .stat-card .change.up { color: #22C55E; background: rgba(34,197,94,.1); }
        .stat-card .value {
            font-size: 28px; font-weight: 800; letter-spacing: -.02em;
            margin-bottom: 4px;
        }
        .stat-card .label {
            font-size: 12px; color: #94A3B8;
        }
        .stat-card .glow {
            position: absolute; width: 120px; height: 120px; border-radius: 50%;
            filter: blur(60px); opacity: .08; right: -30px; top: -30px;
            pointer-events: none;
        }

        /* === SECTION HEADER === */
        .section-header {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 20px;
        }
        .section-header h2 {
            font-size: 20px; font-weight: 700; letter-spacing: -.02em;
        }
        .section-header .view-all {
            font-size: 13px; color: #3B82F6; text-decoration: none;
            font-weight: 500; transition: all .2s;
            display: flex; align-items: center; gap: 6px;
        }
        .section-header .view-all:hover { color: #60A5FA; }

        /* === ORDER CARDS === */
        .orders-list { display: flex; flex-direction: column; gap: 12px; }

        .order-card {
            display: flex; align-items: center; gap: 20px;
            padding: 20px; border-radius: 20px;
            background: rgba(18,24,40,.75);
            border: 1px solid rgba(90,120,255,.08);
            backdrop-filter: blur(12px);
            transition: all .3s cubic-bezier(.4,0,.2,1);
            cursor: default;
        }
        .order-card:hover {
            transform: translateY(-2px);
            border-color: rgba(90,120,255,.12);
            box-shadow: 0 12px 32px rgba(0,0,0,.25);
        }
        .order-card .product-icon {
            width: 52px; height: 52px; border-radius: 14px;
            background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(124,58,237,.12));
            border: 1px solid rgba(90,120,255,.1);
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
            position: relative;
        }
        .order-card .product-icon .glow-dot {
            position: absolute; width: 8px; height: 8px; border-radius: 50%;
            background: #22C55E; top: -2px; right: -2px;
            box-shadow: 0 0 8px rgba(34,197,94,.5);
        }
        .order-card .product-icon i { width: 24px; height: 24px; color: #3B82F6; }

        .order-card .info { flex: 1; min-width: 0; }
        .order-card .info .name {
            font-size: 15px; font-weight: 600; margin-bottom: 2px;
        }
        .order-card .info .desc {
            font-size: 12px; color: #94A3B8;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }

        .order-card .meta {
            display: flex; align-items: center; gap: 24px;
            flex-shrink: 0;
        }
        .order-card .meta .m-item { text-align: left; }
        .order-card .meta .m-item .m-label { font-size: 10px; color: rgba(148,163,184,.5); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
        .order-card .meta .m-item .m-value { font-size: 13px; font-weight: 600; }

        .order-card .badge-status {
            padding: 6px 14px; border-radius: 8px;
            font-size: 12px; font-weight: 600;
            background: rgba(34,197,94,.1);
            color: #22C55E;
            border: 1px solid rgba(34,197,94,.15);
            flex-shrink: 0;
        }
        .order-card .badge-status.pending { background: rgba(245,158,11,.1); color: #F59E0B; border-color: rgba(245,158,11,.15); }
        .order-card .badge-status.processing { background: rgba(59,130,246,.1); color: #3B82F6; border-color: rgba(59,130,246,.15); }

        .order-card .actions {
            display: flex; gap: 6px; flex-shrink: 0;
        }
        .order-card .actions .btn {
            padding: 8px 14px; border-radius: 10px;
            font-size: 12px; font-weight: 600; font-family: inherit;
            border: none; cursor: pointer;
            transition: all .25s cubic-bezier(.4,0,.2,1);
            display: flex; align-items: center; gap: 6px;
            white-space: nowrap;
        }
        .order-card .actions .btn i { width: 14px; height: 14px; }
        .order-card .actions .btn-primary {
            background: linear-gradient(135deg, #3B82F6, #7C3AED);
            color: #fff;
            box-shadow: 0 0 16px rgba(59,130,246,.15);
        }
        .order-card .actions .btn-primary:hover {
            transform: scale(1.04);
            box-shadow: 0 0 24px rgba(59,130,246,.25);
        }
        .order-card .actions .btn-ghost {
            background: rgba(90,120,255,.06);
            color: #94A3B8;
            border: 1px solid rgba(90,120,255,.08);
        }
        .order-card .actions .btn-ghost:hover {
            background: rgba(90,120,255,.1);
            color: #fff;
            border-color: rgba(90,120,255,.15);
        }

        .topbar-mobile-toggle {
            display: none;
            cursor: pointer;
            background: rgba(99, 102, 241, 0.15);
            border: 1px solid rgba(99, 102, 241, 0.3);
            color: #ffffff;
            border-radius: 10px;
            width: 38px;
            height: 38px;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            flex-shrink: 0;
            z-index: 10;
        }
        .topbar-mobile-toggle:hover {
            background: rgba(99, 102, 241, 0.25);
        }

        @media (max-width: 900px) {
            .topbar-mobile-toggle { display: flex !important; }
            .order-card { flex-wrap: wrap; }
            .order-card .meta { width: 100%; justify-content: space-between; }
            .order-card .actions { width: 100%; justify-content: flex-end; }
            .sidebar {
                position: fixed; top: 0; bottom: 0; left: -280px;
                width: 260px; height: 100vh; z-index: 1000;
                box-shadow: none; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            }
            .sidebar.open { left: 0; box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8); }
            .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 999; }
            .sidebar-overlay.active { display: block; }
            .main { padding: 0 16px 24px; }
            .dashboard-header { flex-direction: column; gap: 16px; }
            .dashboard-header .left h1 { font-size: 24px; }
            .header-summary { width: 100%; justify-content: center; padding: 12px 16px; }
            .topbar { gap: 8px; flex-wrap: wrap; }
            .topbar-search { flex: 1; min-width: 140px; max-width: none; }
            .topbar-search kbd { display: none; }
            .topbar-select span { display: none; }
            .topbar-user .info { display: none; }
        }

        @media (max-width: 480px) {
            .dashboard-header .left h1 { font-size: 20px; }
            .header-summary { flex-direction: row; gap: 8px; overflow-x: auto; justify-content: space-between; }
            .header-summary .item { min-width: auto; padding: 0 8px; }
            .topbar-actions { gap: 4px; }
            .topbar-user { padding: 2px 4px; }
        }

        /* ===== REFERRAL & AFFILIATE MOBILE RESPONSIVENESS ===== */
        @media (max-width: 900px) {
            .ref-desktop-grid {
                grid-template-columns: 1fr !important;
                gap: 16px !important;
            }
        }

        @media (max-width: 600px) {
            .ref-stats-grid {
                grid-template-columns: 1fr !important;
            }
            .ref-perks-grid {
                grid-template-columns: repeat(2, 1fr) !important;
            }
        }

        /* ===== PAYMENT METHODS MOBILE RESPONSIVENESS ===== */
        @media (max-width: 900px) {
            .pay-desktop-grid {
                grid-template-columns: 1fr !important;
                gap: 16px !important;
            }
        }
