﻿/* Obelisk DEX - Main Stylesheet */
/* FORERUNNER THEME - Halo Ancient Technology */
/* Inspired by the grandeur of Forerunner architecture */

:root {
    /* FORERUNNER Color Palette - Ancient Technology */
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-tertiary: #0a0a0a;
    --bg-card: #030303;
    --bg-hover: #0f0f0f;

    --text-primary: #e8e4d9;
    --text-secondary: #c9a227;
    --text-muted: #6b5d3e;

    /* Primary: Forerunner Gold/Bronze */
    --accent-primary: #c9a227;
    --accent-secondary: #b8860b;
    --accent-tertiary: #8b6914;

    /* Secondary: Hardlight Cyan */
    --cyan-primary: #00d4ff;
    --cyan-secondary: #00b8e6;
    --cyan-glow: rgba(0, 212, 255, 0.6);

    /* Tertiary: Ancient Bronze */
    --bronze-primary: #cd7f32;
    --bronze-secondary: #a0522d;
    --bronze-glow: rgba(205, 127, 50, 0.5);

    /* Forerunner Gradient - Gold to Cyan */
    --rainbow-gradient: linear-gradient(90deg,
        #8b6914 0%,
        #b8860b 20%,
        #c9a227 40%,
        #d4af37 50%,
        #00d4ff 70%,
        #00b8e6 85%,
        #c9a227 100%
    );

    /* Main Accent Gradient */
    --accent-gradient: linear-gradient(135deg, #c9a227 0%, #00d4ff 50%, #d4af37 100%);
    --forerunner-glow: #c9a227;

    /* Forerunner Glow Effects */
    --bio-glow: 0 0 20px rgba(201, 162, 39, 0.4), 0 0 40px rgba(0, 212, 255, 0.2);
    --bio-glow-green: 0 0 20px rgba(0, 212, 255, 0.4);

    --success: #00d4ff;
    --success-bg: rgba(0, 212, 255, 0.15);
    --danger: #ff4444;
    --danger-bg: rgba(255, 68, 68, 0.15);
    --warning: #c9a227;
    --warning-bg: rgba(201, 162, 39, 0.15);

    --border-color: rgba(201, 162, 39, 0.3);
    --border-glow: rgba(0, 212, 255, 0.4);
    --border-light: rgba(201, 162, 39, 0.1);

    /* Sizing */
    --header-height: 64px;
    --footer-height: 44px;
    --sidebar-width: 320px;

    /* Fonts */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Forerunner Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.8);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.9);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.95);
    --glow: 0 0 30px rgba(201, 162, 39, 0.3), 0 0 60px rgba(0, 212, 255, 0.15);
    --glow-intense: 0 0 40px rgba(201, 162, 39, 0.5), 0 0 80px rgba(0, 212, 255, 0.3), 0 0 120px rgba(201, 162, 39, 0.2);
    --glow-subtle: 0 0 15px rgba(201, 162, 39, 0.2);
    --inner-glow: inset 0 0 20px rgba(201, 162, 39, 0.1), inset 0 0 40px rgba(0, 212, 255, 0.05);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-glow: 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDE
   Toggle with: document.documentElement.setAttribute('data-theme', 'light')
   ═══════════════════════════════════════════════════════════════════════════════ */

[data-theme="light"] {
    --bg-primary: #f5f5f0;
    --bg-secondary: #eeeee8;
    --bg-tertiary: #e5e5df;
    --bg-card: #ffffff;
    --bg-hover: #f0f0ea;

    --text-primary: #1a1a2e;
    --text-secondary: #8b6914;
    --text-muted: #6b6b5e;

    --accent-primary: #8b6914;
    --accent-secondary: #a07b1c;
    --accent-tertiary: #c9a227;

    --border-color: rgba(139, 105, 20, 0.2);
    --border-glow: rgba(139, 105, 20, 0.3);
    --border-light: rgba(139, 105, 20, 0.1);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --glow: none;
    --glow-intense: none;
    --glow-subtle: none;
    --inner-glow: none;

    --success: #16a34a;
    --success-bg: rgba(22, 163, 74, 0.1);
    --danger: #dc2626;
    --danger-bg: rgba(220, 38, 38, 0.1);
    --warning: #ca8a04;
    --warning-bg: rgba(202, 138, 4, 0.1);
}

[data-theme="light"] body {
    background: var(--bg-primary) !important;
    background-image: none !important;
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(139, 105, 20, 0.12);
}

[data-theme="light"] .glass-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: rgba(139, 105, 20, 0.15) !important;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #fff !important;
    color: #1a1a2e !important;
    border-color: rgba(139, 105, 20, 0.2) !important;
}

[data-theme="light"] .dash-action-btn {
    background: rgba(139, 105, 20, 0.08);
    border-color: rgba(139, 105, 20, 0.15);
}

[data-theme="light"] canvas#bg-canvas,
[data-theme="light"] .bg-animation {
    display: none !important;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-main);
    background: transparent; /* Let canvas show through */
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;

    /* FORERUNNER Ancient Technology Background - OVERLAY on canvas */
    background-image:
        /* Geometric hexagonal grid - Forerunner architecture */
        repeating-linear-gradient(
            60deg,
            transparent,
            transparent 40px,
            rgba(201, 162, 39, 0.03) 40px,
            rgba(201, 162, 39, 0.03) 41px
        ),
        repeating-linear-gradient(
            -60deg,
            transparent,
            transparent 40px,
            rgba(201, 162, 39, 0.03) 40px,
            rgba(201, 162, 39, 0.03) 41px
        ),
        /* Vertical energy lines */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            rgba(0, 212, 255, 0.02) 80px,
            rgba(0, 212, 255, 0.02) 81px
        ),
        /* Ancient glow emanations */
        radial-gradient(ellipse at 15% 15%, rgba(201, 162, 39, 0.12) 0%, transparent 35%),
        radial-gradient(ellipse at 85% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 30%),
        radial-gradient(ellipse at 50% 90%, rgba(201, 162, 39, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 70%, rgba(0, 212, 255, 0.06) 0%, transparent 25%),
        radial-gradient(ellipse at 80% 75%, rgba(201, 162, 39, 0.08) 0%, transparent 30%),
        /* Central monumental glow */
        radial-gradient(ellipse at 50% 30%, rgba(201, 162, 39, 0.15) 0%, transparent 50%);
    background-size: 100% 100%;
    background-position: center top;
    background-attachment: fixed;
    background-color: transparent; /* Changed from #000000 to let canvas show through */
}

/* Forerunner energy line at top */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(201, 162, 39, 0.3) 10%,
        #c9a227 30%,
        #d4af37 40%,
        #00d4ff 50%,
        #d4af37 60%,
        #c9a227 70%,
        rgba(201, 162, 39, 0.3) 90%,
        transparent 100%
    );
    z-index: 10000;
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
    animation: forerunner-pulse 4s ease-in-out infinite;
}

/* Forerunner Animations */
@keyframes forerunner-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes forerunner-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(201, 162, 39, 0.4), 0 0 40px rgba(0, 212, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(201, 162, 39, 0.6), 0 0 60px rgba(0, 212, 255, 0.4);
    }
}

@keyframes hardlight-shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Floating particles effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(201, 162, 39, 0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 70%, rgba(0, 212, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 20%, rgba(201, 162, 39, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 60%, rgba(0, 212, 255, 0.4) 0%, transparent 100%),
        radial-gradient(2px 2px at 10% 80%, rgba(201, 162, 39, 0.2) 0%, transparent 100%),
        radial-gradient(2px 2px at 90% 40%, rgba(0, 212, 255, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 50%, rgba(201, 162, 39, 0.5) 0%, transparent 100%);
    background-size: 550px 550px;
    animation: float-particles 60s linear infinite;
    z-index: 0;
    opacity: 0.6;
}

@keyframes float-particles {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-30px) translateX(5px); }
    100% { transform: translateY(0) translateX(0); }
}

/* App Layout */
#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    z-index: 2;
    background: transparent; /* Let animations show through */
}

/* Header - FORERUNNER Ancient Monument Style */
.header {
    position: relative;
    height: var(--header-height);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(5, 5, 5, 0.95) 100%);
    border-bottom: 1px solid rgba(201, 162, 39, 0.4);
    box-shadow:
        0 4px 30px rgba(201, 162, 39, 0.15),
        0 0 60px rgba(0, 212, 255, 0.08),
        inset 0 -1px 0 rgba(201, 162, 39, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    padding: 0 24px;
    z-index: 100000;
    backdrop-filter: blur(10px);
    overflow: visible !important;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: visible !important;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.logo-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    background: var(--accent-gradient);
    color: var(--bg-primary);
    padding: 3px 8px;
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

/* Navigation Container - Two Rows */
.nav-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 10px;
}

.nav-row-1, .nav-row-2 {
    display: flex;
    gap: 2px;
    flex-wrap: nowrap;
}

.nav-tab.highlight {
    background: linear-gradient(135deg, rgba(255,170,0,0.2), rgba(255,100,0,0.1)) !important;
    border-color: rgba(255,170,0,0.5) !important;
    color: #ffaa00 !important;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 2px;
    margin-left: 0;
}

.nav-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
    padding: 10px 8px;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-glow);
    position: relative;
}

.nav-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #00aaff, #8a2be2);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.5), 0 0 20px rgba(138, 43, 226, 0.3);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-tab:hover {
    color: var(--text-primary);
    background: linear-gradient(180deg, rgba(138, 43, 226, 0.1) 0%, rgba(0, 170, 255, 0.05) 100%);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

.nav-tab:hover::after {
    width: 60%;
}

.nav-tab.active {
    color: #00ff88;
    background: linear-gradient(180deg, rgba(138, 43, 226, 0.15) 0%, rgba(0, 170, 255, 0.1) 100%);
    border-color: rgba(138, 43, 226, 0.5);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

.nav-tab.active::after {
    width: 100%;
    background: linear-gradient(90deg, #00ff88, #00aaff, #8a2be2, #00ff88);
    background-size: 200% 100%;
    animation: rainbow-slide 3s linear infinite;
}

@keyframes rainbow-slide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Network Selector */
.network-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 13px;
}

.network-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Footer Last Update */
.footer-separator {
    color: #444;
    margin: 0 8px;
}

.last-update-footer {
    color: #00aaff;
    font-size: 12px;
}

#update-time {
    font-family: monospace;
    font-weight: 500;
}

/* HALO Style Buttons */
.btn-connect {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #00ff88 0%, #00aaff 50%, #8a2be2 100%);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #000;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-glow);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3), 0 0 40px rgba(138, 43, 226, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-connect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-connect:hover::before {
    left: 100%;
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5), 0 0 60px rgba(138, 43, 226, 0.3), 0 0 90px rgba(0, 170, 255, 0.2);
    background: linear-gradient(135deg, #00ff99 0%, #00ccff 50%, #aa44ff 100%);
}

/* Language Toggle Button */
.btn-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 180, 220, 0.1);
    border: 1px solid rgba(0, 180, 220, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 20px;
    color: #fff;
}

.btn-lang:hover {
    background: rgba(0, 180, 220, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: var(--glow-subtle);
    transform: scale(1.05);
}

/* Language Selector */
.lang-selector {
    position: relative;
    display: inline-block;
    z-index: 100001;
}

.lang-selector .btn-lang {
    width: auto;
    padding: 8px 12px;
    gap: 6px;
}

#lang-code {
    font-size: 12px;
    font-weight: 600;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(10, 10, 30, 0.98);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    min-width: 140px;
    display: none;
    z-index: 100002;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
}

.lang-dropdown.active {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-primary);
    font-size: 14px;
}

.lang-option:hover {
    background: rgba(0, 212, 255, 0.1);
}

.lang-option.active {
    color: var(--accent-primary);
    background: rgba(0, 255, 157, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.9) 0%, rgba(0, 120, 180, 0.9) 100%);
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: #000;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-glow);
    width: 100%;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover:not(:disabled)::before {
    left: 100%;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--glow-intense);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-muted);
}

.btn-secondary {
    background: rgba(0, 30, 50, 0.8);
    border: 1px solid var(--border-glow);
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 16px 32px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-glow);
    width: 100%;
    box-shadow: var(--glow-subtle), var(--inner-glow);
}

.btn-secondary:hover {
    background: rgba(0, 60, 90, 0.8);
    border-color: var(--accent-primary);
    box-shadow: var(--glow), var(--inner-glow);
    text-shadow: 0 0 10px var(--accent-primary);
}

/* Main Content */
.main-content {
    flex: 1;
    overflow: auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.tab-content {
    display: none;
    height: 100%;
}

.tab-content.active {
    display: block;
}

/* Trade Layout */
.trade-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: calc(100vh - 200px);
}

/* Desktop: Side-by-side layout for chart/orderbook/order */
@media (min-width: 1200px) {
    .trade-layout {
        display: grid;
        grid-template-columns: 1fr 280px 320px;
        grid-template-rows: auto 1fr auto;
        gap: 16px;
        min-height: calc(100vh - 200px);
    }

    /* Product guide spans all columns */
    .trade-layout > .product-guide {
        grid-column: 1 / -1;
    }

    /* Chart panel gets first column, full height */
    .trade-layout > [data-panel-id="panel-chart"] {
        grid-column: 1;
        grid-row: 2;
        min-height: 500px;
    }

    /* Orderbook gets second column */
    .trade-layout > [data-panel-id="panel-orderbook"] {
        grid-column: 2;
        grid-row: 2;
    }

    /* Order form gets third column */
    .trade-layout > [data-panel-id="panel-order"] {
        grid-column: 3;
        grid-row: 2;
    }

    /* Positions span all columns at bottom */
    .trade-layout > [data-panel-id="panel-positions"] {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

/* Chart Container - HALO Panel */
.chart-container {
    background: linear-gradient(180deg, rgba(5, 15, 25, 0.95) 0%, rgba(3, 10, 18, 0.98) 100%);
    border-radius: 2px;
    border: 1px solid var(--border-glow);
    box-shadow: var(--glow-subtle), var(--inner-glow);
    display: flex;
    flex-direction: column;
    position: relative;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.pair-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pair-name {
    font-size: 18px;
    font-weight: 600;
}

.pair-price {
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.pair-change {
    font-size: 14px;
    font-weight: 500;
}

.pair-period {
    font-size: 11px;
    color: #666;
    font-weight: 400;
}

.positive { color: var(--success); }
.negative { color: var(--danger); }
.warning { color: var(--warning); }

/* Chart Source Selector */
.chart-source-selector {
    display: flex;
    gap: 4px;
    margin-right: 12px;
    padding-right: 12px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.chart-src {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #888;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-src:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.chart-src.active {
    background: linear-gradient(135deg, rgba(138,43,226,0.3), rgba(0,170,255,0.3));
    border-color: #8a2be2;
    color: #fff;
}

.chart-tf-group {
    display: flex;
    gap: 4px;
}

.chart-tf-ms {
    background: rgba(0,255,136,0.1);
    border: 1px solid rgba(0,255,136,0.3);
    color: #00ff88;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-tf-ms:hover {
    background: rgba(0,255,136,0.2);
}

.chart-tf-ms.active {
    background: rgba(0,255,136,0.3);
    border-color: #00ff88;
    box-shadow: 0 0 8px rgba(0,255,136,0.4);
}

.chart-controls {
    display: flex;
    gap: 4px;
}

.chart-tf {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chart-tf:hover, .chart-tf.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.chart-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 10, 20, 0.9);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-height: 450px;
    height: 100%;
}

.chart-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    padding: 40px;
    text-align: center;
}

.chart-placeholder span:first-child {
    font-size: 48px;
}

.chart-placeholder .sub {
    font-size: 14px;
    color: var(--text-muted);
}

/* Order Book - HALO Panel */
.orderbook-container {
    background: linear-gradient(180deg, rgba(5, 15, 25, 0.95) 0%, rgba(3, 10, 18, 0.98) 100%);
    border-radius: 2px;
    border: 1px solid var(--border-glow);
    box-shadow: var(--glow-subtle), var(--inner-glow);
    display: flex;
    flex-direction: column;
    position: relative;
}

.orderbook-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.orderbook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 14px;
}

.orderbook-toggle {
    display: flex;
    gap: 4px;
}

.ob-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.ob-btn:hover, .ob-btn.active {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.orderbook-labels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 8px 16px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.orderbook-asks, .orderbook-bids {
    flex: 1;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    max-height: 180px;
    min-height: 120px;
}

.orderbook-spread {
    padding: 8px 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

/* Order Container - HALO Panel */
.order-container {
    background: linear-gradient(180deg, rgba(5, 15, 25, 0.95) 0%, rgba(3, 10, 18, 0.98) 100%);
    border-radius: 2px;
    border: 1px solid var(--border-glow);
    box-shadow: var(--glow-subtle), var(--inner-glow);
    display: flex;
    flex-direction: column;
    position: relative;
}

.order-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.order-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

.order-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    padding: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.order-tab:hover {
    color: var(--text-primary);
}

.order-tab.active[data-side="long"] {
    color: var(--success);
    box-shadow: inset 0 -2px 0 var(--success);
}

.order-tab.active[data-side="short"] {
    color: var(--danger);
    box-shadow: inset 0 -2px 0 var(--danger);
}

.order-type-selector {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.type-btn {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.type-btn:hover, .type-btn.active {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.order-form {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    color: var(--text-secondary);
}

.input-group {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 16px;
    padding: 12px;
    outline: none;
}

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

.input-suffix {
    padding: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    background: var(--bg-tertiary);
}

.leverage-slider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leverage-slider input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    outline: none;
}

.leverage-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
}

.leverage-value {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-primary);
    min-width: 40px;
}

.leverage-presets {
    display: flex;
    gap: 4px;
}

.lev-btn {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
}

.lev-btn:hover, .lev-btn.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.order-summary {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
}

.summary-row span:first-child {
    color: var(--text-secondary);
}

.btn-order {
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition-glow);
    position: relative;
    overflow: hidden;
}

.btn-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.btn-order:hover:not(:disabled)::before {
    left: 100%;
}

.btn-long {
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.9) 0%, rgba(0, 180, 100, 0.9) 100%);
    border-color: rgba(0, 255, 157, 0.4);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

.btn-long:hover:not(:disabled) {
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.5), 0 0 60px rgba(0, 255, 157, 0.2);
}

.btn-short {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.9) 0%, rgba(200, 30, 70, 0.9) 100%);
    border-color: rgba(255, 51, 102, 0.4);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
}

.btn-short:hover:not(:disabled) {
    box-shadow: 0 0 30px rgba(255, 51, 102, 0.5), 0 0 60px rgba(255, 51, 102, 0.2);
}

.btn-order:disabled {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

/* Positions Section */
.positions-section {
    margin-top: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.positions-header {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.pos-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.pos-tab:hover, .pos-tab.active {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.positions-table {
    min-height: 100px;
}

.positions-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Swap Container */
.swap-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
}

.swap-card {
    background: linear-gradient(180deg, rgba(5, 15, 25, 0.95) 0%, rgba(3, 10, 18, 0.98) 100%);
    border-radius: 4px;
    border: 1px solid var(--border-glow);
    box-shadow: var(--glow-subtle), var(--inner-glow), 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 480px;
    padding: 28px;
    position: relative;
}

.swap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

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

.swap-header h2 {
    font-size: 20px;
}

.btn-settings {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.btn-settings:hover {
    opacity: 1;
}

.swap-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.swap-input {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 16px;
}

.swap-input-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.swap-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.swap-input-row input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 500;
    outline: none;
    min-width: 0;
}

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

.token-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.token-selector:hover {
    background: var(--bg-hover);
}

.token-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--text-secondary);
}

.swap-switch {
    align-self: center;
    background: var(--bg-tertiary);
    border: 4px solid var(--bg-primary);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: -20px 0;
    z-index: 1;
    transition: var(--transition-fast);
}

.swap-switch:hover {
    background: var(--bg-hover);
}

.swap-switch svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.swap-details {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
}

.detail-row span:first-child {
    color: var(--text-secondary);
}

.btn-swap {
    margin-top: 20px;
    padding: 18px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.9) 0%, rgba(0, 150, 200, 0.9) 100%);
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: #000;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-glow);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-swap::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.6s;
}

.btn-swap:hover:not(:disabled)::before {
    left: 100%;
}

.btn-swap:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--glow-intense);
}

.btn-swap:disabled {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

/* Wallet Container */
.wallet-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.wallet-empty {
    text-align: center;
}

.wallet-hero {
    padding: 40px 20px;
}

.shield-icon {
    margin-bottom: 24px;
}

.shield-icon svg {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
    animation: shield-pulse 3s ease-in-out infinite;
}

@keyframes shield-pulse {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 50px rgba(0, 212, 255, 0.8)); }
}

.wallet-hero h2 {
    font-size: 28px;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

.security-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    background: rgba(0, 30, 50, 0.8);
    border: 1px solid var(--border-glow);
    padding: 8px 14px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
    box-shadow: var(--glow-subtle);
    transition: var(--transition-glow);
}

.badge:hover {
    box-shadow: var(--glow);
    text-shadow: 0 0 10px var(--accent-primary);
}

.wallet-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto 32px;
}

.wallet-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-icon {
    font-size: 18px;
}

.privacy-notice {
    display: flex;
    gap: 16px;
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.notice-icon {
    font-size: 24px;
}

.notice-text strong {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-primary);
}

.notice-text p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Wallet Connected State */
.wallet-header-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

/* Welcome Banner for New Users */
.wallet-welcome-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.15) 0%, rgba(138, 43, 226, 0.15) 50%, rgba(0, 255, 136, 0.15) 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
    animation: banner-glow 3s ease-in-out infinite;
}

@keyframes banner-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 255, 136, 0.2); }
    50% { box-shadow: 0 0 25px rgba(0, 170, 255, 0.3), 0 0 15px rgba(138, 43, 226, 0.2); }
}

.welcome-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.welcome-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.welcome-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--green-primary);
}

.welcome-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-deposit-now {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-deposit-now:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.wallet-info {
    flex: 1;
}

.wallet-address-display {
    margin-bottom: 12px;
}

.address-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.address-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.address {
    font-family: var(--font-mono);
    font-size: 14px;
    background: var(--bg-secondary);
    padding: 8px 12px;
    border-radius: 6px;
}

.btn-copy {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
}

.btn-copy:hover {
    opacity: 1;
}

.wallet-security-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-size: 13px;
}

.wallet-balance-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: right;
}

.balance-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.balance-value {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.wallet-assets {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 24px;
}

.assets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.assets-header h3 {
    font-size: 16px;
}

.btn-refresh {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.btn-refresh:hover {
    opacity: 1;
    transform: rotate(180deg);
}

.assets-list {
    max-height: 300px;
    overflow-y: auto;
}

.asset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.asset-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.asset-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.asset-name {
    display: block;
    font-weight: 500;
}

.asset-symbol {
    font-size: 13px;
    color: var(--text-secondary);
}

.asset-balance {
    text-align: right;
}

.asset-amount {
    display: block;
    font-family: var(--font-mono);
    font-weight: 500;
}

.asset-value {
    font-size: 13px;
    color: var(--text-secondary);
}

.wallet-actions-connected {
    display: flex;
    gap: 12px;
}

.btn-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
    color: var(--text-primary);
}

.btn-action span:first-child {
    font-size: 24px;
}

.btn-action:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

/* Portfolio Container */
.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.card-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.card-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 4px;
}

.card-change {
    font-size: 14px;
    font-weight: 500;
}

.portfolio-chart {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 300px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-history {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.portfolio-history h3 {
    margin-bottom: 16px;
}

.history-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Footer - HALO Style */
.footer {
    height: var(--footer-height);
    background: linear-gradient(180deg, rgba(5, 15, 25, 0.9) 0%, rgba(3, 8, 15, 0.95) 100%);
    border-top: 1px solid var(--border-glow);
    box-shadow: 0 -2px 20px rgba(0, 180, 220, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background: var(--success);
}

.footer-center {
    color: var(--text-muted);
}

.security-notice {
    font-size: 11px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--accent-primary);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.step-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.step.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    margin-bottom: 8px;
}

.strength-text {
    font-size: 12px;
    color: var(--text-muted);
}



/* Chart container fills its panel */
[data-panel-id="panel-chart"] .chart-container {
    height: 100%;
    min-height: 450px;
}

[data-panel-id="panel-chart"] .panel-content {
    height: 100%;
}

/* Orderbook container fills its panel */
[data-panel-id="panel-orderbook"] .orderbook-container {
    height: 100%;
    min-height: 400px;
}

[data-panel-id="panel-orderbook"] .panel-content {
    height: 100%;
}

/* Responsive */
@media (max-width: 1200px) {
    .trade-layout {
        grid-template-columns: 1fr 280px;
    }

    .order-container {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 12px;
    }

    .nav-tabs {
        display: none;
    }

    .trade-layout {
        grid-template-columns: 1fr;
    }

    .portfolio-summary {
        grid-template-columns: 1fr;
    }

    .wallet-header-section {
        flex-direction: column;
    }
}

/* ========================================
   COLLAPSIBLE PANELS SYSTEM v1.0
   ======================================== */

.collapsible-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.collapsible-panel:hover {
    border-color: var(--border-glow);
}

.collapsible-panel.collapsed {
    margin-bottom: 8px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    background: linear-gradient(180deg, rgba(10, 20, 40, 0.5) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.panel-header:hover {
    background: linear-gradient(180deg, rgba(0, 170, 255, 0.1) 0%, transparent 100%);
}

.collapsed .panel-header {
    border-bottom: none;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.panel-toggle {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 170, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.panel-toggle:hover {
    background: rgba(0, 170, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
}

.panel-toggle .chevron {
    transition: transform 0.3s ease;
}

.collapsed .panel-toggle .chevron {
    transform: rotate(-90deg);
}

.panel-content {
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    overflow: hidden;
}

.collapsed .panel-content {
    max-height: 0;
    opacity: 0;
}

.panel-minimized-info {
    display: none;
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
    margin-right: 12px;
}

.collapsed .panel-minimized-info {
    display: block;
}

.collapse-all-btn {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.9) 0%, rgba(138, 43, 226, 0.9) 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #fff;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 170, 255, 0.4);
    transition: all 0.3s ease;
}

.collapse-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 170, 255, 0.5);
}

/* ========================================
   ACCESSIBILITY STYLES
   ======================================== */

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    z-index: 9999;
    transition: top 0.3s;
    text-decoration: none;
}

.skip-link:focus {
    top: 10px;
}

/* Focus Styles for Keyboard Navigation */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--green-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.2);
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-muted: #aaaaaa;
        --border-color: #555566;
    }
}

/* Mobile Touch Targets */
@media (max-width: 768px) {
    button,
    .nav-tab,
    .chart-tf,
    input[type="text"],
    input[type="number"],
    select {
        min-height: 44px;
        min-width: 44px;
    }

    .order-btn,
    .btn-connect,
    .swap-btn {
        min-height: 48px;
    }

    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    #app {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .header {
        flex-wrap: wrap;
        padding: 12px;
        gap: 8px;
    }

    .header-left {
        flex: 1;
        min-width: 0;
    }

    .header-right {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        max-width: 100%;
    }

    .logo {
        flex-shrink: 1;
        min-width: 0;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-badge {
        display: none;
    }

    .nav-tabs {
        display: none;
    }

    .network-selector {
        font-size: 12px;
        padding: 6px 10px;
    }

    .btn-connect {
        font-size: 12px;
        padding: 8px 12px;
        white-space: nowrap;
    }

    .btn-connect .btn-icon {
        display: none;
    }

    .btn-lang {
        padding: 8px;
    }

    .trade-layout {
        flex-direction: column;
    }

    .chart-container,
    .order-panel,
    .orderbook-container {
        width: 100%;
        max-width: 100%;
    }

    .main-content {
        padding: 12px;
    }

    .tab-content {
        padding: 12px;
    }

    /* Footer Mobile */
    .footer {
        flex-direction: column;
        height: auto;
        padding: 12px;
        gap: 8px;
    }

    .footer-left, .footer-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .footer-center {
        order: -1;
        text-align: center;
        width: 100%;
        margin-bottom: 8px;
    }

    .footer-separator {
        display: none;
    }

    .footer-link {
        padding: 4px 8px;
    }

    .btn-debug {
        display: none;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: rgba(0, 170, 255, 0.1);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        cursor: pointer;
        gap: 4px;
        order: 10;
        margin-left: auto;
    }

    .hamburger-line {
        width: 20px;
        height: 2px;
        background: var(--accent-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    /* Mobile Navigation */
    .nav-tabs.mobile-open {
        display: flex !important;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(5, 10, 20, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 8px;
        z-index: 1000;
        overflow-y: auto;
        backdrop-filter: blur(20px);
    }

    .nav-tabs.mobile-open .nav-tab {
        width: 100%;
        text-align: left;
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 12px;
        background: rgba(0, 170, 255, 0.05);
        border: 1px solid var(--border-color);
    }

    .nav-tabs.mobile-open .nav-tab:hover,
    .nav-tabs.mobile-open .nav-tab.active {
        background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 170, 255, 0.2));
        border-color: var(--accent-primary);
    }
}

/* Desktop: hide mobile menu button */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ========== AUTH SYSTEM ========== */

/* Auth Buttons in Header */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 157, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 255, 157, 0.2));
    transform: translateY(-1px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 13px;
    padding: 6px 12px;
    background: rgba(0, 255, 157, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(255, 100, 100, 0.3);
    color: #ff6b6b;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-logout:hover {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.5);
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    position: relative;
    background: linear-gradient(180deg, rgba(10, 20, 35, 0.98) 0%, rgba(5, 12, 25, 0.99) 100%);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 212, 255, 0.1);
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h2 {
    font-size: 24px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-modal .form-group {
    margin-bottom: 16px;
}

.auth-modal label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-modal input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-modal input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

.auth-modal .btn-primary {
    width: 100%;
    margin-top: 8px;
}

.auth-error {
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    color: #ff6b6b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
}

.btn-link:hover {
    text-decoration: underline;
}

body.modal-open {
    overflow: hidden;
}

/* ==========================================
   BACKGROUND ANIMATION SYSTEM
   ========================================== */

#bg-animation-canvas {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1 !important; /* Behind content but visible */
    pointer-events: none;
    background: #020208; /* Fallback dark background */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#bg-image-layer {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0 !important; /* Behind canvas (z-index: 1) but visible */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    transition: opacity 0.5s ease;
    display: block !important;
    visibility: visible !important;
    pointer-events: none;
}

/* ==========================================
   SETTINGS TAB STYLES
   ========================================== */

.settings-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

.settings-header {
    text-align: center;
    margin-bottom: 32px;
}

.settings-header h2 {
    font-size: 28px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.settings-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.settings-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 16px 0 12px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Animation Selector Grid */
.animation-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.animation-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.animation-option:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.animation-option.active {
    border-color: var(--green-primary);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.animation-preview {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.preview-none {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.preview-matrix {
    background: linear-gradient(180deg, #001100 0%, #003300 100%);
    color: #00ff41;
    font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 10px #00ff41;
}

.preview-halo {
    background: linear-gradient(135deg, #001a33 0%, #002b4d 100%);
    color: #00a8ff;
    text-shadow: 0 0 15px #00a8ff;
}

.preview-avatar {
    background: linear-gradient(135deg, #020208 0%, #0a0a18 100%);
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff, 0 0 30px #8a2be2;
}

.preview-particles {
    background: linear-gradient(135deg, #0a0015 0%, #150025 100%);
    color: #ffffff;
    text-shadow: 0 0 10px #ffffff;
}

.animation-name {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

/* Color Options */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-btn {
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 20px;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-btn:hover {
    transform: scale(1.05);
}

.color-btn.active {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Background Presets Grid */
.bg-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.bg-preset {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bg-preset:hover {
    border-color: var(--accent-primary);
}

.bg-preset.active {
    border-color: var(--green-primary);
    background: rgba(0, 255, 136, 0.1);
}

.preset-preview {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--bg-tertiary);
}

.preset-space { background: linear-gradient(135deg, #0c0c1d, #1a1a3e); }
.preset-nebula { background: linear-gradient(135deg, #1a0a2e, #2d1b4e); }
.preset-circuit { background: linear-gradient(135deg, #0a1a1a, #0d2d2d); }
.preset-geometric { background: linear-gradient(135deg, #1a1a2e, #2d2d4e); }

.bg-preset span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Custom Upload */
.custom-bg-upload {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.upload-label {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 14px;
}

.upload-label:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-clear-bg {
    padding: 14px 20px;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 10px;
    color: #ff6b6b;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-bg:hover {
    background: rgba(255, 100, 100, 0.2);
}

/* Opacity & Speed Controls */
.bg-opacity-control,
.speed-control {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bg-opacity-control label,
.speed-control label {
    color: var(--text-secondary);
    font-size: 13px;
    min-width: 120px;
}

.bg-opacity-control input[type="range"],
.speed-control input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-secondary);
    border-radius: 3px;
    outline: none;
}

.bg-opacity-control input[type="range"]::-webkit-slider-thumb,
.speed-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-primary);
}

#bg-opacity-value,
#anim-speed-value {
    color: var(--accent-primary);
    font-weight: 600;
    min-width: 40px;
}

/* Preview Container */
.preview-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

#preview-canvas {
    width: 100%;
    height: 100%;
}

.preview-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Settings Actions */
.settings-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.btn-save-settings,
.btn-reset-settings {
    padding: 14px 32px;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-save-settings {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
}

.btn-save-settings:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.btn-reset-settings {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-reset-settings:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

/* Matrix/Halo Options containers */
.matrix-options,
.halo-options {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0, 255, 65, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.halo-options {
    background: rgba(0, 168, 255, 0.05);
    border-color: rgba(0, 168, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .settings-container {
        padding: 16px;
    }

    .animation-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .bg-preset-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .custom-bg-upload {
        flex-direction: column;
    }

    .settings-actions {
        flex-direction: column;
    }

    .btn-save-settings,
    .btn-reset-settings {
        width: 100%;
    }
}

/* ==========================================
   SETTINGS BUTTON IN HEADER
   ========================================== */

.btn-settings-nav {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-settings-nav:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 170, 255, 0.1);
    transform: rotate(45deg);
}

.btn-settings-nav.active {
    border-color: var(--green-primary);
    color: var(--green-primary);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* ==========================================
   OVERFLOW FIX - Prevent horizontal scroll
   ========================================== */

html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

#app {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Navigation scrollable on desktop */
.header {
    max-width: 100vw;
    overflow: visible !important; /* Keep dropdown visible */
}

.header-left {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    -ms-overflow-style: auto;
    max-width: calc(100vw - 280px);
    gap: 1px;
    padding-bottom: 4px;
}

.nav-tabs::-webkit-scrollbar {
    height: 3px;
}

.nav-tabs::-webkit-scrollbar-thumb {
    background: rgba(0,255,136,0.4);
    border-radius: 3px;
}

.nav-tab {
    flex-shrink: 0;
    padding: 5px 6px;
    font-size: 10px;
    white-space: nowrap;
}

.nav-sep {
    display: none;
}

/* Header compact */
.header-right {
    gap: 3px !important;
}

.btn-connect, .btn-login, .btn-settings-nav {
    padding: 4px 6px !important;
    font-size: 9px !important;
}

.lang-selector .btn-lang {
    padding: 3px 5px !important;
    font-size: 9px !important;
}

.network-selector {
    padding: 3px 5px !important;
    font-size: 9px !important;
}

/* Logo smaller */
.logo {
    font-size: 14px !important;
    padding: 0 8px 0 0 !important;
}

.logo-icon {
    width: 20px !important;
    height: 20px !important;
}

/* Wallet badges fix */
.wallet-container,
.wallet-empty,
.wallet-hero {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.security-badges {
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.badge {
    font-size: 10px;
    padding: 6px 10px;
}

/* Privacy notice fix */
.privacy-notice {
    max-width: 100%;
    box-sizing: border-box;
}

/* Settings container fix */
.settings-container {
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Main content fix */
.main-content {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.tab-content {
    max-width: 100%;
    overflow-x: hidden;
}

/* Medium screens */
@media (max-width: 1200px) {
    .nav-tabs {
        max-width: calc(100vw - 400px);
    }

    .nav-tab {
        padding: 8px 12px;
        font-size: 11px;
    }

    .logo-badge {
        display: none;
    }
}

/* Smaller screens */
@media (max-width: 992px) {
    .nav-tabs {
        max-width: calc(100vw - 300px);
    }

    .nav-tab {
        padding: 8px 10px;
        font-size: 10px;
        letter-spacing: 0;
    }

    .header-right {
        gap: 8px;
    }

    .network-selector {
        display: none;
    }
}

/* v1766592214 - Settings & Animations + Overflow fixes */
/* v1766804594 */

/* ===========================================
   LOADING STATES & SPINNERS
   =========================================== */

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

/* Loading Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 2, 8, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(4px);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        var(--bg-hover) 50%,
        var(--bg-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-text-sm {
    height: 12px;
    width: 60%;
}

.skeleton-price {
    height: 24px;
    width: 120px;
}

.skeleton-chart {
    height: 200px;
    width: 100%;
}

.skeleton-row {
    display: flex;
    gap: 12px;
    padding: 12px;
}

/* Loading Text */
.loading-text {
    color: var(--text-secondary);
    font-size: 14px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Connecting State */
.connecting-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    color: var(--text-secondary);
}

.connecting-indicator .spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* Connection Status Dot */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.connected {
    background: var(--green-primary);
    box-shadow: 0 0 8px var(--green-glow);
}

.status-dot.connecting {
    background: var(--accent-primary);
    animation: pulse 1s ease-in-out infinite;
}

.status-dot.disconnected {
    background: #ff4444;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
    text-align: center;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    max-width: 300px;
}

/* Offline Banner */
.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #ff4444, #ff6666);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    z-index: 9999;
    display: none;
}

.offline-banner.visible {
    display: block;
}

/* Button Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading .btn-text {
    visibility: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Price Loading Placeholder */
.price-loading {
    display: inline-block;
    width: 80px;
    height: 20px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* v1766893200 - Loading States */

/* Debug Panel */
.btn-debug {
    background: transparent;
    border: 1px solid #ff6600;
    color: #ff6600;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
}

.btn-debug:hover {
    background: rgba(255, 102, 0, 0.2);
}

.debug-panel {
    position: fixed;
    bottom: 50px;
    right: 20px;
    width: 450px;
    max-height: 400px;
    background: rgba(10, 10, 30, 0.98);
    border: 2px solid #ff6600;
    border-radius: 12px;
    z-index: 999999;
    font-family: monospace;
    font-size: 12px;
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.3);
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 102, 0, 0.2);
    border-bottom: 1px solid #ff6600;
    color: #ff6600;
    font-weight: bold;
}

.debug-header button {
    background: none;
    border: none;
    color: #ff6600;
    cursor: pointer;
    font-size: 16px;
}

.debug-content {
    padding: 15px;
    max-height: 320px;
    overflow-y: auto;
}

.debug-section {
    margin-bottom: 15px;
}

.debug-section strong {
    color: #ff6600;
    display: block;
    margin-bottom: 8px;
}

.debug-logs {
    max-height: 150px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 8px;
}

.debug-log {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    word-break: break-all;
}

.debug-log .time {
    color: #666;
    margin-right: 8px;
}

.debug-log.error {
    color: #ff4444;
}

.debug-log.warn {
    color: #ffaa00;
}

#debug-chart-status div {
    padding: 2px 0;
    color: #ccc;
}


/* OVERRIDE: Make chart source selector SUPER visible */
.chart-source-selector {
    display: flex !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    background: linear-gradient(135deg, rgba(138,43,226,0.3), rgba(0,100,200,0.3)) !important;
    border: 3px solid #8a2be2 !important;
    border-radius: 12px !important;
    box-shadow: 0 0 20px rgba(138,43,226,0.5) !important;
}

.chart-src {
    background: rgba(0,0,0,0.6) !important;
    border: 2px solid #8a2be2 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 0 10px rgba(138,43,226,0.4) !important;
}

.chart-src.active {
    background: linear-gradient(135deg, #8a2be2, #00aaff) !important;
    border-color: #fff !important;
    box-shadow: 0 0 25px rgba(138,43,226,0.8) !important;
}



/* ============================================
   FORERUNNER THEME - Ancient Alien Technology
   Inspired by Halo's Forerunner Architecture
   ============================================ */

/* Forerunner Keyframe Animations */
@keyframes forerunnerPulse {
    0%, 100% { opacity: 0.3; filter: brightness(1); }
    50% { opacity: 0.7; filter: brightness(1.3); }
}

@keyframes forerunnerScan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes forerunnerGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255,106,0,0.3), inset 0 0 20px rgba(255,106,0,0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(255,106,0,0.6), inset 0 0 30px rgba(255,106,0,0.2);
    }
}

@keyframes forerunnerFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    75% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes circuitFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

@keyframes energyPulse {
    0%, 100% { opacity: 0.1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.02); }
}

@keyframes hologramFlicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.3; }
    94% { opacity: 1; }
    97% { opacity: 0.7; }
    98% { opacity: 1; }
}

body.theme-forerunner {
    --bg-primary: #030303;
    --bg-secondary: #080604;
    --bg-tertiary: #0c0908;
    --accent-primary: #ff6a00;
    --accent-secondary: #00ccff;
    --accent-tertiary: #ff9500;
    --accent-glow: #ffaa00;
    --text-primary: #ffe8d0;
    --text-secondary: #cc9966;
    --text-muted: #886644;
    --border-color: rgba(255,106,0,0.4);
    --glow-primary: rgba(255,106,0,0.6);
    --glow-secondary: rgba(0,204,255,0.4);
}

/* Main Background - Deep Space with Forerunner Structures */
body.theme-forerunner::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        /* Central energy core */
        radial-gradient(circle at 50% 50%, rgba(255,106,0,0.08) 0%, transparent 40%),
        /* Ambient lighting */
        radial-gradient(ellipse 120% 80% at 30% 20%, rgba(255,149,0,0.12) 0%, transparent 50%),
        radial-gradient(ellipse 100% 60% at 70% 80%, rgba(0,180,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 80% 40% at 90% 10%, rgba(255,106,0,0.06) 0%, transparent 40%),
        /* Base gradient */
        linear-gradient(180deg, #050302 0%, #030201 40%, #020305 100%);
    z-index: -3;
    pointer-events: none;
}

/* Hexagonal Grid Pattern - Forerunner Architecture */
body.theme-forerunner::after {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='140' viewBox='0 0 120 140'%3E%3Cdefs%3E%3ClinearGradient id='hexGrad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23ff6a00;stop-opacity:0.4'/%3E%3Cstop offset='100%25' style='stop-color:%23ff9500;stop-opacity:0.1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon fill='none' stroke='url(%23hexGrad)' stroke-width='1' points='60,5 110,32 110,88 60,115 10,88 10,32'/%3E%3Cpolygon fill='none' stroke='%23ff6a00' stroke-width='0.3' opacity='0.3' points='60,20 95,40 95,80 60,100 25,80 25,40'/%3E%3Ccircle cx='60' cy='60' r='4' fill='%23ff6a00' opacity='0.5'/%3E%3Ccircle cx='60' cy='60' r='8' fill='none' stroke='%23ff6a00' opacity='0.2' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 120px 140px;
    opacity: 0.6;
    pointer-events: none;
    z-index: -2;
    animation: forerunnerPulse 8s ease-in-out infinite;
}

/* Energy Circuits Overlay */
body.theme-forerunner #app::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cpath d='M0,100 L50,100 L60,80 L80,80 L90,100 L150,100' fill='none' stroke='%23ff6a00' stroke-width='0.5' opacity='0.2'/%3E%3Cpath d='M100,0 L100,50 L120,60 L120,80 L100,90 L100,150' fill='none' stroke='%2300ccff' stroke-width='0.5' opacity='0.15'/%3E%3Ccircle cx='60' cy='80' r='3' fill='%23ff6a00' opacity='0.4'/%3E%3Ccircle cx='120' cy='80' r='3' fill='%2300ccff' opacity='0.3'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
    animation: circuitFlow 30s linear infinite;
}

/* Cards and Panels - Forerunner Ancient Metallic Look */
body.theme-forerunner .glass-panel,
body.theme-forerunner .card,
body.theme-forerunner .panel,
body.theme-forerunner .order-panel,
body.theme-forerunner .settings-section,
.glass-panel,
.card,
.panel,
.order-panel {
    background:
        linear-gradient(135deg, rgba(8,6,3,0.98) 0%, rgba(3,3,3,0.95) 50%, rgba(5,8,10,0.98) 100%) !important;
    border: 1px solid rgba(201, 162, 39, 0.4) !important;
    box-shadow:
        0 0 30px rgba(201, 162, 39, 0.1),
        0 0 60px rgba(0, 212, 255, 0.05),
        inset 0 1px 0 rgba(201, 162, 39, 0.2),
        inset 0 -1px 0 rgba(0,0,0,0.5) !important;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Glowing Edge Effect on Panels - Forerunner Gold */
body.theme-forerunner .glass-panel::before,
body.theme-forerunner .card::before,
body.theme-forerunner .panel::before,
.glass-panel::before,
.card::before,
.panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b6914, #c9a227, #d4af37, #00d4ff, #d4af37, #c9a227, #8b6914, transparent);
    animation: forerunnerPulse 4s ease-in-out infinite;
    z-index: 10;
}

/* Forerunner Buttons - Hardlight Energy Core Style */
body.theme-forerunner .btn-primary,
body.theme-forerunner .button-primary,
body.theme-forerunner button.active,
body.theme-forerunner .source-btn.active,
.btn-primary,
.button-primary,
button.active {
    background: linear-gradient(135deg, #8b6914 0%, #c9a227 40%, #d4af37 60%, #c9a227 100%) !important;
    border: 1px solid #d4af37 !important;
    color: #000 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    box-shadow:
        0 0 20px rgba(201, 162, 39, 0.5),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.3) !important;
    animation: forerunnerGlow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

body.theme-forerunner .btn-primary::after,
body.theme-forerunner .button-primary::after,
.btn-primary::after,
.button-primary::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: buttonShine 4s linear infinite;
}

@keyframes buttonShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

body.theme-forerunner .btn-primary:hover,
body.theme-forerunner .button-primary:hover,
.btn-primary:hover,
.button-primary:hover {
    background: linear-gradient(135deg, #c9a227 0%, #d4af37 40%, #00d4ff 60%, #d4af37 100%) !important;
    box-shadow:
        0 0 40px rgba(201, 162, 39, 0.7),
        0 0 80px rgba(0, 212, 255, 0.4),
        inset 0 0 30px rgba(0, 212, 255, 0.1) !important;
    transform: translateY(-2px);
}

/* Navigation Tabs - Forerunner Ancient Technology */
body.theme-forerunner .nav-tab,
.nav-tab {
    border: 1px solid rgba(201, 162, 39, 0.3) !important;
    color: #c9a227 !important;
    background: rgba(5,5,5,0.8) !important;
    position: relative;
    transition: all 0.3s ease;
}

body.theme-forerunner .nav-tab::before,
.nav-tab::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #c9a227, #00d4ff, #c9a227);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

body.theme-forerunner .nav-tab:hover,
.nav-tab:hover {
    background: rgba(201, 162, 39, 0.1) !important;
    border-color: #c9a227 !important;
    color: #d4af37 !important;
    box-shadow: 0 0 25px rgba(201, 162, 39, 0.3) !important;
}

body.theme-forerunner .nav-tab:hover::before,
.nav-tab:hover::before {
    width: 80%;
}

body.theme-forerunner .nav-tab.active,
.nav-tab.active {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(0, 212, 255, 0.1)) !important;
    border-color: #c9a227 !important;
    color: #d4af37 !important;
    box-shadow:
        0 0 30px rgba(201, 162, 39, 0.4),
        inset 0 0 20px rgba(0, 212, 255, 0.05) !important;
}

body.theme-forerunner .nav-tab.active::before,
.nav-tab.active::before {
    width: 100%;
    height: 3px;
}

/* Titles - Forerunner Holographic Text */
body.theme-forerunner h1,
body.theme-forerunner h2,
body.theme-forerunner h3,
body.theme-forerunner .logo-text,
body.theme-forerunner .pair-name,
body.theme-forerunner .title,
h1, h2, h3,
.logo-text,
.pair-name,
.title {
    color: #c9a227 !important;
    text-shadow:
        0 0 10px rgba(201, 162, 39, 0.6),
        0 0 20px rgba(0, 212, 255, 0.3),
        0 0 40px rgba(201, 162, 39, 0.2) !important;
}

/* Logo Special Effect - Forerunner */
body.theme-forerunner .logo-text,
.logo-text {
    background: linear-gradient(90deg, #8b6914, #c9a227, #d4af37, #00d4ff, #d4af37, #c9a227, #8b6914);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGradient 8s linear infinite;
    text-shadow: none !important;
}

@keyframes logoGradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Inputs - Ancient Interface */
body.theme-forerunner input,
body.theme-forerunner select,
body.theme-forerunner textarea {
    background: rgba(10,8,5,0.95) !important;
    border: 1px solid rgba(255,106,0,0.4) !important;
    color: #ffe0c0 !important;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5) !important;
}

body.theme-forerunner input:focus,
body.theme-forerunner select:focus,
body.theme-forerunner textarea:focus {
    border-color: #ff6a00 !important;
    box-shadow:
        0 0 20px rgba(255,106,0,0.5),
        inset 0 0 15px rgba(255,106,0,0.1) !important;
}

/* Chart Container - Forerunner Monitor */
body.theme-forerunner .chart-container {
    border: 2px solid rgba(255,106,0,0.5) !important;
    box-shadow:
        0 0 40px rgba(255,106,0,0.2),
        inset 0 0 80px rgba(255,106,0,0.05) !important;
    position: relative;
}

body.theme-forerunner .chart-container::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff6a00, #ff9500, #00ccff, #ff9500, #ff6a00, transparent);
    animation: forerunnerPulse 4s ease-in-out infinite;
    z-index: 10;
}

body.theme-forerunner .chart-container::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6a00, transparent);
    animation: forerunnerPulse 4s ease-in-out infinite reverse;
    z-index: 10;
}

/* Profit/Loss with Glow */
body.theme-forerunner .positive,
body.theme-forerunner .profit {
    color: #00ff88 !important;
    text-shadow: 0 0 10px rgba(0,255,136,0.7), 0 0 20px rgba(0,255,136,0.4) !important;
}

body.theme-forerunner .negative,
body.theme-forerunner .loss {
    color: #ff4466 !important;
    text-shadow: 0 0 10px rgba(255,68,102,0.7), 0 0 20px rgba(255,68,102,0.4) !important;
}

/* Timeframe Buttons */
body.theme-forerunner .tf-btn {
    border-color: rgba(255,106,0,0.3) !important;
}

body.theme-forerunner .tf-btn.active {
    background: linear-gradient(135deg, #ff6a00, #ff9500) !important;
    border-color: #ffcc00 !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(255,106,0,0.6) !important;
}

/* Scrollbar - Energy Channel */
body.theme-forerunner ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

body.theme-forerunner ::-webkit-scrollbar-track {
    background: #080604;
    border-left: 1px solid rgba(255,106,0,0.2);
}

body.theme-forerunner ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6a00 0%, #ff9500 50%, #ff6a00 100%);
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(255,106,0,0.8);
}

body.theme-forerunner ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff8533 0%, #ffaa33 50%, #ff8533 100%);
}

/* Selection */
body.theme-forerunner ::selection {
    background: rgba(255,106,0,0.6);
    color: #fff;
    text-shadow: none;
}

/* Header - Command Bridge */
body.theme-forerunner .header {
    background: linear-gradient(180deg, rgba(20,12,5,0.98) 0%, rgba(10,8,5,0.95) 100%) !important;
    border-bottom: 2px solid rgba(255,106,0,0.5) !important;
    box-shadow:
        0 0 40px rgba(255,106,0,0.25),
        inset 0 -20px 40px rgba(255,106,0,0.05) !important;
}

body.theme-forerunner .header::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff6a00, #ff9500, #00ccff, #ff9500, #ff6a00, transparent);
}

/* Footer - Base Level */
body.theme-forerunner .footer {
    border-top: 2px solid rgba(255,106,0,0.4) !important;
    background: linear-gradient(180deg, rgba(15,10,5,0.98), rgba(5,3,2,0.99)) !important;
    box-shadow: 0 -10px 40px rgba(255,106,0,0.1) !important;
}

/* Floating Particles Effect (added via JS or as separate layer) */
body.theme-forerunner .main-content {
    position: relative;
}

body.theme-forerunner .main-content::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(255,106,0,0.8) 50%, transparent 50%),
        radial-gradient(2px 2px at 30% 60%, rgba(255,149,0,0.6) 50%, transparent 50%),
        radial-gradient(1px 1px at 50% 10%, rgba(0,204,255,0.7) 50%, transparent 50%),
        radial-gradient(2px 2px at 70% 40%, rgba(255,106,0,0.5) 50%, transparent 50%),
        radial-gradient(1px 1px at 90% 80%, rgba(255,149,0,0.7) 50%, transparent 50%),
        radial-gradient(2px 2px at 20% 90%, rgba(0,204,255,0.4) 50%, transparent 50%),
        radial-gradient(1px 1px at 80% 15%, rgba(255,106,0,0.6) 50%, transparent 50%),
        radial-gradient(2px 2px at 40% 75%, rgba(255,149,0,0.5) 50%, transparent 50%);
    background-size: 100% 100%;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

@keyframes particleFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Order Book Enhancement */
body.theme-forerunner .orderbook-container {
    border: 1px solid rgba(255,106,0,0.4) !important;
    box-shadow: 0 0 30px rgba(255,106,0,0.1) !important;
}

/* Table Rows */
body.theme-forerunner tr:hover {
    background: rgba(255,106,0,0.1) !important;
}

/* Modal Overlay */
body.theme-forerunner .modal-backdrop {
    background: rgba(0,0,0,0.9) !important;
}

body.theme-forerunner .modal-content {
    border: 2px solid rgba(255,106,0,0.5) !important;
    box-shadow: 0 0 60px rgba(255,106,0,0.3) !important;
}

/* ====== FORERUNNER ULTIMATE EFFECTS ====== */

/* Scanning Light Bar - Horizontal */
@keyframes scanLineH {
    0% { top: -5%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 105%; opacity: 0; }
}

@keyframes scanLineV {
    0% { left: -5%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 105%; opacity: 0; }
}

body.theme-forerunner #app::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,106,0,0.3),
        rgba(255,149,0,0.8),
        rgba(0,204,255,0.6),
        rgba(255,149,0,0.8),
        rgba(255,106,0,0.3),
        transparent);
    box-shadow:
        0 0 20px rgba(255,106,0,0.8),
        0 0 40px rgba(255,149,0,0.5),
        0 0 60px rgba(0,204,255,0.3);
    animation: scanLineH 12s ease-in-out infinite;
    pointer-events: none;
    z-index: 9999;
}

/* Vertical Scan Line */
body.theme-forerunner .main-content::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
        transparent,
        rgba(0,204,255,0.5),
        rgba(255,149,0,0.8),
        rgba(0,204,255,0.5),
        transparent);
    box-shadow:
        0 0 15px rgba(0,204,255,0.8),
        0 0 30px rgba(255,149,0,0.4);
    animation: scanLineV 18s ease-in-out infinite;
    animation-delay: 6s;
    pointer-events: none;
    z-index: 9998;
}

/* Glowing Corner Accents */
body.theme-forerunner .glass-panel::after,
body.theme-forerunner .card::after,
body.theme-forerunner .order-panel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background:
        linear-gradient(135deg, transparent 50%, rgba(255,106,0,0.3) 50%),
        linear-gradient(45deg, transparent 70%, rgba(0,204,255,0.2) 70%);
    pointer-events: none;
}

/* Energy Orb in Background */
@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(50px, -30px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(100px, 20px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(30px, 40px) scale(1.05);
        opacity: 0.35;
    }
}

body.theme-forerunner .header::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255,106,0,0.4) 0%, rgba(255,149,0,0.2) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(10px);
    animation: orbFloat 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Geometric Triangles Overlay */
body.theme-forerunner .footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpolygon fill='none' stroke='%23ff6a00' stroke-width='0.3' opacity='0.3' points='40,10 70,60 10,60'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    opacity: 0.4;
    pointer-events: none;
}

/* Pulsing Border Effect for Active Elements */
@keyframes borderPulse {
    0%, 100% {
        border-color: rgba(255,106,0,0.5);
        box-shadow: 0 0 20px rgba(255,106,0,0.3);
    }
    50% {
        border-color: rgba(255,149,0,0.8);
        box-shadow: 0 0 40px rgba(255,149,0,0.6), 0 0 60px rgba(0,204,255,0.2);
    }
}

body.theme-forerunner .chart-container {
    animation: borderPulse 4s ease-in-out infinite !important;
}

/* Data Stream Effect on Orderbook */
@keyframes dataStream {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}

body.theme-forerunner .orderbook-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255,106,0,0.03) 25%,
        transparent 50%,
        rgba(0,204,255,0.02) 75%,
        transparent 100%);
    background-size: 100% 200%;
    animation: dataStream 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Glitch Effect on Logo (subtle) */
@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
        text-shadow:
            0 0 10px rgba(255,106,0,0.8),
            0 0 20px rgba(255,149,0,0.6);
    }
    92% {
        transform: translate(-2px, 1px);
        text-shadow:
            -2px 0 #00ccff,
            2px 0 #ff6a00;
    }
    94% {
        transform: translate(2px, -1px);
        text-shadow:
            2px 0 #00ccff,
            -2px 0 #ff6a00;
    }
    96% {
        transform: translate(-1px, 2px);
    }
    98% {
        transform: translate(1px, -2px);
    }
}

body.theme-forerunner .logo {
    animation: glitch 10s ease-in-out infinite;
}

/* Enhanced Hexagon Grid with Multiple Layers */
body.theme-forerunner {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='210' viewBox='0 0 180 210'%3E%3Cdefs%3E%3ClinearGradient id='hg1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23ff6a00;stop-opacity:0.15'/%3E%3Cstop offset='100%25' style='stop-color:%2300ccff;stop-opacity:0.05'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon fill='none' stroke='url(%23hg1)' stroke-width='1.5' points='90,10 165,55 165,145 90,190 15,145 15,55'/%3E%3Cpolygon fill='none' stroke='%23ff6a00' stroke-width='0.5' opacity='0.2' points='90,30 145,65 145,135 90,170 35,135 35,65'/%3E%3Cpolygon fill='none' stroke='%2300ccff' stroke-width='0.3' opacity='0.15' points='90,50 125,75 125,125 90,150 55,125 55,75'/%3E%3Ccircle cx='90' cy='100' r='6' fill='%23ff6a00' opacity='0.3'/%3E%3Ccircle cx='90' cy='100' r='12' fill='none' stroke='%23ff6a00' opacity='0.15' stroke-width='1'/%3E%3Ccircle cx='90' cy='100' r='20' fill='none' stroke='%2300ccff' opacity='0.1' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 180px 210px;
    background-attachment: fixed;
}

/* Ambient Corner Lights */
body.theme-forerunner::before {
    background:
        /* Corner glows */
        radial-gradient(circle at 0% 0%, rgba(255,106,0,0.15) 0%, transparent 30%),
        radial-gradient(circle at 100% 0%, rgba(0,204,255,0.1) 0%, transparent 30%),
        radial-gradient(circle at 0% 100%, rgba(0,204,255,0.08) 0%, transparent 25%),
        radial-gradient(circle at 100% 100%, rgba(255,106,0,0.12) 0%, transparent 30%),
        /* Central energy core */
        radial-gradient(circle at 50% 50%, rgba(255,106,0,0.08) 0%, transparent 40%),
        /* Ambient lighting */
        radial-gradient(ellipse 120% 80% at 30% 20%, rgba(255,149,0,0.12) 0%, transparent 50%),
        radial-gradient(ellipse 100% 60% at 70% 80%, rgba(0,180,255,0.08) 0%, transparent 50%),
        /* Base gradient */
        linear-gradient(180deg, #050302 0%, #030201 40%, #020305 100%) !important;
}

/* Status Indicator Enhancement */
body.theme-forerunner .status-indicator.online {
    background: #00ff88 !important;
    box-shadow:
        0 0 10px #00ff88,
        0 0 20px rgba(0,255,136,0.5),
        0 0 30px rgba(0,255,136,0.3) !important;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Network Selector Enhancement */
body.theme-forerunner .network-selector {
    border: 1px solid rgba(255,106,0,0.4) !important;
    background: rgba(20,12,5,0.9) !important;
}

body.theme-forerunner .network-selector:hover {
    border-color: #ff6a00 !important;
    box-shadow: 0 0 20px rgba(255,106,0,0.4) !important;
}

/* Wallet Button Special */
body.theme-forerunner .btn-connect {
    background: linear-gradient(135deg, rgba(255,106,0,0.2), rgba(0,204,255,0.1)) !important;
    border: 1px solid rgba(255,106,0,0.5) !important;
    position: relative;
    overflow: hidden;
}

body.theme-forerunner .btn-connect::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,149,0,0.3), transparent);
    animation: walletShine 3s ease-in-out infinite;
}

@keyframes walletShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* ============================================
   THEME SELECTOR UI
   ============================================ */

.theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.theme-option {
    background: rgba(10, 15, 25, 0.8);
    border: 2px solid rgba(100, 100, 120, 0.3);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.theme-option:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 170, 255, 0.2);
}

.theme-option.active {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.theme-preview {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.theme-preview-header {
    height: 12px;
    border-radius: 4px 4px 0 0;
}

.theme-preview-content {
    display: flex;
    gap: 4px;
    padding: 4px;
    height: calc(100% - 12px);
}

.theme-preview-panel {
    flex: 1;
    border-radius: 4px;
}

/* Default Theme Preview */
.theme-preview-default {
    background: linear-gradient(135deg, #0a0a1e, #1a1a3e);
}

.theme-preview-default .theme-preview-header {
    background: linear-gradient(90deg, #00aaff, #00ff88);
}

.theme-preview-default .theme-preview-panel {
    background: rgba(0, 170, 255, 0.2);
    border: 1px solid rgba(0, 170, 255, 0.3);
}

/* Forerunner Theme Preview */
.theme-preview-forerunner {
    background: linear-gradient(135deg, #050302, #0a0805);
}

.theme-preview-forerunner .theme-preview-header {
    background: linear-gradient(90deg, #ff6a00, #ff9500);
}

.theme-preview-forerunner .theme-preview-panel {
    background: rgba(255, 106, 0, 0.15);
    border: 1px solid rgba(255, 106, 0, 0.4);
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.2);
}

.theme-preview-forerunner .theme-preview-hexagon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: transparent;
    border: 2px solid rgba(255, 106, 0, 0.5);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: forerunnerPulse 2s ease-in-out infinite;
}

/* Neon Theme Preview */
.theme-preview-neon {
    background: linear-gradient(135deg, #0a000a, #1a001a);
}

.theme-preview-neon .theme-preview-header {
    background: linear-gradient(90deg, #ff00ff, #00ffff);
}

.theme-preview-neon .theme-preview-panel {
    background: rgba(255, 0, 255, 0.15);
    border: 1px solid rgba(255, 0, 255, 0.4);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);
}

.theme-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.theme-desc {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================
   NEON THEME (Cyberpunk)
   ============================================ */

body.theme-neon {
    --bg-primary: #0a000a;
    --bg-secondary: #150015;
    --accent-primary: #ff00ff;
    --accent-secondary: #00ffff;
    --text-primary: #ffffff;
    --border-color: rgba(255, 0, 255, 0.4);
}

body.theme-neon::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 0, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 40%),
        linear-gradient(180deg, #0a000a 0%, #150015 100%);
    z-index: -3;
    pointer-events: none;
}

body.theme-neon .glass-panel,
body.theme-neon .card,
body.theme-neon .panel,
body.theme-neon .order-panel {
    background: rgba(20, 0, 30, 0.9) !important;
    border: 1px solid rgba(255, 0, 255, 0.4) !important;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.15), 0 0 40px rgba(0, 255, 255, 0.05) !important;
}

body.theme-neon .btn-primary {
    background: linear-gradient(135deg, #ff00ff, #00ffff) !important;
    border: none !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5) !important;
}

body.theme-neon .nav-tab.active {
    background: rgba(255, 0, 255, 0.2) !important;
    border-color: #ff00ff !important;
    color: #00ffff !important;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4) !important;
}

body.theme-neon h1,
body.theme-neon h2,
body.theme-neon h3,
body.theme-neon .logo-text {
    color: #ff00ff !important;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.5) !important;
}

body.theme-neon .header {
    border-bottom: 2px solid rgba(255, 0, 255, 0.4) !important;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.2) !important;
}

body.theme-neon .footer {
    border-top: 2px solid rgba(0, 255, 255, 0.3) !important;
}

/* ============================================
   FORERUNNER THEME - ULTRA EDITION
   Maximum visual impact - Halo 4/5 inspired
   ============================================ */

/* Override previous forerunner styles for maximum effect */
body.theme-forerunner {
    background: #020201 !important;
}

/* Epic Multi-Layer Background */
body.theme-forerunner::before {
    content: "" !important;
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        /* Dramatic light sources */
        radial-gradient(ellipse 60% 40% at 50% -10%, rgba(255,140,0,0.25) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 0% 50%, rgba(255,100,0,0.15) 0%, transparent 40%),
        radial-gradient(ellipse 80% 50% at 100% 50%, rgba(0,180,255,0.1) 0%, transparent 40%),
        radial-gradient(ellipse 100% 80% at 50% 120%, rgba(255,80,0,0.2) 0%, transparent 50%),
        /* Core glow */
        radial-gradient(circle at 50% 50%, rgba(255,106,0,0.05) 0%, transparent 50%),
        /* Base */
        linear-gradient(180deg, #030201 0%, #020202 50%, #010103 100%) !important;
    z-index: -10 !important;
    pointer-events: none;
}

/* Massive Hexagon Grid */
body.theme-forerunner::after {
    content: "" !important;
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='230' viewBox='0 0 200 230'%3E%3Cdefs%3E%3ClinearGradient id='fg1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23ff6a00;stop-opacity:0.4'/%3E%3Cstop offset='50%25' style='stop-color:%23ff9500;stop-opacity:0.2'/%3E%3Cstop offset='100%25' style='stop-color:%2300aaff;stop-opacity:0.1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpolygon fill='none' stroke='url(%23fg1)' stroke-width='1.5' points='100,10 185,55 185,145 100,190 15,145 15,55'/%3E%3Cpolygon fill='none' stroke='%23ff6a00' stroke-width='0.8' opacity='0.3' points='100,30 165,65 165,135 100,170 35,135 35,65'/%3E%3Cpolygon fill='none' stroke='%23ff8c00' stroke-width='0.4' opacity='0.2' points='100,50 145,75 145,125 100,150 55,125 55,75'/%3E%3Ccircle cx='100' cy='100' r='8' fill='%23ff6a00' opacity='0.4'/%3E%3Ccircle cx='100' cy='100' r='15' fill='none' stroke='%23ff6a00' stroke-width='1' opacity='0.25'/%3E%3Ccircle cx='100' cy='100' r='25' fill='none' stroke='%2300aaff' stroke-width='0.5' opacity='0.15'/%3E%3Cline x1='100' y1='10' x2='100' y2='40' stroke='%23ff6a00' stroke-width='0.5' opacity='0.3'/%3E%3Cline x1='100' y1='160' x2='100' y2='190' stroke='%23ff6a00' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E") !important;
    background-size: 200px 230px;
    opacity: 0.7 !important;
    z-index: -9 !important;
    pointer-events: none;
    animation: hexPulse 8s ease-in-out infinite !important;
}

@keyframes hexPulse {
    0%, 100% { opacity: 0.5; filter: brightness(1); }
    50% { opacity: 0.8; filter: brightness(1.2); }
}

/* Energy Circuit Layer */
body.theme-forerunner #app {
    position: relative;
}

body.theme-forerunner #app::before {
    content: "" !important;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cpath d='M0,200 Q100,180 150,200 T300,200 T400,180' fill='none' stroke='%23ff6a00' stroke-width='1' opacity='0.15'/%3E%3Cpath d='M200,0 Q220,100 200,150 T200,300 T220,400' fill='none' stroke='%2300aaff' stroke-width='0.8' opacity='0.1'/%3E%3Ccircle cx='150' cy='200' r='4' fill='%23ff6a00' opacity='0.5'/%3E%3Ccircle cx='300' cy='200' r='3' fill='%23ff6a00' opacity='0.4'/%3E%3Ccircle cx='200' cy='150' r='3' fill='%2300aaff' opacity='0.3'/%3E%3Ccircle cx='200' cy='300' r='4' fill='%2300aaff' opacity='0.25'/%3E%3C/svg%3E");
    background-size: 400px 400px;
    opacity: 0.6;
    z-index: -8;
    pointer-events: none;
    animation: circuitMove 40s linear infinite;
}

@keyframes circuitMove {
    0% { background-position: 0 0; }
    100% { background-position: 400px 400px; }
}

/* Dramatic Header - Command Bridge */
body.theme-forerunner .header {
    background: linear-gradient(180deg,
        rgba(30,18,5,0.98) 0%,
        rgba(20,12,5,0.95) 50%,
        rgba(15,10,5,0.9) 100%) !important;
    border-bottom: 3px solid transparent !important;
    border-image: linear-gradient(90deg,
        transparent,
        rgba(255,106,0,0.3),
        rgba(255,149,0,0.8),
        rgba(255,200,0,1),
        rgba(255,149,0,0.8),
        rgba(255,106,0,0.3),
        transparent) 1 !important;
    box-shadow:
        0 0 50px rgba(255,106,0,0.3),
        0 5px 30px rgba(255,80,0,0.2),
        inset 0 -30px 60px rgba(255,106,0,0.05) !important;
    position: relative;
    overflow: visible !important;
}

/* Header Top Light Bar */
body.theme-forerunner .header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,106,0,0.5) 20%,
        rgba(255,149,0,0.9) 35%,
        rgba(255,200,100,1) 50%,
        rgba(255,149,0,0.9) 65%,
        rgba(255,106,0,0.5) 80%,
        transparent 100%);
    box-shadow: 0 0 20px rgba(255,149,0,0.8);
    animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Panels - Ancient Tech Slabs */
body.theme-forerunner .glass-panel,
body.theme-forerunner .card,
body.theme-forerunner .panel,
body.theme-forerunner .order-panel,
body.theme-forerunner .settings-section,
body.theme-forerunner .collapsible-panel {
    background: linear-gradient(145deg,
        rgba(35,22,8,0.95) 0%,
        rgba(20,14,6,0.92) 30%,
        rgba(15,10,5,0.9) 70%,
        rgba(10,8,5,0.95) 100%) !important;
    border: 2px solid rgba(255,106,0,0.5) !important;
    border-radius: 8px !important;
    box-shadow:
        0 0 40px rgba(255,106,0,0.2),
        0 10px 40px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,180,100,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.5),
        inset 0 0 80px rgba(255,106,0,0.03) !important;
    position: relative;
    overflow: hidden;
}

/* Panel Top Energy Line */
body.theme-forerunner .glass-panel::before,
body.theme-forerunner .card::before,
body.theme-forerunner .panel::before,
body.theme-forerunner .order-panel::before {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,106,0,0.6),
        rgba(255,149,0,1),
        rgba(255,200,100,1),
        rgba(255,149,0,1),
        rgba(255,106,0,0.6),
        transparent) !important;
    box-shadow: 0 0 15px rgba(255,149,0,0.6);
    animation: panelLineGlow 4s ease-in-out infinite;
}

@keyframes panelLineGlow {
    0%, 100% { opacity: 0.6; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.3); }
}

/* Panel Corner Accents */
body.theme-forerunner .glass-panel::after,
body.theme-forerunner .card::after,
body.theme-forerunner .order-panel::after {
    content: "" !important;
    position: absolute !important;
    top: 0; right: 0;
    width: 50px; height: 50px;
    background:
        linear-gradient(135deg, transparent 60%, rgba(255,106,0,0.2) 60%),
        linear-gradient(225deg, transparent 85%, rgba(0,170,255,0.15) 85%);
    pointer-events: none;
}

/* Epic Buttons */
body.theme-forerunner .btn-primary,
body.theme-forerunner .button-primary {
    background: linear-gradient(135deg,
        #ff6a00 0%,
        #ff8c00 30%,
        #ffaa00 50%,
        #ff8c00 70%,
        #ff6a00 100%) !important;
    background-size: 200% 100%;
    border: 2px solid rgba(255,200,100,0.8) !important;
    color: #000 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        0 0 30px rgba(255,106,0,0.6),
        0 0 60px rgba(255,149,0,0.3),
        0 5px 20px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -2px 0 rgba(0,0,0,0.2) !important;
    animation: btnGlow 2s ease-in-out infinite, btnGradient 3s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes btnGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(255,106,0,0.6), 0 0 60px rgba(255,149,0,0.3); }
    50% { box-shadow: 0 0 50px rgba(255,106,0,0.9), 0 0 100px rgba(255,149,0,0.5); }
}

body.theme-forerunner .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 0 60px rgba(255,106,0,1),
        0 0 120px rgba(255,149,0,0.6),
        0 10px 40px rgba(0,0,0,0.5) !important;
}

/* Logo - Holographic */
body.theme-forerunner .logo-text {
    background: linear-gradient(90deg,
        #ff6a00 0%,
        #ffaa00 25%,
        #00ccff 50%,
        #ffaa00 75%,
        #ff6a00 100%) !important;
    background-size: 200% auto;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: logoShift 6s linear infinite !important;
    filter: drop-shadow(0 0 10px rgba(255,106,0,0.8)) drop-shadow(0 0 20px rgba(255,149,0,0.5));
}

@keyframes logoShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Navigation - Energy Tabs */
body.theme-forerunner .nav-tab {
    background: rgba(20,12,5,0.8) !important;
    border: 2px solid rgba(255,106,0,0.3) !important;
    color: #cc8855 !important;
    position: relative;
    transition: all 0.3s ease;
}

body.theme-forerunner .nav-tab::before {
    content: "";
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #ff6a00, #ffaa00, #ff6a00);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255,149,0,0.5);
}

body.theme-forerunner .nav-tab:hover {
    background: rgba(255,106,0,0.15) !important;
    border-color: rgba(255,106,0,0.6) !important;
    color: #ffaa00 !important;
    box-shadow: 0 0 30px rgba(255,106,0,0.3) !important;
}

body.theme-forerunner .nav-tab:hover::before {
    width: 80%;
}

body.theme-forerunner .nav-tab.active {
    background: linear-gradient(180deg,
        rgba(255,106,0,0.25) 0%,
        rgba(255,149,0,0.15) 100%) !important;
    border-color: rgba(255,149,0,0.8) !important;
    color: #ffcc00 !important;
    box-shadow:
        0 0 40px rgba(255,106,0,0.5),
        inset 0 0 30px rgba(255,106,0,0.1) !important;
}

body.theme-forerunner .nav-tab.active::before {
    width: 100%;
    height: 3px;
}

/* Chart Container - Holographic Display */
body.theme-forerunner .chart-container {
    border: 3px solid rgba(255,106,0,0.6) !important;
    box-shadow:
        0 0 50px rgba(255,106,0,0.25),
        0 0 100px rgba(255,80,0,0.1),
        inset 0 0 100px rgba(255,106,0,0.05) !important;
    animation: chartPulse 5s ease-in-out infinite;
}

@keyframes chartPulse {
    0%, 100% {
        border-color: rgba(255,106,0,0.5);
        box-shadow: 0 0 50px rgba(255,106,0,0.2);
    }
    50% {
        border-color: rgba(255,149,0,0.8);
        box-shadow: 0 0 80px rgba(255,149,0,0.4), 0 0 120px rgba(0,170,255,0.1);
    }
}

/* Horizontal Scan Line */
body.theme-forerunner #app::after {
    content: "";
    position: fixed;
    left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,149,0,0.2),
        rgba(255,200,100,0.8),
        rgba(0,200,255,0.4),
        rgba(255,200,100,0.8),
        rgba(255,149,0,0.2),
        transparent);
    box-shadow:
        0 0 30px rgba(255,149,0,0.8),
        0 0 60px rgba(255,106,0,0.5);
    animation: scanDown 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 9999;
}

@keyframes scanDown {
    0%, 100% { top: -10px; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    99% { top: calc(100vh + 10px); opacity: 0; }
}

/* Inputs */
body.theme-forerunner input,
body.theme-forerunner select,
body.theme-forerunner textarea {
    background: rgba(10,6,3,0.95) !important;
    border: 2px solid rgba(255,106,0,0.4) !important;
    color: #ffe8d0 !important;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5) !important;
}

body.theme-forerunner input:focus,
body.theme-forerunner select:focus {
    border-color: rgba(255,149,0,0.8) !important;
    box-shadow:
        0 0 30px rgba(255,106,0,0.4),
        inset 0 0 20px rgba(255,106,0,0.1) !important;
}

/* Footer */
body.theme-forerunner .footer {
    background: linear-gradient(180deg,
        rgba(20,12,5,0.95) 0%,
        rgba(10,6,3,0.98) 100%) !important;
    border-top: 3px solid transparent !important;
    border-image: linear-gradient(90deg,
        transparent,
        rgba(255,106,0,0.5),
        rgba(255,149,0,0.8),
        rgba(255,106,0,0.5),
        transparent) 1 !important;
    box-shadow: 0 -10px 50px rgba(255,106,0,0.15) !important;
}

/* Profit/Loss Glow */
body.theme-forerunner .positive,
body.theme-forerunner .profit {
    color: #00ff88 !important;
    text-shadow:
        0 0 10px rgba(0,255,136,0.8),
        0 0 20px rgba(0,255,136,0.5),
        0 0 40px rgba(0,255,136,0.3) !important;
}

body.theme-forerunner .negative,
body.theme-forerunner .loss {
    color: #ff4466 !important;
    text-shadow:
        0 0 10px rgba(255,68,102,0.8),
        0 0 20px rgba(255,68,102,0.5),
        0 0 40px rgba(255,68,102,0.3) !important;
}

/* Scrollbar */
body.theme-forerunner ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

body.theme-forerunner ::-webkit-scrollbar-track {
    background: #0a0604;
    border-left: 1px solid rgba(255,106,0,0.2);
}

body.theme-forerunner ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        #ff6a00 0%,
        #ff9500 30%,
        #ffaa00 50%,
        #ff9500 70%,
        #ff6a00 100%);
    border-radius: 6px;
    box-shadow:
        0 0 15px rgba(255,106,0,0.8),
        inset 0 0 5px rgba(255,255,255,0.2);
}

body.theme-forerunner ::-webkit-scrollbar-thumb:hover {
    box-shadow:
        0 0 25px rgba(255,149,0,1),
        inset 0 0 10px rgba(255,255,255,0.3);
}

/* Selection */
body.theme-forerunner ::selection {
    background: rgba(255,106,0,0.6) !important;
    color: #fff !important;
    text-shadow: none !important;
}

/* Titles */
body.theme-forerunner h1,
body.theme-forerunner h2,
body.theme-forerunner h3 {
    color: #ffaa00 !important;
    text-shadow:
        0 0 10px rgba(255,149,0,0.8),
        0 0 20px rgba(255,106,0,0.5),
        0 0 40px rgba(255,80,0,0.3) !important;
}

/* ============================================
   FORERUNNER ULTIMATE ADDITIONS
   Floating glyphs, particles, light effects
   ============================================ */

/* Floating Forerunner Glyph Symbols Overlay */
body.theme-forerunner .main-content::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cdefs%3E%3Cfilter id='glow'%3E%3CfeGaussianBlur stdDeviation='2' result='coloredBlur'/%3E%3CfeMerge%3E%3CfeMergeNode in='coloredBlur'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3C!-- Forerunner Symbol 1 --%3E%3Cg filter='url(%23glow)' opacity='0.4'%3E%3Cpath d='M100,80 L120,60 L140,80 L140,120 L120,140 L100,120 Z' fill='none' stroke='%23ff6a00' stroke-width='1.5'/%3E%3Ccircle cx='120' cy='100' r='10' fill='none' stroke='%23ffaa00' stroke-width='1'/%3E%3Cline x1='120' y1='60' x2='120' y2='80' stroke='%23ff6a00' stroke-width='1'/%3E%3Cline x1='120' y1='120' x2='120' y2='140' stroke='%23ff6a00' stroke-width='1'/%3E%3C/g%3E%3C!-- Forerunner Symbol 2 --%3E%3Cg filter='url(%23glow)' opacity='0.3' transform='translate(400,150)'%3E%3Crect x='0' y='0' width='60' height='60' fill='none' stroke='%23ff8c00' stroke-width='1.5' transform='rotate(45 30 30)'/%3E%3Ccircle cx='30' cy='30' r='15' fill='none' stroke='%23ffcc00' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='5' fill='%23ff6a00' opacity='0.5'/%3E%3C/g%3E%3C!-- Forerunner Symbol 3 --%3E%3Cg filter='url(%23glow)' opacity='0.35' transform='translate(80,380)'%3E%3Cpolygon points='40,0 80,40 40,80 0,40' fill='none' stroke='%23ff6a00' stroke-width='1.5'/%3E%3Cpolygon points='40,15 65,40 40,65 15,40' fill='none' stroke='%23ffaa00' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='8' fill='%23ff8c00' opacity='0.4'/%3E%3C/g%3E%3C!-- Forerunner Symbol 4 --%3E%3Cg filter='url(%23glow)' opacity='0.25' transform='translate(450,420)'%3E%3Cpath d='M0,30 L30,0 L60,30 L30,60 Z' fill='none' stroke='%2300aaff' stroke-width='1.5'/%3E%3Cpath d='M15,30 L30,15 L45,30 L30,45 Z' fill='none' stroke='%2300ccff' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='6' fill='%2300aaff' opacity='0.4'/%3E%3C/g%3E%3C!-- Floating particles --%3E%3Ccircle cx='200' cy='100' r='3' fill='%23ff6a00' opacity='0.6'%3E%3Canimate attributeName='opacity' values='0.3;0.8;0.3' dur='3s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='500' cy='300' r='2' fill='%23ffaa00' opacity='0.5'%3E%3Canimate attributeName='opacity' values='0.2;0.7;0.2' dur='4s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='150' cy='500' r='2.5' fill='%2300aaff' opacity='0.4'%3E%3Canimate attributeName='opacity' values='0.2;0.6;0.2' dur='5s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='550' cy='150' r='2' fill='%23ff8c00' opacity='0.5'%3E%3Canimate attributeName='opacity' values='0.3;0.8;0.3' dur='2.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
    background-size: 600px 600px;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
    animation: glyphFloat 60s linear infinite;
}

@keyframes glyphFloat {
    0% { background-position: 0 0; }
    100% { background-position: 600px -600px; }
}

/* Energy Particle Rain */
body.theme-forerunner .main-content::after {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='400'%3E%3Cline x1='50' y1='0' x2='50' y2='60' stroke='%23ff6a00' stroke-width='1' opacity='0.3'%3E%3Canimate attributeName='y1' values='0;400' dur='8s' repeatCount='indefinite'/%3E%3Canimate attributeName='y2' values='60;460' dur='8s' repeatCount='indefinite'/%3E%3C/line%3E%3Ccircle cx='50' cy='0' r='2' fill='%23ffaa00' opacity='0.8'%3E%3Canimate attributeName='cy' values='0;400' dur='8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
    background-size: 100px 400px;
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    animation: particleRain 8s linear infinite;
}

@keyframes particleRain {
    0% { background-position: 0 -400px; }
    100% { background-position: 0 0; }
}

/* Vertical Light Pillars at Edges */
body.theme-forerunner #app > .main-content {
    position: relative;
}

body.theme-forerunner #app > .main-content > *:first-child::before {
    content: "";
    position: fixed;
    top: 70px; bottom: 50px;
    left: 0;
    width: 6px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255,106,0,0.15) 10%,
        rgba(255,149,0,0.5) 30%,
        rgba(255,200,100,0.7) 50%,
        rgba(255,149,0,0.5) 70%,
        rgba(255,106,0,0.15) 90%,
        transparent 100%);
    box-shadow:
        0 0 30px rgba(255,106,0,0.5),
        0 0 60px rgba(255,149,0,0.3),
        10px 0 80px rgba(255,106,0,0.2);
    z-index: 1;
    pointer-events: none;
    animation: pillarPulse 5s ease-in-out infinite;
}

body.theme-forerunner #app > .main-content > *:last-child::after {
    content: "";
    position: fixed;
    top: 70px; bottom: 50px;
    right: 0;
    width: 6px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0,170,255,0.15) 10%,
        rgba(0,200,255,0.5) 30%,
        rgba(100,220,255,0.7) 50%,
        rgba(0,200,255,0.5) 70%,
        rgba(0,170,255,0.15) 90%,
        transparent 100%);
    box-shadow:
        0 0 30px rgba(0,170,255,0.5),
        0 0 60px rgba(0,200,255,0.3),
        -10px 0 80px rgba(0,170,255,0.2);
    z-index: 1;
    pointer-events: none;
    animation: pillarPulse 5s ease-in-out infinite 1s;
}

@keyframes pillarPulse {
    0%, 100% { opacity: 0.6; filter: brightness(0.8); }
    50% { opacity: 1; filter: brightness(1.2); }
}

/* Corner Energy Nodes */
body.theme-forerunner .header::after {
    content: "";
    position: absolute;
    bottom: -20px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 40px;
    background: radial-gradient(circle,
        rgba(255,200,100,1) 0%,
        rgba(255,149,0,0.8) 30%,
        rgba(255,106,0,0.4) 50%,
        transparent 70%);
    border-radius: 50%;
    box-shadow:
        0 0 30px rgba(255,149,0,0.8),
        0 0 60px rgba(255,106,0,0.5),
        0 0 100px rgba(255,80,0,0.3);
    animation: energyNode 3s ease-in-out infinite;
    z-index: 999;
}

@keyframes energyNode {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
    50% { transform: translateX(-50%) scale(1.3); opacity: 1; }
}

/* Dramatic Ambient Pulses */
body.theme-forerunner {
    animation: ambientPulse 10s ease-in-out infinite;
}

@keyframes ambientPulse {
    0%, 100% { filter: brightness(1) saturate(1); }
    50% { filter: brightness(1.05) saturate(1.1); }
}

/* Panel Hover Energy Surge */
body.theme-forerunner .glass-panel:hover,
body.theme-forerunner .card:hover,
body.theme-forerunner .order-panel:hover {
    box-shadow:
        0 0 80px rgba(255,106,0,0.4),
        0 0 120px rgba(255,149,0,0.25),
        inset 0 0 100px rgba(255,106,0,0.08) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Holographic Data Overlay Effect on Tables */
body.theme-forerunner table,
body.theme-forerunner .data-table {
    position: relative;
    background: rgba(15,10,5,0.9) !important;
    border: 2px solid rgba(255,106,0,0.4) !important;
}

body.theme-forerunner table::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255,149,0,0.03) 2px,
            rgba(255,149,0,0.03) 4px
        );
    pointer-events: none;
    z-index: 1;
}

body.theme-forerunner th {
    background: linear-gradient(180deg,
        rgba(255,106,0,0.2) 0%,
        rgba(255,80,0,0.1) 100%) !important;
    color: #ffcc00 !important;
    text-shadow: 0 0 10px rgba(255,149,0,0.8);
    border-bottom: 2px solid rgba(255,149,0,0.6) !important;
}

body.theme-forerunner td {
    border-bottom: 1px solid rgba(255,106,0,0.2) !important;
}

body.theme-forerunner tr:hover td {
    background: rgba(255,106,0,0.1) !important;
    text-shadow: 0 0 5px rgba(255,149,0,0.5);
}

/* Wallet Button Halo Ring */
body.theme-forerunner .btn-connect {
    background: linear-gradient(135deg,
        #ff6a00 0%,
        #ffaa00 50%,
        #ff6a00 100%) !important;
    color: #000 !important;
    position: relative;
    overflow: visible !important;
}

body.theme-forerunner .btn-connect::before {
    content: "";
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6a00, #ffcc00, #00aaff, #ff6a00) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: haloRing 4s linear infinite;
    opacity: 0.6;
}

@keyframes haloRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.theme-forerunner .btn-connect::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 150%; height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,149,0,0.4) 0%, transparent 60%);
    pointer-events: none;
    animation: btnHaloGlow 2s ease-in-out infinite;
}

@keyframes btnHaloGlow {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

/* Dropdown Menus - Ancient Tech Style */
body.theme-forerunner .dropdown,
body.theme-forerunner .lang-dropdown,
body.theme-forerunner select {
    background: linear-gradient(180deg,
        rgba(25,15,8,0.98) 0%,
        rgba(15,10,5,0.95) 100%) !important;
    border: 2px solid rgba(255,106,0,0.5) !important;
    box-shadow:
        0 10px 40px rgba(0,0,0,0.8),
        0 0 30px rgba(255,106,0,0.2),
        inset 0 1px 0 rgba(255,180,100,0.1) !important;
}

/* Settings Section Enhanced */
body.theme-forerunner .settings-section {
    position: relative;
    overflow: visible !important;
}

body.theme-forerunner .settings-section h3 {
    position: relative;
    display: inline-block;
}

body.theme-forerunner .settings-section h3::after {
    content: "";
    position: absolute;
    bottom: -5px; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(255,149,0,1),
        rgba(255,106,0,0.5),
        transparent);
    box-shadow: 0 0 10px rgba(255,149,0,0.8);
}

/* Token Selector Glow */
body.theme-forerunner .token-select,
body.theme-forerunner .token-selector {
    background: rgba(20,12,5,0.95) !important;
    border: 2px solid rgba(255,106,0,0.5) !important;
    box-shadow:
        0 0 20px rgba(255,106,0,0.2),
        inset 0 0 30px rgba(0,0,0,0.5) !important;
}

body.theme-forerunner .token-select:hover,
body.theme-forerunner .token-selector:hover {
    border-color: rgba(255,149,0,0.8) !important;
    box-shadow:
        0 0 40px rgba(255,106,0,0.4),
        0 0 80px rgba(255,80,0,0.2) !important;
}

/* Modal/Dialog Ancient Style */
body.theme-forerunner .modal,
body.theme-forerunner .dialog,
body.theme-forerunner .popup {
    background: linear-gradient(145deg,
        rgba(35,22,8,0.98) 0%,
        rgba(15,10,5,0.98) 100%) !important;
    border: 3px solid rgba(255,106,0,0.6) !important;
    box-shadow:
        0 0 100px rgba(255,106,0,0.3),
        0 0 200px rgba(255,80,0,0.15),
        inset 0 0 100px rgba(255,106,0,0.05) !important;
}

/* Epic Loading Spinner */
body.theme-forerunner .spinner,
body.theme-forerunner .loading {
    border-color: rgba(255,106,0,0.2) !important;
    border-top-color: #ffaa00 !important;
    box-shadow:
        0 0 20px rgba(255,149,0,0.6),
        0 0 40px rgba(255,106,0,0.3);
}

/* Links with Energy Underline */
body.theme-forerunner a {
    color: #ffaa00 !important;
    text-decoration: none;
    position: relative;
}

body.theme-forerunner a::after {
    content: "";
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #ff6a00, #ffcc00);
    box-shadow: 0 0 8px rgba(255,149,0,0.8);
    transition: width 0.3s ease;
}

body.theme-forerunner a:hover::after {
    width: 100%;
}

/* Status Indicators */
body.theme-forerunner .status-online,
body.theme-forerunner .network-dot {
    background: radial-gradient(circle,
        #00ff88 0%,
        #00cc66 50%,
        #009944 100%) !important;
    box-shadow:
        0 0 10px rgba(0,255,136,0.8),
        0 0 20px rgba(0,255,136,0.5),
        0 0 40px rgba(0,255,136,0.3);
}

/* Final Ultimate Shine */
body.theme-forerunner .glass-panel,
body.theme-forerunner .card {
    backdrop-filter: blur(10px);
}

/* Dramatic text glow on important values */
body.theme-forerunner .price,
body.theme-forerunner .value,
body.theme-forerunner .amount {
    text-shadow: 0 0 8px rgba(255,200,100,0.6);
}

/* Ensure all theme elements are crisp */
body.theme-forerunner * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* deploy-2025-12-31 */
/* Fix: Portfolio and Learn tabs visible */
.header-left {
    flex: 1;
    overflow: visible !important;
}

.nav-tabs {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
    scrollbar-color: rgba(201,162,39,0.5) transparent;
    padding: 8px 10px 8px 0;
    gap: 4px;
    align-items: center;
    max-width: calc(100vw - 350px);
}

.nav-tabs::-webkit-scrollbar {
    height: 4px;
}

.nav-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.nav-tabs::-webkit-scrollbar-thumb {
    background: rgba(201,162,39,0.4);
    border-radius: 2px;
}

.nav-tab {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 4px 5px !important;
    font-size: 9px !important;
    letter-spacing: -0.3px;
}

.header-right {
    flex-shrink: 0;
    margin-left: auto;
}

/* Bouton portfolio simule toujours visible */
#simulated-portfolio-btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force rebuild 1767752682 */

/* Panneaux de depot simule - toujours visibles */
.invest-deposit-panel,
.combos-deposit-panel,
.banking-deposit-panel,
.simulated-deposit-panel,
#simulated-deposit-panel {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
}


/* Navigation separators - hidden to save space */
.nav-sep {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   LEARN TAB - OBELISK ACADEMY STYLES
   ═══════════════════════════════════════════════════════════════ */

.learn-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.learn-hero {
    background: linear-gradient(135deg, rgba(201,162,39,0.15) 0%, rgba(0,212,255,0.1) 100%);
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.learn-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a227, #00d4ff, #c9a227, transparent);
}

.learn-hero-glyph {
    font-size: 4rem;
    color: #c9a227;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(201,162,39,0.5);
}

.learn-title {
    font-size: 2.5rem;
    color: #fff;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #c9a227, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.learn-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin: 0;
}

/* Progress Ring */
.learn-progress-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.progress-ring {
    position: relative;
    width: 100px;
    height: 100px;
}

.progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring .progress-bg {
    fill: none;
    stroke: rgba(255,255,255,0.1);
    stroke-width: 8;
}

.progress-ring .progress-fill {
    fill: none;
    stroke: #c9a227;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-ring .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: #c9a227;
}

.progress-details {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Category Tabs */
.learn-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-tab {
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(201,162,39,0.3);
    background: rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    border-color: #c9a227;
    color: #c9a227;
}

.category-tab.active {
    background: linear-gradient(135deg, #c9a227, #00d4ff);
    color: #000;
    font-weight: 600;
    border-color: transparent;
}

/* Course Grid */
.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Course Cards */
.learn-card {
    background: linear-gradient(145deg, rgba(20,20,30,0.9), rgba(10,10,15,0.95));
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.learn-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b6914, #c9a227, #00d4ff, #c9a227, #8b6914);
    opacity: 0;
    transition: opacity 0.3s;
}

.learn-card:hover {
    border-color: #c9a227;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201,162,39,0.2);
}

.learn-card:hover::before {
    opacity: 1;
}

.learn-card.featured {
    border-color: rgba(0,212,255,0.4);
    background: linear-gradient(145deg, rgba(0,50,70,0.3), rgba(10,10,15,0.95));
}

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

.course-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(201,162,39,0.2);
}

.course-icon.beginner { background: rgba(0,255,136,0.2); }
.course-icon.intermediate { background: rgba(255,170,0,0.2); }
.course-icon.advanced { background: rgba(255,100,100,0.2); }
.course-icon.security { background: rgba(0,212,255,0.2); }

.course-level {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

.course-level.featured {
    background: linear-gradient(135deg, #00d4ff, #0088aa);
    color: #000;
}

.learn-card h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 8px 0;
}

.learn-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.course-meta span::before {
    margin-right: 5px;
}

.duration::before { content: "⏱️"; }
.lessons::before { content: "📚"; }

/* Course Progress Bar */
.course-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.course-progress .progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.course-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a227, #00d4ff);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.course-progress .progress-label {
    font-size: 0.8rem;
    color: #c9a227;
    font-weight: 600;
    min-width: 35px;
    text-align: right;
}

/* Start Course Button */
.btn-start-course {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #c9a227, #8b6914);
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-start-course:hover {
    background: linear-gradient(135deg, #d4af37, #c9a227);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201,162,39,0.3);
}

/* Quick Tips Section */
.learn-tips-section {
    margin-bottom: 40px;
}

.section-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201,162,39,0.2);
}

.tips-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.tip-card {
    background: rgba(201,162,39,0.1);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: #c9a227;
    transform: translateY(-3px);
}

.tip-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.tip-card h4 {
    color: #c9a227;
    font-size: 1rem;
    margin: 0 0 8px 0;
}

.tip-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Glossary Section */
.learn-glossary {
    margin-bottom: 40px;
}

.glossary-search {
    margin-bottom: 20px;
}

.glossary-search input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid rgba(201,162,39,0.3);
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 0.95rem;
}

.glossary-search input:focus {
    outline: none;
    border-color: #c9a227;
    box-shadow: 0 0 10px rgba(201,162,39,0.2);
}

.glossary-search input::placeholder {
    color: rgba(255,255,255,0.4);
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.glossary-item {
    background: rgba(20,20,30,0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.glossary-item:hover {
    border-color: rgba(201,162,39,0.3);
}

.glossary-item h4 {
    color: #c9a227;
    font-size: 1rem;
    margin: 0 0 8px 0;
}

.glossary-item p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Course Modal */
.course-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.course-modal.active {
    display: flex;
}

.course-modal-content {
    background: linear-gradient(145deg, #1a1a2e, #0d0d1a);
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.course-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.course-modal .modal-close:hover {
    color: #fff;
}

.course-modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(201,162,39,0.2);
    background: rgba(201,162,39,0.05);
}

.course-modal-header h2 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.lesson-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.lesson-indicator span {
    color: #c9a227;
    font-weight: 600;
}

.course-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

.course-modal-body h3 {
    color: #c9a227;
    margin: 0 0 15px 0;
}

.course-modal-body p {
    margin: 0 0 15px 0;
}

.course-modal-body ul, .course-modal-body ol {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.course-modal-body li {
    margin-bottom: 8px;
}

.course-modal-body code {
    background: rgba(0,0,0,0.4);
    padding: 10px 15px;
    border-radius: 8px;
    display: block;
    margin: 10px 0;
    font-family: monospace;
    color: #00d4ff;
    border-left: 3px solid #c9a227;
}

.course-modal-body strong {
    color: #fff;
}

.course-modal-nav {
    padding: 20px 30px;
    border-top: 1px solid rgba(201,162,39,0.2);
    display: flex;
    justify-content: space-between;
    background: rgba(0,0,0,0.3);
}

.course-modal-nav button {
    padding: 12px 25px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#btn-prev-lesson {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

#btn-prev-lesson:hover {
    background: rgba(255,255,255,0.2);
}

#btn-next-lesson {
    background: linear-gradient(135deg, #c9a227, #8b6914);
    color: #000;
}

#btn-next-lesson:hover {
    background: linear-gradient(135deg, #d4af37, #c9a227);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .learn-hero {
        padding: 25px 20px;
    }

    .learn-title {
        font-size: 1.8rem;
    }

    .learn-grid {
        grid-template-columns: 1fr;
    }

    .course-modal-content {
        max-height: 95vh;
        border-radius: 12px;
    }

    .course-modal-body {
        padding: 20px;
    }
}

/* ========================================
   GROUPED NAVIGATION
   ======================================== */
.nav-grouped {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.nav-group {
    position: relative;
}

.nav-group-btn {
    background: transparent;
    border: 1px solid rgba(201, 162, 39, 0.2);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.nav-group-btn:hover {
    background: rgba(201, 162, 39, 0.1);
    border-color: var(--accent-primary);
}

.nav-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.nav-group:hover .nav-arrow {
    transform: rotate(180deg);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: var(--bg-secondary);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 12px;
    padding: 6px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
}

.nav-group:hover .nav-dropdown {
    display: flex;
    flex-direction: column;
}

.nav-dropdown .nav-tab {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}

.nav-dropdown .nav-tab:hover {
    background: rgba(201, 162, 39, 0.15);
}

.nav-dropdown .nav-tab.highlight {
    color: var(--cyan-primary);
}

/* Mobile: nav groups become full width */
@media (max-width: 768px) {
    .nav-grouped {
        flex-direction: column;
        width: 100%;
    }

    .nav-group {
        width: 100%;
    }

    .nav-group-btn {
        width: 100%;
        justify-content: center;
    }

    .nav-dropdown {
        position: static;
        border: none;
        padding: 0 0 0 16px;
        background: transparent;
        box-shadow: none;
    }

    .nav-group:hover .nav-dropdown,
    .nav-group.open .nav-dropdown {
        display: flex;
    }
}

/* ========================================
   DASHBOARD
   ======================================== */
.dashboard-container {
    padding: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 39, 0.15);
    border-radius: 16px;
    padding: 24px;
    transition: border-color 0.2s;
}

.dash-card:hover {
    border-color: var(--accent-primary);
}

.dash-card-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dash-card-value {
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 700;
}

.dash-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.dash-action-btn {
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.2);
    color: var(--text-primary);
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.dash-action-btn:hover {
    background: rgba(201, 162, 39, 0.15);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.dashboard-favorites {
    margin-top: 40px;
}

.dash-watchlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.08);
    cursor: pointer;
    transition: background 0.15s;
}

.dash-watchlist-item:hover {
    background: rgba(201, 162, 39, 0.05);
}

.dash-pair-name {
    color: var(--text-primary);
    font-weight: 500;
}

.dash-pair-price {
    color: var(--text-secondary);
    font-family: monospace;
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 16px;
    }
    .dashboard-cards {
        grid-template-columns: 1fr 1fr;
    }
}
