/* QuantumSwarm v4 - Tight Dashboard Layout */

:root {
    --bg-dark: #0a0a0f;
    --bg-panel: #12121a;
    --bg-card: #0d0d14;
    --border: #1e1e2a;
    --text-primary: #e8e8ec;
    --text-secondary: #888899;
    --text-muted: #555566;
    --accent-gold: #ffd700;
    --accent-green: #00ff88;
    --accent-red: #ff4466;
    --accent-blue: #4488ff;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 20px; }
.logo-text { font-size: 16px; font-weight: 700; letter-spacing: 2px; }
.logo-text .accent { color: var(--accent-gold); }

.header-right { display: flex; align-items: center; gap: 16px; }
.connection-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-secondary); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.status-dot.online { background: var(--accent-green); }
.header-time { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }

/* QUEEN HERO */
.queen-hero {
    display: grid;
    grid-template-columns: 260px 1fr 400px;
    background: linear-gradient(135deg, #14141f 0%, rgba(255,215,0,0.03) 100%);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    margin-top: 4px;
}

.queen-info {
    padding: 16px;
    border-right: 1px solid rgba(255, 215, 0, 0.15);
}

.queen-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.crown { font-size: 20px; }

.queen-badges { display: flex; gap: 6px; margin-bottom: 12px; }

.badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.badge.trained {
    background: rgba(0, 255, 136, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.25);
}

.badge.sovereign {
    background: rgba(255, 215, 0, 0.12);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.queen-stats { display: flex; gap: 20px; }
.queen-stats .stat { text-align: center; }
.queen-stats .val {
    display: block;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-gold);
}
.queen-stats .lbl {
    display: block;
    font-size: 8px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.queen-decree {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

.decree-label {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.decree-value {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.decree-value.long { color: var(--accent-green); text-shadow: 0 0 20px rgba(0, 255, 136, 0.4); }
.decree-value.short { color: var(--accent-red); text-shadow: 0 0 20px rgba(255, 68, 102, 0.4); }

.decree-confidence {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 6px 0 12px;
}
.decree-confidence span { color: var(--accent-gold); font-weight: 600; }

.decree-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 4px;
    color: var(--accent-gold);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}
.decree-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.25);
}

.queen-reasoning {
    padding: 16px;
    border-left: 1px solid rgba(255, 215, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.reasoning-label {
    font-size: 8px;
    color: var(--accent-gold);
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.reasoning-text {
    flex: 1;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    min-height: 80px;
    max-height: 120px;
    overflow-y: auto;
}

.queen-meta {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-size: 10px;
    color: var(--text-secondary);
}
.queen-meta strong { color: var(--accent-gold); }

/* DASHBOARD - 3 Column Layout */
.dashboard {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 1px;
    background: var(--border);
    padding: 1px;
}

/* Panel Base */
.panel {
    background: var(--bg-panel);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.panel-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* Signal Panel */
.signal-panel { }

.signal-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-mono);
    background: var(--bg-dark);
}

.signal-display { padding: 14px; text-align: center; }

.signal-display .signal-value {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 10px;
}

.signal-bar {
    height: 6px;
    background: var(--bg-dark);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.signal-bar-fill {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, var(--accent-red), var(--text-muted), var(--accent-green));
    transition: width 0.3s;
}

.signal-labels {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: var(--text-muted);
}

.signal-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
}

.meta-item { display: flex; justify-content: space-between; }
.meta-label { font-size: 9px; color: var(--text-muted); }
.meta-value { font-size: 11px; font-weight: 600; font-family: var(--font-mono); color: var(--text-primary); }

/* Market Panel */
.market-cards { display: flex; gap: 8px; padding: 12px; }

.market-card {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 4px;
}

.market-symbol { font-size: 10px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.market-price { font-size: 16px; font-weight: 700; font-family: var(--font-mono); color: var(--text-primary); }
.market-bias { font-size: 10px; font-family: var(--font-mono); color: var(--text-muted); margin-top: 2px; font-weight: 600; }
.market-bias.bullish { color: var(--accent-green); }
.market-bias.bearish { color: var(--accent-red); }
.market-bias.neutral { color: var(--text-secondary); }

/* Sentiment Panel */
.sentiment-display { padding: 12px; text-align: center; }

.fg-value { font-size: 28px; font-weight: 700; font-family: var(--font-mono); color: var(--text-primary); }
.fg-label { font-size: 10px; color: var(--text-secondary); margin-bottom: 8px; }

.fg-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), #ffcc00, var(--accent-red));
    border-radius: 2px;
    margin-bottom: 6px;
    position: relative;
}

.fg-bar-fill {
    position: absolute;
    height: 100%;
    width: 3px;
    background: white;
    border-radius: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.contrarian { font-size: 10px; color: var(--text-muted); }
.contrarian span { color: var(--accent-blue); font-weight: 600; }

/* Executor Panel - Right Column, spans 2 rows */
.executor-panel { grid-row: 1 / 3; }

.executor-mode {
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    background: rgba(68, 136, 255, 0.15);
    color: var(--accent-blue);
}

.executor-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 10px;
}

.exec-stat {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
    background: var(--bg-card);
    border-radius: 3px;
}

.exec-label { font-size: 9px; color: var(--text-muted); }
.exec-value { font-size: 10px; font-weight: 600; font-family: var(--font-mono); color: var(--text-primary); }

.positions { padding: 10px; border-top: 1px solid var(--border); }
.no-positions { text-align: center; font-size: 10px; color: var(--text-muted); padding: 6px; }

/* Agents Panel - Full Width Row */
.agents-panel { grid-column: 1 / -1; }

.agent-count { font-size: 10px; font-family: var(--font-mono); color: var(--accent-green); }

.agents-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    padding: 10px;
}

.agent-card {
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    border-left: 2px solid var(--text-muted);
}

.agent-card.online { border-left-color: var(--accent-green); }
.agent-card.offline { border-left-color: var(--accent-red); }

.agent-name { font-size: 10px; font-weight: 500; color: var(--text-primary); margin-bottom: 2px; }
.agent-status { font-size: 8px; color: var(--text-muted); }
.agent-signal { font-size: 9px; font-weight: 600; margin-top: 4px; }
.agent-signal.bullish { color: var(--accent-green); }
.agent-signal.bearish { color: var(--accent-red); }
.agent-signal.neutral { color: var(--text-secondary); }

/* Bottom Row - System & Log */
.system-panel { }
.log-panel { }

.system-items {
    display: flex;
    gap: 6px;
    padding: 10px;
}

.system-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-card);
    border-radius: 3px;
    flex: 1;
}

.system-item.queen-sys {
    background: rgba(255, 215, 0, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.sys-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.sys-dot.online { background: var(--accent-green); }
.sys-dot.offline { background: var(--accent-red); }

.sys-name { flex: 1; font-size: 10px; color: var(--text-primary); }
.sys-state { font-size: 9px; font-family: var(--font-mono); color: var(--text-secondary); }

/* Log Panel */
.log-container { padding: 6px 10px; max-height: 120px; overflow-y: auto; }

.log-entry {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    font-size: 10px;
    border-bottom: 1px solid var(--border);
}

.log-time { font-family: var(--font-mono); color: var(--text-muted); white-space: nowrap; }
.log-msg { color: var(--text-secondary); }

/* FOOTER */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    font-size: 10px;
    color: var(--text-muted);
}

.doctrine { font-style: italic; }

/* RESPONSIVE */
@media (max-width: 1200px) {
    .queen-hero { grid-template-columns: 1fr 1fr; }
    .queen-info { grid-column: 1 / 3; border-right: none; border-bottom: 1px solid rgba(255,215,0,0.15); }
    .queen-reasoning { border-left: none; border-top: 1px solid rgba(255,215,0,0.15); }

    .dashboard { grid-template-columns: 1fr 1fr; }
    .agents-panel { grid-column: 1 / -1; }
    .agents-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .queen-hero { grid-template-columns: 1fr; }
    .queen-info, .queen-decree, .queen-reasoning { border: none; border-bottom: 1px solid rgba(255,215,0,0.15); }
    .queen-reasoning { border-bottom: none; }

    .dashboard { grid-template-columns: 1fr; }
    .panel { grid-column: 1 !important; grid-row: auto !important; }
    .agents-grid { grid-template-columns: 1fr 1fr; }
    .system-items { flex-wrap: wrap; }
    .system-item { min-width: 45%; }
}

/* =====================================================
   WALL WATCHER PANEL - Order Book Intelligence
   ===================================================== */

.wall-watcher-panel {
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.wall-sentiment {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-mono);
    background: var(--bg-dark);
}

.wall-sentiment.bullish {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
}

.wall-sentiment.bearish {
    background: rgba(255, 68, 102, 0.15);
    color: var(--accent-red);
}

.wall-sentiment.neutral {
    background: rgba(136, 136, 153, 0.15);
    color: var(--text-secondary);
}

.wall-watcher-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow: hidden;
}

.wall-price-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.wall-symbol {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.wall-price {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.wall-change {
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
}

.wall-change.positive { color: var(--accent-green); }
.wall-change.negative { color: var(--accent-red); }

.wall-ratio-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px;
    background: var(--bg-card);
    border-radius: 4px;
}

.ratio-label {
    font-size: 9px;
    color: var(--text-muted);
    white-space: nowrap;
}

.ratio-display {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ratio-value {
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-gold);
    min-width: 35px;
}

.ratio-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-dark);
    border-radius: 3px;
    overflow: hidden;
}

.ratio-bar-fill {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, var(--accent-red), var(--text-muted) 50%, var(--accent-green));
    transition: width 0.3s;
}

.wall-levels {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.wall-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.wall-section.resistance {
    justify-content: flex-end;
}

.wall-section.support {
    justify-content: flex-start;
}

.wall-section-title {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.wall-section.resistance .wall-section-title { color: var(--accent-red); }
.wall-section.support .wall-section-title { color: var(--accent-green); }

.wall-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    max-height: 100px;
}

.wall-section.resistance .wall-list {
    flex-direction: column-reverse;
}

.wall-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    background: var(--bg-card);
    border-radius: 2px;
    font-size: 9px;
    font-family: var(--font-mono);
}

.wall-item.resistance {
    border-left: 2px solid var(--accent-red);
}

.wall-item.support {
    border-left: 2px solid var(--accent-green);
}

.wall-item.mega {
    background: rgba(255, 215, 0, 0.08);
    border-left-color: var(--accent-gold);
}

.wall-item.air-pocket {
    background: rgba(68, 136, 255, 0.08);
    border-left-color: var(--accent-blue);
}

.wall-item-price {
    min-width: 55px;
    color: var(--text-primary);
    font-weight: 600;
}

.wall-item-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-dark);
    border-radius: 2px;
    overflow: hidden;
}

.wall-item-bar-fill {
    height: 100%;
    transition: width 0.3s;
}

.wall-item.resistance .wall-item-bar-fill {
    background: linear-gradient(90deg, var(--accent-red), rgba(255, 68, 102, 0.5));
}

.wall-item.support .wall-item-bar-fill {
    background: linear-gradient(90deg, var(--accent-green), rgba(0, 255, 136, 0.5));
}

.wall-item.mega .wall-item-bar-fill {
    background: linear-gradient(90deg, var(--accent-gold), rgba(255, 215, 0, 0.5));
}

.wall-item-depth {
    min-width: 50px;
    text-align: right;
    color: var(--text-secondary);
}

.wall-item-type {
    font-size: 7px;
    padding: 1px 4px;
    border-radius: 2px;
    color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.1);
}

.wall-current-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px;
    margin: 4px 0;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    border-top: 1px dashed rgba(255, 215, 0, 0.3);
    border-bottom: 1px dashed rgba(255, 215, 0, 0.3);
}

.price-arrow {
    color: var(--accent-gold);
    font-size: 10px;
}

#wall-current-price-display {
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-gold);
}

.wall-targets {
    margin-top: 8px;
    padding: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    border-left: 2px solid var(--accent-blue);
}

.targets-title {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-blue);
    margin-bottom: 4px;
}

.targets-list {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    line-height: 1.4;
}

.target-item {
    display: inline-block;
    padding: 2px 6px;
    margin: 2px;
    background: rgba(68, 136, 255, 0.1);
    border-radius: 3px;
    color: var(--accent-blue);
}

.wall-thesis {
    margin-top: 8px;
    padding: 8px;
    font-size: 9px;
    color: var(--text-secondary);
    line-height: 1.4;
    background: var(--bg-card);
    border-radius: 4px;
    border-left: 2px solid var(--accent-gold);
}

.wall-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 10px;
}

/* =====================================================
   WASP PANEL - Candle Sniper
   ===================================================== */

.wasp-panel {
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.wasp-signal {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-mono);
    background: var(--bg-dark);
}

.wasp-signal.long {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
}

.wasp-signal.short {
    background: rgba(255, 68, 102, 0.15);
    color: var(--accent-red);
}

.wasp-signal.wait {
    background: rgba(136, 136, 153, 0.15);
    color: var(--text-secondary);
}

.wasp-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow: hidden;
}

.wasp-confluence {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    margin-bottom: 10px;
}

.confluence-label {
    font-size: 9px;
    color: var(--text-muted);
}

.confluence-value {
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.confluence-score {
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-gold);
}

.wasp-timeframes {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.tf-section {
    background: var(--bg-card);
    border-radius: 4px;
    padding: 6px 8px;
}

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

.tf-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.tf-trend {
    font-size: 9px;
    font-weight: 600;
    font-family: var(--font-mono);
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--bg-dark);
}

.tf-trend.bullish {
    color: var(--accent-green);
    background: rgba(0, 255, 136, 0.1);
}

.tf-trend.bearish {
    color: var(--accent-red);
    background: rgba(255, 68, 102, 0.1);
}

.tf-trend.neutral {
    color: var(--text-secondary);
}

.tf-candles {
    display: flex;
    gap: 2px;
    overflow-x: auto;
}

.candle {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 20px;
}

.candle-wick {
    width: 1px;
    background: var(--text-muted);
}

.candle-body {
    width: 8px;
    min-height: 4px;
    border-radius: 1px;
}

.candle.bullish .candle-body {
    background: var(--accent-green);
}

.candle.bearish .candle-body {
    background: var(--accent-red);
}

.candle-time {
    font-size: 7px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Simple candle bars for compact display */
.candle-bar {
    display: inline-block;
    width: 6px;
    height: 16px;
    margin: 0 1px;
    border-radius: 1px;
    vertical-align: middle;
}

.candle-bar.bullish {
    background: linear-gradient(to top, var(--accent-green), rgba(0, 255, 136, 0.5));
}

.candle-bar.bearish {
    background: linear-gradient(to top, var(--accent-red), rgba(255, 68, 102, 0.5));
}

.wasp-sniper {
    margin-top: 8px;
    padding: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    border-left: 2px solid var(--text-muted);
}

.wasp-sniper.active {
    border-left-color: var(--accent-gold);
    background: rgba(255, 215, 0, 0.05);
}

.sniper-label {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.wasp-sniper.active .sniper-label {
    color: var(--accent-gold);
}

.sniper-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sniper-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-family: var(--font-mono);
}

.sniper-row span:first-child {
    color: var(--text-muted);
}

.sniper-row span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.wasp-thesis {
    margin-top: 8px;
    padding: 8px;
    font-size: 9px;
    color: var(--text-secondary);
    line-height: 1.4;
    background: var(--bg-card);
    border-radius: 4px;
    border-left: 2px solid var(--accent-blue);
}

/* =============================================================================
   LIQUIDATION HEATMAP PANEL
   ============================================================================= */

.liq-heatmap-panel {
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.liq-hunt-target {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg-card);
    color: var(--text-secondary);
}

.liq-hunt-target.hunt-longs {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.liq-hunt-target.hunt-shorts {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.liq-heatmap-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.liq-price-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.liq-symbol {
    font-weight: 600;
    color: var(--text-primary);
}

.liq-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.liq-risk {
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
}

.liq-risk.risk-normal {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.liq-risk.risk-elevated {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.liq-risk.risk-high {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.liq-risk.risk-extreme {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    animation: pulse-risk 1s ease-in-out infinite;
}

@keyframes pulse-risk {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Hunt Target Box */
.liq-hunt-box {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.liq-hunt-box.hunt-longs {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    border-color: rgba(239, 68, 68, 0.3);
}

.liq-hunt-box.hunt-shorts {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    border-color: rgba(34, 197, 94, 0.3);
}

.hunt-label {
    font-size: 0.7rem;
    color: var(--accent-gold);
    margin-bottom: 6px;
    font-weight: 600;
}

.hunt-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.hunt-side {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-card);
}

.hunt-side.longs {
    color: #ef4444;
}

.hunt-side.shorts {
    color: #22c55e;
}

.hunt-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.hunt-funding {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Liquidation Levels */
.liq-levels {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.liq-section {
    background: var(--bg-card);
    border-radius: 4px;
    padding: 8px;
}

.liq-section.shorts {
    border-left: 2px solid #22c55e;
}

.liq-section.longs {
    border-left: 2px solid #ef4444;
}

.liq-section-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.liq-section.shorts .liq-section-title {
    color: #22c55e;
}

.liq-section.longs .liq-section-title {
    color: #ef4444;
}

.liq-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.liq-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
}

.liq-item-price {
    min-width: 70px;
    font-weight: 600;
    color: var(--text-primary);
}

.liq-item-bar {
    flex: 1;
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.liq-item-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.liq-section.shorts .liq-item-bar-fill {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.liq-section.longs .liq-item-bar-fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.liq-item-vol {
    min-width: 50px;
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.65rem;
}

.liq-item-intensity {
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 0.55rem;
    font-weight: 600;
}

.liq-item-intensity.low {
    background: rgba(100, 116, 139, 0.2);
    color: #64748b;
}

.liq-item-intensity.medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.liq-item-intensity.high {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.liq-item-intensity.extreme {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Current Price Marker */
.liq-current-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.price-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.liq-loading {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-style: italic;
}

/* Volume Summary */
.liq-volume-summary {
    display: flex;
    gap: 12px;
    padding: 8px;
    background: var(--bg-card);
    border-radius: 4px;
}

.vol-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vol-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.vol-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Thesis */
.liq-thesis {
    font-size: 0.7rem;
    padding: 8px;
    color: var(--text-secondary);
    line-height: 1.4;
    background: var(--bg-card);
    border-radius: 4px;
    border-left: 2px solid var(--accent-gold);
}

/* =============================================================================
   QUEEN REPORT CARD - Training Feedback Loop
   ============================================================================= */

.report-card-panel {
    display: flex;
    flex-direction: column;
}

.training-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    background: var(--bg-card);
    color: var(--text-secondary);
}

.training-status.ready {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    animation: pulse-ready 2s ease-in-out infinite;
}

.training-status.learning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

@keyframes pulse-ready {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.report-card-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-stats {
    display: flex;
    gap: 8px;
}

.report-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: var(--bg-card);
    border-radius: 4px;
}

.report-stat .stat-value {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.report-stat .stat-value.positive {
    color: #22c55e;
}

.report-stat .stat-value.negative {
    color: #ef4444;
}

.report-stat .stat-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.report-decisions {
    display: flex;
    gap: 8px;
}

.decisions-section {
    flex: 1;
    background: var(--bg-card);
    border-radius: 4px;
    padding: 8px;
}

.decisions-section.best {
    border-left: 2px solid #22c55e;
}

.decisions-section.worst {
    border-left: 2px solid #ef4444;
}

.decisions-section .section-title {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.decisions-section.best .section-title {
    color: #22c55e;
}

.decisions-section.worst .section-title {
    color: #ef4444;
}

.decisions-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.decision-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.65rem;
    padding: 4px 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.decision-item .decision-type {
    font-weight: 600;
    color: var(--text-primary);
}

.decision-item .decision-outcome {
    font-family: var(--font-mono);
}

.decision-item .decision-outcome.positive {
    color: #22c55e;
}

.decision-item .decision-outcome.negative {
    color: #ef4444;
}

.decision-item .decision-reward {
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 0.6rem;
}

.decision-item .decision-reward.positive {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.decision-item .decision-reward.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.decision-loading {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-style: italic;
}

.report-breakdown {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-card);
    border-radius: 3px;
    font-size: 0.6rem;
}

.breakdown-item .breakdown-type {
    font-weight: 600;
    color: var(--text-primary);
}

.breakdown-item .breakdown-count {
    color: var(--text-secondary);
}

.breakdown-item .breakdown-avg {
    font-family: var(--font-mono);
    font-weight: 600;
}

.breakdown-item .breakdown-avg.positive {
    color: #22c55e;
}

.breakdown-item .breakdown-avg.negative {
    color: #ef4444;
}
