/* Reliance AI TradingBot - Master Theme: Cyberpunk Luxury Neon 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: #080b16;
    --bg-dark-panel: #0d1224;
    --bg-glass-card: rgba(13, 18, 37, 0.45);
    --bg-glass-card-hover: rgba(22, 30, 59, 0.6);
    
    --neon-cyan: #06b6d4;
    --neon-cyan-glow: rgba(6, 182, 212, 0.35);
    
    --neon-purple: #a855f7;
    --neon-purple-glow: rgba(168, 85, 247, 0.3);
    
    --neon-pink: #ec4899;
    
    --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.05);
    --border-neon-cyan: rgba(6, 182, 212, 0.18);
    --border-neon-purple: rgba(168, 85, 247, 0.15);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --shadow-neon: 0 0 25px rgba(6, 182, 212, 0.15);
}

/* Light Theme Variables (Extej UI inspired) */
body.light-theme {
    --bg-dark-raw: #f4f7fe;
    --bg-dark-body: #ffffff;
    --bg-dark-panel: #ffffff;
    --bg-glass-card: #ffffff;
    --bg-glass-card-hover: #ffffff;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border-color: #e2e8f0;
    --border-neon-cyan: rgba(112, 144, 176, 0.15);
    --border-neon-purple: rgba(112, 144, 176, 0.15);
    
    --shadow-neon: 0 18px 40px rgba(112, 144, 176, 0.12);
}

body.light-theme header {
    background: rgba(255, 255, 255, 0.85);
}

body.light-theme .glass-card::before {
    opacity: 0.1;
}

body.light-theme .terminal-terminal {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

body.light-theme .terminal-msg {
    color: #475569;
}

body.light-theme .terminal-line {
    border-bottom: 1px solid #f1f5f9;
}

body.light-theme .marquee-container {
    background: #ffffff;
}

body.light-theme .stat-card::after {
    background: rgba(0,0,0,0.05);
}

body.light-theme .footer-wrapper {
    background: #ffffff;
}

/* 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(168, 85, 247, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(6, 182, 212, 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);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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;
    }
}

/* 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;
    transition: all 0.25s ease;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
    background: rgba(5, 7, 15, 0.7);
}

/* 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;
}


/* Light Theme Specific Overrides for Forms and Cyberpunk Elements */
body.light-theme .form-control {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

body.light-theme .form-control:focus {
    background: #ffffff;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

body.light-theme .btn-secondary {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

body.light-theme .btn-secondary:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

body.light-theme .slider {
    background-color: #cbd5e1;
    border-color: #94a3b8;
}

body.light-theme .top-tickers-container,
body.light-theme .profit-marquee-container {
    background: #ffffff;
    border-color: #e2e8f0;
}

body.light-theme .profit-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.light-theme .top-ticker-symbol,
body.light-theme .profit-user {
    color: #64748b;
}

body.light-theme .top-ticker-price,
body.light-theme .profit-amount {
    color: #0f172a;
}

body.light-theme .profit-amount.up {
    color: var(--neon-emerald);
}

body.light-theme .profit-amount.down {
    color: var(--neon-rose);
}

body.light-theme .profit-time {
    color: #94a3b8;
}

body.light-theme .cyber-bg-overlay {
    background: linear-gradient(to bottom, transparent, transparent, rgba(255, 255, 255, 0.8));
}

body.light-theme .range-slider {
    background: #cbd5e1;
}

body.light-theme .custom-table th {
    border-color: #e2e8f0;
    color: #64748b;
}

body.light-theme .custom-table td {
    border-color: #e2e8f0;
    color: #334155;
}

body.light-theme .glass-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}


/* ---------------------------------------------------- */
/* 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;
}

