/* === NCPays Design System === */
/* Mobile First | Dark Mode | Ultra Light */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Deep Space Background */
    --bg-deep:     #060A14;
    --bg-primary:  #0B0F1E;
    --bg-elevated: #111628;
    --bg-surface:  #161B2E;

    /* Glass Effects */
    --glass-bg:    rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.07);

    /* Legacy compatibility */
    --bg-secondary: var(--bg-elevated);
    --bg-card: var(--bg-surface);
    --bg-card-hover: #1e2540;

    /* Accent Palette */
    --accent-1:      #4F46E5;
    --accent-blue:   #4F46E5;
    --accent-purple: #7C3AED;
    --accent-cyan:   #22D3EE;
    --accent-green:  #10B981;
    --accent-amber:  #F59E0B;
    --accent-rose:   #F43F5E;

    --success: #10B981;
    --danger:  #F43F5E;
    --warning: #F59E0B;
    --info:    #22D3EE;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #22D3EE 100%);
    --gradient-success: linear-gradient(135deg, #10B981, #22D3EE);
    --gradient-danger:  linear-gradient(135deg, #F43F5E, #E11D48);
    --gradient-gold:    linear-gradient(135deg, #F59E0B, #D97706, #B45309);
    --accent-gradient:  var(--gradient-primary);

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border: var(--glass-border);
    --border-active: rgba(99, 102, 241, 0.5);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    --nav-height: 72px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
}

a { color: var(--accent-1); text-decoration: none; }
a:hover { color: var(--accent-2); }

/* === Layout === */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container { max-width: 720px; }
}

@media (min-width: 1024px) {
    .container { max-width: 960px; }
}

/* === Page Header === */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 12px;
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 90;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
}

/* === Cards === */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:active {
    transform: scale(0.98);
}

.card-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.card-gradient {
    background: var(--accent-gradient);
    border: none;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover { border-color: var(--accent-1); color: var(--accent-1); }

.btn-sm {
    padding: 8px 16px;
    min-height: 36px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 14px 32px;
    min-height: 52px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* === Bottom Navigation === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    padding-bottom: var(--safe-bottom);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: var(--text-muted);
    font-size: 0.625rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.nav-item.active {
    color: var(--accent-1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 0 0 4px 4px;
}

.nav-icon {
    font-size: 1.25rem;
    line-height: 1;
}

/* === Stat Boxes === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Badges === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.badge-primary { background: rgba(99, 102, 241, 0.15); color: var(--accent-1); }

/* === Forms === */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    transition: border-color 0.2s;
    min-height: 48px;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-error {
    font-size: 0.75rem;
    color: var(--danger);
    margin-top: 4px;
}

/* === Progress Bar === */
.progress-bar {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* === Lists === */
.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.list-item:last-child { border-bottom: none; }

.list-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.list-content { flex: 1; min-width: 0; }
.list-title { font-size: 0.875rem; font-weight: 500; }
.list-subtitle { font-size: 0.75rem; color: var(--text-muted); }
.list-value { text-align: right; flex-shrink: 0; }

/* === Tab system === */
.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    flex: 1;
    min-width: fit-content;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.tab.active {
    background: var(--accent-1);
    color: #fff;
}

/* === Skeleton Loading === */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-in {
    animation: fadeIn 0.3s ease forwards;
}

.animate-slide {
    animation: slideUp 0.4s ease forwards;
}

/* === Trading Chart === */
.chart-container {
    width: 100%;
    height: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* === Predict Buttons === */
.predict-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.btn-up {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 16px;
    border-radius: var(--radius-lg);
}

.btn-down {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 16px;
    border-radius: var(--radius-lg);
}

/* === Mission Card === */
.mission-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.mission-card.completed {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.mission-icon { font-size: 1.5rem; flex-shrink: 0; }
.mission-info { flex: 1; }
.mission-title { font-size: 0.875rem; font-weight: 600; }
.mission-desc { font-size: 0.75rem; color: var(--text-muted); }

.mission-progress {
    margin-top: 6px;
}

.mission-reward {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-1);
    text-align: right;
}

/* === Network Tree === */
.tree-level {
    margin-bottom: 12px;
}

.tree-level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    cursor: pointer;
}

.tree-users {
    padding: 8px 0 0 20px;
    display: none;
}

.tree-users.open { display: block; }

/* === Rank Badge === */
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 600;
}

/* === Wheel === */
.wheel-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.wheel-pointer {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* === Alert / Toast === */
.toast {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 200;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--danger); color: #fff; }
.toast-info { background: var(--info); color: #fff; }

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

/* === Utilities === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-1); }
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.text-sm { font-size: 0.8125rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.hidden { display: none; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ============================================
   DESKTOP / LAPTOP RESPONSIVE (768px+)
   ============================================ */

/* Landing page full-width */
.landing-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.landing-hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(6,182,212,0.06) 0%, transparent 60%);
    animation: bgShift 20s ease infinite alternate;
}

@keyframes bgShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-5%, 5%); }
}

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.landing-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}

.landing-nav-links {
    display: flex;
    gap: 12px;
}

.landing-section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.landing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-1);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.landing-footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* Desktop two-column layouts */
.desktop-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Sidebar nav for desktop */
.desktop-sidebar {
    display: none;
}

@media (min-width: 768px) {
    .landing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-hero h1 {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .desktop-grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .chart-container {
        height: 380px;
    }

    .container {
        max-width: 720px;
    }

    .toast {
        max-width: 400px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-100px);
    }
    .toast.show {
        transform: translateX(-50%) translateY(0);
    }
}

@media (min-width: 1024px) {
    .landing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    body.has-sidebar {
        padding-left: 240px;
        padding-bottom: 16px;
    }

    body.has-sidebar .bottom-nav {
        display: none;
    }

    .desktop-sidebar {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 240px;
        background: var(--bg-secondary);
        border-right: 1px solid var(--border);
        padding: 20px 0;
        z-index: 101;
        overflow-y: auto;
    }

    .sidebar-logo {
        padding: 0 20px 20px;
        font-size: 1.25rem;
        font-weight: 800;
        border-bottom: 1px solid var(--border);
        margin-bottom: 12px;
    }

    .sidebar-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        transition: all 0.2s;
        border-left: 3px solid transparent;
    }

    .sidebar-item:hover {
        color: var(--text-primary);
        background: var(--bg-card);
    }

    .sidebar-item.active {
        color: var(--accent-1);
        background: rgba(99, 102, 241, 0.08);
        border-left-color: var(--accent-1);
    }

    .sidebar-icon { font-size: 1.125rem; width: 24px; text-align: center; }

    .container {
        max-width: 900px;
    }

    .chart-container {
        height: 420px;
    }

    .card:hover {
        box-shadow: var(--shadow-md);
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1060px;
    }

    .landing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Price ticker animation */
@keyframes tickerGreen {
    0% { color: var(--text-primary); }
    50% { color: var(--success); }
    100% { color: var(--text-primary); }
}
@keyframes tickerRed {
    0% { color: var(--text-primary); }
    50% { color: var(--danger); }
    100% { color: var(--text-primary); }
}
.price-up { animation: tickerGreen 0.6s ease; }
.price-down { animation: tickerRed 0.6s ease; }

/* Live dot */
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    display: inline-block;
    animation: pulse 1.5s ease infinite;
}

/* Referral section */
.ref-level-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.ref-level-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.ref-level-info { flex: 1; }
.ref-level-percent {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--accent-1);
}

/* =========================================================
   NEO-VAULT: PREMIUM REDESIGN MODULES
   ========================================================= */

/* Overrides for main app layout */
body {
    background: var(--bg-deep) radial-gradient(circle at 50% -20%, rgba(79, 70, 229, 0.15) 0%, transparent 60%);
    background-attachment: fixed;
}

/* Neo Header */
.neo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 24px;
}

.neo-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.neo-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    padding: 2px;
    background: var(--gradient-primary);
}

.neo-avatar img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--bg-primary);
}

.live-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--success);
    border: 2px solid var(--bg-primary);
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

.neo-greeting .greeting-text {
    font-size: 0.75rem;
    margin-bottom: 2px;
}

.neo-greeting .user-name {
    font-size: 1.125rem;
    line-height: 1.2;
}

.neo-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vip-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.vip-icon {
    width: 14px;
    height: 14px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--glass-hover);
}

.icon-btn i {
    width: 20px;
    height: 20px;
}

.notification-dot {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 6px;
    height: 6px;
    background: var(--danger);
    border-radius: var(--radius-full);
}

/* Glass Card */
.neo-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

/* Alerts */
.neo-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    background: var(--glass-bg);
    border-left: 4px solid var(--accent-1);
}

.alert-warning { border-left-color: var(--warning); background: rgba(245, 158, 11, 0.05); }
.alert-danger { border-left-color: var(--danger); background: rgba(244, 63, 94, 0.05); }

.alert-icon {
    color: var(--accent-1);
    flex-shrink: 0;
}
.alert-warning .alert-icon { color: var(--warning); }
.alert-danger .alert-icon { color: var(--danger); }

.alert-title { font-weight: 700; font-size: 0.875rem; margin-bottom: 4px; }
.alert-desc { font-size: 0.8125rem; color: var(--text-muted); }

/* Dim Backgrounds for Icons */
.bg-warning-dim { background: rgba(245, 158, 11, 0.15); }
.bg-success-dim { background: rgba(16, 185, 129, 0.15); }
.bg-danger-dim { background: rgba(244, 63, 94, 0.15); }
.bg-accent-dim { background: rgba(79, 70, 229, 0.15); }
.bg-glass { background: var(--glass-bg); }

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Card */
.neo-hero-card {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    margin-bottom: 24px;
}

.hero-bg-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent-purple);
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    transition: filter 0.3s;
}

.balance-amount .currency-symbol {
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.6;
    margin-right: 4px;
}

.blur-text {
    filter: blur(8px);
}

.balance-stats {
    display: flex;
    gap: 12px;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Quick Action Orbits */
.neo-orbits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.orbit-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.2s;
}

.orbit-btn:active {
    transform: scale(0.92);
}

.orbit-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.orbit-btn span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.bg-gradient-blue { background: linear-gradient(135deg, #4F46E5, #3B82F6); }
.bg-gradient-cyan { background: linear-gradient(135deg, #06B6D4, #22D3EE); }
.bg-gradient-purple { background: linear-gradient(135deg, #7C3AED, #A855F7); }
.bg-gradient-rose { background: linear-gradient(135deg, #E11D48, #F43F5E); }

/* Stats Row */
.neo-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    width: 20px;
    height: 20px;
}

.stat-details {
    flex: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 700;
}

/* Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
}

.section-link {
    font-size: 0.8125rem;
    color: var(--accent-1);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-link i {
    width: 14px;
    height: 14px;
}

/* Horizontal Scroll */
.neo-horizontal-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.neo-horizontal-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.neo-wallet-card {
    min-width: 220px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    flex-shrink: 0;
}

.currency-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Daily Missions Widget */
.missions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.neo-mission-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
}

.neo-mission-item.completed {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.mission-details {
    flex: 1;
}

.mission-title {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.mission-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.mission-progress-bar .progress-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
}

.neo-mission-item.completed .progress-fill {
    background: var(--success);
}

.mission-status {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-1);
}

/* Timeline */
.neo-timeline {
    padding: 20px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-icon i {
    width: 18px;
    height: 18px;
}

.timeline-content {
    flex: 1;
    padding-top: 10px;
}

/* Referral Banner */
.neo-referral-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.neo-referral-banner::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>') no-repeat right -50px top -50px;
    background-size: 200px;
    opacity: 0.5;
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.ref-input-group {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-md);
    padding: 4px;
    max-width: 280px;
}

.ref-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 12px;
    font-size: 0.75rem;
    outline: none;
}

.ref-copy-btn {
    background: #fff;
    color: var(--accent-purple);
    border: none;
    border-radius: var(--radius-sm);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ref-copy-btn i {
    width: 16px;
    height: 16px;
}

.banner-icon {
    font-size: 4rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
    margin-left: 16px;
    color: rgba(255,255,255,0.8);
}
.banner-icon i {
    width: 64px;
    height: 64px;
}

/* Floating Bottom Navigation (Mobile) */
@media (max-width: 1023px) {
    body {
        padding-bottom: calc(var(--nav-height) + 24px);
    }
    
    .bottom-nav {
        bottom: 16px;
        left: 16px;
        right: 16px;
        border-radius: var(--radius-xl);
        background: rgba(17, 22, 40, 0.85);
        border: 1px solid rgba(255,255,255,0.1);
        height: var(--nav-height);
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    }
    
    .nav-item {
        color: var(--text-muted);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-item i {
        width: 22px;
        height: 22px;
        margin-bottom: 4px;
        transition: transform 0.3s;
    }
    
    .nav-item.active {
        color: #fff;
    }
    
    .nav-item.active i {
        color: var(--accent-cyan);
        transform: translateY(-2px);
    }
    
    .nav-item.active::before {
        display: none;
    }
    
    .nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 8px;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--accent-cyan);
        box-shadow: 0 0 10px var(--accent-cyan);
    }
}

/* Sidebar Redesign (Desktop) */
@media (min-width: 1024px) {
    .desktop-sidebar {
        background: var(--bg-surface);
        border-right: 1px solid var(--glass-border);
        width: 260px;
    }
    
    body.has-sidebar {
        padding-left: 260px;
    }
    
    .sidebar-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 24px;
        border-bottom: 1px solid var(--glass-border);
        margin-bottom: 16px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        background: var(--accent-gradient);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
    }
    
    .sidebar-menu {
        padding: 0 16px;
    }
    
    .menu-label {
        font-size: 0.6875rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--text-muted);
        font-weight: 700;
        margin-bottom: 8px;
        padding-left: 12px;
    }
    
    .sidebar-item {
        border-radius: var(--radius-md);
        margin-bottom: 4px;
        border-left: none;
    }
    
    .sidebar-item.active {
        background: rgba(79, 70, 229, 0.1);
        color: var(--accent-1);
    }
    
    .sidebar-icon {
        width: 20px;
        height: 20px;
    }
    
    .sidebar-logout {
        padding: 16px;
        border-top: 1px solid var(--glass-border);
    }
    
    .logout-btn {
        width: 100%;
        color: var(--danger);
        background: rgba(244, 63, 94, 0.05);
    }
    
    .logout-btn:hover {
        background: rgba(244, 63, 94, 0.1);
        color: var(--danger);
    }
}
