/* ════════════════════════════════════════════════
   The Elite Terminal — Base & Layout Styles
   Professional Trading Terminal UI
   ════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #06060a;
    color: #a1a1aa;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

.font-mono { font-family: 'JetBrains Mono', monospace; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
input { border: none; background: none; color: inherit; font: inherit; outline: none; }
::selection { background: rgba(245, 158, 11, 0.25); color: #fde68a; }

/* Scrollbars */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* ── Design Tokens ── */
:root {
    --bg-0: #06060a;
    --bg-1: #0a0a10;
    --bg-2: #0f0f17;
    --bg-3: #16161f;
    --bg-4: #1c1c28;
    --border: rgba(255,255,255,0.05);
    --border-hover: rgba(255,255,255,0.1);
    --text-1: #ffffff;
    --text-2: #d4d4d8;
    --text-3: #a1a1aa;
    --text-4: #71717a;
    --text-5: #27272a;
    --green: #00dc82;
    --green-dim: rgba(0,220,130,0.1);
    --green-bg: rgba(0,220,130,0.06);
    --red: #ff4757;
    --red-dim: rgba(255,71,87,0.1);
    --red-bg: rgba(255,71,87,0.06);
    --amber: #f59e0b;
    --amber-dim: rgba(245,158,11,0.1);
    --blue: #3b82f6;
    --blue-dim: rgba(59,130,246,0.1);
    --purple: #8b5cf6;
    --purple-dim: rgba(139,92,246,0.1);
    --radius: 6px;
    --radius-sm: 4px;
    --topbar-h: 40px;
    --sidebar-w: 232px;
    --panel-w: 280px;
    --stats-h: 38px;
    --chart-header-h: 40px;
    --draw-tools-w: 36px;
    --mobile-nav-h: 52px;
}

/* ── Utility ── */
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.hidden { display: none !important; }
.empty-state { color: var(--text-4); font-size: 11px; text-align: center; padding: 24px 12px; }

/* ── Animations ── */
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2.4); opacity: 0; }
}
@keyframes flash-green { 0% { background: var(--green-dim); } 100% { background: transparent; } }
@keyframes flash-red { 0% { background: var(--red-dim); } 100% { background: transparent; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-in-right { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.flash-up { animation: flash-green .35s ease-out; }
.flash-down { animation: flash-red .35s ease-out; }


/* ════════════════════════════════
   Terminal Shell Layout
   ════════════════════════════════ */

.terminal {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--bg-0);
}

.terminal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}


/* ════════════════════════════════
   Top Bar
   ════════════════════════════════ */

.topbar {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 100;
    gap: 8px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sidebar-toggle {
    display: none;
    padding: 4px;
    color: var(--text-3);
    border-radius: var(--radius-sm);
}
.sidebar-toggle:hover { background: var(--bg-3); color: var(--text-1); }

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 7px;
}
.topbar-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}
.topbar-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: 0.06em;
}
.topbar-badge {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--amber);
    background: var(--amber-dim);
    padding: 2px 5px;
    border-radius: 3px;
    line-height: 1;
}

.topbar-divider {
    width: 1px;
    height: 14px;
    background: var(--border);
    flex-shrink: 0;
}

.topbar-live {
    display: flex;
    align-items: center;
    gap: 5px;
}
.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
    position: relative;
}
.live-dot::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-ring 1.5s ease-out infinite;
}
.live-text {
    font-size: 9px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.12em;
    font-family: 'JetBrains Mono', monospace;
}

/* Top Bar Center — Asset Display */
.topbar-center {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}
.topbar-asset {
    display: flex;
    align-items: center;
    gap: 6px;
}
.topbar-asset-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: var(--bg-3);
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
}
.topbar-asset-icon img { width: 100%; height: 100%; padding: 2px; }
.topbar-pair {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-1);
    font-family: 'JetBrains Mono', monospace;
}
.topbar-tag {
    font-size: 8px;
    font-weight: 500;
    color: var(--text-4);
    background: var(--bg-3);
    padding: 1px 4px;
    border-radius: 2px;
}
.topbar-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-1);
    font-family: 'JetBrains Mono', monospace;
}
.topbar-change {
    font-size: 10px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    padding: 1px 5px;
    border-radius: 3px;
}
.topbar-change.positive { color: var(--green); background: var(--green-dim); }
.topbar-change.negative { color: var(--red); background: var(--red-dim); }

/* Top Bar Right */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.topbar-stat {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-4);
}
.topbar-stat svg { color: var(--text-5); }
.topbar-time {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-3);
}
.time-zone {
    color: var(--text-5);
    font-size: 8px;
    margin-left: 2px;
}


/* ════════════════════════════════
   Left Sidebar
   ════════════════════════════════ */

.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-1);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
}

/* Category Tabs */
.cat-tabs {
    display: flex;
    padding: 5px 6px;
    gap: 2px;
    border-bottom: 1px solid var(--border);
}
.cat-tab {
    flex: 1;
    padding: 4px 0;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-4);
    border-radius: var(--radius-sm);
    transition: all .15s;
    text-align: center;
}
.cat-tab:hover { color: var(--text-2); background: var(--bg-2); }
.cat-tab.active { color: var(--amber); background: var(--amber-dim); }

/* Search */
.sidebar-search {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
}
.sidebar-search svg { color: var(--text-5); flex-shrink: 0; }
.sidebar-search input {
    width: 100%;
    font-size: 11px;
    color: var(--text-2);
    padding: 3px 0;
}
.sidebar-search input::placeholder { color: var(--text-5); }

/* Asset List */
.asset-list {
    flex: 1;
    overflow-y: auto;
    padding: 3px;
}
.asset-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 7px;
    border-radius: 5px;
    cursor: pointer;
    transition: background .1s;
    gap: 6px;
}
.asset-row:hover { background: var(--bg-2); }
.asset-row.active {
    background: var(--bg-3);
    border-left: 2px solid var(--amber);
    padding-left: 5px;
}

.asset-info {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.asset-icon-sm {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-3);
}
.asset-icon-sm img { width: 100%; height: 100%; padding: 2px; object-fit: contain; border-radius: 3px; }
.asset-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-2);
    white-space: nowrap;
}
.asset-name-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.asset-subname {
    font-size: 9px;
    font-weight: 400;
    color: var(--text-4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.asset-price-col { text-align: right; flex-shrink: 0; }
.asset-price-val {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-1);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.4;
}
.asset-change-val {
    font-size: 9px;
    font-family: 'JetBrains Mono', monospace;
}
.price-up { color: var(--green); }
.price-down { color: var(--red); }

/* Market Overview */
.market-overview {
    border-top: 1px solid var(--border);
    padding: 8px;
    flex-shrink: 0;
    background: var(--bg-1);
}
.overview-title {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-5);
    margin-bottom: 6px;
}
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}
.overview-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ov-label { font-size: 9px; color: var(--text-4); }
.ov-value {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-2);
    font-family: 'JetBrains Mono', monospace;
}
.ov-value.greed { color: var(--green); }
.ov-value.fear { color: var(--red); }
.ov-value.neutral { color: var(--amber); }


/* ════════════════════════════════
   Main Content Area
   ════════════════════════════════ */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}


/* ════════════════════════════════
   Connection Toast
   ════════════════════════════════ */

.conn-toast {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-3);
    z-index: 200;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    pointer-events: none;
}
.conn-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.conn-toast.connected .conn-dot { background: var(--green); box-shadow: 0 0 6px var(--green); }
.conn-toast.connected .conn-text { color: var(--green); }
.conn-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
}


/* ════════════════════════════════
   Modals
   ════════════════════════════════ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.modal-content {
    position: relative;
    background: var(--bg-2);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    width: 380px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.modal-content.modal-wide { width: 480px; }
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-1);
}
.modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 18px;
    color: var(--text-3);
    transition: all .15s;
}
.modal-close:hover { background: var(--bg-4); color: var(--text-1); }
.modal-body {
    padding: 16px 20px;
}
.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
}

/* Toggle Rows */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    gap: 12px;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.toggle-info strong { font-size: 13px; color: var(--text-1); font-weight: 500; }
.toggle-info small { font-size: 11px; color: var(--text-4); }
.toggle-row input[type="checkbox"] { display: none; }
.toggle-switch {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: var(--bg-4);
    position: relative;
    flex-shrink: 0;
    transition: background .2s;
}
.toggle-switch::after {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-3);
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all .2s;
}
.toggle-row input:checked ~ .toggle-switch { background: var(--amber); }
.toggle-row input:checked ~ .toggle-switch::after { left: 18px; background: #fff; }

/* Shortcuts */
.shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.shortcut {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-3);
}
.shortcut kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    background: var(--bg-4);
    border: 1px solid var(--border-hover);
    border-radius: 4px;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-2);
}
.shortcut span { color: var(--text-3); }

/* Primary Button */
.btn-primary {
    width: 100%;
    padding: 8px 16px;
    background: var(--amber);
    color: #000;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background .15s;
}
.btn-primary:hover { background: #fbbf24; }


/* ════════════════════════════════
   Mobile Sidebar Overlay
   ════════════════════════════════ */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    touch-action: none; /* Prevent scroll-through */
}


/* ════════════════════════════════
   Mobile Bottom Nav
   ════════════════════════════════ */

.mobile-nav {
    display: none;
    height: var(--mobile-nav-h);
    background: var(--bg-1);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-4);
    font-size: 9px;
    font-weight: 500;
    transition: color .15s;
    padding: 4px 0;
    min-height: 44px; /* iOS touch target minimum */
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-btn svg { width: 18px; height: 18px; }
.mobile-nav-btn.active { color: var(--amber); }
.mobile-nav-btn:hover { color: var(--text-2); }


/* ════════════════════════════════
   Responsive — Tablet & Mobile
   ════════════════════════════════ */

/* Reduced motion: disable animations for users who prefer it */
@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;
    }
    .live-dot::before { animation: none; }
    .loader-ring { animation: none; }
}

@media (max-width: 1024px) {
    :root {
        --sidebar-w: 200px;
        --panel-w: 260px;
    }
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        padding: 0;
        flex-shrink: 0;
    }

    .sidebar {
        position: fixed;
        top: var(--topbar-h);
        left: 0;
        bottom: 0;
        z-index: 95;
        width: 260px;
        transform: translateX(-100%);
        transition: transform .25s ease;
        will-change: transform;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar.open { transform: translateX(0); }

    .topbar-center { display: none; }
    .topbar-stat { display: none; }
    .topbar-divider:last-of-type { display: none; }
    .topbar-name { display: none; }

    /* Right panel becomes full-page overlay on mobile */
    /* Right panel + panel content mobile overrides are in terminal.css (loaded last, wins cascade) */

    /* Hide chart area when panel is active */
    .main-content.panel-active .chart-header,
    .main-content.panel-active .chart-row > .drawing-tools,
    .main-content.panel-active .chart-row > .chart-container-wrap,
    .main-content.panel-active .bottom-stats {
        display: none;
    }
    /* chart-row itself must stay visible so the fixed right-panel child renders */
    .main-content.panel-active .chart-row {
        flex: 1;
    }

    .mobile-nav {
        display: flex;
    }

    .drawing-tools { display: none; }

    .bottom-stats {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
    }
    .bottom-stats::-webkit-scrollbar { display: none; }
    .stat-card {
        flex: 0 0 auto;
        min-width: auto;
        padding: 0 10px;
        gap: 4px;
    }

    .chart-header-left .chart-asset {
        display: flex;
    }
    .chart-header-left .chart-asset .chart-asset-info { display: none; }
    .chart-header-left .chart-asset .chart-asset-icon {
        width: 22px;
        height: 22px;
        border-radius: 5px;
    }
    .chart-header-left .chart-change-abs { display: none; }
    .chart-tools span { display: none; }

    /* Touch targets */
    .cat-tab { min-height: 36px; }
    .asset-row { min-height: 44px; }
    .panel-tab { min-height: 40px; }
    .tf-chip { min-height: 32px; padding: 6px 10px; }
    .tool-btn { min-height: 40px; min-width: 40px; }
    .modal-close { min-width: 40px; min-height: 40px; }
}

@media (max-width: 480px) {
    :root {
        --topbar-h: 36px;
        --stats-h: 32px;
    }
    .topbar-brand { gap: 5px; }
    .topbar-name { font-size: 11px; }
    .topbar-badge { display: none; }
    .topbar-time { display: none; }

    .sidebar-toggle {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
}


/* ════════════════════════════════
   Theme Toggle
   ════════════════════════════════ */

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius);
    color: var(--text-3);
    transition: all .15s;
    flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-3); color: var(--amber); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.screener-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 8px;
    border-radius: var(--radius);
    color: var(--text-3);
    transition: all .15s;
    flex-shrink: 0;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}
.screener-toggle:hover { background: var(--bg-3); color: var(--amber); }


/* ════════════════════════════════
   Light Mode Theme
   ════════════════════════════════ */

[data-theme="light"] {
    --bg-0: #f5f5f7;
    --bg-1: #ffffff;
    --bg-2: #f0f0f2;
    --bg-3: #e5e5ea;
    --bg-4: #d1d1d6;
    --border: rgba(0,0,0,0.08);
    --border-hover: rgba(0,0,0,0.15);
    --text-1: #1c1c1e;
    --text-2: #3a3a3c;
    --text-3: #636366;
    --text-4: #aeaeb2;
    --text-5: #c7c7cc;
    --green: #059669;
    --green-dim: rgba(5,150,105,0.12);
    --green-bg: rgba(5,150,105,0.06);
    --red: #dc2626;
    --red-dim: rgba(220,38,38,0.12);
    --red-bg: rgba(220,38,38,0.06);
    --amber: #d97706;
    --amber-dim: rgba(217,119,6,0.12);
    --blue: #2563eb;
    --blue-dim: rgba(37,99,235,0.12);
    --purple: #7c3aed;
    --purple-dim: rgba(124,58,237,0.12);
}

[data-theme="light"] body { background: var(--bg-0); }
[data-theme="light"] ::selection { background: rgba(217,119,6,0.2); color: #92400e; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.2); }
[data-theme="light"] .loader { background: var(--bg-0); }
[data-theme="light"] .loader-ring { border-color: rgba(0,0,0,0.08); border-top-color: #d97706; }
[data-theme="light"] .loader-text { color: var(--text-4); }
[data-theme="light"] .topbar { box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
[data-theme="light"] .sidebar { box-shadow: 1px 0 3px rgba(0,0,0,0.03); }
[data-theme="light"] .right-panel { box-shadow: -1px 0 3px rgba(0,0,0,0.03); }
[data-theme="light"] .modal-backdrop { background: rgba(0,0,0,0.3); }
[data-theme="light"] .modal-content { box-shadow: 0 24px 60px rgba(0,0,0,0.15); }
[data-theme="light"] .conn-toast { background: #ffffff; border-color: rgba(0,0,0,0.1); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
[data-theme="light"] .chart-loading { background: var(--bg-0); }
[data-theme="light"] .asset-row.active { background: rgba(217,119,6,0.06); }
[data-theme="light"] .btn-primary { background: #d97706; }
[data-theme="light"] .btn-primary:hover { background: #b45309; }
