/* Vantage Markets TradingBot - Master Theme: Vantage Deep Petrol & Coral Luxury Glassmorphism */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --bg-dark-raw: #05070f;
    --bg-dark-body: #070c18;
    --bg-dark-panel: #0a1122;
    --bg-glass-card: rgba(10, 17, 34, 0.50);
    --bg-glass-card-hover: rgba(16, 26, 52, 0.68);
    
    /* Vantage Favicon Signature Palette */
    --vantage-teal: #034b57;
    --vantage-orange: #df562c;
    
    /* Luminescent Brand Accents for High-Contrast Dark UI */
    --neon-cyan: #009eb3;
    --neon-cyan-glow: rgba(0, 158, 179, 0.35);
    
    --neon-purple: #df562c;
    --neon-purple-glow: rgba(223, 86, 44, 0.35);
    
    --neon-pink: #f97316;
    
    --neon-gold: #f59e0b;
    --neon-gold-glow: rgba(245, 158, 11, 0.3);
    
    --neon-emerald: #10b981;
    --neon-emerald-glow: rgba(16, 185, 129, 0.25);
    
    --neon-rose: #f43f5e;
    --neon-rose-glow: rgba(244, 63, 94, 0.25);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-neon-cyan: rgba(0, 158, 179, 0.22);
    --border-neon-purple: rgba(223, 86, 44, 0.20);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --shadow-neon: 0 0 25px rgba(0, 158, 179, 0.16);
}

/* ═══════════════════════════════════════════════════════════
   LIGHT THEME DESIGN SYSTEM (Vantage Institutional White UI)
   ═══════════════════════════════════════════════════════════ */
body.light-theme {
    --bg-dark-raw: #f8fafc;
    --bg-dark-body: #ffffff;
    --bg-dark-panel: #ffffff;
    --bg-glass-card: #ffffff;
    --bg-glass-card-hover: #ffffff;
    
    /* High-contrast crisp typography */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    /* Elegant slate borders & Vantage brand accents */
    --border-color: #e2e8f0;
    --border-neon-cyan: rgba(0, 158, 179, 0.22);
    --border-neon-purple: rgba(223, 86, 44, 0.20);
    
    /* Soft multi-layered institutional elevation */
    --shadow-neon: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
}

/* Base Light Theme Background */
body.light-theme {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 158, 179, 0.06) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(223, 86, 44, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
    color: #0f172a;
}

/* Light Theme Scrollbars */
body.light-theme ::-webkit-scrollbar-track {
    background: #f1f5f9;
}
body.light-theme ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
body.light-theme ::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Responsive Logo Adaptation: Dark vs Light Theme */
.vantage-logo-dark {
    display: inline-block !important;
}
.vantage-logo-light {
    display: none !important;
}

body.light-theme .vantage-logo-dark {
    display: none !important;
}
body.light-theme .vantage-logo-light {
    display: inline-block !important;
}

/* Global Reset & Body */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark-raw);
    background-image: 
        radial-gradient(at 10% 20%, rgba(0, 158, 179, 0.10) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(223, 86, 44, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-raw);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan-glow);
}

/* Layout Elements */
.layout-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
}

.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(5, 7, 15, 0.9) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid var(--border-color);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999 !important;
}

body.light-theme .mobile-header {
    background: rgba(255, 255, 255, 0.95);
}

.sidebar {
    width: 260px;
    min-width: 260px;
    background: rgba(5, 7, 15, 0.75);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

body.light-theme .sidebar {
    background: rgba(255, 255, 255, 0.85);
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nav-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.logo {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-bottom: 32px;
}

.logo span {
    color: var(--neon-purple);
    font-weight: 900;
    text-shadow: 0 0 10px var(--neon-purple-glow);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    width: 100%;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
}

.nav-links a i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 16px;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    background: rgba(6, 182, 212, 0.05);
    text-shadow: 0 0 8px var(--neon-cyan-glow);
}

body.light-theme .nav-links a:hover {
    background: rgba(6, 182, 212, 0.1);
}

.nav-links .active {
    color: var(--neon-cyan);
    font-weight: 600;
    background: rgba(6, 182, 212, 0.08);
    border-left: 3px solid var(--neon-cyan);
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
    .sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    body.light-theme .sidebar {
        box-shadow: 10px 0 30px rgba(0,0,0,0.05);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .layout-container {
        flex-direction: column;
    }
    .content-wrapper {
        padding-top: 70px; /* Offset for fixed mobile header */
    }
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-glass-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-neon-cyan);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-neon);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    background: var(--bg-glass-card-hover);
    border-color: var(--neon-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.22);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    opacity: 0.6;
}

.glass-card.purple-theme {
    border-color: var(--border-neon-purple);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.1);
}
.glass-card.purple-theme:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.18);
}
.glass-card.purple-theme::before {
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
}

.glass-card.gold-theme {
    border-color: rgba(245, 158, 11, 0.18);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.08);
}
.glass-card.gold-theme:hover {
    border-color: var(--neon-gold);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.18);
}
.glass-card.gold-theme::before {
    background: linear-gradient(90deg, var(--neon-gold), #f59e0b);
}

/* Interactive Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--neon-cyan) 30%, var(--neon-purple) 100%);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.55), 0 0 10px var(--neon-purple-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan-glow);
    transform: translateY(-1px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--neon-gold), #b45309);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--neon-gold-glow);
}
.btn-accent:hover {
    box-shadow: 0 6px 20px var(--neon-gold-glow);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--neon-rose), #9f1239);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--neon-rose-glow);
}
.btn-danger:hover {
    box-shadow: 0 6px 20px var(--neon-rose-glow);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
}

/* Glassmorphic Inputs */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.form-control {
    background: rgba(5, 7, 15, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    padding: 12px 16px;
    height: 52px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan-glow);
    background: rgba(5, 7, 15, 0.75);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2364748b' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   PWA STANDALONE MODE — Native App Experience
   ═══════════════════════════════════════════════════════════ */

/* ── Page Transition Animation ── */
@keyframes pwa-page-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.main-wrapper {
    animation: pwa-page-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── PWA Back Button (appears in mobile header for standalone) ── */
.pwa-back-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    background: rgba(6, 182, 212, 0.06);
    color: var(--neon-cyan);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.pwa-back-btn:active {
    transform: scale(0.9);
    background: rgba(6, 182, 212, 0.15);
}
.pwa-back-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}
.pwa-back-btn:hover svg {
    transform: translateX(-2px);
}
body.light-theme .pwa-back-btn {
    border-color: rgba(6, 182, 212, 0.15);
    background: rgba(6, 182, 212, 0.05);
}

/* ── PWA Bottom Navigation Bar ── */
.pwa-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: rgba(5, 7, 15, 0.92);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 8px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}
body.light-theme .pwa-bottom-nav {
    background: rgba(255, 255, 255, 0.92);
    border-top-color: rgba(0, 0, 0, 0.08);
}
.pwa-bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 500px;
    margin: 0 auto;
}
.pwa-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 10px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    min-width: 56px;
}
.pwa-nav-item i {
    font-size: 18px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.pwa-nav-item:active {
    transform: scale(0.92);
}
.pwa-nav-item.active {
    color: var(--neon-cyan);
}
.pwa-nav-item.active i {
    transform: translateY(-2px);
    text-shadow: 0 0 12px var(--neon-cyan-glow);
}
.pwa-nav-item.active::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--neon-cyan);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px var(--neon-cyan-glow);
}
body.light-theme .pwa-nav-item.active {
    color: var(--neon-cyan);
}

/* ── Standalone Mode Overrides ── */
@media (display-mode: standalone) {
    /* Safe area padding for notched devices */
    body {
        padding-top: env(safe-area-inset-top, 0px);
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }

    /* Show back button in standalone */
    .pwa-back-btn {
        display: flex;
    }

    /* Mobile header adjustments */
    .mobile-header {
        padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    }

    /* Show bottom nav on mobile in standalone mode */
    .pwa-bottom-nav {
        display: block;
    }

    /* Add bottom padding to prevent content from hiding behind nav */
    .content-wrapper {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    /* Hide the sidebar on mobile in standalone — use bottom nav instead */
    .footer-wrapper {
        padding-bottom: calc(40px + 72px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Smoother scrolling for native feel */
    .content-wrapper,
    .main-wrapper {
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent text selection for native feel on interactive elements */
    .btn, .nav-links a, .pwa-nav-item, .pwa-back-btn {
        -webkit-user-select: none;
        user-select: none;
    }

    /* No bouncy overscroll on the edges */
    html {
        overscroll-behavior: none;
    }
}

/* Also handle iOS standalone */
@media (standalone: standalone) {
    body {
        padding-top: env(safe-area-inset-top, 0px);
    }
    .pwa-back-btn { display: flex; }
    .pwa-bottom-nav { display: block; }
    .content-wrapper {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }
    .mobile-header {
        padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    }
}

/* On mobile (even non-standalone), show back button and bottom nav */
@media (max-width: 768px) {
    .pwa-back-btn.has-history {
        display: flex;
    }
    
    .pwa-bottom-nav {
        display: block !important;
    }
    
    .content-wrapper {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    }
    
    .footer-wrapper {
        padding-bottom: calc(40px + 72px + env(safe-area-inset-bottom, 0px)) !important;
    }
    
    /* Show bottom nav on mobile in standalone */
    @media (display-mode: standalone) {
        .sidebar {
            display: none !important;
        }
        .mobile-header {
            display: flex !important;
        }
    }
}

/* ── Ripple Effect for Buttons (native tap feel) ── */
@keyframes pwa-ripple {
    from { transform: scale(0); opacity: 0.4; }
    to   { transform: scale(4); opacity: 0; }
}
.pwa-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.3);
    pointer-events: none;
    animation: pwa-ripple 0.5s ease-out;
}
select.form-control:focus {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2306b6d4' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
}

.form-input-container {
    position: relative;
    width: 100%;
}

.form-input-container i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s ease;
    pointer-events: none;
    font-size: 16px;
    z-index: 2;
}

.form-input-container:focus-within i {
    color: var(--neon-cyan);
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

@media (max-width: 480px) {
    .form-row-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Chrome/Safari Autofill Styling */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0 30px #090e1a inset !important;
    transition: background-color 5000s ease-in-out 0s;
}


/* Custom Checkbox / Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(6, 182, 212, 0.15);
    border-color: var(--neon-cyan);
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

/* Containers */
.main-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
    flex-grow: 1;
    position: relative;
    z-index: 10;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
}

/* Dashboard Specific Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-3 { grid-column: span 3; }

@media (max-width: 1024px) {
    .col-8, .col-4, .col-6, .col-3 {
        grid-column: span 12;
    }
}

/* Stat Cards */
.stat-card-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .stat-card-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .stat-card-row {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--bg-glass-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: rgba(255,255,255,0.05);
}

.stat-card .label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.stat-card .value {
    font-size: 26px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.stat-card .trend {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend.up { color: var(--neon-emerald); }
.trend.down { color: var(--neon-rose); }

/* SVG Live Chart styling */
.chart-container {
    height: 150px;
    position: relative;
    width: 100%;
}

.svg-chart {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-line {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.45));
}

.chart-gradient-fill {
    opacity: 0.12;
}

/* Tables in Glass */
.table-wrapper {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.custom-table th {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.custom-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: var(--text-primary);
    vertical-align: middle;
}

.custom-table tbody tr:hover {
    background: rgba(255,255,255,0.015);
}

/* Badges styling */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--neon-emerald);
}

.badge-pending {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--neon-gold);
}

.badge-danger {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.25);
    color: var(--neon-rose);
}

/* Logging Terminal Display */
.terminal-terminal {
    background: rgba(4, 5, 10, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    height: 350px;
    overflow-y: auto;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terminal-line {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    padding-bottom: 4px;
}

.terminal-time {
    color: var(--text-muted);
    flex-shrink: 0;
}

.terminal-tag {
    font-weight: 700;
}

.terminal-tag.buy { color: var(--neon-emerald); }
.terminal-tag.sell { color: var(--neon-rose); }

.terminal-msg {
    color: var(--text-secondary);
}

/* Tickers scroll landing page */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(5,7,15,0.4);
    padding: 12px 0;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 48px;
    font-family: var(--font-mono);
    font-size: 13px;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Grid parameters sliders */
.range-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--neon-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: 0.15s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* User Profile card VIP Tier Badge */
.vip-badge {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    border: 1px solid rgba(255,255,255,0.15);
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
    box-shadow: 0 2px 10px var(--neon-cyan-glow);
}

.vip-badge.Silver {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    color: #1e293b;
    box-shadow: none;
}
.vip-badge.Gold {
    background: linear-gradient(135deg, var(--neon-gold) 0%, #b45309 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px var(--neon-gold-glow);
}
.vip-badge.Platinum {
    background: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-purple) 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(236, 72, 153, 0.35);
}

/* Challenge Target Meters */
.progress-container {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 8px;
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 99px;
    transition: width 0.6s ease;
}

.progress-bar.blue {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    box-shadow: 0 0 10px var(--neon-cyan);
}
.progress-bar.red {
    background: linear-gradient(90deg, var(--neon-rose), #be123c);
    box-shadow: 0 0 10px var(--neon-rose);
}

/* Messages styling */
.messages-container {
    max-width: 1400px;
    width: 100%;
    margin: 16px auto 0 auto;
    padding: 0 24px;
}

.alert {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--neon-emerald);
}

.alert-error {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--neon-rose);
}

.alert-info {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--neon-cyan);
}

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Landing Page Hero and layouts */
.hero-section {
    padding: 100px 0 60px 0;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(32px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 40%, var(--neon-cyan) 75%, var(--neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

@media (max-width: 600px) {
    .hero-cta {
        flex-direction: column;
        padding: 0 32px;
    }
}

/* Feature grid items on Landing */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.footer-wrapper {
    background: rgba(5,7,15,0.9);
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    margin-top: auto;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}


/* Nexas Aesthetics - Global Background Layers */
.cyber-bg-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.cyber-bg-radial {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(16, 185, 129, 0.10), transparent 55%),
                radial-gradient(ellipse at bottom, rgba(245, 176, 39, 0.08), transparent 55%);
}

.cyber-bg-grid {
    position: absolute;
    inset: 0;
    opacity: 0.10;
    background-image: linear-gradient(rgba(16, 185, 129, 0.5) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(16, 185, 129, 0.5) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(black 35%, transparent 80%);
    mask-image: radial-gradient(black 35%, transparent 80%);
}

.cyber-glow-orb-1 {
    position: absolute;
    top: 10%;
    left: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    filter: blur(120px);
    animation: orbFloat 10s ease-in-out infinite alternate;
}

.cyber-glow-orb-2 {
    position: absolute;
    top: 40%;
    right: -96px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.12);
    filter: blur(140px);
    animation: orbFloat 12s ease-in-out infinite alternate-reverse;
}

.cyber-glow-orb-3 {
    position: absolute;
    bottom: 5%;
    left: 20%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.10);
    filter: blur(120px);
    animation: orbFloat 14s ease-in-out infinite alternate;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 20px); }
}

.cyber-divider {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(to right, transparent, rgba(16, 185, 129, 0.4), transparent);
    top: 60%;
}

.cyber-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, transparent, rgba(0, 0, 0, 0.4));
}

/* Nexas Top Tickers */
.top-tickers-container {
    background: #111111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.top-tickers-scroll {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.top-tickers-scroll::-webkit-scrollbar {
    display: none;
}

.top-ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 14px;
}

.top-ticker-symbol {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.top-ticker-price {
    color: #ffffff;
    font-weight: 700;
}

.top-ticker-change {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
}
.top-ticker-change.up { color: var(--neon-emerald); }
.top-ticker-change.down { color: var(--neon-rose); }

/* Nexas Profit Marquee */
.profit-marquee-container {
    background: #0d0d0d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.profit-marquee-track {
    display: flex;
    width: max-content;
    gap: 12px;
    animation: marquee-scroll 80s linear infinite;
}

.profit-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.profit-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #161616;
    border-radius: 12px;
    padding: 8px 16px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profit-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profit-icon-wrapper.up { background: rgba(16, 185, 129, 0.2); }
.profit-icon-wrapper.down { background: rgba(244, 63, 94, 0.2); }

.profit-icon-wrapper.up i { color: var(--neon-emerald); font-size: 12px; }
.profit-icon-wrapper.down i { color: var(--neon-rose); font-size: 12px; }

.profit-user {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.profit-amount {
    font-size: 14px;
    font-weight: 700;
}
.profit-amount.up { color: var(--neon-emerald); }
.profit-amount.down { color: var(--neon-rose); }

.profit-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    margin-left: 4px;
}


/* ===========================================================
   COMPREHENSIVE WHITE UI COMPONENT SYSTEM (Vantage Institutional)
   =========================================================== */

/* -- Navigation, Sidebar & Headers in Light Theme -- */
body.light-theme header,
body.light-theme .sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 2px 0 16px rgba(15, 23, 42, 0.03) !important;
}

body.light-theme .mobile-header {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03) !important;
}

body.light-theme .nav-links a {
    color: #475569;
}

body.light-theme .nav-links a:hover {
    color: var(--neon-cyan);
    background: rgba(0, 158, 179, 0.06);
    text-shadow: none;
}

body.light-theme .nav-links .active {
    color: var(--neon-cyan);
    background: rgba(0, 158, 179, 0.08);
    border-left: 3px solid var(--neon-cyan);
    font-weight: 600;
}

/* -- Cards & Panels in Light Theme -- */
body.light-theme .glass-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
    color: #0f172a;
}

body.light-theme .glass-card:hover {
    background: #ffffff !important;
    border-color: rgba(0, 158, 179, 0.4) !important;
    box-shadow: 0 12px 28px -4px rgba(0, 158, 179, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04) !important;
    transform: translateY(-2px);
}

body.light-theme .glass-card::before {
    opacity: 0.35;
}

body.light-theme .glass-card.purple-theme {
    border-color: rgba(223, 86, 44, 0.25) !important;
    box-shadow: 0 4px 20px -2px rgba(223, 86, 44, 0.08) !important;
}
body.light-theme .glass-card.purple-theme:hover {
    border-color: var(--neon-purple) !important;
    box-shadow: 0 12px 28px -4px rgba(223, 86, 44, 0.16) !important;
}

body.light-theme .glass-card.gold-theme {
    border-color: rgba(245, 158, 11, 0.25) !important;
    box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.08) !important;
}
body.light-theme .glass-card.gold-theme:hover {
    border-color: var(--neon-gold) !important;
    box-shadow: 0 12px 28px -4px rgba(245, 158, 11, 0.16) !important;
}

body.light-theme .stat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
}

body.light-theme .stat-card .label {
    color: #64748b !important;
}

body.light-theme .stat-card .value {
    color: #0f172a !important;
}

body.light-theme .stat-card::after {
    background: #f1f5f9 !important;
}

/* -- Form Controls, Inputs & Buttons in Light Theme -- */
body.light-theme .form-control,
body.light-theme select.form-control,
body.light-theme input.form-control,
body.light-theme textarea.form-control,
body.light-theme .solid-dark-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.light-theme .form-control:focus,
body.light-theme select.form-control:focus,
body.light-theme input.form-control:focus,
body.light-theme textarea.form-control:focus,
body.light-theme .solid-dark-input:focus {
    background: #ffffff !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 0 3px rgba(0, 158, 179, 0.15) !important;
}

body.light-theme select.form-control {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23475569' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
}

body.light-theme .form-label {
    color: #334155 !important;
}

body.light-theme .form-input-container i {
    color: #94a3b8 !important;
}

body.light-theme .form-input-container:focus-within i {
    color: var(--neon-cyan) !important;
}

body.light-theme .btn-secondary {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .btn-secondary:hover {
    background: #f1f5f9 !important;
    border-color: var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    box-shadow: 0 2px 6px rgba(0, 158, 179, 0.10) !important;
}

body.light-theme .percentage-btn {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

body.light-theme .percentage-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

body.light-theme .control-btn {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

body.light-theme .slider {
    background-color: #cbd5e1 !important;
    border-color: #94a3b8 !important;
}

body.light-theme .range-slider {
    background: #cbd5e1 !important;
}

/* -- Tables & Badges in Light Theme -- */
body.light-theme .custom-table th {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
    font-weight: 700;
}

body.light-theme .custom-table td {
    background: transparent !important;
    border-color: #f1f5f9 !important;
    color: #1e293b !important;
}

body.light-theme .custom-table tbody tr:hover td {
    background: #f8fafc !important;
}

/* -- Modals & Dialogs in Light Theme -- */
body.light-theme .modal-backdrop {
    background: rgba(15, 23, 42, 0.50) !important;
    backdrop-filter: blur(8px) !important;
}

body.light-theme .modal-content {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.20) !important;
    color: #0f172a !important;
}

body.light-theme .modal-content h3,
body.light-theme .modal-content h4 {
    color: #0f172a !important;
}

body.light-theme #modal-bot-description-container {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

body.light-theme #modal-progress,
body.light-theme #modal-amount,
body.light-theme #warning-modal-current-balance {
    color: #0f172a !important;
}

/* -- Bot Stats, Timers, Terminal in Light Theme -- */
body.light-theme .bot-stat-box,
body.light-theme .win-loss-bar-container,
body.light-theme .timer-container {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

body.light-theme .bot-stat-label,
body.light-theme .next-trade-label {
    color: #64748b !important;
}

body.light-theme .bot-stat-value {
    color: #0f172a !important;
}

body.light-theme .dropzone {
    background: #f8fafc !important;
    border: 2px dashed #cbd5e1 !important;
    color: #64748b !important;
}

body.light-theme .dropzone:hover {
    border-color: var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    background: #f0fdfa !important;
}

body.light-theme .terminal-terminal {
    background: #0a1122 !important;
    border: 1px solid #e2e8f0 !important;
    color: #38bdf8 !important;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.3) !important;
}

body.light-theme .terminal-msg {
    color: #94a3b8 !important;
}

body.light-theme .terminal-line {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* -- Notifications, Tickers & Marquees in Light Theme -- */
body.light-theme #notif-dropdown,
body.light-theme #notif-dropdown-mobile {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
}

body.light-theme #notif-dropdown h4,
body.light-theme #notif-dropdown-mobile h4 {
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light-theme .top-tickers-container,
body.light-theme .profit-marquee-container {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

body.light-theme .profit-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

body.light-theme .top-ticker-symbol,
body.light-theme .profit-user {
    color: #64748b !important;
}

body.light-theme .top-ticker-price,
body.light-theme .profit-amount {
    color: #0f172a !important;
}

body.light-theme .profit-amount.up {
    color: var(--neon-emerald) !important;
}

body.light-theme .profit-amount.down {
    color: var(--neon-rose) !important;
}

body.light-theme .profit-time {
    color: #94a3b8 !important;
}

body.light-theme .cyber-bg-overlay {
    background: linear-gradient(to bottom, transparent, transparent, rgba(255, 255, 255, 0.85)) !important;
}

body.light-theme .footer-wrapper {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}


/* ---------------------------------------------------- */
/* Landing Page Specific Styles */
/* ---------------------------------------------------- */
.landing-body {
    background: var(--bg-dark-raw);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-y: auto; /* Allow normal scrolling */
    overflow-x: hidden;
    position: relative;
    padding-top: 80px; /* Space for sticky nav */
}

/* Override Cyberpunk Background to be fixed to viewport */
.landing-body .cyber-bg-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
}

/* Landing Top Nav */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(5, 7, 15, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

body.light-theme .landing-nav {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #e2e8f0;
}

.landing-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.1em;
}

.landing-links {
    display: flex;
    gap: 32px;
}

.landing-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.landing-links a:hover {
    color: var(--neon-cyan);
}

.landing-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.landing-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* Landing Main Content Area */
.landing-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Content Sections */
.landing-section {
    padding: 80px 0;
}

/* Footer */
.landing-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* Light Theme Overrides for Landing */
body.light-theme .landing-body {
    background: #f4f7fe;
}
body.light-theme .landing-footer {
    background: rgba(255, 255, 255, 0.5);
}
body.light-theme .landing-logo {
    color: #2b3674;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .landing-links {
        display: none;
    }
    .landing-actions {
        display: none;
    }
    .landing-mobile-toggle {
        display: block;
    }
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
.pricing-card {
    background: rgba(13, 18, 37, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-5px);
}
.pricing-card.popular {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.15);
    position: relative;
}
.pricing-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-cyan);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 99px;
    letter-spacing: 0.1em;
}
.pricing-price {
    font-size: 42px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin: 20px 0;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}
.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}
.pricing-features li i {
    color: var(--neon-emerald);
}
body.light-theme .pricing-card {
    background: #ffffff;
    border-color: #e2e8f0;
}


/* ---------------------------------------------------- */
/* Landing Page Specific Additions */
/* ---------------------------------------------------- */
.pricing-card-gold {
    background: rgba(13, 18, 37, 0.85);
}
.evaluation-card {
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.1) 0%, rgba(13, 18, 37, 0.8) 100%);
    border-color: rgba(6, 182, 212, 0.2);
}

body.light-theme .pricing-card-gold {
    background: #ffffff;
}
body.light-theme .evaluation-card {
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.05) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-color: #e2e8f0;
}


/* ---------------------------------------------------- */
/* Mobile Responsiveness Fixes */
/* ---------------------------------------------------- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
}

.landing-mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(5, 7, 15, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
body.light-theme .landing-mobile-menu {
    background: rgba(255, 255, 255, 0.98);
}
.landing-mobile-menu.active {
    display: flex;
}
.landing-mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
body.light-theme .landing-mobile-menu a {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}


/* ---------------------------------------------------- */
/* Fix Table Wrapper for Mobile */
/* ---------------------------------------------------- */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* ---------------------------------------------------- */
/* Additional Mobile Polish Fixes */
/* ---------------------------------------------------- */
@media (max-width: 768px) {
    /* Reduce huge padding on mobile */
    .landing-section {
        padding: 40px 0 !important;
    }
    .landing-main {
        padding: 20px 16px !important;
    }
    
    /* Center the hero section on mobile */
    .hero-container {
        text-align: center;
        justify-content: center !important;
        gap: 32px !important;
    }
    .hero-container > div:first-child {
        text-align: center !important;
    }
    .hero-title {
        text-align: center !important;
    }
    .hero-subtitle {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .hero-container > div:first-child > div[style*='display: flex'] {
        justify-content: center !important;
    }

    /* Reduce evaluation card padding */
    .evaluation-card {
        padding: 30px 20px !important;
    }
    .evaluation-card h2 {
        font-size: 24px !important;
    }
    
    /* Make pricing cards more compact */
    .pricing-card {
        padding: 30px 20px !important;
    }
    .pricing-price {
        font-size: 32px !important;
    }
    
    /* Fix bot cards padding */
    .grid-3 > .glass-card {
        padding: 24px !important;
    }
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}


/* ---------------------------------------------------- */
/* ULTIMATE MOBILE SAFEGUARDS */
/* ---------------------------------------------------- */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

.landing-body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

.marquee-container, .profit-marquee-container {
    max-width: 100vw;
    overflow: hidden;
}

@media (max-width: 768px) {
    /* Force column wrap on Hero */
    .hero-container > div {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Shrink fixed width glowing aura */
    .hero-container div[style*='width: 320px'] {
        width: 250px !important;
        height: 250px !important;
    }

    /* Fix any potentially overlapping text */
    h1, h2, h3, h4, h5, h6, p, a, span {
        max-width: 100% !important;
        word-wrap: break-word !important;
    }
    
    /* Make pricing text smaller on mobile */
    .hero-title { font-size: 32px !important; }
    .hero-subtitle { font-size: 15px !important; }
}

/* --- NEXAS UI REVAMP STYLES --- */

/* Percentage Buttons */
.percentage-btn-group {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.percentage-btn {
    flex: 1;
    background: #1e2025;
    border: none;
    color: #64748b;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.percentage-btn:hover {
    background: #2a2d35;
    color: #f8fafc;
}

/* Solid Dark Inputs */
.solid-dark-input {
    background: #0c0e12;
    border: 1px solid #1e2025;
    border-radius: 12px;
    color: #f8fafc;
    padding: 16px;
    font-size: 15px;
    width: 100%;
}
.solid-dark-input:focus {
    border-color: #10b981;
    outline: none;
}

/* Dropzone */
.dropzone {
    border: 1px dashed #334155;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #64748b;
    background: rgba(15, 23, 42, 0.3);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}
.dropzone:hover {
    border-color: #10b981;
    color: #f8fafc;
}
.dropzone i {
    font-size: 20px;
    margin-bottom: 8px;
    display: block;
}

/* Bot Stats Grid */
.bot-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.bot-stat-box {
    background: #0f1219;
    padding: 16px;
    border-radius: 12px;
}
.bot-stat-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}
.bot-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
}
.bot-stat-value.success { color: #10b981; }
.bot-stat-value.danger { color: #ef4444; }

/* Progress Bar */
.win-loss-bar-container {
    background: #0f1219;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}
.win-loss-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}
.win-label { color: #10b981; }
.loss-label { color: #ef4444; }
.session-label { color: #64748b; font-weight: 500; }
.win-loss-bar {
    height: 4px;
    background: #ef4444; /* Default red for losses */
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}
.win-segment {
    background: #10b981;
    height: 100%;
}

/* Controls */
.bot-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.control-btn {
    flex: 1;
    background: transparent;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}
.control-btn.pause { border-color: #eab308; color: #eab308; }
.control-btn.stop { border-color: #ef4444; color: #ef4444; }

/* Countdown */
.timer-container {
    background: #0f1219;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    border: 1px solid #1e293b;
}
.timer-value {
    font-size: 48px;
    font-weight: 800;
    color: #10b981;
    font-variant-numeric: tabular-nums;
    margin: 8px 0;
}
.timer-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.timer-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}
.next-trade-label {
    position: absolute;
    top: 16px;
    right: 16px;
    text-align: right;
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
}

/* Max Button */
.input-with-max {
    position: relative;
}
.max-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #10b981;
    border: none;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
}

