/* ==========================================================================
   EXOTIC TERMINAL MASTER STYLESHEET — OBSIDIAN LUXURY FINTECH THEME
   Inspired by options.exoticinvestment.com & Bloomberg/Sensibull Institutional Desk
   ========================================================================== */

:root {
    --bg-root: #070b14;
    --bg-surface: #0a0f1d;
    --bg-panel: #10172a;
    --bg-card: #151e34;
    --bg-input: #080d1a;
    --bg-elevated: #162038;

    --border-subtle: #162038;
    --border-base: #1e293b;
    --border-hover: #334155;
    --border-mint: rgba(16, 185, 129, 0.4);
    --border-gold: #d4af37;
    --border-cyan: rgba(56, 189, 248, 0.4);
    --border-purple: rgba(168, 85, 247, 0.4);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-white: #ffffff;

    --mint: #10b981;
    --green: #10b981;
    --green-bg: rgba(16, 185, 129, 0.12);
    --mint-glow: rgba(16, 185, 129, 0.25);

    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.12);
    --red-glow: rgba(239, 68, 68, 0.25);

    --cyan: #38bdf8;
    --blue: #38bdf8;
    --blue-bg: rgba(56, 189, 248, 0.12);

    --purple: #a855f7;
    --purple-bg: rgba(168, 85, 247, 0.12);
    --purple-glow: rgba(168, 85, 247, 0.25);

    --gold: #d4af37;
    --gold-light: #fef08a;
    --gold-glow: rgba(212, 175, 55, 0.25);

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--bg-root);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.45;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* App Shell Layout */
.ei-app {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* 1. Header Bar — Obsidian with Institutional Gold Accent */
.ei-header {
    height: 52px;
    background: #070b14;
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    flex-shrink: 0;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.ei-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ei-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-white);
}

.ei-brand-logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #d4af37, #996515);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 16px;
    color: #070b14;
    box-shadow: 0 0 15px var(--gold-glow);
}

.ei-brand-title {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ei-brand-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--gold);
}

/* Live Stream Indicator */
.ei-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--green);
    color: #10b981;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    user-select: none;
}

.ei-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Symbol Switcher */
.ei-search-box {
    position: relative;
    width: 220px;
}

.ei-search-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 6px;
    padding: 6px 12px 6px 28px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s;
}

.ei-search-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.ei-search-icon {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 11px;
}

/* Market Status Pills */
.ei-header-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ei-ticker-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #0d1424;
    border: 1px solid var(--border-base);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    transition: all 0.3s ease;
}

.ei-ticker-pill:hover {
    border-color: var(--border-hover);
    background: #10192e;
}

.ei-pill-name { color: var(--text-muted); font-weight: 600; font-size: 10.5px; }
.ei-pill-val { color: var(--text-white); font-weight: 700; }
.ei-pill-chg.up { color: var(--green); }
.ei-pill-chg.dn { color: var(--red); }

@keyframes flash-green { 0% { background: rgba(16, 185, 129, 0.4); } 100% { background: #0d1424; } }
@keyframes flash-red { 0% { background: rgba(239, 68, 68, 0.4); } 100% { background: #0d1424; } }
.flash-up { animation: flash-green 1.2s ease-out; }
.flash-dn { animation: flash-red 1.2s ease-out; }

/* Header Right */
.ei-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ei-lang-toggle {
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.ei-lang-btn {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.ei-lang-btn.active {
    background: linear-gradient(135deg, var(--gold), #996515);
    color: #070b14;
    font-weight: 800;
}

.ei-clock {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--bg-input);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-base);
}

.ei-pro-btn {
    background: linear-gradient(135deg, var(--gold), #996515);
    color: #070b14;
    font-weight: 800;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 0 12px var(--gold-glow);
}

.ei-pro-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

/* 2. Main Body: Sidebar + Workspace */
.ei-main-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Universal Sidebar Dock */
.ei-sidebar {
    width: 68px;
    background: #080d19;
    border-right: 1px solid var(--border-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
    flex-shrink: 0;
    z-index: 40;
}

.ei-nav-btn {
    width: 52px;
    height: 52px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.ei-nav-btn:hover {
    background: var(--bg-card);
    color: var(--text-white);
    border-color: var(--border-hover);
}

.ei-nav-btn.active {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-light);
    border-color: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}

.ei-nav-icon { font-size: 18px; line-height: 1; }
.ei-nav-lbl { font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.ei-sidebar-sep {
    width: 32px;
    height: 1px;
    background: var(--border-base);
    margin: 6px 0;
}

/* Workspace Canvas */
.ei-workspace {
    flex: 1;
    background: var(--bg-root);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* Views (Single Screen Tabs) */
.ei-view {
    display: none;
    height: 100%;
    width: 100%;
    animation: fadeIn 0.2s ease-in-out;
}

.ei-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.995); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   VIEW 1: CHART DESK LAYOUT WITH DIRECTIONAL WIZARD
   ========================================================================== */
.ei-chart-desk {
    display: grid;
    grid-template-columns: 1fr 360px;
    height: 100%;
    overflow: hidden;
}

.ei-chart-pane {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-base);
    background: #050811;
    height: 100%;
    position: relative;
}

/* Directional Strategy Wizard Strip (Above Chart) */
.ei-wizard-strip {
    background: #0b1120;
    border-bottom: 1px solid var(--border-base);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.ei-wizard-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ei-wizard-title {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.ei-wizard-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
    border: 1px solid var(--gold);
    padding: 2px 6px;
    border-radius: 4px;
}

.ei-wizard-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.w-btn {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--border-base);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
    user-select: none;
}

.w-btn:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.w-btn.active {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    box-shadow: 0 0 12px var(--gold-glow);
    color: #fff;
}

.w-btn.bull.active, .w-btn.bull:hover {
    border-color: var(--green);
    background: var(--green-bg);
    color: var(--green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.w-btn.bear.active, .w-btn.bear:hover {
    border-color: var(--red);
    background: var(--red-bg);
    color: var(--red);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.w-btn.neutral.active, .w-btn.neutral:hover {
    border-color: var(--purple);
    background: var(--purple-bg);
    color: var(--purple);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

.w-btn.volatile.active, .w-btn.volatile:hover {
    border-color: var(--blue);
    background: var(--blue-bg);
    color: var(--blue);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.w-btn .w-sub {
    font-size: 9.5px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Strategy Breakdown Drawer/Card in Sidebar */
.ei-strategy-card {
    background: #0f172a;
    border: 1px solid var(--border-base);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ei-sc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ei-sc-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ei-sc-type {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.ei-sc-type.debit { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); }
.ei-sc-type.credit { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue); }

.ei-sc-legs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ei-sc-leg {
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-radius: 6px;
    padding: 6px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.ei-sc-leg-badge {
    font-weight: 800;
    font-size: 9.5px;
    padding: 2px 5px;
    border-radius: 3px;
}
.ei-sc-leg-badge.buy { background: var(--green-bg); color: var(--green); border: 1px solid var(--green); }
.ei-sc-leg-badge.sell { background: var(--red-bg); color: var(--red); border: 1px solid var(--red); }

.ei-sc-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: var(--bg-input);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    font-size: 11px;
}

.ei-sc-m-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ei-sc-m-lbl { font-size: 9.5px; color: var(--text-muted); font-weight: 600; }
.ei-sc-m-val { font-family: var(--font-mono); font-weight: 700; }

.ei-sc-actions {
    display: flex;
    gap: 6px;
}

.ei-sc-btn {
    flex: 1;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
}
.ei-sc-btn.primary {
    background: linear-gradient(135deg, var(--green), #059669);
    color: #fff;
}
.ei-sc-btn.primary:hover {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.ei-sc-btn.secondary {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
    border-color: var(--gold);
}
.ei-sc-btn.secondary:hover {
    background: rgba(212, 175, 55, 0.25);
}

/* Chart Controls Toolbar */
.ei-chart-controls {
    height: 42px;
    background: #080d19;
    border-bottom: 1px solid var(--border-base);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    gap: 12px;
    flex-shrink: 0;
}

.ei-tf-group, .ei-indicator-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ei-tf-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.ei-tf-btn:hover { background: var(--bg-card); color: var(--text-white); }
.ei-tf-btn.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
    border-color: var(--gold);
}

.ei-ind-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.ei-ind-pill:hover { border-color: var(--border-hover); color: var(--text-white); }
.ei-ind-pill.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
    border-color: var(--green);
}

#chart-container {
    flex: 1;
    width: 100%;
    position: relative;
    background: #050811;
}

/* Desk Right Sidebar */
.ei-desk-sidebar {
    background: #0a0f1d;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid var(--border-base);
}

.ei-ds-section {
    padding: 14px;
    border-bottom: 1px solid var(--border-base);
}

.ei-sym-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ei-sym-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.ei-sym-name {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.ei-sym-sec {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-base);
}

.ei-sym-px-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ei-sym-px {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.ei-sym-chg {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
}
.ei-sym-chg.up { color: var(--green); }
.ei-sym-chg.dn { color: var(--red); }

/* Greek Pills */
.ei-greek-strip {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ei-greek-pill {
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ei-greek-pill .k { color: var(--text-muted); font-size: 9.5px; }
.ei-greek-pill .v { color: var(--gold-light); font-weight: 700; }
.ei-greek-pill.cyan .v { color: var(--cyan); }
.ei-greek-pill.mint .v { color: var(--green); }
.ei-greek-pill.purple .v { color: var(--purple); }

.ei-ds-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

/* Order Book Depth Table */
.ei-order-book-table {
    width: 100%;
    font-family: var(--font-mono);
    font-size: 11px;
    border-collapse: collapse;
}

.ei-order-book-table th {
    color: var(--text-muted);
    font-weight: 600;
    padding-bottom: 6px;
    font-size: 10px;
}

.ei-order-book-table td {
    padding: 4px 0;
}

.ei-bid { color: var(--green); }
.ei-ask { color: var(--red); }

/* Quick Sizing Box */
.ei-quick-calc-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ei-qc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
}

.ei-qc-label { color: var(--text-muted); font-weight: 600; }

.ei-qc-input {
    width: 120px;
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 4px;
    padding: 4px 8px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11px;
    text-align: right;
    outline: none;
}
.ei-qc-input:focus { border-color: var(--gold); }

.ei-qc-btn {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(30, 41, 59, 0.7));
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.2s;
}
.ei-qc-btn:hover {
    background: rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* ==========================================================================
   VIEW 2: MARKET RADAR (09:00 AM)
   ========================================================================== */
.ei-radar-page, .ei-scanner-page, .ei-cockpit-page, .ei-sizer-page, .ei-journal-page {
    padding: 20px 24px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ei-view-header {
    margin-bottom: 4px;
}

.ei-vh-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.ei-vh-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.ei-radar-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}

.ei-radar-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-base);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.ei-card-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.why-matched-pill {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
    border: 1px solid var(--green);
    padding: 2px 7px;
    border-radius: 4px;
}

.ei-table-wrap {
    overflow-x: auto;
}

.ei-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.ei-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 11px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-base);
}

.ei-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background 0.15s;
}

.ei-table tr:hover td {
    background: rgba(56, 189, 248, 0.05);
}

.sym-badge {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #fff;
    margin-right: 8px;
}

.sec-badge {
    font-size: 10.5px;
    color: var(--text-muted);
}

.vol-surge {
    font-family: var(--font-mono);
    font-weight: 800;
    color: var(--gold-light);
}

/* Sector Heatmap */
.ei-heatmap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ei-hm-cell {
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.15s;
}

.ei-hm-cell:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.ei-hm-name { font-weight: 700; font-size: 11px; color: var(--text-secondary); }
.ei-hm-val { font-family: var(--font-mono); font-weight: 800; font-size: 12px; }
.ei-hm-val.up { color: var(--green); }
.ei-hm-val.dn { color: var(--red); }

/* ==========================================================================
   VIEW 3: DETERMINISTIC SCANNERS
   ========================================================================== */
.ei-scanner-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ei-scan-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.ei-scan-tab:hover { color: #fff; border-color: var(--border-hover); }
.ei-scan-tab.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
    border-color: var(--gold);
    font-weight: 700;
}

/* ==========================================================================
   VIEW 4: STOCK COCKPIT (ONE-VIEW AUDIT)
   ========================================================================== */
.ei-cp-header {
    background: var(--bg-panel);
    border: 1px solid var(--border-base);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ei-cp-ticker {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.ei-cp-company {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.ei-cp-price {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.ei-cp-chg {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
}
.ei-cp-chg.up { color: var(--green); }
.ei-cp-chg.dn { color: var(--red); }

.ei-cp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ei-cp-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-base);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ei-dcf-box {
    background: var(--bg-card);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    margin-top: auto;
}

.ei-dcf-fair {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 800;
    color: var(--gold-light);
    margin: 4px 0;
}

.ei-dcf-verdict {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green);
}

.ei-metric-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ei-mr-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.ei-mr-k { color: var(--text-muted); }
.ei-mr-v { font-family: var(--font-mono); font-weight: 700; color: #fff; }
.text-mint { color: var(--green) !important; }
.text-gold { color: var(--gold-light) !important; }
.text-cyan { color: var(--cyan) !important; }
.text-white { color: #fff !important; }

/* Vernacular Banner */
.ei-vernacular-cockpit-banner {
    background: #0d1424;
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 0 15px var(--gold-glow);
}

.ei-vcb-title {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* ==========================================================================
   VIEW 5: KELLY POSITION SIZER & RISK
   ========================================================================== */
.ei-sizer-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: var(--bg-panel);
    border: 1px solid var(--border-base);
    border-radius: 12px;
    padding: 24px;
}

.ei-sizer-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ei-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ei-field-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.ei-field-input {
    background: var(--bg-input);
    border: 1px solid var(--border-base);
    border-radius: 6px;
    padding: 8px 12px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    outline: none;
    transition: border 0.15s;
}
.ei-field-input:focus { border-color: var(--gold); }

.ei-btn-log {
    background: linear-gradient(135deg, var(--gold), #996515);
    color: #070b14;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 12px var(--gold-glow);
}
.ei-btn-log:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.4);
}

.ei-sizer-results {
    background: #090e1c;
    border: 1px solid var(--border-base);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.ei-sr-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}
.ei-sr-stat:last-child { border-bottom: none; padding-bottom: 0; }

.ei-sr-lbl { font-size: 10px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; }
.ei-sr-val { font-family: var(--font-mono); font-size: 22px; font-weight: 800; }
.ei-sr-sub { font-size: 11px; color: var(--text-dim); }

/* ==========================================================================
   VIEW 6: DISCIPLINE TRADE JOURNAL
   ========================================================================== */
.ei-journal-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 4px;
}

.ei-js-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ei-js-lbl { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.ei-js-val { font-family: var(--font-mono); font-size: 20px; font-weight: 800; color: #fff; }
.ei-js-val.green { color: var(--green); }
.ei-js-val.red { color: var(--red); }

.tag-discipline {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
}

.tag-mistake {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid var(--red);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .ei-chart-desk { grid-template-columns: 1fr; }
    .ei-desk-sidebar { height: 350px; }
    .ei-cp-grid { grid-template-columns: 1fr; }
    .ei-sizer-card { grid-template-columns: 1fr; }
    .ei-radar-grid { grid-template-columns: 1fr; }
}
