/* Alif Trading User Dashboard */

:root {
    --gold: #e8c56a;
    --gold-light: #f5e0a3;
    --nav-accent: #e8c56a;
    --nav-accent-dim: rgba(232, 197, 106, 0.45);
    --bg: #0a0906;
    --glass: rgba(232, 197, 106, 0.08);
    --glass-border: rgba(232, 197, 106, 0.32);
    --glass-highlight: rgba(255, 255, 255, 0.16);
    --text: #f7f3e8;
    --muted: #b4aa94;
    --radius: 14px;
    --pill-radius: 999px;
}

*, *::before, *::after { box-sizing: border-box; }

.dashboard-body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #0a0906;
    background-image:
        radial-gradient(ellipse 90% 55% at 0% 0%, rgba(232, 197, 106, 0.16), transparent 55%),
        radial-gradient(ellipse 70% 45% at 100% 100%, rgba(232, 197, 106, 0.08), transparent 50%),
        linear-gradient(180deg, #14110a 0%, #0a0906 100%);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    margin: 0;
}

.dash-main {
    background: transparent;
}

.dash-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.dash-navigating .dash-content { opacity: 1; }

/* ===== iOS GLASS TOP NAVBAR ===== */
.glass-navbar {
    position: sticky; top: 0; z-index: 1040;
    display: grid; grid-template-columns: 40px 1fr 40px;
    align-items: center; gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    padding-top: calc(0.55rem + env(safe-area-inset-top, 0px));
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(232, 197, 106, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.glass-nav-btn {
    width: 38px; height: 38px;
    border-radius: var(--pill-radius);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--nav-accent);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.95rem;
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    transition: background 0.2s, transform 0.2s;
}
.glass-nav-btn:hover { background: rgba(232, 197, 106, 0.12); transform: scale(1.03); }
.glass-nav-btn:active { transform: scale(0.97); }

.glass-nav-logo {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; text-decoration: none; color: var(--text);
    font-weight: 800; font-size: 0.92rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-width: 0; letter-spacing: -0.02em;
}
.glass-nav-logo img {
    height: 40px; width: 40px; object-fit: contain; flex-shrink: 0;
    border-radius: 50%;
    background: #0a0906;
}
.glass-nav-logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glass-nav-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glass-nav-brand em {
    font-style: normal;
    color: var(--nav-accent, #e8c56a);
}
.glass-nav-accent { color: var(--nav-accent); }

.glass-nav-profile {
    position: relative;
    width: 38px; height: 38px;
    border: none; background: none; padding: 0; cursor: pointer;
}
.profile-ring { display: none; }
.glass-nav-profile .profile-avatar {
    position: relative; z-index: 1;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.88rem; color: var(--nav-accent);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

/* ===== iOS GLASS LEFT DRAWER ===== */
.dash-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 300px; max-width: 88vw;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-right: 1px solid rgba(232, 197, 106, 0.1);
    border-radius: 0 28px 28px 0;
    z-index: 1060;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex; flex-direction: column;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}
.dash-sidebar.open { transform: translateX(0); }

.dash-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1055;
}
.dash-overlay.active { display: block; }

.sb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 0.9rem 0.85rem;
}
.sb-brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #0a0906;
}
.sb-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.sb-brand-text { flex: 1; min-width: 0; line-height: 1.15; }
.sb-brand-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #fff;
}
.sb-brand-text em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 700;
    color: #e8c56a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sb-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 12px 0.65rem;
    padding: 0.7rem 0.8rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(232, 197, 106, 0.2), rgba(18, 14, 8, 0.7));
    border: 1px solid rgba(232, 197, 106, 0.28);
}
.sb-user-copy { min-width: 0; flex: 1; }
.sb-user-copy strong {
    display: block;
    font-size: 0.88rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sb-user-copy small {
    display: block;
    color: #e8c56a;
    font-size: 0.68rem;
}

.sidebar-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.15rem 1rem;
    border-bottom: 1px solid rgba(232, 197, 106, 0.1);
    background: rgba(255, 255, 255, 0.03);
}
.sidebar-drawer-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sidebar-drawer-user strong { display: block; font-size: 0.9rem; color: var(--text); }
.sidebar-drawer-user small { color: var(--muted); font-size: 0.72rem; }
.sidebar-avatar {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: rgba(232, 197, 106, 0.15);
    border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--nav-accent);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}
.sidebar-close-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(10px);
    color: var(--muted); cursor: pointer;
    flex-shrink: 0;
}

/* Section labels — orange uppercase like reference */
.menu-label {
    display: block;
    padding: 0.85rem 1.15rem 0.4rem;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--nav-accent);
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.dash-menu { flex: 1; overflow-y: auto; padding: 0.15rem 0 1.25rem; }
.dash-menu-glass { padding-top: 0; }

/* Modern gold row menu items */
.dash-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 12px;
    padding: 0.55rem 0.7rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 16px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background 0.22s, border-color 0.22s, transform 0.18s, box-shadow 0.22s;
}

.dash-menu-item.glass-pill {
    border: 1px solid var(--glass-border);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.25);
}

.menu-ico {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.dash-menu-item .menu-glyph {
    width: auto;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--nav-accent);
}
.menu-copy { flex: 1; min-width: 0; line-height: 1.2; }
.menu-copy strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    color: inherit;
}
.menu-copy small {
    display: block;
    margin-top: 2px;
    font-size: 0.62rem;
    font-weight: 600;
    opacity: 0.78;
}
.menu-go {
    font-size: 0.68rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.dash-menu-item:hover {
    background: rgba(232, 197, 106, 0.1);
    border-color: rgba(232, 197, 106, 0.45);
    transform: translateX(2px);
}

.dash-menu-item.active {
    background: rgba(232, 197, 106, 0.14);
    border-color: rgba(232, 197, 106, 0.55);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(232, 197, 106, 0.12);
}

.dash-menu-item.active .menu-glyph { color: var(--gold-light); }

.dash-menu-item.logout-link:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
}
.dash-menu-item.logout-link:hover .menu-glyph { color: #f87171; }

/* Legacy menu-icon support */
.menu-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,0.04);
    display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.icon-deposit,
.icon-withdraw,
.icon-team,
.icon-reward,
.icon-plan,
.icon-live { color: var(--gold); }
.icon-logout { color: #f87171; }

/* ===== CHARMING PROFILE PANEL ===== */
.profile-panel {
    position: fixed; top: 0; right: -340px;
    width: 320px; max-width: 92vw; height: 100vh;
    background: #0e1828;
    border-left: 1px solid var(--glass-border);
    z-index: 1070; overflow-y: auto;
    transition: right 0.25s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}
.profile-panel.open { right: 0; }
.profile-panel-glow { display: none; }
.profile-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 1065; opacity: 0; visibility: hidden; transition: 0.3s;
}
.profile-backdrop.active { opacity: 1; visibility: visible; }

.profile-panel-header {
    position: relative; padding: 1.5rem 1.25rem 1.25rem; text-align: center;
    border-bottom: 1px solid var(--glass-border);
}
.profile-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05);
    color: var(--muted); cursor: pointer;
}
.profile-hero h5 { margin: 0.75rem 0 0.35rem; font-size: 1.15rem; font-weight: 800; }
.profile-avatar-lg {
    position: relative; width: 72px; height: 72px; margin: 0 auto;
    border-radius: 50%;
    background: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; font-weight: 800; color: #0a1628;
}
.profile-status-dot {
    position: absolute; bottom: 4px; right: 4px;
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid #0c1525;
}
.profile-status-dot.status-active { background: #4ade80; }
.profile-status-dot.status-blocked { background: #f87171; }
.profile-status-dot.status-pending { background: #fbbf24; }
.profile-plan-tag {
    margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--muted);
}
.profile-plan-tag i { color: var(--gold); }
.profile-panel-body { padding: 1rem 1.25rem 1.5rem; }
.profile-field {
    padding: 0.8rem; margin-bottom: 0.6rem;
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    border-radius: 12px;
}
.profile-field label {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--muted); margin-bottom: 0.25rem;
}
.profile-field label i { color: var(--gold); width: 12px; }
.profile-field span { font-weight: 600; font-size: 0.9rem; }
.profile-password { display: flex; align-items: center; gap: 8px; }
.btn-show-pass {
    width: 30px; height: 30px; border-radius: 8px; border: none;
    background: rgba(212,168,83,0.12); color: var(--gold); cursor: pointer;
}
.profile-logout-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 1rem; padding: 0.75rem;
    background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.25);
    border-radius: 12px; color: #f87171; text-decoration: none; font-weight: 600;
    font-size: 0.88rem; transition: background 0.2s;
}
.profile-logout-btn:hover { background: rgba(248,113,113,0.18); color: #fca5a5; }

.badge-status {
    display: inline-block; padding: 0.2rem 0.65rem; border-radius: 50px;
    font-size: 0.7rem; font-weight: 600;
}
.badge-status.status-active { background: rgba(74,222,128,0.15); color: #4ade80; }
.badge-status.status-blocked { background: rgba(248,113,113,0.15); color: #f87171; }
.badge-status.status-pending { background: rgba(251,191,36,0.15); color: #fbbf24; }

/* ===== MAIN CONTENT ===== */
.dash-main { flex: 1; display: flex; flex-direction: column; }
.dash-content {
    flex: 1; padding: 1rem 1rem 5rem;
    max-width: 1100px; width: 100%; margin: 0 auto;
}

.impersonate-banner {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
    padding: 0.65rem 0.9rem; margin-bottom: 1rem; border-radius: 12px;
    background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.3);
    font-size: 0.85rem;
}
.impersonate-return-btn {
    padding: 0.4rem 0.75rem; border-radius: 8px;
    background: rgba(167,139,250,0.15); color: #e9d5ff; text-decoration: none; font-size: 0.78rem;
}

/* ===== GREETING ===== */
.dash-greeting { margin-bottom: 0.85rem; }
.greeting-salam {
    margin: 0 0 0.2rem; font-size: 0.88rem; color: var(--gold);
    font-weight: 600; letter-spacing: 0.3px;
}
.greeting-name {
    margin: 0; font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
.greeting-new-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 0.2rem 0.6rem; border-radius: 50px; font-size: 0.65rem; font-weight: 700;
    background: linear-gradient(135deg, rgba(212,168,83,0.2), rgba(74,222,128,0.15));
    border: 1px solid rgba(212,168,83,0.35); color: var(--gold-light);
    vertical-align: middle;
}

/* ===== REFERRAL BY PILL ===== */
.referral-by-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 0.55rem 0.85rem; margin-bottom: 0.85rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}
.rbp-icon {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(212,168,83,0.15));
    display: flex; align-items: center; justify-content: center;
    color: #c4b5fd; font-size: 1rem;
}
.rbp-text small { display: block; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.rbp-text strong { font-size: 0.95rem; font-weight: 700; color: var(--text); }

/* ===== BALANCE CHART CARD ===== */
.balance-chart-card {
    position: relative; overflow: hidden;
    border-radius: 16px; margin-bottom: 1rem;
    background: rgba(11, 26, 78, 0.86);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 28px rgba(2, 8, 26, 0.36);
}
.bcc-chart-bg {
    position: absolute; inset: 0; opacity: 0.9; pointer-events: none;
}
.bcc-chart-svg { width: 100%; height: 100%; display: block; }
.bcc-line { stroke-width: 2; }
.bcc-content { position: relative; z-index: 1; padding: 1.25rem 1.35rem 1.35rem; }
.bcc-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.35rem;
}
.bcc-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.bcc-plan { display: none; }
.bcc-balance-row {
    display: flex; align-items: center; gap: 10px; margin-bottom: 1rem;
}
.balance-amount {
    font-size: clamp(1.75rem, 6vw, 2.35rem);
    font-weight: 800; color: var(--gold);
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.5px; transition: transform 0.2s;
}
.bcc-eye-btn {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid rgba(212,168,83,0.25);
    background: rgba(212,168,83,0.08); color: var(--gold);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
}
.bcc-eye-btn:hover { background: rgba(212,168,83,0.15); }
.bcc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== QUICK DOCK ===== */
.action-dock {
    display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem;
    margin-bottom: 1.25rem; scrollbar-width: none;
}
.action-dock::-webkit-scrollbar { display: none; }
.dock-item {
    flex: 1; min-width: 68px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 0.65rem 0.45rem; text-decoration: none; color: var(--text);
    background: linear-gradient(150deg, rgba(35, 66, 165, 0.78), rgba(9, 24, 73, 0.92));
    border: 1px solid rgba(191, 219, 254, 0.28);
    border-radius: 12px; font-size: 0.72rem; font-weight: 700;
    box-shadow: 0 10px 24px rgba(7, 15, 38, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.dock-item:hover {
    border-color: rgba(212, 168, 83, 0.3);
    color: var(--gold);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(7, 15, 38, 0.34);
    filter: brightness(1.04);
}
.dock-disabled { opacity: 0.45; pointer-events: none; }
.dock-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 0.92rem;
}

/* ===== REVENUE ANALYTICS ===== */
.revenue-analytics {
    background: rgba(10, 24, 72, 0.86);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 28px rgba(2, 8, 26, 0.34);
}

.rev-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--glass-border);
}

.rev-header h2 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rev-header h2 i { color: var(--gold); }
.rev-header p { margin: 0; font-size: 0.78rem; color: var(--muted); }

.rev-summary-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}

.rev-sum-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
}

.rev-sum-main {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.12), rgba(74, 222, 128, 0.06));
    border-color: rgba(212, 168, 83, 0.25);
}

.rev-sum-icon {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    background: rgba(212, 168, 83, 0.15);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}

.rev-sum-icon.si-green { background: rgba(74, 222, 128, 0.12); color: #4ade80; }
.rev-sum-icon.si-red { background: rgba(248, 113, 113, 0.12); color: #f87171; }

.rev-sum-card small {
    display: block;
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rev-sum-card strong {
    font-size: 0.92rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.2;
}

.rev-chart-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
}

.rev-bar-item { display: flex; flex-direction: column; gap: 6px; }

.rev-bar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
}

.rev-bar-meta span {
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rev-bar-meta span i { width: 14px; text-align: center; }
.rev-bar-meta strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.rev-bar-track {
    height: 8px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.rev-bar-fill {
    height: 100%;
    border-radius: 50px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 4px;
}

.fill-green { background: linear-gradient(90deg, #16a34a, #4ade80); }
.fill-red { background: linear-gradient(90deg, #dc2626, #f87171); }
.fill-gold { background: linear-gradient(90deg, #b8922f, #f0d78c); }
.fill-amber { background: linear-gradient(90deg, #d97706, #fbbf24); }
.fill-orange { background: linear-gradient(90deg, #ea580c, #fb923c); }

.rev-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.rev-metric {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 0.95rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(186, 219, 255, 0.18);
    box-shadow: 0 8px 22px rgba(6, 16, 46, 0.24);
}

.rev-metric-ring {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.rev-metric-ring.si-cyan {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
    border-color: rgba(34, 211, 238, 0.25);
}

.rev-metric-ring.si-gold {
    background: rgba(212, 168, 83, 0.1);
    color: var(--gold);
    border-color: rgba(212, 168, 83, 0.25);
}

.rev-metric-ring.si-purple {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.25);
}

.rev-metric strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    color: #f3f8ff;
}

.rev-metric small {
    font-size: 0.68rem;
    color: #c5d7ef;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.rev-services { margin-bottom: 1rem; }

/* ===== SERVICE HUB GRID ===== */
.hub-section {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 12px 28px rgba(2, 8, 26, 0.12);
}

.hub-section-head {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(191, 219, 254, 0.14);
}

.hub-section-head h2 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-section-head h2 i { color: var(--gold); }
.hub-section-head p { margin: 0; font-size: 0.78rem; color: var(--muted); }

.hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.hub-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 94px;
    padding: 0.78rem 0.48rem 0.65rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: linear-gradient(155deg, rgba(20, 40, 108, 0.92), rgba(8, 22, 62, 0.92));
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(7, 15, 38, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hub-tile-glow { display: none; }

.hub-tile:hover {
    border-color: rgba(212, 168, 83, 0.3);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(7, 15, 38, 0.34);
    filter: brightness(1.05);
}

.hub-tile-off {
    opacity: 0.4;
    pointer-events: none;
}

.hub-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.18rem;
}

.hub-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.hub-live-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
}

/* Color tones */
.hub-orange { background: linear-gradient(155deg, rgba(251, 146, 60, 0.2), rgba(124, 45, 18, 0.86)); }
.hub-orange .hub-icon { background: linear-gradient(135deg, #fb923c, #ea580c); color: #fff; }
.hub-orange .hub-tile-glow { background: radial-gradient(circle at 50% 0%, rgba(251, 146, 60, 0.2), transparent 70%); }
.hub-orange:hover { border-color: rgba(251, 146, 60, 0.35); }

.hub-blue { background: linear-gradient(155deg, rgba(96, 165, 250, 0.2), rgba(30, 58, 138, 0.86)); }
.hub-blue .hub-icon { background: linear-gradient(135deg, #60a5fa, #2563eb); color: #fff; }
.hub-blue .hub-tile-glow { background: radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.2), transparent 70%); }
.hub-blue:hover { border-color: rgba(96, 165, 250, 0.35); }

.hub-purple { background: linear-gradient(155deg, rgba(232, 197, 106, 0.2), rgba(76, 29, 149, 0.86)); }
.hub-purple .hub-icon { background: linear-gradient(135deg, #e8c56a, #7c3aed); color: #fff; }
.hub-purple .hub-tile-glow { background: radial-gradient(circle at 50% 0%, rgba(232, 197, 106, 0.2), transparent 70%); }
.hub-purple:hover { border-color: rgba(232, 197, 106, 0.35); }

.hub-pink { background: linear-gradient(155deg, rgba(244, 114, 182, 0.2), rgba(131, 24, 67, 0.86)); }
.hub-pink .hub-icon { background: linear-gradient(135deg, #f472b6, #db2777); color: #fff; }
.hub-pink .hub-tile-glow { background: radial-gradient(circle at 50% 0%, rgba(244, 114, 182, 0.2), transparent 70%); }
.hub-pink:hover { border-color: rgba(244, 114, 182, 0.35); }

.hub-sky { background: linear-gradient(155deg, rgba(56, 189, 248, 0.2), rgba(14, 73, 130, 0.86)); }
.hub-sky .hub-icon { background: linear-gradient(135deg, #38bdf8, #0284c7); color: #fff; }
.hub-sky .hub-tile-glow { background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.2), transparent 70%); }
.hub-sky:hover { border-color: rgba(56, 189, 248, 0.35); }

.hub-green { background: linear-gradient(155deg, rgba(74, 222, 128, 0.2), rgba(20, 83, 45, 0.86)); }
.hub-green .hub-icon { background: linear-gradient(135deg, #4ade80, #16a34a); color: #fff; }
.hub-green .hub-tile-glow { background: radial-gradient(circle at 50% 0%, rgba(74, 222, 128, 0.2), transparent 70%); }
.hub-green:hover { border-color: rgba(74, 222, 128, 0.35); }

.hub-gold { background: linear-gradient(155deg, rgba(240, 215, 140, 0.24), rgba(120, 53, 15, 0.86)); }
.hub-gold .hub-icon { background: linear-gradient(135deg, #f0d78c, #d4a853); color: #1a1f2e; }
.hub-gold .hub-tile-glow { background: radial-gradient(circle at 50% 0%, rgba(212, 168, 83, 0.22), transparent 70%); }
.hub-gold:hover { border-color: rgba(212, 168, 83, 0.4); }

.hub-violet { background: linear-gradient(155deg, rgba(167, 139, 250, 0.2), rgba(49, 24, 109, 0.86)); }
.hub-violet .hub-icon { background: linear-gradient(135deg, #a78bfa, #6d28d9); color: #fff; }
.hub-violet .hub-tile-glow { background: radial-gradient(circle at 50% 0%, rgba(167, 139, 250, 0.2), transparent 70%); }
.hub-violet:hover { border-color: rgba(167, 139, 250, 0.35); }

.hub-amber { background: linear-gradient(155deg, rgba(251, 191, 36, 0.24), rgba(120, 53, 15, 0.86)); }
.hub-amber .hub-icon { background: linear-gradient(135deg, #fbbf24, #d97706); color: #1a1f2e; }
.hub-amber .hub-tile-glow { background: radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.2), transparent 70%); }
.hub-amber:hover { border-color: rgba(251, 191, 36, 0.35); }

.hub-rose { background: linear-gradient(155deg, rgba(251, 113, 133, 0.2), rgba(136, 19, 55, 0.86)); }
.hub-rose .hub-icon { background: linear-gradient(135deg, #fb7185, #e11d48); color: #fff; }
.hub-rose .hub-tile-glow { background: radial-gradient(circle at 50% 0%, rgba(251, 113, 133, 0.2), transparent 70%); }
.hub-rose:hover { border-color: rgba(251, 113, 133, 0.35); }

.hub-mint { background: linear-gradient(155deg, rgba(45, 212, 191, 0.2), rgba(17, 94, 89, 0.86)); }
.hub-mint .hub-icon { background: linear-gradient(135deg, #2dd4bf, #0d9488); color: #fff; }
.hub-mint .hub-tile-glow { background: radial-gradient(circle at 50% 0%, rgba(45, 212, 191, 0.2), transparent 70%); }
.hub-mint:hover { border-color: rgba(45, 212, 191, 0.35); }

.hub-slate { background: linear-gradient(155deg, rgba(148, 163, 184, 0.2), rgba(51, 65, 85, 0.86)); }
.hub-slate .hub-icon { background: linear-gradient(135deg, #94a3b8, #475569); color: #fff; }
.hub-slate .hub-tile-glow { background: radial-gradient(circle at 50% 0%, rgba(148, 163, 184, 0.15), transparent 70%); }
.hub-slate:hover { border-color: rgba(148, 163, 184, 0.3); }

.hub-teal { background: linear-gradient(155deg, rgba(20, 184, 166, 0.2), rgba(17, 94, 89, 0.86)); }
.hub-teal .hub-icon { background: linear-gradient(135deg, #14b8a6, #0f766e); color: #fff; }
.hub-teal .hub-tile-glow { background: radial-gradient(circle at 50% 0%, rgba(20, 184, 166, 0.2), transparent 70%); }
.hub-teal:hover { border-color: rgba(20, 184, 166, 0.35); }

@media (max-width: 400px) {
    .hub-grid { gap: 0.45rem; }
    .hub-tile { min-height: 76px; padding: 0.55rem 0.3rem 0.45rem; border-radius: 10px; }
    .hub-icon { width: 32px; height: 32px; font-size: 0.9rem; border-radius: 8px; }
    .hub-label { font-size: 0.6rem; }
}

@media (min-width: 768px) {
    .hub-grid { gap: 0.6rem; }
    .hub-tile { min-height: 90px; }
}

/* ===== VISUAL CHART CARDS — Premium Modern ===== */
.viz-cards-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(212, 168, 83, 0.12);
}

.viz-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 1rem;
    background: #121e32;
    border: 1px solid var(--glass-border);
}

.viz-card-shine { display: none; }

.viz-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.viz-title-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.viz-title-icon {
    width: 34px; height: 34px; flex-shrink: 0;
    border-radius: 9px;
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 0.85rem;
}

.viz-title-icon.icon-chart {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.viz-card-head h3 {
    margin: 0 0 2px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.2;
}

.viz-card-head p {
    margin: 0;
    font-size: 0.72rem;
    color: var(--muted);
}

.viz-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.4rem 0.7rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--gold);
    background: rgba(212, 168, 83, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.viz-filter i { font-size: 0.62rem; opacity: 0.8; }

/* Gauge */
.viz-gauge-wrap {
    position: relative;
    height: 155px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 0.75rem;
    z-index: 1;
}

.viz-gauge {
    width: 100%;
    max-width: 270px;
    height: auto;
    display: block;
}

.viz-gauge-bg { stroke: rgba(255, 255, 255, 0.06); }

.viz-gauge-fill {
    transition: stroke-dasharray 0.6s ease;
}

.viz-gauge-center {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    text-align: center;
}

.viz-gauge-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f0d78c, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1;
    letter-spacing: -1px;
}

.viz-gauge-tag {
    display: inline-block;
    margin-top: 6px;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.viz-gauge-tag.tag-good { background: rgba(74, 222, 128, 0.12); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.25); }
.viz-gauge-tag.tag-mid { background: rgba(212, 168, 83, 0.12); color: var(--gold); border: 1px solid rgba(212, 168, 83, 0.25); }
.viz-gauge-tag.tag-low { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.2); }

.viz-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.viz-card-stats > div {
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.viz-card-stats small {
    display: block;
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.viz-card-stats strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
}

.viz-card-foot {
    margin: 0;
    text-align: center;
    font-size: 0.72rem;
    color: var(--muted);
    position: relative;
    z-index: 1;
}

.viz-card-foot i { color: var(--gold); margin-right: 4px; font-size: 0.65rem; }

/* Bar chart panel */
.viz-bar-panel {
    position: relative;
    z-index: 1;
    padding: 1rem 0.75rem 0.5rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.85rem;
}

.viz-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 5px;
    height: 150px;
}

.viz-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    min-width: 0;
    cursor: default;
}

.viz-bar {
    width: 100%;
    max-width: 26px;
    height: var(--bar-h, 10%);
    margin-top: auto;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(180deg, #e8f5a0 0%, #c8e86c 50%, #a8d84a 100%);
    position: relative;
    overflow: hidden;
    min-height: 10px;
    transform-origin: bottom center;
}

.viz-bar-glow { display: none; }

.viz-bar-stripes {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 3px,
        rgba(255, 255, 255, 0.18) 3px,
        rgba(255, 255, 255, 0.18) 6px
    );
    opacity: 0.7;
}

.viz-bar-col:hover .viz-bar {
    opacity: 0.9;
}

.viz-bar-col.is-active .viz-bar {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 45%, #b8922f 100%);
}

.viz-bar-col.is-active .viz-bar-stripes {
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 3px,
        rgba(255, 255, 255, 0.25) 3px,
        rgba(255, 255, 255, 0.25) 6px
    );
}

.viz-bar-label {
    margin-top: 8px;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.2s;
}

.viz-bar-col:hover .viz-bar-label,
.viz-bar-col.is-active .viz-bar-label {
    color: var(--gold);
}

.viz-bar-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    font-size: 0.68rem;
    white-space: nowrap;
    z-index: 5;
    border: 1px solid rgba(212, 168, 83, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    pointer-events: none;
}

.viz-bar-col:hover .viz-bar-tooltip,
.viz-bar-col.is-active .viz-bar-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.viz-bar-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.95);
}

.viz-bar-tooltip span { display: block; font-weight: 700; font-size: 0.74rem; color: var(--gold-light); }
.viz-bar-tooltip small { display: block; color: var(--muted); font-size: 0.6rem; margin-top: 2px; }

.viz-bar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted);
    position: relative;
    z-index: 1;
}

.viz-bar-footer i { color: #4ade80; margin-right: 4px; }
.viz-bar-footer strong { color: var(--text); font-weight: 700; }

.rev-bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* ===== HOME GRID ===== */
.home-columns { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.panel {
    background: #121e32;
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    padding: 1rem; margin-bottom: 0;
}
.panel-gold { border-color: rgba(212,168,83,0.2); }
.panel-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.85rem;
}
.panel-head h2 {
    margin: 0; font-size: 0.92rem; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.panel-head h2 i { color: var(--gold); }
.live-dot {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.65rem; font-weight: 700; color: #f87171; text-transform: uppercase;
}
.pulse-dot {
    width: 6px; height: 6px; background: #f87171; border-radius: 50%;
}

.overview-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem;
}
.overview-card {
    display: flex; align-items: center; gap: 10px;
    padding: 0.8rem; border-radius: 12px; border: 1px solid var(--glass-border);
}
.overview-card > i { font-size: 1.1rem; width: 24px; text-align: center; }
.overview-card strong { display: block; font-size: 0.88rem; font-weight: 800; line-height: 1.2; }
.overview-card small { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; }
.oc-pending { background: rgba(251,191,36,0.05); }
.oc-pending > i { color: #fbbf24; }
.oc-success { background: rgba(74,222,128,0.05); }
.oc-success > i { color: #4ade80; }
.oc-team { background: rgba(56,189,248,0.05); }
.oc-team > i { color: #38bdf8; }
.oc-gold { background: rgba(212,168,83,0.06); }
.oc-gold > i { color: var(--gold); }

/* Services list */
.service-list { display: flex; flex-direction: column; gap: 6px; }
.service-row {
    display: flex; align-items: center; gap: 12px;
    padding: 0.85rem 1rem; border-radius: 12px;
    background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border);
    text-decoration: none; color: var(--text); cursor: pointer;
    transition: border-color 0.2s, transform 0.2s; width: 100%; text-align: left;
}
.service-row:hover { border-color: rgba(212,168,83,0.25); color: var(--gold); }
.sr-icon {
    width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
    background: rgba(74,222,128,0.15); color: #4ade80;
    display: flex; align-items: center; justify-content: center;
}
.sr-text { flex: 1; min-width: 0; }
.sr-text strong { display: block; font-size: 0.88rem; }
.sr-text small { color: var(--muted); font-size: 0.72rem; }
.sr-arrow { color: var(--muted); font-size: 0.7rem; }
.sr-badge {
    padding: 0.25rem 0.5rem; border-radius: 50px; font-size: 0.62rem; font-weight: 700;
    background: rgba(74,222,128,0.12); color: #4ade80;
}
.sr-badge .dot { display: inline-block; width: 5px; height: 5px; background: #4ade80; border-radius: 50%; margin-right: 3px; }
.service-row-featured { border-color: rgba(74,222,128,0.25); }

.si-blue { background: rgba(56,189,248,0.12) !important; color: #38bdf8 !important; }
.si-purple { background: rgba(167,139,250,0.12) !important; color: #a78bfa !important; }
.si-gold { background: rgba(212,168,83,0.12) !important; color: var(--gold) !important; }
.si-green { background: rgba(74,222,128,0.12) !important; color: #4ade80 !important; }
.si-pink { background: rgba(244,114,182,0.12) !important; color: #f472b6 !important; }
.si-teal { background: rgba(45,212,191,0.12) !important; color: #2dd4bf !important; }
.si-orange { background: rgba(251,146,60,0.12) !important; color: #fb923c !important; }
.si-cyan { background: rgba(34,211,238,0.12) !important; color: #22d3ee !important; }

/* Referral & Support (legacy) */
.referral-desc { font-size: 0.82rem; color: var(--muted); margin: 0 0 0.75rem; }
.referral-input {
    width: 100%; padding: 0.65rem 0.85rem; margin-bottom: 8px;
    background: rgba(0,0,0,0.3); border: 1px solid rgba(212,168,83,0.2);
    border-radius: 10px; color: var(--text); font-size: 0.76rem;
}
.referral-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 0.75rem; }
.referral-code-display {
    text-align: center; padding: 0.6rem; background: rgba(0,0,0,0.25); border-radius: 10px;
}
.referral-code-display small { display: block; font-size: 0.68rem; color: var(--muted); }
.referral-code-display code { color: var(--gold); font-size: 1rem; font-weight: 700; letter-spacing: 1.5px; }
.support-list { display: flex; flex-direction: column; gap: 6px; }
.support-link {
    display: flex; align-items: center; gap: 10px;
    padding: 0.7rem 0.85rem; border-radius: 10px;
    background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border);
    color: var(--text); text-decoration: none; font-size: 0.85rem; font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
}
.support-link:hover { border-color: rgba(212,168,83,0.25); color: var(--gold); }
.support-link i { width: 18px; text-align: center; color: var(--gold); }
.contact-wa i { color: #25d366 !important; }
.contact-tg i { color: #0088cc !important; }

/* ===== INVITE & EARN (modern) ===== */
.invite-live-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.invite-earn-card {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    border-radius: 14px;
    background: #121e32;
    border: 1px solid var(--glass-border);
}

.invite-earn-glow { display: none; }

.invite-earn-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.15rem;
    position: relative;
}

.invite-earn-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--gold);
    color: #0a1628;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.invite-earn-head h2 {
    margin: 0 0 2px;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.invite-earn-head p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.invite-link-box {
    position: relative;
    margin-bottom: 0.85rem;
}

.invite-link-box label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.invite-link-box label i { color: var(--gold); margin-right: 4px; }

.invite-link-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.invite-link-input {
    flex: 1;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 168, 83, 0.2);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font-size: 0.74rem;
    min-width: 0;
}

.invite-copy-btn {
    width: 36px;
    flex-shrink: 0;
    border: 1px solid rgba(212, 168, 83, 0.25);
    border-radius: 9px;
    background: rgba(212, 168, 83, 0.1);
    color: var(--gold);
    cursor: pointer;
    font-size: 0.8rem;
}

.invite-share-btn {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 9px;
    background: var(--gold);
    color: #0a1628;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.invite-code-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(212, 168, 83, 0.25);
}

.icp-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    flex-shrink: 0;
}

.invite-code-pill code {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: 2px;
    text-align: center;
}

.icp-copy {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    cursor: pointer;
    flex-shrink: 0;
}

.icp-copy:hover { color: var(--gold); }

.invite-social-label {
    display: block;
    text-align: center;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.invite-social-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-btn:hover { color: #fff; }

.social-wa { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.social-fb { background: rgba(24, 119, 242, 0.15); color: #1877f2; }
.social-in { background: rgba(10, 102, 194, 0.15); color: #0a66c2; }
.social-ig { background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(131, 58, 180, 0.15)); color: #e1306c; }
.social-tt { background: rgba(255, 255, 255, 0.08); color: #fff; }
.social-sc { background: rgba(255, 252, 0, 0.12); color: #fffc00; }

/* ===== LIVE MARKET + CHAT ===== */
.live-market-card {
    padding: 1rem;
    border-radius: 14px;
    background: #121e32;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.live-market-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    gap: 0.5rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
}

.live-market-head h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.live-market-price {
    font-size: 0.88rem;
    font-weight: 800;
    color: #4ade80;
    font-family: 'Plus Jakarta Sans', sans-serif;
    white-space: nowrap;
}

.live-market-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .live-market-body { grid-template-columns: 1.2fr 1fr; }
}

.live-chart-wrap {
    position: relative;
    height: 120px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.live-chart-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.live-chart-line {
    filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.4));
    transition: d 0.4s ease;
}

.live-chart-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100% 24px, 40px 100%;
    pointer-events: none;
}

.live-chat-panel {
    display: flex;
    flex-direction: column;
    min-height: 120px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.live-chat-head {
    padding: 0.45rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.live-chat-head i { color: #60a5fa; margin-right: 4px; }

.live-chat-feed {
    flex: 1;
    padding: 0.45rem 0.55rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 100px;
}

.live-chat-msg {
    font-size: 0.68rem;
    line-height: 1.35;
    padding: 0.3rem 0.45rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-chat-msg strong { color: var(--gold); font-weight: 600; margin-right: 4px; }
.live-chat-msg.buy strong { color: #4ade80; }
.live-chat-msg.sell strong { color: #f87171; }

.menu-icon.icon-support { background: rgba(59, 130, 246, 0.12) !important; color: #60a5fa !important; }

/* ===== BUTTONS ===== */
.btn-dash {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 0.6rem 1rem; border-radius: 10px;
    font-weight: 700; font-size: 0.84rem; border: none;
    cursor: pointer; text-decoration: none;
    background: linear-gradient(135deg, #b8922f, #e8c56a 45%, #f5e0a3);
    border: 1px solid rgba(245, 224, 163, 0.4);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(184, 146, 47, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-dash i { font-size: 0.98rem; }
.btn-dash:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 14px 26px rgba(184, 146, 47, 0.36); }
.btn-dash-primary {
    background: linear-gradient(135deg, #f5e0a3, #e8c56a);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(232, 197, 106, 0.3);
}
.btn-dash-primary:hover { background: var(--gold-light); color: #ffffff; }
.btn-dash-glass {
    background: rgba(232, 197, 106, 0.12); border: 1px solid rgba(232, 197, 106, 0.35); color: var(--gold-light);
}
.btn-dash-glass:hover { border-color: rgba(245, 224, 163, 0.55); color: var(--gold); }
.btn-dash-deposit {
    background: linear-gradient(135deg, #b8922f, #e8c56a);
    color: #ffffff;
    border: 1px solid rgba(245, 224, 163, 0.45);
    box-shadow: 0 10px 22px rgba(184, 146, 47, 0.3);
}
.btn-dash-deposit:hover {
    background: linear-gradient(135deg, #e8c56a, #f5e0a3);
    color: #ffffff;
}
.btn-dash-withdraw {
    background: linear-gradient(135deg, #c4a035, #e8c56a);
    color: #ffffff;
    border: 1px solid rgba(245, 224, 163, 0.45);
    box-shadow: 0 10px 22px rgba(184, 146, 47, 0.3);
}
.btn-dash-withdraw:hover {
    background: linear-gradient(135deg, #e8c56a, #f5e0a3);
    color: #ffffff;
    border-color: rgba(245, 224, 163, 0.65);
}
.btn-dash-app {
    background: linear-gradient(135deg, #b8922f 0%, #e8c56a 45%, #f5e0a3 100%);
    color: #ffffff;
    border: 1px solid rgba(245, 224, 163, 0.55);
    box-shadow: 0 10px 24px rgba(184, 146, 47, 0.32);
}
.btn-dash-app:hover {
    background: linear-gradient(135deg, #e8c56a 0%, #f5e0a3 100%);
    color: #ffffff;
}
.btn-dash-sm { padding: 0.5rem 0.85rem; font-size: 0.78rem; }
.btn-dash-block { width: 100%; }
.btn-icon-round {
    width: 30px; height: 30px; border-radius: 8px;
    border: 1px solid rgba(212,168,83,0.25); background: rgba(212,168,83,0.08);
    color: var(--gold); cursor: pointer; font-size: 0.8rem;
}

/* ===== iOS GLASS MOBILE BOTTOM NAV ===== */
.mobile-quick-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
    display: flex; justify-content: space-around;
    padding: 0.4rem 0.35rem calc(0.4rem + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(232, 197, 106, 0.12);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}
.mobile-nav-item {
    flex: 1;
    max-width: 88px;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 0.4rem 0.5rem; color: var(--muted); text-decoration: none;
    font-size: 0.62rem; font-weight: 600; border-radius: var(--pill-radius);
    transition: color 0.2s, background 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.mobile-nav-item i { font-size: 1.05rem; color: var(--nav-accent); opacity: 0.75; }
.mobile-nav-item.active {
    color: var(--text);
    background: rgba(232, 197, 106, 0.12);
    border: 1px solid rgba(232, 197, 106, 0.2);
}
.mobile-nav-item.active i { opacity: 1; color: var(--gold-light); }
.mobile-nav-item:hover { color: var(--text); }

.dock-item-app {
    background: linear-gradient(155deg, rgba(49, 112, 255, 0.32), rgba(26, 44, 108, 0.78));
    border-color: rgba(125, 211, 252, 0.55);
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.24), 0 10px 20px rgba(13, 30, 89, 0.32);
}
.dock-item-plan {
    background: linear-gradient(155deg, rgba(250, 204, 21, 0.3), rgba(120, 53, 15, 0.72));
    border-color: rgba(253, 230, 138, 0.58);
    box-shadow: inset 0 0 0 1px rgba(253, 230, 138, 0.2), 0 10px 20px rgba(120, 53, 15, 0.28);
}
.dock-item-team {
    background: linear-gradient(155deg, rgba(34, 211, 238, 0.28), rgba(12, 74, 110, 0.78));
    border-color: rgba(125, 211, 252, 0.55);
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.18), 0 10px 20px rgba(8, 47, 73, 0.28);
}
.dock-item-reward {
    background: linear-gradient(155deg, rgba(250, 204, 21, 0.28), rgba(120, 53, 15, 0.72));
    border-color: rgba(253, 230, 138, 0.5);
    box-shadow: inset 0 0 0 1px rgba(253, 230, 138, 0.18), 0 10px 20px rgba(120, 53, 15, 0.25);
}

/* App Download card — single CTA on dashboard home */
.dash-app-download-card {
    position: relative;
    margin: 1rem 0 1.25rem;
    padding: 1.1rem 1.25rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(48, 79, 254, 0.18), rgba(10, 22, 40, 0.92) 55%);
    border: 1px solid rgba(125, 211, 252, 0.35);
    overflow: hidden;
}
.dash-app-download-glow {
    position: absolute;
    top: -40px;
    right: -20px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(68, 225, 255, 0.25), transparent 70%);
    pointer-events: none;
}
.dash-app-download-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.dash-app-download-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.dash-app-download-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.dash-app-download-text {
    flex: 1;
    min-width: 160px;
}
.dash-app-download-text h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-app-download-text h3 i { color: #7dd3fc; font-size: 0.95rem; }
.dash-app-download-text p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.4;
}
.dash-app-download-inner .btn-dash-app {
    margin-left: auto;
    white-space: nowrap;
}
@media (max-width: 575px) {
    .dash-app-download-inner .btn-dash-app {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }
}

.dock-item-app .dock-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.05rem;
    box-shadow: 0 6px 14px rgba(56, 189, 248, 0.28);
}
.dock-item-app .dock-icon i {
    font-size: 1.08rem;
}

/* ===== SUB PAGES ===== */
.page-hero { margin-bottom: 1.25rem; }
.page-hero h2 {
    font-size: 1.3rem; font-weight: 800; margin: 0 0 0.25rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex; align-items: center; gap: 8px;
}
.page-hero h2 i { color: var(--gold); }
.page-hero p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.page-card, .dash-section-card {
    background: rgba(10, 24, 72, 0.86);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(2, 8, 26, 0.32);
}
.dash-form .form-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; }
.dash-form .form-control {
    background: rgba(0,0,0,0.3); border: 1px solid rgba(212,168,83,0.2);
    color: var(--text); border-radius: 10px;
}
.dash-form .form-control:focus {
    border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,83,0.1);
}
.dash-table { color: var(--text); }
.dash-table thead th {
    background: rgba(0,0,0,0.25); color: var(--muted);
    font-size: 0.68rem; text-transform: uppercase; border: none;
}
.modal-content.glass-card {
    background: rgba(8,14,26,0.98); color: var(--text);
    border: 1px solid rgba(212,168,83,0.2);
}

/* Deposit flow basics */
.deposit-steps { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.deposit-step { opacity: 0.4; text-align: center; }
.deposit-step.active, .deposit-step.done { opacity: 1; }
.deposit-step-panel { display: none; }
.deposit-step-panel.active { display: block; }
.deposit-plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.deposit-plan-card {
    padding: 1.2rem; border-radius: var(--radius);
    background: var(--glass); border: 2px solid var(--glass-border);
    cursor: pointer; color: inherit; width: 100%; text-align: left;
}
.deposit-plan-card:hover { border-color: rgba(212,168,83,0.4); }
.swal2-container { z-index: 11000 !important; }

/* Responsive */
@media (min-width: 768px) {
    .dash-content { padding: 1.25rem 1.5rem 2rem; }
    .rev-bottom-grid { grid-template-columns: 1fr 1fr; }
    .viz-cards-row { grid-template-columns: 1fr 1fr; }
    .overview-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 576px) {
    .rev-summary-row { grid-template-columns: 1fr; }
    .rev-metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }
    .rev-metric {
        padding: 0.82rem 0.85rem;
        border-radius: 12px;
    }
    .rev-metric strong { font-size: 0.94rem; }
    .rev-metric small { font-size: 0.64rem; }
    .rev-sum-main { order: -1; }
}

@media (min-width: 992px) {
    .overview-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .glass-nav-logo span { font-size: 0.82rem; max-width: 140px; }
}

/* ===== DASHBOARD HOME (Modern Layout) ===== */
.dash-home {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

/* Hero */
.dh-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.1rem 1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(40, 20, 10, 0.85) 0%, rgba(12, 12, 12, 0.95) 55%, rgba(8, 8, 8, 0.98) 100%);
    border: 1px solid rgba(232, 197, 106, 0.18);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}
.dh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 0% 50%, rgba(255, 80, 40, 0.12), transparent 60%);
    pointer-events: none;
}
.dh-hero-left { position: relative; z-index: 1; flex: 1; min-width: 0; }
.dh-welcome {
    margin: 0 0 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.dh-username {
    margin: 0 0 0.5rem;
    font-size: clamp(1.1rem, 4.5vw, 1.45rem);
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.15;
    color: #fff;
}
.dh-refer-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 0.55rem;
}
.dh-refer-row i { color: var(--nav-accent); font-size: 0.8rem; }
.dh-refer-row strong { color: #fff; }
.dh-membership {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.65rem;
    border-radius: var(--pill-radius);
    background: rgba(232, 197, 106, 0.1);
    border: 1px solid rgba(232, 197, 106, 0.25);
    font-size: 0.68rem;
    color: var(--muted);
}
.dh-membership i { color: var(--nav-accent); }
.dh-membership strong { color: var(--gold-light); }

/* Balance ring */
.dh-balance-ring {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 118px;
    height: 118px;
}
.dh-ring-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(from 200deg, #e8c56a, #e9d5ff, #e8c56a, rgba(232, 197, 106,0.2));
    filter: blur(6px);
    opacity: 0.65;
    animation: dhRingSpin 6s linear infinite;
}
@keyframes dhRingSpin {
    to { transform: rotate(360deg); }
}
.dh-ring-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid rgba(255, 179, 64, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem;
    box-shadow: inset 0 0 20px rgba(232, 197, 106, 0.08), 0 0 24px rgba(232, 197, 106, 0.15);
}
.dh-ring-inner small {
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    line-height: 1.2;
}
.dh-ring-inner strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gold-light);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0.15rem 0;
    line-height: 1.1;
}
.dh-view-balance {
    border: none;
    background: rgba(232, 197, 106, 0.15);
    color: var(--gold-light);
    font-size: 0.5rem;
    font-weight: 700;
    padding: 0.22rem 0.5rem;
    border-radius: var(--pill-radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
    line-height: 1.2;
}
.dh-view-balance span { white-space: nowrap; }
.dh-view-balance:active { transform: scale(0.96); }

/* Connect — 3 per row, 2 rows */
.dh-connect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.dh-cert-card {
    min-height: 0;
    padding: 0.75rem 0.4rem;
    border-color: rgba(232, 197, 106, 0.28);
    background: linear-gradient(160deg, rgba(232, 197, 106, 0.08), rgba(255, 255, 255, 0.02));
}
.dh-cert-card:hover {
    border-color: rgba(255, 179, 64, 0.5);
    box-shadow: 0 6px 20px rgba(232, 197, 106, 0.12);
}
.tone-fbr .dh-connect-icon {
    background: rgba(232, 197, 106, 0.15);
    color: #e9d5ff;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
}
.tone-secp .dh-connect-icon {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
}
.dh-connect-cta-cert { color: var(--gold-light) !important; }
.tone-secp .dh-connect-cta-cert { color: #7dd3fc !important; }

/* Action cross grid */
.dh-actions-cross {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: relative;
    padding: 28px 4px;
}
.dh-cross-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(232, 197, 106,0.2), rgba(0,0,0,0.8));
    border: 2px solid rgba(232, 197, 106, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--nav-accent);
    box-shadow: 0 0 24px rgba(232, 197, 106, 0.25);
    z-index: 2;
}
.dh-cross-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 88px;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: #fff;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(16, 18, 24, 0.92));
    border: 1px solid rgba(232, 197, 106, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.dh-cross-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232, 197, 106,0.08), transparent 60%);
    pointer-events: none;
}
.dh-cross-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 197, 106, 0.45);
    box-shadow: 0 8px 24px rgba(232, 197, 106, 0.12);
    color: #fff;
}
.dh-cross-arrow {
    position: absolute;
    font-size: 0.65rem;
    color: var(--nav-accent);
    opacity: 0.8;
}
.dh-cross-tl .dh-cross-arrow { top: 8px; right: 10px; }
.dh-cross-tr .dh-cross-arrow { top: 8px; left: 10px; }
.dh-cross-bl .dh-cross-arrow { bottom: 8px; right: 10px; }
.dh-cross-br .dh-cross-arrow { bottom: 8px; left: 10px; }
.dh-cross-icon {
    font-size: 1.15rem;
    color: var(--nav-accent);
    margin-bottom: 0.35rem;
}
.dh-cross-btn strong {
    font-size: 0.88rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: block;
}
.dh-cross-btn small {
    font-size: 0.65rem;
    color: var(--muted);
}

/* Refer bar */
/* Refer bar — responsive */
.dh-refer-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(232, 197, 106, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.dh-refer-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}
.dh-refer-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}
.dh-refer-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(232, 197, 106, 0.12);
    border: 1px solid rgba(232, 197, 106, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nav-accent);
    flex-shrink: 0;
    font-size: 0.95rem;
}
.dh-refer-body { flex: 1; min-width: 0; }
.dh-refer-body small {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nav-accent);
}
.dh-refer-url {
    margin: 0;
    font-size: 0.74rem;
    color: var(--muted);
    word-break: break-all;
    line-height: 1.45;
    max-height: 2.9em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.dh-copy-btn,
.dh-share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.55rem 0.75rem;
    border-radius: var(--pill-radius);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border: 1px solid rgba(232, 197, 106, 0.35);
}
.dh-copy-btn {
    background: rgba(232, 197, 106, 0.12);
    color: var(--gold-light);
}
.dh-share-btn {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
}
.dh-copy-btn:hover { background: rgba(232, 197, 106, 0.22); }
.dh-share-btn:hover { background: rgba(56, 189, 248, 0.18); }

/* Pending alerts on dashboard */
.dh-pending-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dh-pending-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    font-size: 0.82rem;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
    transition: transform 0.2s, border-color 0.2s;
}
.dh-pending-chip:hover { color: #fff; transform: translateX(3px); border-color: rgba(251, 191, 36, 0.55); }
.dh-pending-chip strong { color: #fcd34d; }
.dh-pending-chip .fa-chevron-right { margin-left: auto; opacity: 0.7; font-size: 0.75rem; }
.dh-pending-wd {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.08);
}
.dh-pending-wd strong { color: #fca5a5; }

@media (min-width: 520px) {
    .dh-refer-bar {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
    .dh-refer-top { flex: 1 1 220px; }
    .dh-refer-actions { flex: 0 1 auto; width: auto; min-width: 200px; }
    .dh-pending-strip {
        flex-direction: row;
    }
    .dh-pending-chip { flex: 1; }
}

/* Nav rows */
.dh-nav-list { display: flex; flex-direction: column; gap: 8px; }
.dh-nav-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(232, 197, 106, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.2s, border-color 0.2s, transform 0.18s;
}
.dh-nav-row:hover {
    background: rgba(232, 197, 106, 0.08);
    border-color: rgba(232, 197, 106, 0.3);
    transform: translateX(3px);
    color: #fff;
}
.dh-nav-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(232, 197, 106, 0.12);
    border: 1px solid rgba(232, 197, 106, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nav-accent);
    font-size: 1rem;
    flex-shrink: 0;
}
.dh-nav-text { flex: 1; min-width: 0; }
.dh-nav-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.dh-nav-text small { font-size: 0.68rem; color: var(--muted); }
.dh-nav-go {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(232, 197, 106, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nav-accent);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Connect section */
.dh-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.dh-section-head h2 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dh-section-head h2 i { color: var(--nav-accent); }
.dh-section-link {
    font-size: 0.72rem;
    font-weight: 700;
    color: #e8c56a;
    text-decoration: none;
    white-space: nowrap;
}
.dh-section-link:hover { color: #e9d5ff; }
.dh-section-link-pending {
    color: #fbbf24;
    animation: dhPendingPulse 2s ease-in-out infinite;
}
@keyframes dhPendingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}
.dh-connect-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 0.75rem 0.4rem;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(232, 197, 106, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
    font: inherit;
    width: 100%;
}
.dh-connect-card:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 197, 106, 0.35);
    color: #fff;
}
.dh-connect-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.tone-wa .dh-connect-icon { background: rgba(37, 211, 102, 0.15); color: #25d366; }
.tone-app .dh-connect-icon { background: rgba(56, 189, 248, 0.12); color: #38bdf8; }
.dh-connect-card strong {
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.25;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.dh-connect-cta {
    font-size: 0.55rem;
    color: #4ade80;
    font-weight: 600;
}
.tone-app .dh-connect-cta { color: #38bdf8; }

/* Overview — glass panel + stat cards (screenshot style) */
.dh-overview-panel {
    padding: 1rem 0.9rem 1.05rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    border: 1px solid rgba(232, 197, 106, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 36px rgba(0, 0, 0, 0.35);
}

.dh-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(232, 197, 106, 0.1);
}

.dh-overview-head h2 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.dh-overview-head h2 i {
    color: #e8c56a;
    font-size: 0.95rem;
}

.dh-overview-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #e8c56a;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.dh-overview-link:hover {
    color: #e9d5ff;
}

.dh-overview-link-go {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(232, 197, 106, 0.45);
    background: rgba(232, 197, 106, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    color: #e8c56a;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.dh-overview-link:hover .dh-overview-link-go {
    background: rgba(232, 197, 106, 0.18);
    border-color: rgba(232, 197, 106, 0.65);
}

.dh-overview-link-pending {
    color: #fbbf24;
    animation: dhPendingPulse 2s ease-in-out infinite;
}

.dh-overview-link-pending .dh-overview-link-go {
    border-color: rgba(251, 191, 36, 0.5);
    color: #fbbf24;
}

.dh-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.dh-stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 108px;
    padding: 0.65rem 0.55rem 0.6rem;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(232, 197, 106, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.dh-stat-card:hover {
    border-color: rgba(232, 197, 106, 0.32);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

.dh-stat-corner {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 16px;
    height: 16px;
    border-right: 2.5px solid #e8c56a;
    border-bottom: 2.5px solid #e8c56a;
    border-radius: 0 0 5px 0;
    opacity: 0.9;
    pointer-events: none;
}

.dh-stat-top {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 0.45rem;
}

.dh-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(232, 197, 106, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8c56a;
    font-size: 0.82rem;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dh-stat-labels {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 1;
    min-width: 0;
    line-height: 1.15;
    text-align: right;
}

.dh-stat-tag {
    font-size: 0.48rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
}

.dh-stat-name {
    font-size: 0.52rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.dh-stat-value {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.15;
    letter-spacing: -0.02em;
    word-break: break-word;
    padding-right: 14px;
}

.dh-stat-value-num {
    font-size: 0.95rem;
}

@media (max-width: 520px) {
    .dh-hero {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .dh-balance-ring {
        margin-left: auto;
        margin-right: auto;
    }
    .dh-refer-bar {
        flex-wrap: wrap;
    }
    .dh-refer-body {
        flex: 1 1 100%;
        order: unset;
    }
    .dh-copy-btn {
        flex: 1 1 auto;
        justify-content: center;
        min-width: 88px;
    }
}

@media (max-width: 380px) {
    .dh-balance-ring { width: 108px; height: 108px; }
    .dh-ring-inner strong { font-size: 0.82rem; }
    .dh-view-balance { font-size: 0.48rem; padding: 0.18rem 0.4rem; }
    .dh-cross-btn { min-height: 80px; padding: 0.7rem 0.8rem; }
    .dh-connect-grid { gap: 6px; }
    .dh-connect-card { padding: 0.6rem 0.3rem; min-height: 88px; }
    .dh-connect-card strong { font-size: 0.55rem; }
    .dh-connect-cta { font-size: 0.5rem; }
    .dh-connect-icon { width: 32px; height: 32px; font-size: 0.95rem; }
    .tone-fbr .dh-connect-icon,
    .tone-secp .dh-connect-icon { width: 34px; height: 34px; font-size: 1rem; }
    .dh-stats-grid { gap: 6px; }
    .dh-stat-card { min-height: 96px; padding: 0.55rem 0.45rem 0.5rem; }
    .dh-stat-icon { width: 30px; height: 30px; font-size: 0.72rem; }
    .dh-stat-tag { font-size: 0.44rem; }
    .dh-stat-name { font-size: 0.48rem; }
    .dh-stat-value { font-size: 0.68rem; }
    .dh-stat-value-num { font-size: 0.82rem; }
    .dh-stat-corner { width: 13px; height: 13px; }
    .dh-overview-panel { padding: 0.85rem 0.75rem 0.9rem; }
    .dh-overview-link span:first-child { max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
}

@media (min-width: 768px) {
    .dash-home { max-width: 520px; margin: 0 auto; }
}

/* App Download Modal */
.app-dl-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.app-dl-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.app-dl-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}
.app-dl-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(30, 20, 12, 0.98), rgba(8, 8, 8, 0.99));
    border: 1px solid rgba(232, 197, 106, 0.3);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    text-align: center;
    transform: translateY(16px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.app-dl-modal.open .app-dl-card {
    transform: translateY(0) scale(1);
}
.app-dl-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.app-dl-close:hover { background: rgba(232, 197, 106, 0.15); color: #e8c56a; }
.app-dl-logo-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;
    border-radius: 50%;
}
.app-dl-logo-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #e8c56a);
    opacity: 0.35;
    filter: blur(8px);
}
.app-dl-logo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #050a12;
    border: 2px solid rgba(212, 175, 55, 0.45);
    padding: 0;
}
.app-dl-title {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #fff;
}
.app-dl-title span { color: #e8c56a; }
.app-dl-sub {
    margin: 0 0 1.25rem;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.45;
}
.app-dl-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.app-dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.app-dl-btn-channel {
    background: rgba(0, 136, 204, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}
.app-dl-btn-channel:hover { color: #7dd3fc; transform: translateY(-2px); }
.app-dl-btn-install {
    background: linear-gradient(135deg, #e8c56a, #e9d5ff);
    color: #0a0a0a;
    box-shadow: 0 8px 24px rgba(232, 197, 106, 0.35);
}
.app-dl-btn-install:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(232, 197, 106, 0.45); }
.app-dl-btn-install:disabled { opacity: 0.5; cursor: not-allowed; }
.app-dl-note {
    margin: 1rem 0 0;
    font-size: 0.72rem;
    color: #64748b;
}
.app-dl-page-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}
.app-dl-page-placeholder i { font-size: 2rem; color: #e8c56a; display: block; margin-bottom: 0.75rem; }
.app-dl-page-placeholder a { color: #e8c56a; text-decoration: none; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
