@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Mono:wght@400;700&display=swap');

:root {
    --bg-deep: #04060f;
    --bg-card: #080d1e;
    --bg-accent: #0f1530;
    --bg-hover: #141b3d;
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-glow: rgba(59, 130, 246, 0.2);
    --primary-glow-strong: rgba(59, 130, 246, 0.4);
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.15);
    --danger: #ef4444;
    --warning: #f59e0b;
    --text-main: #f1f5f9;
    --text-muted: #475569;
    --text-soft: #94a3b8;
    --border: #1a2549;
    --border-bright: #243060;
    --sidebar-width: 270px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 14px;
    --shadow-card: 0 8px 32px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    /* Subtle grain texture on body */
    background-image: 
        radial-gradient(ellipse at 15% 20%, rgba(59,130,246,0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(16,185,129,0.04) 0%, transparent 50%);
}

/* =================== SCROLLBAR =================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* =================== LAYOUT =================== */
.app-container { display: flex; min-height: 100vh; }

.mobile-header {
    display: none; width: 100%;
    background: rgba(8,13,30,0.95);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1.25rem;
    position: fixed; top: 0; left: 0; z-index: 1000;
    justify-content: space-between; align-items: center;
}
.menu-toggle { background: none; border: 1px solid var(--border); color: var(--text-main); font-size: 1.1rem; cursor: pointer; padding: 6px 10px; border-radius: 8px; }

/* =================== SIDEBAR =================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 1.75rem 1.25rem;
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.sidebar::after {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 1px; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

.main-content {
    flex: 1;
    padding: 2.25rem 2.5rem;
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

/* =================== LOGO =================== */
.logo-box { display: flex; align-items: center; gap: 12px; margin-bottom: 2.25rem; text-decoration: none; }
.logo-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: #fff;
    box-shadow: 0 4px 16px var(--primary-glow-strong);
    position: relative;
}
.logo-icon::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    pointer-events: none;
}
.logo-text { font-weight: 800; font-size: 16px; letter-spacing: -0.3px; line-height: 1.15; }
.logo-text span { display: block; font-size: 9px; font-weight: 600; color: var(--text-muted); letter-spacing: 2.5px; font-family: 'Space Mono', monospace; }

/* =================== NAV MENU =================== */
.nav-section-label {
    font-size: 9px; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 2px;
    padding: 0 12px; margin: 1.25rem 0 0.5rem;
}
.nav-menu { display: flex; flex-direction: column; gap: 3px; list-style: none; }
.nav-link {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-soft); padding: 10px 14px;
    border-radius: 10px; text-decoration: none;
    font-weight: 600; font-size: 13.5px; cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    white-space: nowrap;
}
.nav-link .nav-icon { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.nav-link:hover { background: var(--bg-accent); color: var(--text-main); }
.nav-link.active {
    background: rgba(59,130,246,0.1);
    color: var(--primary);
    border-color: rgba(59,130,246,0.2);
    border-left: 3px solid var(--primary);
}
.nav-link .badge-dot {
    margin-left: auto;
    width: 6px; height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.sidebar-bottom { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; }
.logout-btn {
    display: flex; align-items: center; gap: 12px;
    color: var(--danger); padding: 10px 14px;
    border-radius: 10px; font-weight: 600; font-size: 13.5px;
    cursor: pointer; transition: var(--transition);
    background: transparent; border: none; width: 100%;
    text-align: left;
}
.logout-btn:hover { background: rgba(239,68,68,0.1); }

/* =================== VIEW SECTIONS =================== */
.view-section { display: none; animation: fadeSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.view-section.active-view { display: block; }
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =================== PAGE HEADERS =================== */
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; color: var(--text-main); }
.page-header p { font-size: 14px; color: var(--text-soft); margin-top: 4px; }
.page-breadcrumb {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 6px;
    font-family: 'Space Mono', monospace;
}
.page-breadcrumb i { font-size: 9px; }

/* =================== CARDS =================== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    position: relative;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.wallet-card {
    background: linear-gradient(135deg, #070b1d 0%, #0c1132 50%, #060917 100%);
    border-color: var(--border-bright);
    overflow: hidden;
}
.wallet-card::after {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* =================== GRID LAYOUTS =================== */
.dashboard-grid { display: grid; grid-template-columns: 1.65fr 1.35fr; gap: 1.75rem; }
.card-column { display: flex; flex-direction: column; gap: 1.75rem; }
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }

/* =================== WALLET WIDGET =================== */
.wallet-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 4px; font-family: 'Space Mono', monospace; }
.wallet-balance {
    font-size: 36px; font-weight: 800;
    color: var(--text-main); margin: 4px 0 16px 0;
    font-family: 'Space Mono', monospace;
    letter-spacing: -1px;
}
.wallet-balance .currency { font-size: 20px; font-weight: 700; color: var(--text-soft); margin-right: 2px; }
.wallet-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.wallet-meta strong { color: var(--text-main); font-weight: 700; }
.status-dot { width: 7px; height: 7px; background: var(--success); border-radius: 50%; animation: pulse-dot 2s infinite; }

.virtual-acc-box {
    margin-top: 18px;
    background: rgba(0,0,0,0.3);
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px dashed rgba(59,130,246,0.3);
    position: relative;
    z-index: 1;
}
.virtual-acc-box .va-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; font-family: 'Space Mono', monospace; margin-bottom: 6px; }
.virtual-acc-box .bank-name { font-size: 12px; font-weight: 700; color: var(--text-soft); }
.virtual-acc-box .acc-num {
    font-size: 22px; font-weight: 800;
    color: var(--primary); letter-spacing: 2px;
    margin: 4px 0; font-family: 'Space Mono', monospace;
}
.virtual-acc-box .acc-name { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.copy-acc-btn {
    position: absolute; top: 12px; right: 12px;
    background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3);
    color: var(--primary); font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 6px; cursor: pointer;
    transition: var(--transition);
}
.copy-acc-btn:hover { background: rgba(59,130,246,0.25); }

/* =================== FORMS =================== */
h2 { font-size: 18px; font-weight: 800; margin-bottom: 1.25rem; letter-spacing: -0.3px; }
h3 { font-size: 15px; font-weight: 700; color: var(--text-main); }

.form-group { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper > i { position: absolute; left: 14px; color: var(--text-muted); font-size: 14px; pointer-events: none; }

input, select, textarea {
    width: 100%;
    background: var(--bg-accent) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    padding: 12px 14px 12px 42px !important;
    border-radius: 10px !important;
    font-size: 13.5px; font-weight: 500;
    outline: none !important;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}
textarea { padding: 12px 14px !important; resize: vertical; min-height: 100px; }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus {
    border-color: var(--primary) !important;
    background: var(--bg-hover) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}
select option { background: var(--bg-accent); color: var(--text-main); }

/* Amount quick-pick buttons */
.quick-amounts {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px;
}
.quick-btn {
    padding: 5px 14px; border-radius: 8px;
    background: var(--bg-accent); border: 1px solid var(--border);
    color: var(--text-soft); font-size: 12px; font-weight: 700;
    cursor: pointer; transition: var(--transition);
}
.quick-btn:hover { background: rgba(59,130,246,0.15); border-color: var(--primary); color: var(--primary); }

.btn-submit {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: #fff; border: none;
    padding: 13px; border-radius: 10px;
    font-size: 14px; font-weight: 700;
    cursor: pointer; transition: var(--transition);
    letter-spacing: 0.2px; margin-top: 4px;
    position: relative; overflow: hidden;
}
.btn-submit::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--primary-glow-strong); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* =================== TABS =================== */
.tab-row {
    display: flex; gap: 4px;
    background: var(--bg-accent); padding: 4px;
    border-radius: 10px; margin-bottom: 1.4rem;
    border: 1px solid var(--border);
}
.service-tab {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 7px; padding: 9px 10px; border-radius: 7px; border: none;
    background: transparent; color: var(--text-muted);
    font-size: 12.5px; font-weight: 700; cursor: pointer;
    transition: var(--transition);
}
.service-tab.active-tab {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* =================== NETWORK BADGE =================== */
.network-indicator-badge {
    position: absolute; right: 12px;
    font-size: 10px; font-weight: 800;
    padding: 3px 8px; border-radius: 5px;
    opacity: 0; transform: scale(0.8);
    transition: var(--transition);
    font-family: 'Space Mono', monospace;
    pointer-events: none;
}
.network-indicator-badge.detected { opacity: 1; transform: scale(1); }
.network-indicator-badge.mtn { background: #fef08a; color: #713f12; }
.network-indicator-badge.airtel { background: #fee2e2; color: #991b1b; }
.network-indicator-badge.glo { background: #dcfce7; color: #166534; }
.network-indicator-badge.mobile9 { background: #e0e7ff; color: #3730a3; }

/* =================== TRANSACTION HISTORY =================== */
.history-list {
    display: flex; flex-direction: column; gap: 8px;
    max-height: 360px; overflow-y: auto;
    padding-right: 4px; margin-top: 4px;
}
.history-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 14px;
    background: var(--bg-accent); border-radius: 10px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.history-item:hover { border-color: var(--border-bright); background: var(--bg-hover); }
.history-item.empty { text-align: center; justify-content: center; color: var(--text-muted); font-size: 12.5px; padding: 24px; }
.history-icon {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0; margin-right: 12px;
}
.history-icon.data-icon { background: rgba(59,130,246,0.12); color: var(--primary); }
.history-icon.airtime-icon { background: rgba(16,185,129,0.12); color: var(--success); }
.history-icon.cable-icon { background: rgba(245,158,11,0.12); color: var(--warning); }
.history-icon.electricity-icon { background: rgba(239,68,68,0.12); color: var(--danger); }
.history-icon.exam-icon { background: rgba(167,139,250,0.12); color: #a78bfa; }
.history-info { flex: 1; min-width: 0; }
.history-info h4 { font-size: 12.5px; font-weight: 700; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-info p { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; font-family: 'Space Mono', monospace; }
.history-right { text-align: right; flex-shrink: 0; margin-left: 8px; }
.history-amount { font-weight: 800; font-size: 13.5px; font-family: 'Space Mono', monospace; }
.history-amount.debit { color: var(--danger); }
.history-amount.credit { color: var(--success); }
.history-status {
    font-size: 9.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; margin-top: 2px; font-family: 'Space Mono', monospace;
}
.history-status.ok { color: var(--success); }
.history-status.pending { color: var(--warning); }
.history-status.failed { color: var(--danger); }

/* =================== STATS ROW =================== */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 1.75rem; }
.stat-chip {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px;
    display: flex; align-items: center; gap: 12px;
}
.stat-chip-icon {
    width: 38px; height: 38px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}
.stat-chip-icon.blue { background: rgba(59,130,246,0.12); color: var(--primary); }
.stat-chip-icon.green { background: rgba(16,185,129,0.12); color: var(--success); }
.stat-chip-icon.amber { background: rgba(245,158,11,0.12); color: var(--warning); }
.stat-chip-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.stat-chip-value { font-size: 18px; font-weight: 800; color: var(--text-main); font-family: 'Space Mono', monospace; margin-top: 1px; }

/* =================== REFERRAL =================== */
.ref-card-special {
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(16,185,129,0.05));
    border-color: rgba(59,130,246,0.2);
}
.ref-code-box {
    background: var(--bg-accent); border: 1px dashed rgba(59,130,246,0.4);
    border-radius: 10px; padding: 16px;
    text-align: center; margin: 1.25rem 0;
}
.ref-code-box .code-value {
    font-size: 26px; font-weight: 800;
    font-family: 'Space Mono', monospace;
    color: var(--primary); letter-spacing: 3px;
}
.ref-code-box .code-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.ref-link-row { display: flex; gap: 10px; }
.ref-link-row .input-wrapper { flex: 1; }
.copy-link-btn {
    padding: 0 18px; border-radius: 10px; border: none;
    background: var(--primary); color: #fff;
    font-size: 12.5px; font-weight: 700;
    cursor: pointer; transition: var(--transition);
    white-space: nowrap; flex-shrink: 0;
}
.copy-link-btn:hover { background: var(--primary-dark); }

.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 1.25rem; }
.ref-stat-item {
    text-align: center; padding: 14px;
    background: var(--bg-accent); border: 1px solid var(--border); border-radius: 10px;
}
.ref-stat-item .rs-val { font-size: 22px; font-weight: 800; color: var(--text-main); font-family: 'Space Mono', monospace; }
.ref-stat-item .rs-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; }

/* =================== PROFILE =================== */
.profile-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 1.75rem;
}
.profile-avatar {
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 800; color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px var(--primary-glow-strong);
}
.profile-meta h3 { font-size: 18px; font-weight: 800; }
.profile-meta p { font-size: 12.5px; color: var(--text-soft); margin-top: 2px; }
.profile-meta .member-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2);
    color: var(--success); font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 5px; margin-top: 5px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-field {
    padding: 14px; background: var(--bg-accent);
    border: 1px solid var(--border); border-radius: 10px;
}
.profile-field .pf-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.profile-field .pf-value { font-size: 13.5px; font-weight: 700; color: var(--text-main); }

/* =================== SUPPORT =================== */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 1.75rem; }
.support-channel {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--bg-accent);
    text-decoration: none; transition: var(--transition); cursor: pointer;
}
.support-channel:hover { border-color: var(--primary); background: rgba(59,130,246,0.06); }
.support-channel-icon {
    width: 38px; height: 38px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.support-channel-icon.whatsapp { background: rgba(37,211,102,0.12); color: #25d366; }
.support-channel-icon.telegram { background: rgba(0,136,204,0.12); color: #0088cc; }
.support-channel .sc-label { font-size: 12.5px; font-weight: 700; color: var(--text-main); }
.support-channel .sc-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* =================== TOAST =================== */
#toast-box {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 10000; display: flex; flex-direction: column; gap: 8px;
    max-width: 320px;
}
.auth-page {
    display: flex; min-height: 100vh;
    align-items: center; justify-content: center;
    padding: 20px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(16,185,129,0.05) 0%, transparent 50%),
        var(--bg-deep);
}
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
    animation: fadeSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.auth-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.4), transparent);
}
.auth-logo { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 2rem; }
.auth-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.auth-subtitle { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 2rem; }
.auth-divider { text-align: center; position: relative; margin: 1rem 0; }
.auth-divider::before, .auth-divider::after {
    content: ''; position: absolute; top: 50%;
    width: calc(50% - 30px); height: 1px;
    background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-divider span { font-size: 11px; color: var(--text-muted); background: var(--bg-card); padding: 0 8px; position: relative; z-index: 1; }
.toggle-link { text-align: center; margin-top: 1.5rem; font-size: 13px; color: var(--text-muted); }
.toggle-link strong { color: var(--primary); cursor: pointer; font-weight: 700; }
.toggle-link strong:hover { text-decoration: underline; }
.pwd-toggle {
    position: absolute; right: 14px;
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    font-size: 14px;
}
.input-wrapper .pwd-toggle { right: 14px; }
.trust-badges {
    display: flex; gap: 16px; justify-content: center;
    margin-top: 1.5rem; padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.trust-badge {
    display: flex; align-items: center; gap: 5px;
    font-size: 10.5px; color: var(--text-muted);
}
.trust-badge i { color: var(--success); font-size: 11px; }
.toast {
    background: var(--bg-card); border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    padding: 12px 16px; border-radius: 10px;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    font-size: 13px; font-weight: 600;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast i { font-size: 15px; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* =================== LOADING SPINNER =================== */
.spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #fff; border-radius: 50%;
    animation: spin 0.65s linear infinite;
    vertical-align: middle; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =================== DIVIDER =================== */
.section-divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* =================== RESPONSIVE =================== */
@media (max-width: 1100px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .two-col-grid { grid-template-columns: 1fr; }
    .profile-fields { grid-template-columns: 1fr; }
    .support-grid { grid-template-columns: 1fr; }
    .ref-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
    .mobile-header { display: flex; }
    .sidebar { transform: translateX(-100%); box-shadow: none; }
    .sidebar.sidebar-open { transform: translateX(0); box-shadow: 20px 0 60px rgba(0,0,0,0.7); }
    .main-content { margin-left: 0; padding: 5.5rem 1.25rem 2rem 1.25rem; }
    .stats-row { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
    .ref-stats { grid-template-columns: 1fr; }
    .wallet-balance { font-size: 28px; }
}