/* ============================================================
   ROXEARN — USER PANEL THEME
   Flat Light · Violet / Coral / Ink Indigo
   Font: Sora (display) + Plus Jakarta Sans (body)
   ============================================================ */

/* ── CSS Variables ── */
:root {
    --bg:            #f6f5ff;
    --bg-2:          #eceaff;
    --card:          #ffffff;
    --surface:       #f0eeff;
    --rb:            #1f6bff;   /* RoxEarn violet — primary */
    --rb-2:          #1350d6;
    --rb-light:      #d9d0ff;
    --rb-pale:       rgba(31, 107, 255, 0.12);
    --gold:          #ffc93c;
    --gold-2:        #f5a300;
    --gold-bright:   #ffd666;
    --gold-glow:     #fff3d1;
    --text:          #0a1530;
    --text-2:        #4a4769;
    --text-3:        #77749a;
    --muted:         #a3a0c2;
    --border:        rgba(10, 21, 48, 0.10);
    --border-gold:   rgba(245, 163, 0, 0.30);
    --shadow:        0 8px 24px rgba(10, 21, 48, 0.08);
    --shadow-lg:     0 16px 40px rgba(10, 21, 48, 0.14);
    --green:         #22c55e;
    --green-pale:    rgba(34, 197, 94, 0.10);
    --red:           #ef4444;
    --red-pale:      rgba(239, 68, 68, 0.08);
    --radius:        16px;
    --radius-sm:     12px;
    --radius-lg:     24px;
    --hdr:           #ffffff;
    --hdr-border:    rgba(31, 107, 255, 0.18);
    --cyan:          #06b6d4;   /* info cyan */
    --cyan-2:        #0e7490;
    --cyan-pale:     rgba(6, 182, 212, 0.12);

    /* ── Accent (coral) — legacy --ev-* names kept for existing pages ── */
    --ev-volt:       #2fd6ff;   /* coral accent */
    --ev-volt-2:     #0099d6;
    --ev-volt-pale:  rgba(47, 214, 255, 0.16);
    --ev-volt-glow:  rgba(47, 214, 255, 0.45);
    --ev-blue:       #3b82f6;   /* blue */
    --ev-blue-pale:  rgba(59, 130, 246, 0.12);
    --ev-dark:       #081229;   /* ink indigo */
    --ev-charge-grad: linear-gradient(120deg, #1350d6 0%, #1f6bff 45%, #2fd6ff 100%);
}

/* ── Reset & Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    min-height: 100vh;
    color: var(--text);
    padding-bottom: 90px;
    transition: background 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* ── Decorative corner blobs (brand texture, matches EduGreen reference) ── */
body::before,
body::after {
    content: '';
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}
body::before {
    top: -70px; left: -70px;
    width: 170px; height: 170px;
    background: var(--rb-light);
    opacity: 0.5;
}
body::after {
    top: -50px; right: -80px;
    width: 150px; height: 150px;
    background: var(--gold-glow);
    opacity: 0.65;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    z-index: 5;
    position: relative;
    margin-top: -5rem;
}

/* ── Header ── */
.header {
    background: var(--hdr);
    padding: 10px;
    position: sticky;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--hdr-border);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.logo-icon i { color: var(--rb-2); }
.logo-text { font-weight: 700; font-size: 14px; color: var(--text); font-family: 'Sora', sans-serif; }
.logo-text span { color: var(--gold-2); }

.balance-box {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid var(--border-gold);
    color: var(--gold-2);
    font-weight: bold;
    background: rgba(217, 119, 6, 0.07);
}

.refer-content { display: flex; align-items: center; gap: 15px; }

/* ── Banner ── */
.banner-div { width: 100%; margin: 15px 0; }
.banner-div img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.refer-text h2 { font-size: 18px; color: var(--gold-2); font-family: 'Sora', sans-serif; }
.refer-text h2 span { font-size: 28px; font-weight: 800; }
.refer-text p { font-size: 11px; opacity: 0.9; margin-top: 5px; }

.refer-badge {
    background: linear-gradient(135deg, var(--card) 0%, var(--surface) 100%);
    border: 1px solid var(--border);
    padding: 15px 20px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
}

.refer-badge h3 { font-size: 14px; font-weight: 600; color: var(--text); }
.refer-badge h3 span { display: block; font-size: 10px; font-weight: 400; color: var(--muted); }

.refer-image {
    width: 80px; height: 80px;
    border-radius: 50%; object-fit: cover;
    border: 3px solid var(--rb-2);
    box-shadow: 0 0 0 3px var(--rb-pale), 0 0 20px rgba(190, 242, 100, 0.30);
}

/* ── Quick Actions ── */
.quick-actions { display: flex; justify-content: center; gap: 10px; margin-top: 15px; }

.quick-btn {
    background: var(--rb-pale);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--rb-2);
    font-weight: 600;
}

.quick-btn:hover {
    background: var(--rb-2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190, 242, 100, 0.45);
}

.quick-btn i { margin-right: 5px; }

/* ── App Section ── */
.app-section {
    background: linear-gradient(135deg, var(--card) 0%, var(--surface) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.app-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.app-header i { font-size: 30px; color: var(--rb-2); }
.app-header h3 { font-size: 14px; margin: 0; color: var(--text); font-family: 'Sora', sans-serif; }
.app-header p { font-size: 10px; margin: 0; color: var(--muted); }

.app-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 15px; }

.app-feature {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 12px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-3);
}

.app-feature i { color: var(--gold-2); }
.download-btns { display: flex; gap: 10px; }

/* ── Feature Cards ── */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
    margin-top: 15px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 8px;
    box-shadow: var(--shadow);
}

.feature-card {
    background: var(--rb-pale);
    border: 1px solid var(--border);
    border-radius: 60px;
    padding: 14px 3px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--rb-2);
}

.feature-card:hover {
    transform: translateY(-3px);
    background: var(--rb-2);
    border-color: var(--rb-2);
    box-shadow: 0 8px 20px rgba(190, 242, 100, 0.45), 0 0 15px rgba(190, 242, 100, 0.25);
}

.feature-card:hover i, .feature-card:hover span { color: #fff !important; }
.feature-card i { font-size: 20px; color: var(--rb-2); display: block; }
.feature-card span { font-size: 10px; display: block; color: var(--muted); }

/* ── Referral Section ── */
.referral-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 11px;
    margin-bottom: 15px;
    color: var(--text);
    box-shadow: var(--shadow);
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
}

.referral-section h3 {
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
    color: var(--rb-2);
    font-weight: 700;
    font-family: 'Sora', sans-serif;
}

.referral-link {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    word-break: break-all;
    color: var(--muted);
}

.referral-link input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--muted);
    font-size: 11px;
    flex: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.referral-link span { color: var(--rb-2); flex: 1; }

.copy-btn {
    background: linear-gradient(135deg, var(--rb-2) 0%, var(--rb) 100%);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 11px;
    margin-left: 10px;
    transition: all 0.3s;
    font-weight: 600;
}

.copy-btn:hover { transform: scale(1.05); box-shadow: 0 4px 14px rgba(190, 242, 100, 0.55); }
.copy-btn.full-width { width: 100%; padding: 12px; margin: 0 0 15px 0; }
.share-text { text-align: center; font-size: 11px; margin-bottom: 10px; color: var(--muted); }
.share-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

.share-btn {
    flex: 1;
    padding: 5px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 27px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.share-btn.whatsapp { background: #25d366; color: #fff; }
.share-btn.telegram { background: #0088cc; color: #fff; }
.share-btn.facebook { background: linear-gradient(135deg, #123a8a 0%, #16a34a 100%); color: #fff; }
.share-btn.share    { background: linear-gradient(135deg, var(--rb-2) 0%, var(--rb) 100%); color: #fff; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.60); }

/* ── Team List ── */
.team-list {
    border-radius: 14px;
    padding: 3px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: transparent;
}

.team-item {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 10px 5px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
}

.team-item:hover {
    transform: translateY(-3px);
    border-color: var(--rb-2);
    box-shadow: 0 8px 24px rgba(190, 242, 100, 0.30);
}

.team-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: var(--rb-pale);
    border: 1px solid var(--border);
}

.team-icon i { color: var(--rb-2); font-size: 20px; }
.team-details { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.team-label { font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-amount { font-size: 14px; font-weight: 700; color: var(--green); }

/* ── Income List ── */
.income-list {
    border-radius: 14px;
    padding: 5px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.income-item {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 9px 4px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
}

.income-item:hover {
    transform: translateY(-2px);
    border-color: var(--rb-2);
    box-shadow: 0 8px 20px rgba(190, 242, 100, 0.25);
}

.income-icon {
    background: var(--rb-pale);
    border: 1px solid var(--border);
    width: 38px; height: 38px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.income-icon i { color: var(--rb-2); font-size: 18px; }
.income-details { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.income-label { font-size: 10px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.income-amount { font-size: 14px; font-weight: 700; color: var(--green); }

/* ── Leaderboard ── */
.leaderboard {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 15px;
    color: var(--text);
    box-shadow: var(--shadow);
}

.leaderboard h3 {
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--rb-2);
    font-weight: 700;
    font-family: 'Sora', sans-serif;
}

.leaderboard h3 i { color: var(--gold-2); }

.leader-item {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 12px 15px;
    border-radius: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.leader-rank {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px;
    font-family: 'Sora', sans-serif;
}

.leader-rank.gold   { background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%); color: #ededed; }
.leader-rank.silver { background: linear-gradient(135deg, #94a3b8 0%, #1a2736 100%); color: #d1d1d1; }
.leader-rank.bronze { background: linear-gradient(135deg, #cd7f32 0%, #daa06d 100%); color: #fff; }
.leader-rank.normal { background: var(--rb-pale); color: var(--rb-2); border: 1px solid var(--border); }

.leader-avatar {
    width: 35px; height: 35px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid var(--rb-2);
}

.leader-info { flex: 1; }
.leader-info h4 { font-size: 13px; font-weight: 600; color: var(--text); }
.leader-info p  { font-size: 10px; color: var(--muted); font-weight: bold; }
.leader-stats { text-align: right; }
.leader-stats span { font-size: 11px; color: var(--rb-2); font-weight: 600; }

/* ── Top Earners ── */
.top-earners {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 15px;
    color: var(--text);
    box-shadow: var(--shadow);
}

.top-earners h3 { text-align: center; margin-bottom: 15px; font-size: 16px; color: var(--rb-2); font-weight: 700; font-family: 'Sora', sans-serif; }
.top-earners h3 i { color: var(--gold-2); }

.earner-item {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.earner-avatar {
    width: 50px; height: 50px;
    border-radius: 50%; object-fit: cover;
    border: 3px solid var(--rb-2);
}

.earner-info { flex: 1; }
.earner-info h4 { font-size: 14px; font-weight: 600; color: var(--text); }
.earner-info p  { font-size: 11px; color: var(--green); font-weight: 600; }

/* ── Product Grid ── */
.coming-soon {
    background: transparent;
    padding: 4px;
    margin-bottom: 0;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.coming-soon h2 { font-size: 26px; font-weight: 800; margin-bottom: 5px; color: var(--gold-2); font-family: 'Sora', sans-serif; }
.coming-soon h3 { font-size: 24px; color: var(--rb-2); margin-bottom: 20px; font-family: 'Sora', sans-serif; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 5px;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.product-card:hover { transform: translateY(-5px); border-color: var(--rb-2); box-shadow: 0 12px 30px rgba(190, 242, 100, 0.35); }

.product-card img {
    width: 100%; height: 110px;
    object-fit: cover; border-radius: 6px;
    border: 1px solid var(--border);
    padding: 3px;
}

.product-card span {
    font-size: 9px; color: var(--rb-2);
    display: block;
    background: var(--rb-pale);
    border-radius: 4px;
}

/* ═══════════════════════════════════════════════════
   FLOATING ISLAND BOTTOM NAV
   ═══════════════════════════════════════════════════ */
.footer {
    background: #0e121d;
    border: 1px solid rgba(130, 160, 255, 0.14);
    border-radius: 20px;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 14px;
    left: 12px;
    right: 12px;
    z-index: 1000;
    height: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
}

.footer-item {
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    color: #93a79c;
    padding: 11px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 44px;
    position: relative;
    overflow: hidden;
}

.footer-item:hover { color: #1350d6; }
.footer-item:active { transform: scale(0.90); }
.footer-item i { font-size: 18px; display: block; flex-shrink: 0; transition: all 0.25s; }

.footer-item span {
    font-size: 12px;
    font-weight: 700;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
}

.footer-item.active {
    color: #fff;
    background: var(--rb);
    padding: 11px 18px;
}

.footer-item.active i { color: #fff; }

.footer-item.active span {
    max-width: 100px;
    opacity: 1;
    color: #fff;
}

/* Raised centre FAB item */
.footer-item-fab {
    width: 52px; height: 52px;
    padding: 0 !important;
    margin-top: -26px;
    border-radius: 50%;
    background: var(--rb);
    color: #fff !important;
    border: 4px solid rgba(120, 150, 255, .14);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.60);
}
.footer-item-fab i { font-size: 19px; color: #fff; }
.footer-item-fab span { display: none; }
.footer-item-fab:hover,
.footer-item-fab.active {
    background: var(--rb-2);
}

/* ── Animations ── */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}
.pulse { animation: pulse 2s infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
.float { animation: float 3s ease-in-out infinite; }

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(190, 242, 100, 0.3); }
    50%       { box-shadow: 0 0 20px rgba(190, 242, 100, 0.7), 0 0 40px rgba(190, 242, 100, 0.3); }
}

@keyframes neon-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(90, 168, 255, 0.4); }
    50%       { box-shadow: 0 0 20px rgba(90, 168, 255, 0.8), 0 0 40px rgba(90, 168, 255, 0.3); }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--rb-2); }

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: var(--shadow-lg);
}

.toast.show { opacity: 1; z-index: 9999; }
.toast i { margin-right: 8px; color: var(--green); }

/* ── Header Right ── */
.header-right { display: flex; align-items: center; gap: 10px; }

/* ── Auth Buttons ── */
.auth-buttons { display: flex; gap: 8px; }

.auth-btn {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.auth-btn.login-btn {
    background: var(--rb-pale);
    color: var(--rb-2);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.auth-btn.login-btn:hover {
    background: var(--rb-pale);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 107, 255, 0.25);
}

.auth-btn.register-btn {
    background: linear-gradient(135deg, var(--rb) 0%, var(--rb-2) 100%);
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 3px 14px rgba(31, 107, 255, 0.45);
}

.auth-btn.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(31, 107, 255, 0.65);
}

/* ── Profile Dropdown ── */
.profile-dropdown { position: relative; }

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 0;
    border-radius: 14px;
    transition: all 0.3s;
    border: 1px solid var(--border);
    color: var(--rb-2);
}

.profile-trigger:hover { background: var(--rb-pale); }
.profile-avatar { width: 35px; height: 35px; border-radius: 33%; object-fit: cover; }
.profile-trigger i { font-size: 10px; color: var(--rb-2); margin-right: 5px; transition: transform 0.3s; }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px;
    color: var(--text);
    background: var(--rb-pale);
    border-bottom: 1px solid var(--border);
}

.dropdown-header img  { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 1px solid var(--rb-2); }
.dropdown-header h4   { font-size: 14px; font-weight: 600; margin: 0; color: var(--text); }
.dropdown-header p    { font-size: 11px; opacity: 0.7; margin: 0; color: var(--muted); }
.dropdown-divider     { height: 1px; background: var(--border); margin: 5px 0; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-3);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.dropdown-item:hover         { background: var(--rb-pale); padding-left: 20px; color: var(--rb-2); }
.dropdown-item i             { width: 20px; color: var(--rb-2); }
.dropdown-item.logout        { color: var(--red); }
.dropdown-item.logout i      { color: var(--red); }
.dropdown-item.logout:hover  { background: var(--red-pale); }

/* ── Modals ── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 21, 48, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-container {
       background: var(--card);
    /* border: 1px solid #a5a5a5db; */
    border-radius: 9px;
    width: 100%;
    max-width: 400px;
    overflow-y: auto;
    transform: scale(0.85) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.modal-overlay.active .modal-container { transform: scale(1) translateY(0); }

.modal-header {
    padding: 30px 20px 6px;
    text-align: center;
    color: var(--text);
    position: relative;
}

.modal-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--rb) 0%, var(--rb-2) 100%);
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px; color: #fff;
    box-shadow: 0 6px 18px var(--rb-pale);
}

.modal-icon.register { background: linear-gradient(135deg, var(--rb-2) 0%, var(--cyan) 100%); }
.modal-header h2 { font-size: 21px; font-weight: 700; margin-bottom: 5px; color: var(--text); font-family: 'Sora', sans-serif; }
.modal-header p  { font-size: 13px; color: var(--text-3); }

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: none;
    color: var(--text-3);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
    z-index: 1;
}

.modal-close:hover { background: var(--rb-2); color: #fff; transform: rotate(90deg); }
.modal-body { padding: 14px 22px 26px; }

/* ── Form Styles ── */
.form-group { margin-bottom: 12px; }

.form-group label {
    display: block;
    font-size: 12px; font-weight: 600;
    color: var(--text-3);
    margin-bottom: 8px;
}

.form-group label i { color: var(--rb-2); margin-right: 5px; }

.form-group input {
    width: 100%;
    padding: 13px 18px;
    border: 2px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.3s;
    background: var(--surface);
    color: var(--text);
}

.form-group input:focus {
    outline: none;
    border-color: var(--rb-2);
    box-shadow: 0 0 0 4px var(--rb-pale);
}

.form-group input::placeholder { color: var(--muted); }

.form-group select {
    width: 100%;
    padding: 13px 18px;
    border: 2px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--surface);
    color: var(--text);
    transition: all 0.3s;
}

.form-group select:focus { outline: none; border-color: var(--rb-2); box-shadow: 0 0 0 4px var(--rb-pale); }

.password-input { position: relative; }
.password-input input { padding-right: 50px; }

.toggle-password {
    position: absolute;
    right: 18px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--muted);
    cursor: pointer; padding: 5px;
    transition: color 0.3s;
}

.toggle-password:hover { color: var(--rb-2); }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap; gap: 10px;
}

.remember-me {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--muted); cursor: pointer;
}

.remember-me input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--rb-2); }
.remember-me a { color: var(--rb-2); text-decoration: none; }
.remember-me a:hover { text-decoration: underline; }

.forgot-links { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }

.forgot-link {
    font-size: 12px; color: var(--rb-2);
    text-decoration: none; font-weight: 500;
}

.forgot-link:hover { text-decoration: underline; }

.submit-btn {
    width: 100%; padding: 15px;
    background: linear-gradient(135deg, var(--rb) 0%, var(--rb-2) 100%);
    color: #fff; border: none;
    border-radius: 999px; font-size: 15px;
    font-weight: 800; cursor: pointer;
    transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 8px 22px var(--rb-pale);
}

.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31, 107, 255, 0.45); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.modal-footer {
    text-align: center;
    margin-top: 18px; padding-top: 18px;
    border-top: 1px solid var(--border);
}

.modal-footer p { font-size: 13px; color: var(--muted); }
.modal-footer a { color: var(--rb-2); font-weight: 600; text-decoration: none; }
.modal-footer a:hover { text-decoration: underline; }

.form-result {
    padding: 12px 16px; border-radius: 16px;
    margin-bottom: 15px; font-size: 13px;
    line-height: 1.5; display: none;
}

.form-result.success { display: block; background: var(--green-pale); border: 1px solid rgba(90, 168, 255,0.3); color: var(--green); }
.form-result.error   { display: block; background: var(--red-pale); border: 1px solid rgba(61, 123, 255,0.3); color: var(--red); }
.form-result i { margin-right: 8px; }
.form-result strong { display: block; margin-top: 8px; font-size: 16px; color: var(--gold-2); }
.form-result small  { display: block; margin-top: 5px; opacity: 0.8; }

.modal-container::-webkit-scrollbar { width: 5px; }
.modal-container::-webkit-scrollbar-track { background: var(--bg); }
.modal-container::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }

@media (max-width: 480px) {
    .modal-container { max-width: 100%; margin: 10px; border-radius: 24px; }
    .modal-header    { padding: 24px 16px 6px; }
    .modal-icon      { width: 48px; height: 48px; font-size: 18px; }
    .modal-header h2 { font-size: 19px; }
    .modal-body      { padding: 12px 16px 20px; }
    .auth-buttons    { gap: 5px; }
    .auth-btn        { padding: 6px 10px; font-size: 11px; }
    .auth-btn i      { display: none; }
}

/* ── Standalone Auth Pages (Login / Register / Forgot Password / Forgot UserID) ── */
body.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
    padding-bottom: 30px;
}
.auth-page-wrap { width: 100%; max-width: 420px; }
.auth-page-logo { text-align: center; margin-bottom: 18px; }
.auth-page-logo img {     width: 176px;
    object-fit: contain; }
.auth-page-logo span { display: block; margin-top: 8px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; color: var(--text); }
.auth-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-3); text-decoration: none; font-size: 13px;
    margin-bottom: 16px;
}
.auth-back-link:hover { color: var(--rb-2); }
.auth-page-wrap .modal-container { max-width: 100%; }

/* ── EV Auth Theme (Login / Register / Forgot Password / Forgot UserID) ──
   Scoped entirely to body.auth-page — affects only the 4 standalone auth pages. */
body.auth-page {
    position: relative;
    overflow-x: hidden;
    padding: 26px 16px calc(30px + env(safe-area-inset-bottom));
    color: #eef4ff;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background:
        radial-gradient(130% 80% at 12% 0%, rgba(47, 214, 255, 0.18), transparent 55%),
        radial-gradient(120% 80% at 100% 100%, rgba(0, 184, 255, 0.22), transparent 55%),
        linear-gradient(165deg, #07122b 0%, #0e2a66 52%, #123a8a 100%);
    background-attachment: fixed;
}

body.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(47, 214, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 214, 255, 0.045) 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: radial-gradient(75% 55% at 50% 20%, #000, transparent 78%);
            mask-image: radial-gradient(75% 55% at 50% 20%, #000, transparent 78%);
    z-index: 0;
    pointer-events: none;
}
body.auth-page::after { content: none; }

body.auth-page .auth-page-wrap { position: relative; z-index: 1; max-width: 400px; }

body.auth-page .auth-back-link {
    color: #dbe8ff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 40px; height: 40px;
    border-radius: 12px;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 20px;
    transition: background 0.15s;
}
body.auth-page .auth-back-link span { display: none; }
body.auth-page .auth-back-link:hover,
body.auth-page .auth-back-link:active { color: #fff; background: rgba(255, 255, 255, 0.16); }

body.auth-page .auth-page-logo { margin-top: 2px; margin-bottom: 16px; }
body.auth-page .auth-page-logo img { width: auto; height: 46px; object-fit: contain; }
body.auth-page .auth-page-logo span { color: #eef4ff; }

body.auth-page .modal-container {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(47, 214, 255, 0.16);
    border-radius: 26px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 28px 60px -26px rgba(0, 0, 0, 0.60);
}

body.auth-page .modal-icon {
    display: flex;
    width: 46px; height: 46px;
    margin: 0 auto 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2fd6ff, #1f6bff);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 10px 24px -10px rgba(31, 107, 255, 0.6);
}

body.auth-page .modal-header { padding: 24px 20px 4px; }
body.auth-page .modal-header h2 {
    color: #f7f6ff;
    font-size: 23px;
    font-weight: 800;
}
body.auth-page .modal-header p { color: #a9b8d6; }

body.auth-page .modal-body { padding: 16px 20px 22px; }

body.auth-page .form-group { margin-bottom: 14px; }
body.auth-page .form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: #dbe8ff;
    margin-bottom: 7px;
}
body.auth-page .form-group label i { color: #2fd6ff; margin-right: 0; font-size: 11px; }

body.auth-page .form-group input,
body.auth-page .form-group select {
    background: rgba(16, 12, 40, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #eef4ff;
    padding: 13px 16px;
    font-size: 14.5px;
}
body.auth-page .form-group select option { color: #ccd6ee; }
body.auth-page .form-group input::placeholder { color: #8f89b8; }
body.auth-page .form-group input:focus,
body.auth-page .form-group select:focus {
    border-color: #2fd6ff;
    box-shadow: 0 0 0 3px rgba(47, 214, 255, 0.14);
    background: rgba(16, 12, 40, 0.7);
}
body.auth-page .form-group input:-webkit-autofill {
    -webkit-text-fill-color: #eef4ff;
    -webkit-box-shadow: 0 0 0 40px rgba(0, 0, 0, 0.60) inset;
    caret-color: #eef4ff;
}

body.auth-page .password-input input { padding-right: 48px; }
body.auth-page .toggle-password { color: #a39dc9; }
body.auth-page .toggle-password:hover { color: #2fd6ff; }

body.auth-page .form-options { margin: 4px 0 18px; }
body.auth-page .remember-me { color: #a9b8d6; }
body.auth-page .remember-me input[type="checkbox"] { accent-color: #2fd6ff; }
body.auth-page .remember-me a,
body.auth-page .forgot-link { color: #2fd6ff; }
body.auth-page .forgot-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

body.auth-page .submit-btn {
    background: linear-gradient(135deg, #2fd6ff 0%, #1f6bff 100%);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 30px -12px rgba(31, 107, 255, 0.6);
}
body.auth-page .submit-btn:hover { box-shadow: 0 18px 36px -12px rgba(31, 107, 255, 0.7); }
body.auth-page .submit-btn i { display: inline-block; }

/* Download-App button on the login page (ev-app.css is not loaded here) */
body.auth-page .pwa-install-btn {
    width: 100%;
    margin-top: 11px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #eef4ff;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
body.auth-page .pwa-install-btn:active { background: rgba(255, 255, 255, 0.1); }

body.auth-page .modal-footer { border-top: none; padding-top: 14px; }
body.auth-page .modal-footer p { color: #a9b8d6; }
body.auth-page .modal-footer a { color: #2fd6ff; font-weight: 700; }

body.auth-page .form-result {
    background: rgba(16, 12, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #dbe8ff;
    border-radius: 12px;
}
body.auth-page .form-result.success { background: rgba(31, 107, 255, 0.12); border-color: rgba(31, 107, 255, 0.35); color: #b8a8ff; }
body.auth-page .form-result.error   { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }
body.auth-page .form-result strong  { color: #2fd6ff; }

/* Decorative social row (Login / Register only) */
.auth-social { position: relative; z-index: 1; margin-top: 22px; text-align: center; }
.auth-social p {
    font-size: 11px; color: #7fa093; text-transform: uppercase;
    letter-spacing: 0.6px; margin-bottom: 12px;
}
.auth-social-icons { display: flex; justify-content: center; gap: 14px; }
.auth-social-icons span {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(47, 214, 255, 0.12);
    color: #2fd6ff;
    font-size: 16px;
}

/* ══════════════ Page Components ══════════════ */

.page-header-card {
    background: linear-gradient(135deg, var(--rb) 0%, var(--rb-2) 60%, #00b4f0 100%);
    border-radius: 14px;
    padding: 10px 14px;
    margin: 10px 0;
    display: flex; align-items: center; gap: 15px;
    box-shadow: 0 6px 24px rgba(190, 242, 100, 0.45);
}

.page-header-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
}

.page-header-content { color: #fff; }
.page-header-content h2 { font-size: 20px; font-weight: 700; margin-bottom: 5px; color: #fff; font-family: 'Sora', sans-serif; }
.page-header-content p  { font-size: 12px; opacity: 0.85; color: rgba(255,255,255,0.85); }

/* Profile Header */
.profile-header-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    margin: 15px 0;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

.profile-cover {
    height: 80px;
    background: linear-gradient(135deg, #0b3a5c 0%, #8be4ff 50%, #5aa8ff 100%);
}

.profile-avatar-section { text-align: center; padding: 0 20px 20px; margin-top: -40px; }
.profile-avatar-large   { position: relative; display: inline-block; }

.profile-avatar-large img {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 3px solid var(--rb-2);
    object-fit: cover;
    box-shadow: 0 0 0 4px var(--card), 0 0 20px rgba(190, 242, 100, 0.5);
}

.avatar-badge {
    position: absolute;
    bottom: 5px; right: 5px;
    width: 24px; height: 24px;
    background: var(--green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    border: 2px solid var(--card);
    color: #fff;
}

.profile-name { font-size: 20px; font-weight: 700; margin: 10px 0 5px; color: var(--text); font-family: 'Sora', sans-serif; }
.profile-id   { font-size: 12px; opacity: 0.8; color: var(--muted); }
.profile-id i { margin-right: 5px; }

.profile-status {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 15px; border-radius: 20px;
    font-size: 11px; font-weight: 600; margin-top: 10px;
}

.profile-status.active   { background: var(--green-pale); color: var(--green); border: 1px solid rgba(90, 168, 255,0.3); }
.profile-status.inactive { background: var(--red-pale); color: var(--red); border: 1px solid rgba(61, 123, 255,0.3); }
.profile-status i { font-size: 8px; }

/* ── Stats Row ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px; margin: 15px 0;
}

.stat-card {
    border-radius: 14px;
    padding: 10px;
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    box-shadow: var(--shadow);
    border: none;
}

.stat-card.purple { background: linear-gradient(135deg, #0b3a5c 0%, #8be4ff 100%); }
.stat-card.green  { background: linear-gradient(135deg, #123a8a 0%, #5aa8ff 100%); }
.stat-card.orange { background: linear-gradient(135deg, #92400e 0%, #fbbf24 100%); }
.stat-card.blue   { background: linear-gradient(135deg, #10307a 0%, #5aa8ff 100%); }
.stat-card.red    { background: linear-gradient(135deg, #7f1d1d 0%, #3d7bff 100%); }

.stat-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.22);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; margin-bottom: 8px; color: #fff;
}

.stat-value { font-size: 16px; font-weight: 700; color: #fff; font-family: 'Sora', sans-serif; }
.stat-label { font-size: 10px; color: rgba(255,255,255,0.85); }

/* Info Card */
.info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin: 15px 0;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-card-header {
    background: var(--rb-pale);
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    display: flex; align-items: center; gap: 10px;
    color: var(--rb-2);
}

.info-card-header i    { font-size: 18px; }
.info-card-header h3   { font-size: 16px; font-weight: 600; flex: 1; color: var(--text); font-family: 'Sora', sans-serif; }
.info-card-header .badge     { background: var(--rb-pale); padding: 3px 10px; border-radius: 10px; font-size: 11px; color: var(--rb-2); }
.info-card-header .edit-link { color: var(--rb-2); font-size: 14px; }
.info-card-header.bonus      { background: rgba(251,191,36,0.08); border-color: var(--border-gold); }

.info-card-body { padding: 15px; }

/* Info Item */
.info-item {
    display: flex; align-items: center; gap: 4px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 6px;
}

.info-item:last-child { margin-bottom: 0; }

.info-icon {
    width: 40px; height: 40px;
    background: var(--rb-pale);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--rb-2);
}

.info-content { flex: 1; }
.info-label   { display: block; font-size: 11px; color: var(--muted); }
.info-value   { display: block; font-size: 14px; font-weight: 600; color: var(--text); }

/* Team Member Card */
.team-member-card {
    position: relative;
    padding: 8px 10px 24px 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
    box-shadow: var(--shadow);
}

.team-member-card:hover { border-color: var(--rb-2); }

.team-member-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--rb-2), var(--cyan));
}

.member-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.member-avatar { position: relative; flex-shrink: 0; }

.member-avatar img {
    width: 30px; height: 30px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid var(--border);
    background: var(--surface);
}

.status-dot {
    position: absolute; bottom: 1px; right: 1px;
    width: 8px; height: 8px;
    border-radius: 50%; border: 1px solid var(--card);
}

.status-dot.active   { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.inactive { background: var(--red); }

.member-head { display: flex; flex-direction: column; gap: 2px; }
.member-head h4 { font-size: 12px; font-weight: 700; color: var(--text); margin: 0; line-height: 1.2; }

.member-id {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 600;
    color: var(--rb-2);
    background: var(--rb-pale);
    border: 1px solid var(--border);
    border-radius: 5px; padding: 1px 5px;
}

.member-id i { font-size: 9px; }
.member-details { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 1px; }

.member-details span {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 9px; color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px; padding: 1px 5px;
}

.member-details i { color: var(--rb-2); font-size: 8px; }

.member-rank {
    position: absolute; bottom: 5px; left: 10px;
    display: inline-flex; align-items: center; gap: 3px;
    background: var(--rb-pale);
    border: 1px solid var(--border);
    border-radius: 20px; padding: 1px 7px;
    font-size: 9px; font-weight: 700; color: var(--rb-2);
}

.member-rank i { font-size: 8px; }

.member-status-badge {
    position: absolute; bottom: 5px; right: 10px;
    font-size: 9px; font-weight: 600;
    border-radius: 20px; padding: 1px 7px;
}

.member-status-badge.active   { background: var(--green-pale); border: 1px solid rgba(90, 168, 255,0.3); color: var(--green); }
.member-status-badge.inactive { background: var(--red-pale); border: 1px solid rgba(61, 123, 255,0.3); color: var(--red); }
.member-earning { display: block; font-size: 14px; font-weight: 700; color: var(--green); }
.member-date    { display: block; font-size: 10px; color: var(--muted); }

/* ── Earnings Card ── */
.earnings-card {
    background: linear-gradient(135deg, #082a44 0%, #0099d6 60%, #00b4f0 100%);
    border-radius: 22px;
    padding: 20px;
    margin: 15px 0;
    display: flex; align-items: center; gap: 15px;
    box-shadow: 0 8px 32px rgba(190, 242, 100, 0.50);
}

.earnings-icon {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
}

.earnings-label { font-size: 12px; color: rgba(255,255,255,0.85); }
.earnings-value { font-size: 24px; font-weight: 700; color: #fff; font-family: 'Sora', sans-serif; }

/* Balance Card Large */
.balance-card-large {
    background: linear-gradient(135deg, #78350f 0%, #d97706 50%, #fbbf24 100%);
    border-radius: 22px;
    padding: 25px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(217, 119, 6, 0.50);
}

.balance-bg-pattern {
    position: absolute; top: -50%; right: -50%;
    width: 100%; height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
}

.balance-content { position: relative; display: flex; align-items: center; gap: 20px; }

.balance-icon {
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
}

.balance-label  { font-size: 12px; color: rgba(255,255,255,0.85); }
.balance-amount { font-size: 28px; font-weight: 700; color: #fff; font-family: 'Sora', sans-serif; }

/* Quick Amounts */
.quick-amounts { display: flex; gap: 10px; margin: 15px 0; }

.quick-amount-btn {
    flex: 1; padding: 10px;
    background: var(--rb-pale);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--rb-2);
    font-weight: 600; font-size: 12px;
    cursor: pointer; transition: all 0.3s;
}

.quick-amount-btn:hover {
    background: var(--rb-2);
    color: #fff;
    box-shadow: 0 4px 14px rgba(190, 242, 100, 0.45);
}

/* Transaction List */
.transaction-list { padding: 15px; }

.transaction-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 8px;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.transaction-item:hover { border-color: var(--rb-2); background: var(--rb-pale); }

.transaction-icon {
    width: 45px; height: 45px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff; flex-shrink: 0;
}

.transaction-icon.blue     { background: linear-gradient(135deg, #0b3a5c 0%, #8be4ff 100%); }
.transaction-icon.green    { background: linear-gradient(135deg, #123a8a 0%, #5aa8ff 100%); }
.transaction-icon.orange   { background: linear-gradient(135deg, #92400e 0%, #fbbf24 100%); }
.transaction-icon.red      { background: linear-gradient(135deg, #7f1d1d 0%, #3d7bff 100%); }
.transaction-icon.gold     { background: linear-gradient(135deg, #78350f 0%, #fcd34d 100%); }
.transaction-icon.whatsapp { background: #16a34a; }
.transaction-icon.telegram { background: #0088cc; }
.transaction-icon.pending  { background: linear-gradient(135deg, #92400e 0%, #fbbf24 100%); }
.transaction-icon.success  { background: linear-gradient(135deg, #123a8a 0%, #5aa8ff 100%); }
.transaction-icon.failed   { background: linear-gradient(135deg, #7f1d1d 0%, #3d7bff 100%); }

.transaction-info { flex: 1; }
.transaction-info h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.transaction-info p  { font-size: 11px; color: var(--muted); }
.transaction-date    { font-size: 10px; color: var(--muted); }
.transaction-amount  { text-align: right; }
.transaction-amount span { display: block; font-size: 14px; font-weight: 700; text-align: left; font-family: 'Sora', sans-serif; }
.transaction-amount.credit span { color: var(--green); }
.transaction-amount.debit span  { color: var(--red); }
.transaction-amount .status { font-size: 10px; padding: 1px 5px; border-radius: 4px; font-weight: 600; }

.status.pending { background: rgba(251,191,36,0.10); color: var(--gold-2); }
.status.success { background: var(--green-pale); color: var(--green); }
.status.failed  { background: var(--red-pale); color: var(--red); }

.status-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 600; }
.status-badge.pending { background: rgba(251,191,36,0.10); color: var(--gold-2); border: 1px solid var(--border-gold); }
.status-badge.success { background: var(--green-pale); color: var(--green); border: 1px solid rgba(90, 168, 255,0.2); }
.status-badge.failed  { background: var(--red-pale); color: var(--red); border: 1px solid rgba(61, 123, 255,0.2); }

/* Transaction Tabs */
.transaction-tabs-wrapper { margin: 15px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.transaction-tabs { display: flex; gap: 8px; padding: 5px; min-width: max-content; }

.tab-btn {
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
    padding: 6px 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
    text-decoration: none; font-size: 10px;
    transition: all 0.3s; min-width: 50px;
    box-shadow: var(--shadow);
}

.tab-btn i { font-size: 16px; }

.tab-btn:hover:not(.active) {
    background: var(--rb-pale);
    border-color: var(--rb-2);
    color: var(--rb-2);
}

/* Earnings Summary */
.earnings-summary-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px;
    margin: 15px 0;
    display: flex; align-items: center; justify-content: space-around;
    box-shadow: var(--shadow);
}

.summary-item     { text-align: center; }
.summary-label    { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.summary-value    { display: block; font-size: 20px; font-weight: 700; color: var(--text); font-family: 'Sora', sans-serif; }
.summary-value.green { color: var(--green); }
.summary-divider  { width: 1px; height: 40px; background: var(--border); }

/* Income Stats Grid */
.income-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px; margin: 15px 0;
}

.income-stat-box {
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.income-stat-box:nth-child(1) { background: linear-gradient(135deg, #0b3a5c 0%, #8be4ff 100%); }
.income-stat-box:nth-child(2) { background: linear-gradient(135deg, #123a8a 0%, #5aa8ff 100%); }
.income-stat-box:nth-child(3) { background: linear-gradient(135deg, #123a8a 0%, #5aa8ff 100%); }
.income-stat-box:nth-child(4) { background: linear-gradient(135deg, #10307a 0%, #5aa8ff 100%); }

.income-stat-box i           { font-size: 20px; color: #fff; margin-bottom: 5px; }
.income-stat-value           { display: block; font-size: 12px; font-weight: 700; color: #fff; font-family: 'Sora', sans-serif; }
.income-stat-label           { display: block; font-size: 9px; color: rgba(255,255,255,0.85); }
.income-stat-box.withdrawn   { background: linear-gradient(135deg, #7f1d1d 0%, #3d7bff 100%); }

/* Task Card */
.task-card {
    display: flex; align-items: center; gap: 12px;
    padding: 15px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 10px;
    border-left: 3px solid var(--rb-2);
    box-shadow: var(--shadow);
}

.task-card.purple { border-left-color: #8be4ff; }
.task-card.green  { border-left-color: var(--green); }
.task-card.blue   { border-left-color: var(--cyan); }
.task-card.red    { border-left-color: var(--red); }
.task-card.pink   { border-left-color: #5aa8ff; }

.task-icon {
    width: 45px; height: 45px;
    background: var(--rb-pale);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--rb-2);
}

.task-card.green .task-icon { background: var(--green-pale); border-color: rgba(90, 168, 255,0.2); color: var(--green); }
.task-card.blue  .task-icon { background: var(--cyan-pale); border-color: rgba(90, 168, 255,0.2); color: var(--cyan); }
.task-card.red   .task-icon { background: var(--red-pale); border-color: rgba(61, 123, 255,0.2); color: var(--red); }
.task-card.pink  .task-icon { background: rgba(90, 168, 255,0.08); border-color: rgba(90, 168, 255,0.2); color: #5aa8ff; }

.task-info { flex: 1; }
.task-info h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.task-info p  { font-size: 11px; color: var(--muted); }

.task-amount {
    font-size: 16px; font-weight: 700;
    color: var(--green);
    font-family: 'Sora', sans-serif;
}

.task-tab {
    display: flex; gap: 5px; margin-bottom: 15px;
}

.task-tab-btn {
    flex: 1; padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    font-size: 11px; font-weight: 600;
    cursor: pointer; transition: all 0.3s;
}

.task-tab-btn.active { background: var(--rb-pale); border-color: var(--rb-2); color: var(--rb-2); }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}

.empty-state i  { font-size: 40px; display: block; margin-bottom: 15px; opacity: 0.5; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--muted); margin-bottom: 5px; font-family: 'Sora', sans-serif; }
.empty-state p  { font-size: 12px; color: var(--muted); }
.empty-state i.fa-exclamation-triangle { font-size: 40px; color: var(--gold-2); margin-bottom: 10px; }

/* Action Buttons */
.action-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--rb-2) 0%, var(--rb) 100%);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px; font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(190, 242, 100, 0.50);
}

.action-btn.small { padding: 8px 15px; font-size: 11px; }
.action-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(190, 242, 100, 0.70); }

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px; margin: 15px 0;
}

.action-card {
    border-radius: 14px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.action-card:nth-child(1)  { background: linear-gradient(135deg, #0b3a5c 0%, #8be4ff 100%); }
.action-card:nth-child(2)  { background: linear-gradient(135deg, #123a8a 0%, #5aa8ff 100%); }
.action-card:nth-child(3)  { background: linear-gradient(135deg, #10307a 0%, #5aa8ff 100%); }
.action-card:nth-child(4)  { background: linear-gradient(135deg, #123a8a 0%, #5aa8ff 100%); }
.action-card:nth-child(5)  { background: linear-gradient(135deg, #78350f 0%, #fbbf24 100%); }
.action-card:nth-child(6)  { background: linear-gradient(135deg, #082a44 0%, #8be4ff 100%); }
.action-card:nth-child(7)  { background: linear-gradient(135deg, #10307a 0%, #5aa8ff 100%); }
.action-card:nth-child(8)  { background: linear-gradient(135deg, #78350f 0%, #f59e0b 100%); }
.action-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.action-card.logout { background: linear-gradient(135deg, #7f1d1d 0%, #3d7bff 100%); }

.action-icon {
    width: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px; font-size: 18px; color: #fff;
}

.action-card span { font-size: 10px; color: rgba(255,255,255,0.9); font-weight: 500; }

/* Referral CTA Card */
.referral-cta-card {
    background: linear-gradient(135deg, #082a44 0%, #0099d6 60%, #00b4f0 100%);
    border-radius: 22px;
    padding: 20px;
    margin: 15px 0;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 8px 32px rgba(190, 242, 100, 0.50);
}

.cta-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 5px; color: #fff; font-family: 'Sora', sans-serif; }
.cta-content h3 i { margin-right: 8px; }
.cta-content p  { font-size: 11px; color: rgba(255,255,255,0.85); }
.cta-actions    { display: flex; gap: 10px; }

.cta-btn {
    width: 45px; height: 45px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px;
    transition: all 0.3s;
}

.cta-btn.whatsapp { background: #25d366; }
.cta-btn.telegram { background: #0088cc; }
.cta-btn:hover    { transform: scale(1.1); }

/* Form for Pages */
.profile-form .form-group,
.withdraw-form .form-group { margin-bottom: 15px; }

.form-hint  { display: block; font-size: 10px; color: var(--green); margin-top: 5px; }
.form-error { color: var(--red); font-size: 11px; margin-top: 10px; text-align: center; }
.form-error i { margin-right: 5px; }

/* Task Earnings Card */
.task-earnings-card {
    background: linear-gradient(135deg, #082a44 0%, #0099d6 60%, #0b3a5c 100%);
    border-radius: 22px;
    padding: 20px; margin: 15px 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 15px;
    box-shadow: 0 8px 32px rgba(190, 242, 100, 0.50);
}

.task-earnings-icon {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
}

.task-earnings-info      { flex: 1; }
.task-earnings-label     { font-size: 12px; color: rgba(255,255,255,0.85); }
.task-earnings-value     { font-size: 24px; font-weight: 700; color: #fff; font-family: 'Sora', sans-serif; }
.task-earnings-progress  { width: 100%; margin-top: 10px; }

.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5aa8ff, #5aa8ff);
    border-radius: 10px;
    transition: width 0.3s;
}

.progress-text { font-size: 10px; color: rgba(255,255,255,0.85); margin-top: 5px; display: block; }

/* Income Summary Grid */
.income-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px; margin: 15px 0;
}

.income-box {
    border-radius: 14px; padding: 12px;
    text-align: center; box-shadow: var(--shadow);
}

.income-box:nth-child(1) { background: linear-gradient(135deg, #0b3a5c 0%, #8be4ff 100%); }
.income-box:nth-child(2) { background: linear-gradient(135deg, #123a8a 0%, #5aa8ff 100%); }
.income-box:nth-child(3) { background: linear-gradient(135deg, #123a8a 0%, #5aa8ff 100%); }
.income-box:nth-child(4) { background: linear-gradient(135deg, #10307a 0%, #5aa8ff 100%); }
.income-box i { font-size: 20px; color: #fff; margin-bottom: 5px; }

/* Settings */
.settings-menu { margin: 15px 0; }

.settings-item {
    display: flex; align-items: center; gap: 15px;
    padding: 15px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.settings-item:hover {
    background: var(--rb-pale);
    border-color: var(--rb-2);
    transform: translateX(5px);
    box-shadow: 0 6px 24px rgba(190, 242, 100, 0.25);
}

.settings-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
}

.settings-icon.purple { background: linear-gradient(135deg, #0b3a5c 0%, #8be4ff 100%); }
.settings-icon.blue   { background: linear-gradient(135deg, #10307a 0%, #5aa8ff 100%); }
.settings-icon.green  { background: linear-gradient(135deg, #123a8a 0%, #5aa8ff 100%); }
.settings-icon.orange { background: linear-gradient(135deg, #92400e 0%, #fbbf24 100%); }
.settings-icon.red    { background: linear-gradient(135deg, #7f1d1d 0%, #3d7bff 100%); }

.settings-info { flex: 1; }
.settings-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.settings-info p  { font-size: 11px; color: var(--muted); }
.settings-item > i.fa-chevron-right { font-size: 12px; opacity: 0.5; color: var(--rb-2); }

/* Form Section Title */
.form-section-title {
    font-size: 13px; font-weight: 600;
    color: var(--rb-2);
    margin: 20px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    display: flex; align-items: center; gap: 8px;
    font-family: 'Sora', sans-serif;
}

.form-section-title:first-child { margin-top: 0; }
.form-section-title i { font-size: 16px; }

/* Notification bar */
.notification-div {
    background: var(--rb-pale);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    color: var(--text-3);
    font-size: 12px;
}

.horn { color: var(--gold-2); font-size: 16px; flex-shrink: 0; }
.notification-div marquee { flex: 1; }
.notification-div p { margin: 0; }

/* Timer */
.timer-div {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

/* Download btn */
.download-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--rb-2) 0%, var(--rb) 100%);
    color: #fff; border: none;
    border-radius: 14px; cursor: pointer;
    font-size: 13px; font-weight: 600;
    transition: all 0.3s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    flex: 1; justify-content: center;
    box-shadow: 0 4px 16px rgba(190, 242, 100, 0.45);
}

.download-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(190, 242, 100, 0.65); }
.app-installed-msg { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 13px; }

/* Withdraw page */
.withdraw-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: var(--muted);
}

/* Referral code box */
.referral-code-box {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 12px;
    margin-top: 8px;
}

/* Select dropdown */
select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--surface);
    color: var(--text);
}

select:focus { outline: none; border-color: var(--rb-2); }
select option { background: var(--card); color: var(--text); }

/* Tables */
table { width: 100%; border-collapse: collapse; }

thead th {
    background: var(--rb-pale);
    color: var(--rb-2);
    padding: 10px;
    font-size: 13px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-family: 'Sora', sans-serif;
}

td {
    padding: 8px; font-size: 13px;
    border-bottom: 1px solid var(--border);
    color: var(--text-3);
}

tr:nth-child(even) { background: var(--surface); }
tr:hover { background: var(--rb-pale); }

.table-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.marquee-container { height: 220px; overflow: hidden; position: relative; }
.marquee-container table { animation: scrollUp 12s linear infinite; }

@keyframes scrollUp {
    0%   { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

/* Buttons / Overlays */
.bg-image {
    width: 100%; height: auto; display: block;
    filter: brightness(0.85);
}

.button-overlay {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

/* Trade Btn */
.trade-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 2px 30px;
    font-size: 16px; font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    border-radius: 50px;
    background: linear-gradient(45deg, #8be4ff, #5aa8ff, #5aa8ff, #8be4ff);
    background-size: 300% auto;
    animation: flow 3s linear infinite;
    box-shadow: 0 0 24px rgba(190, 242, 100, 0.65);
    transition: 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.25);
    font-family: 'Sora', sans-serif;
}

.trade-btn:hover { transform: scale(1.1); box-shadow: 0 0 40px rgba(190, 242, 100, 0.90); }

@keyframes flow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.trade-btn:hover i { transform: translateY(-3px) scale(1.2); transition: 0.3s; }
.text-center { text-align: center; }

/* ═══════════════════════════════════════════════════
   SIDEBAR MENU
   ═══════════════════════════════════════════════════ */

.header-left { display: flex; align-items: center; gap: 10px; }

/* Hamburger */
.hamburger-btn {
    width: 40px; height: 40px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 5px; cursor: pointer;
    background: rgba(31, 107, 255, 0.12);
    border: 1px solid rgba(31, 107, 255, 0.30);
    border-radius: 12px; padding: 0;
    transition: all 0.3s ease; flex-shrink: 0;
}

.hamburger-btn span {
    display: block; width: 18px; height: 2px;
    background: var(--rb-2); border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger-btn:hover {
    background: linear-gradient(135deg, var(--rb) 0%, var(--rb-2) 100%);
    box-shadow: 0 4px 18px rgba(31, 107, 255, 0.55);
    border-color: var(--rb-2);
}

.hamburger-btn:hover span { background: #0e121d; }
.hamburger-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Header Wallet Badge */
.hwb-card {
    display: flex; align-items: center; gap: 8px;
    background: rgba(31, 107, 255, 0.10);
    border: 1px solid rgba(31, 107, 255, 0.28);
    border-radius: 12px; padding: 6px 10px;
    cursor: pointer; transition: all 0.3s;
    max-width: 180px;
}

.hwb-card:hover {
    background: rgba(31, 107, 255, 0.16);
    box-shadow: 0 4px 16px rgba(31, 107, 255, 0.22);
}

.hwb-icon-wrap {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(31, 107, 255, 0.14);
    border: 1px solid rgba(31, 107, 255, 0.30);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.hwb-icon-wrap i { color: var(--cyan); font-size: 13px; }
.hwb-text { display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.hwb-label { font-size: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwb-amount { font-size: 13px; font-weight: 700; color: var(--cyan-2); line-height: 1; font-family: 'Sora', sans-serif; }

/* Sidebar Overlay */
.sb-overlay {
    position: fixed; inset: 0;
    background: rgba(4, 4, 12, 0.75);
    z-index: 1100;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sb-overlay.active { opacity: 1; visibility: visible; }

/* ═══════════════════════════════════════════════════
   SIDEBAR — same dark / lime capsule language as bottom nav
   ═══════════════════════════════════════════════════ */
.nft-sidebar {
    position: fixed;
    top: 0; left: -300px;
    width: 285px; height: 100%;
    background: linear-gradient(180deg, #1f6bff 0%, #1350d6 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.60);
    z-index: 1200;
    transition: left 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.nft-sidebar::-webkit-scrollbar { width: 4px; }
.nft-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
.nft-sidebar.open { left: 0; }

.sb-inner { display: flex; flex-direction: column; min-height: 100%; }

/* Sidebar Head */
.sb-head {
    padding: 20px 16px 18px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    position: relative;
}

/* Close Button */
.sb-close-btn {
    position: absolute; top: 14px; right: 14px;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.75);
    font-size: 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; z-index: 10;
}

.sb-close-btn:hover { background: var(--rb); color: #fff; transform: rotate(90deg); }

/* Profile Row */
.sb-profile-row {
    display: flex; align-items: center; gap: 12px;
    padding-right: 34px;
}

.sb-av-wrap { position: relative; flex-shrink: 0; }

.sb-avatar {
    width: 54px; height: 54px;
    border-radius: 50%; object-fit: cover;
    border: 2px solid var(--rb-2);
    position: relative; z-index: 1;
}

.sb-av-ring { display: none; }

.sb-user-info h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 3px; font-family: 'Sora', sans-serif; }
.sb-user-info p  { font-size: 11px; color: rgba(255,255,255,0.55); margin-bottom: 6px; font-family: monospace; }

.sb-status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 9px; font-weight: 700;
    padding: 3px 9px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.sb-status-badge.active   { background: rgba(34,211,238,0.16); color: #67e8f9; }
.sb-status-badge.inactive { background: rgba(61, 123, 255,0.16); color: #3d7bff; }

/* Mini Stats */
.sb-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 14px 0 0;
}

.sb-mini-stat {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 9px 10px;
    text-align: center;
}

.sb-mini-stat-val {
    font-size: 15px;
    font-weight: 800;
    color: #ffd666;
    font-family: 'Sora', sans-serif;
}

.sb-mini-stat-lbl {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.50);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-top: 2px;
}

/* Social links */
.sb-social-row {
    display: flex;
    gap: 8px;
    padding: 10px 14px 0;
}

.sb-social-btn {
    flex: 1;
    padding: 9px;
    border-radius: 999px;
    border: none;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.sb-social-btn:hover { opacity: 0.85; }
.sb-social-btn.wa { background: rgba(37, 211, 102, 0.12); color: #25d366; }
.sb-social-btn.tg { background: rgba(34, 158, 217, 0.12); color: #229ed9; }

/* Sidebar Navigation */
.sb-nav { padding: 14px 10px; flex: 1; }

/* Section Label */
.sb-section-lbl {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px 10px;
}

.sb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 999px;
    margin-bottom: 4px;
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.sb-item:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transform: translateX(2px);
}

.sb-item:active { transform: translateX(2px) scale(0.97); }

.sb-item-ico {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.25s;
}

.sb-item:hover .sb-item-ico { background: rgba(255, 255, 255, 0.18); transform: scale(1.06); }

.sb-item-ico i { font-size: 14px; color: #ffd666; transition: color 0.25s; }
.sb-item:hover .sb-item-ico i { color: #fff; }
.sb-item span  { flex: 1; line-height: 1.25; }
.sb-chev { font-size: 10px; color: #7c86b8; flex-shrink: 0; transition: all 0.25s; }
.sb-item:hover .sb-chev { color: #fff; transform: translateX(2px); }

.sb-item-highlight {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.sb-item-highlight .sb-item-ico { background: rgba(255, 255, 255, 0.18); }
.sb-item-highlight .sb-item-ico i { color: #fff; }
.sb-item-highlight .sb-chev { color: #fff; }

.sb-item-logout { color: #8fc6ff; }
.sb-item-logout .sb-item-ico { background: rgba(61, 123, 255,0.12); }
.sb-item-logout .sb-item-ico i { color: #3d7bff; }
.sb-item-logout:hover { background: rgba(61, 123, 255,0.14); color: #3d7bff; box-shadow: none; }
.sb-item-logout:hover .sb-item-ico { background: rgba(61, 123, 255,0.20); }
.sb-item-logout:hover .sb-item-ico i { color: #3d7bff; }
.sb-item-logout:hover .sb-chev { color: #3d7bff; }

/* All sidebar icon-color variants now share the single neon-violet accent */
.sbi-purple .sb-item-ico i,
.sbi-green .sb-item-ico i,
.sbi-gold .sb-item-ico i,
.sbi-blue .sb-item-ico i,
.sbi-orange .sb-item-ico i,
.sbi-pink .sb-item-ico i { color: #ffd666; }

/* Divider */
.sb-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 8px 10px;
}

/* Guest Section */
.sb-guest {
    padding: 34px 16px 24px;
    text-align: center;
    display: flex; flex-direction: column;
    align-items: center; gap: 12px;
}

.sb-guest-icon { font-size: 42px; color: #ffd666; margin-bottom: 6px; }
.sb-guest p    { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5; }

.sb-guest-btn {
    width: 100%; padding: 13px;
    border-radius: 999px; border: none;
    font-size: 13px; font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    gap: 8px; transition: all 0.3s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.sb-guest-login {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sb-guest-login:hover { background: rgba(255, 255, 255, 0.14); }

.sb-guest-reg {
    background: linear-gradient(135deg, #ffc93c 0%, #ffb300 100%);
    color: #ccd6ee;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.54);
}

.sb-guest-reg:hover { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.60); transform: translateY(-1px); }

/* Sidebar Brand Footer */
.sb-brand-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; gap: 10px;
    margin-top: auto;
}

.sb-brand-footer span {
    font-size: 12px; font-weight: 600;
    color: rgba(255,255,255,0.45); letter-spacing: 0.5px;
}

.sb-brand-footer-text { flex: 1; }
.sb-brand-footer-name { font-size: 13px; font-weight: 700; color: #fff; font-family: 'Sora', sans-serif; }
.sb-brand-footer-sub  { font-size: 9px; color: rgba(255,255,255,0.40); }

/* Body lock when sidebar open */
body.sb-open { overflow: hidden; }

/* Background hero image */
.back-bg { text-align: center; width: fit-content; margin: 0 auto; position: relative; }
.back-bg img {
    max-width: 420px;
    margin-top: -1px;
    border-radius: 0 0 30px 30px;
    filter: brightness(0.50) saturate(0.8) hue-rotate(230deg);
}

.back-bg::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}

/* Wallet card in sidebar */
.sb-wallet-card {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px; padding: 13px 14px;
    position: relative; overflow: hidden;
    margin-top: 12px;
}

.sb-wallet-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,214,102,0.7), transparent);
}

.sb-wallet-icon-wrap {
    width: 42px; height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.sb-wallet-icon-wrap i { color: #fff; font-size: 18px; }
.sb-wallet-details { display: flex; flex-direction: column; gap: 3px; }
.sb-wallet-lbl     { font-size: 10px; color: rgba(255,255,255,0.70); font-weight: 400; }
.sb-wallet-val     { font-size: 20px; font-weight: 800; color: #fff; line-height: 1; font-family: 'Sora', sans-serif; }

/* Install Card */
.install-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--shadow);
}

.install-card-text h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; font-family: 'Sora', sans-serif; }
.install-card-text p  { font-size: 11px; color: var(--muted); }

.install-card-btn {
    background: linear-gradient(135deg, var(--rb-2) 0%, var(--rb) 100%);
    color: #fff; border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(190, 242, 100, 0.40);
}

.install-card-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(190, 242, 100, 0.60); }

/* INR display value shown next to a USD amount everywhere in the app */
.inr-note {
    display: block;
    font-size: 0.62em;
    font-weight: 500;
    opacity: 0.65;
    line-height: 1.4;
}
td .inr-note {
    display: inline;
    margin-left: 6px;
}
.inr-note-inline {
    display: inline;
    font-size: 0.72em;
    font-weight: 500;
    opacity: 0.65;
    margin-left: 6px;
}

.ios-install-guide { font-size: 11px; color: var(--muted); }
