/* ==============================================================================
   ASHTON DSOUZA — QUANT TERMINAL
   Bespoke Pitch-Black Institutional Design System with Real-Time Telemetry & Micro-Animations
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg-base: #000000;
    --bg-surface: #04070B;
    --bg-card: #080B10;
    --bg-hover: #0E131B;
    
    --border-subtle: rgba(255, 255, 255, 0.065);
    --border-active: rgba(255, 255, 255, 0.12);
    --border-highlight: #38BDF8;
    
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #5E6F84;
    
    --cyan: #38BDF8;
    --cyan-glow: rgba(56, 189, 248, 0.12);
    --emerald: #34D399;
    --emerald-glow: rgba(52, 211, 153, 0.12);
    --crimson: #F43F5E;
    --crimson-glow: rgba(244, 63, 94, 0.12);
    --amber: #F59E0B;
    --purple: #C084FC;
    --purple-glow: rgba(192, 132, 252, 0.12);
    
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, "Liberation Mono", Menlo, monospace;
}

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

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.02) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 100% 100%, 36px 36px, 36px 36px;
    background-position: 0 0, -1px -1px, -1px -1px;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #141A24; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #1E2838; }

/* Shimmer Loading Animations */
@keyframes pulseShimmer {
    0% { opacity: 0.35; }
    50% { opacity: 0.95; }
    100% { opacity: 0.35; }
}

.pulse-shimmer {
    display: inline-block;
    animation: pulseShimmer 1.8s infinite ease-in-out;
    color: var(--cyan);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

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

.terminal-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid var(--cyan);
    border-radius: 50%;
    animation: terminalSpin 0.9s linear infinite;
    display: inline-block;
}

/* ==============================================================================
   TOP HEADER NAVIGATION & LIVE TICKER HUD
   ============================================================================== */
.top-nav {
    background-color: rgba(6, 9, 14, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-nav-inner {
    max-width: 1720px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 1.0px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.brand-logo:hover {
    color: var(--cyan);
}

/* Back to Lobby Button */
.btn-back-lobby {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #080B10;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 4px;
    color: #CBD5E1;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-back-lobby:hover {
    background: #10151E;
    border-color: rgba(56, 189, 248, 0.4);
    color: #38BDF8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Telemetry Ribbon */
.top-telemetry {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 4px;
    background: #080B10;
    border: 1px solid var(--border-subtle);
}

.ticker-label {
    color: var(--text-muted);
    font-size: 9.5px;
    font-weight: 600;
}

.ticker-val {
    color: var(--text-primary);
    font-weight: 700;
}

.ticker-delta-up { color: var(--emerald); font-weight: 600; }
.ticker-delta-down { color: var(--crimson); font-weight: 600; }

/* Status Dot with Radar Pulse */
.pulse-container {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 9px;
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--emerald);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--emerald);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--emerald);
    animation: radar-pulse 2s infinite ease-out;
}

@keyframes radar-pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.btn-auth-refresh {
    background: #080B10;
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-auth-refresh:hover {
    border-color: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    background: #10151E;
}

/* ==============================================================================
   PAGE LAYOUT & CONTAINER
   ============================================================================== */
.app-container {
    max-width: 1720px;
    margin: 0 auto;
    padding: 18px 24px 40px 24px;
    animation: page-fade-in 0.25s ease-out;
}

@keyframes page-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.page-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}

.page-subtitle {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Grid System */
.grid-cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-cols-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.grid-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-split-7-5 { display: grid; grid-template-columns: 7fr 5fr; gap: 16px; }
.grid-split-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 1200px) {
    .grid-cols-4, .grid-cols-5, .grid-split-7-5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .grid-cols-4, .grid-cols-5, .grid-split-7-5, .grid-split-1-1 { grid-template-columns: 1fr; }
}

/* ==============================================================================
   QUANTITATIVE METRIC CARDS
   ============================================================================== */
.quant-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 14px 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quant-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-active);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.quant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0.25;
    transition: opacity 0.25s ease;
}

.quant-card:hover::before {
    opacity: 0.6;
}

.quant-card-label {
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.quant-card-value {
    font-family: var(--font-mono);
    font-size: 21px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.2px;
}

.quant-card-delta {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.quant-card-sub {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

/* ==============================================================================
   PANELS & CONTAINERS
   ============================================================================== */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==============================================================================
   FINANCIAL DATA TABLES
   ============================================================================== */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    background: #05080D;
}

.quant-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 11.5px;
    text-align: left;
}

.quant-table th {
    background: #080C12;
    color: #5E6F84;
    font-weight: 600;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-transform: uppercase;
    font-size: 9.5px;
    letter-spacing: 0.6px;
}

.quant-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    color: var(--text-primary);
    transition: background 0.15s ease;
}

.quant-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.text-right { text-align: right; }
.text-center { text-align: center; }

/* Real-Time Price Flash Animations */
@keyframes flash-green {
    0% { background-color: rgba(52, 211, 153, 0.25); }
    100% { background-color: transparent; }
}

@keyframes flash-red {
    0% { background-color: rgba(244, 63, 94, 0.25); }
    100% { background-color: transparent; }
}

.flash-up { animation: flash-green 0.8s ease-out; }
.flash-down { animation: flash-red 0.8s ease-out; }

/* ==============================================================================
   BADGES & PILLS
   ============================================================================== */
.badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.badge-high { background: rgba(244, 63, 94, 0.08); color: var(--crimson); border: 1px solid rgba(244, 63, 94, 0.25); }
.badge-elevated { background: rgba(245, 158, 11, 0.08); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-normal { background: rgba(56, 189, 248, 0.08); color: var(--cyan); border: 1px solid rgba(56, 189, 248, 0.25); }
.badge-bull { background: rgba(52, 211, 153, 0.08); color: var(--emerald); border: 1px solid rgba(52, 211, 153, 0.25); }
.badge-neutral { background: rgba(148, 163, 184, 0.08); color: #94A3B8; border: 1px solid rgba(148, 163, 184, 0.25); }
.badge-purple { background: rgba(192, 132, 252, 0.08); color: var(--purple); border: 1px solid rgba(192, 132, 252, 0.25); }

/* Buttons & Inputs */
.btn-action {
    background: #0B0E14;
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #CBD5E1;
    padding: 6px 13px;
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-action:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    background: #141A24;
}

.btn-camera-orbit.active-orbit {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    color: #38BDF8 !important;
}

.btn-primary {
    background: #0284C7;
    border: 1px solid #0284C7;
    color: white;
}

.btn-primary:hover {
    background: #0369A1;
    border-color: #0369A1;
    box-shadow: none;
}

.input-field {
    background: #05080D;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: var(--font-ui);
    outline: none;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: none;
}

/* ==============================================================================
   2FA AUTHENTICATION MODAL
   ============================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 11, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: #080B10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
    border-radius: 8px;
    width: 90%;
    max-width: 520px;
    padding: 24px;
    animation: modalSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

.modal-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 2px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.quant-input {
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-family: var(--font-mono);
    outline: none;
    transition: all 0.2s ease;
}

.quant-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 10px var(--cyan-glow);
}

/* ==============================================================================
   LOBBY REDESIGN: BESPOKE CINEMATIC QUANTITATIVE GATEWAY
/* ==============================================================================
   LOBBY REDESIGN: BESPOKE CINEMATIC QUANTITATIVE GATEWAY (MATTE ARCHITECTURAL FINISH)
   Graphite / Charcoal Matte Palette, Thin Low-Contrast Hairlines, Restrained Accents
   ============================================================================== */

/* Background Ambient Particle Canvas - Understated & Matte */
.lobby-particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.32;
}

/* Ensure lobby content renders cleanly above background canvas */
.lobby-viewport {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* 1. Refined Brand & Editorial Header */
.lobby-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 16px;
}

.lobby-brand-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.lobby-brand-eyebrow .eyebrow-mark {
    color: #38BDF8;
    font-size: 10px;
    opacity: 0.85;
}

.lobby-brand-eyebrow .eyebrow-text {
    color: #CBD5E1;
    letter-spacing: 0.8px;
}

.lobby-brand-eyebrow .eyebrow-divider {
    color: rgba(255, 255, 255, 0.18);
}

.lobby-brand-eyebrow .eyebrow-sub {
    color: #8E9CAE;
}

.lobby-headline {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #F1F5F9;
    margin-bottom: 5px;
    line-height: 1.25;
}

.lobby-subheadline {
    font-size: 12.5px;
    color: #8E9CAE;
    max-width: 700px;
    line-height: 1.6;
}

.lobby-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #64748B;
    background: #080C14;
    border: 1px solid rgba(255, 255, 255, 0.055);
    padding: 8px 14px;
    border-radius: 4px;
}

.lobby-header-meta .meta-val-bright {
    color: #E2E8F0;
    font-weight: 600;
}

.lobby-header-meta .meta-val-accent {
    color: #34D399;
    font-weight: 600;
    opacity: 0.9;
}

/* 2. Three Standalone Launch Cards Grid */
.lobby-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* Shared Base Card Styles - Matte Graphite */
.quant-card-desk {
    background: #080B10;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 8px;
    padding: 22px 22px 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.quant-card-desk::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    opacity: 0.2;
    transition: opacity 0.25s ease;
}

.quant-card-desk:hover {
    transform: translateY(-3px);
}

.quant-card-desk:hover::before {
    opacity: 0.55;
}

/* Legacy Alias */
.project-card {
    composes: quant-card-desk;
}

/* Card Header Meta */
.desk-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.desk-card-num-tag {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.desk-card-route-pill {
    font-family: var(--font-mono);
    font-size: 9.5px;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.4px;
    border: 1px solid transparent;
}

/* Card Typography */
.desk-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #F1F5F9;
    letter-spacing: -0.2px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.desk-card-desc {
    font-size: 12px;
    color: #8E9CAE;
    line-height: 1.55;
    margin-bottom: 16px;
}

/* Specifications Grid Strip (2x2) - Matte Inset */
.desk-spec-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    padding: 12px 14px;
    background: rgba(11, 15, 22, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 5px;
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-size: 10.5px;
}

.desk-spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.desk-spec-k {
    font-size: 9px;
    color: #5E6F84;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.desk-spec-v {
    font-size: 11px;
    font-weight: 600;
    color: #E2E8F0;
}

/* Launch Action Button - Matte Refinement */
.desk-launch-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    border-radius: 5px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.22s ease;
    box-sizing: border-box;
}

.desk-launch-btn .arrow {
    display: inline-block;
    transition: transform 0.22s ease;
    font-family: var(--font-mono);
}

.quant-card-desk:hover .desk-launch-btn .arrow {
    transform: translateX(4px);
}

/* ------------------------------------------------------------------------------
   CARD 01: VOLATILITY SURFACE (MATHEMATICAL SCULPTURE)
   Theme: Matte Steel Blue · 3D Wireframe Manifold Sculpture
   ------------------------------------------------------------------------------ */
.quant-card-vol {
    border-color: rgba(56, 189, 248, 0.12);
    background: #080C14;
}

.quant-card-vol::before {
    background: #38BDF8;
}

.quant-card-vol:hover {
    border-color: rgba(56, 189, 248, 0.32);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 1px rgba(56, 189, 248, 0.35);
}

.quant-card-vol .desk-card-num-tag {
    color: #38BDF8;
}

.quant-card-vol .desk-card-route-pill {
    background: rgba(56, 189, 248, 0.06);
    color: #7DD3FC;
    border-color: rgba(56, 189, 248, 0.18);
}

.sculpture-container {
    width: 100%;
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    background: rgba(8, 13, 20, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.sculpture-svg {
    width: 100%;
    height: 100%;
    display: block;
    animation: volMeshBreathe 8s ease-in-out infinite;
}

@keyframes volMeshBreathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.desk-launch-vol {
    background: rgba(56, 189, 248, 0.07);
    border-color: rgba(56, 189, 248, 0.22);
    color: #7DD3FC;
}

.quant-card-vol:hover .desk-launch-vol {
    background: #0284C7;
    border-color: #38BDF8;
    color: #FFFFFF;
}

/* ------------------------------------------------------------------------------
   CARD 02: SECTOR ROTATION (GEOMETRIC RESEARCH INSTRUMENT)
   Theme: Matte Mineral Green / Sage · Asymmetric Split & Polar Crosshairs
   ------------------------------------------------------------------------------ */
.quant-card-regime {
    border-color: rgba(52, 211, 153, 0.12);
    background: #070D0A;
}

.quant-card-regime::before {
    background: #34D399;
}

.quant-card-regime:hover {
    border-color: rgba(52, 211, 153, 0.32);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 1px rgba(52, 211, 153, 0.35);
}

.quant-card-regime .desk-card-num-tag {
    color: #34D399;
}

.quant-card-regime .desk-card-route-pill {
    background: rgba(52, 211, 153, 0.06);
    color: #6EE7B7;
    border-color: rgba(52, 211, 153, 0.18);
}

/* Asymmetric Split Layout inside Card 02 */
.asymmetric-split-container {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.split-content {
    flex: 1.15;
}

.split-visual {
    flex: 0.85;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.instrument-svg {
    width: 135px;
    height: 135px;
    display: block;
}

.orbital-ring-drift {
    animation: orbitSpin 32s linear infinite;
    transform-origin: 75px 75px;
}

.trajectory-pulse {
    animation: trajectoryGlow 3s ease-in-out infinite;
}

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

@keyframes trajectoryGlow {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.85; }
}

.desk-launch-regime {
    background: rgba(52, 211, 153, 0.07);
    border-color: rgba(52, 211, 153, 0.22);
    color: #6EE7B7;
}

.quant-card-regime:hover .desk-launch-regime {
    background: #059669;
    border-color: #34D399;
    color: #FFFFFF;
}

/* ------------------------------------------------------------------------------
   CARD 03: OPTIONS FLOW & VRP (KINETIC STREAM OF MARKET ACTIVITY)
   Theme: Matte Warm Brass / Amber · Horizontal Velocity Waveform & Editorial
   ------------------------------------------------------------------------------ */
.quant-card-vrp {
    border-color: rgba(245, 158, 11, 0.12);
    background: #0E0B07;
}

.quant-card-vrp::before {
    background: #F59E0B;
}

.quant-card-vrp:hover {
    border-color: rgba(245, 158, 11, 0.32);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 1px rgba(245, 158, 11, 0.35);
}

.quant-card-vrp .desk-card-num-tag {
    color: #F59E0B;
}

.quant-card-vrp .desk-card-route-pill {
    background: rgba(245, 158, 11, 0.06);
    color: #FCD34D;
    border-color: rgba(245, 158, 11, 0.18);
}

/* Wide Horizontal Kinetic Stream Motif across upper-middle */
.flow-stream-container {
    width: 100%;
    height: 82px;
    background: rgba(16, 12, 7, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.09);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-bottom: 14px;
}

.flow-stream-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.flow-sweep-beam {
    animation: flowBeamSweep 4.5s ease-in-out infinite;
}

@keyframes flowBeamSweep {
    0% { transform: translateX(-120px); opacity: 0; }
    20% { opacity: 0.35; }
    80% { opacity: 0.35; }
    100% { transform: translateX(420px); opacity: 0; }
}

.pulse-burst {
    animation: burstRing 2.4s ease-out infinite;
    transform-origin: center;
}

@keyframes burstRing {
    0% { r: 3; opacity: 0.85; }
    100% { r: 10; opacity: 0; }
}

.desk-launch-vrp {
    background: rgba(245, 158, 11, 0.07);
    border-color: rgba(245, 158, 11, 0.22);
    color: #FCD34D;
}

.quant-card-vrp:hover .desk-launch-vrp {
    background: #D97706;
    border-color: #F59E0B;
    color: #FFFFFF;
}

/* 3. Restrained Bottom Macro Pulse Telemetry Console */
.quant-telemetry-console {
    background: #06090E;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 6px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.console-cell {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255, 255, 255, 0.045);
    position: relative;
    transition: background-color 0.2s ease;
}

.console-cell:last-child {
    border-right: none;
}

.console-cell:hover {
    background: rgba(255, 255, 255, 0.012);
}

.console-label {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
    color: #5E6F84;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.console-val {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    color: #E2E8F0;
    letter-spacing: -0.2px;
    margin-bottom: 3px;
    font-variant-numeric: tabular-nums;
}

.console-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #8E9CAE;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
    .sculpture-svg,
    .orbital-ring-drift,
    .trajectory-pulse,
    .flow-sweep-beam,
    .pulse-burst,
    .pulse-shimmer {
        animation: none !important;
        transform: none !important;
    }
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
    .lobby-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .quant-card-desk {
        min-height: auto;
    }
    
    .quant-telemetry-console {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .console-cell:nth-child(2) {
        border-right: none;
    }
    
    .console-cell:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    }
}

@media (max-width: 640px) {
    .quant-telemetry-console {
        grid-template-columns: 1fr;
    }
    
    .console-cell {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    }
    
    .console-cell:last-child {
        border-bottom: none;
    }
    
    .asymmetric-split-container {
        flex-direction: column;
    }
}

/* ==============================================================================
   ALGORITHMIC TRADE IDEAS & STRATEGY GENERATOR
   ============================================================================== */
.trade-ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 16px;
    margin-top: 6px;
}

.trade-idea-card {
    background: #04070B;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.trade-idea-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.trade-idea-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--card-accent, #38BDF8);
}

.trade-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.trade-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trade-card-cat {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 3px;
}

.trade-card-thesis {
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.55;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 12px;
    border-radius: 3px;
}

.trade-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.trade-spec-item {
    background: #020408;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 10px;
    border-radius: 3px;
}

.trade-spec-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: #5E6F84;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.trade-spec-val {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    color: #E2E8F0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trade-greeks-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    margin-bottom: 12px;
}

.greek-pill {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10px;
}

.greek-name {
    color: #5E6F84;
    font-size: 9px;
    margin-bottom: 1px;
}

.greek-val {
    font-weight: 700;
    color: #CBD5E1;
}

.trade-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
}

.btn-trade-filter {
    background: #05080E;
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #8E9CAE;
    padding: 5px 12px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-trade-filter:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #F8FAFC;
    background: #0C121D;
}

.btn-trade-filter.active-filter {
    background: rgba(168, 85, 247, 0.16) !important;
    border-color: #A855F7 !important;
    color: #FFFFFF !important;
    font-weight: 600;
}

/* Enhanced Trade Ideas: Institutional, Clean, Click-to-Expand */
.trade-idea-card {
    background: #080C14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--card-accent, #38BDF8);
    border-radius: 4px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    position: relative;
    overflow: hidden;
}

.trade-idea-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    border-left-color: var(--card-accent, #38BDF8);
    background: #0A101A;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.trade-card-clickable-header {
    cursor: pointer;
    user-select: none;
}

.trade-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.trade-card-title {
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.trade-card-cat {
    font-family: var(--font-mono);
    font-size: 10px;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* 3-Column Metric HUD */
.trade-metric-hud {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
    background: #020408;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    padding: 8px 10px;
}

.trade-hud-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trade-hud-col:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 8px;
}

.trade-hud-label {
    font-family: var(--font-mono);
    font-size: 8.5px;
    color: #5E6F84;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trade-hud-val {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: #E2E8F0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Monospace Structure Formula Pill */
.trade-structure-pill {
    margin-top: 8px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    padding: 6px 10px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-structure-pill strong {
    color: #38BDF8;
    font-size: 9px;
    letter-spacing: 0.5px;
}

/* Expand Bar */
.trade-expand-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    user-select: none;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: #64748B;
    transition: all 0.15s ease;
}

.trade-expand-toggle-bar:hover {
    color: #38BDF8;
}

.trade-expand-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trade-expand-icon {
    font-size: 10px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.trade-idea-card.is-expanded .trade-expand-icon {
    transform: rotate(180deg);
}

.trade-expand-preview {
    font-size: 10px;
    color: #475569;
    font-family: var(--font-mono);
}

/* Collapsible Details Drawer */
.trade-details-drawer {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    animation: fadeInDrawer 0.2s ease-out;
}

.trade-idea-card.is-expanded .trade-details-drawer {
    display: block;
}

/* Execution Legs Table */
.trade-legs-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 11px;
    margin-bottom: 12px;
    background: #020408;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.trade-legs-table th {
    background: rgba(255, 255, 255, 0.02);
    color: #5E6F84;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trade-legs-table td {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #CBD5E1;
}

.trade-legs-table tr:last-child td {
    border-bottom: none;
}

.leg-action-buy {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #10B981;
    font-weight: 700;
    font-size: 9.5px;
    padding: 1px 6px;
    border-radius: 2px;
    display: inline-block;
}

.leg-action-sell {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #EF4444;
    font-weight: 700;
    font-size: 9.5px;
    padding: 1px 6px;
    border-radius: 2px;
    display: inline-block;
}

/* 2-Column Split: Thesis & Invalidation */
.trade-analysis-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .trade-analysis-split {
        grid-template-columns: 1fr;
    }
}

.trade-analysis-box {
    background: #020408;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    padding: 10px 12px;
}

.trade-analysis-header {
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5E6F84;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.trade-analysis-body {
    font-family: var(--font-sans);
    font-size: 11px;
    line-height: 1.5;
    color: #94A3B8;
}

@keyframes fadeInDrawer {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dropdown Filter Feedback & Animations */
@keyframes filterAppliedPulse {
    0% {
        border-color: #38BDF8;
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
    }
    50% {
        border-color: #00FF9D;
        box-shadow: 0 0 12px rgba(0, 255, 157, 0.3);
    }
    100% {
        border-color: rgba(255, 255, 255, 0.09);
        box-shadow: none;
    }
}

.filter-active-pulse {
    animation: filterAppliedPulse 0.45s ease-out;
}

.filter-confirm-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38BDF8;
    transition: all 0.2s ease;
}

.table-filter-fade {
    opacity: 0.35;
    transition: opacity 0.12s ease;
}

.table-filter-ready {
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* ==============================================================================
   INSTANT PJAX PROGRESS BAR & ENHANCED TRADE PAYOFF CARDS
   ============================================================================== */
.page-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2.5px;
    width: 0%;
    background: linear-gradient(90deg, #38BDF8 0%, #818CF8 50%, #00FF9D 100%);
    z-index: 10000;
    transition: width 0.14s ease-out, opacity 0.25s ease-out;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.page-progress-bar.active {
    opacity: 1;
}

.trade-payoff-container {
    margin: 10px 0 12px 0;
    padding: 8px 12px;
    background: #020408;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.payoff-svg {
    width: 130px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.015);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.payoff-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-grow: 1;
    font-family: var(--font-mono);
    font-size: 10px;
}

.payoff-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94A3B8;
}

.badge-rr {
    background: rgba(56, 189, 248, 0.12);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 7px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-copy-ticket {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-copy-ticket:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border-color: #38BDF8;
}

/* ==============================================================================
   INSTITUTIONAL QUANTITATIVE SYSTEM WARM-UP TELEMETRY PANEL
   ============================================================================== */
.system-warmup-panel {
    background: #090D14;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 6px;
    padding: 14px 18px;
    margin: 0 0 20px 0;
    font-family: var(--font-mono);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.system-warmup-panel.collapsed {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    border-color: transparent;
    pointer-events: none;
}

.warmup-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.warmup-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.warmup-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38BDF8;
    display: inline-block;
    animation: warmupPulse 1.2s infinite ease-in-out;
}

@keyframes warmupPulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px rgba(56, 189, 248, 0.8); }
    50% { opacity: 0.4; transform: scale(0.85); box-shadow: 0 0 0px transparent; }
}

.warmup-title {
    font-weight: 700;
    color: #F1F5F9;
    letter-spacing: 0.5px;
}

.warmup-divider {
    color: #475569;
}

.warmup-action {
    color: #38BDF8;
    font-weight: 500;
}

.warmup-pct-counter {
    font-size: 13px;
    font-weight: 800;
    color: #38BDF8;
}

.warmup-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.warmup-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0284C7 0%, #38BDF8 50%, #34D399 100%);
    border-radius: 2px;
    transition: width 0.35s ease;
}

.warmup-pills-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.warmup-stage-pill {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 9.5px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.warmup-stage-pill.active {
    border-color: rgba(56, 189, 248, 0.4);
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.06);
}

.warmup-stage-pill.ready {
    border-color: rgba(52, 211, 153, 0.35);
    color: #34D399;
    background: rgba(52, 211, 153, 0.05);
}

.warmup-stage-pill .pill-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #475569;
}

.warmup-stage-pill.active .pill-dot {
    background: #38BDF8;
}

.warmup-stage-pill.ready .pill-dot {
    background: #34D399;
}

/* Minimalist Flow Tag Chips */
.flow-pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid transparent;
}
.flow-pill-cyan { background: rgba(56, 189, 248, 0.08); color: #38BDF8; border-color: rgba(56, 189, 248, 0.25); }
.flow-pill-amber { background: rgba(245, 158, 11, 0.08); color: #F59E0B; border-color: rgba(245, 158, 11, 0.25); }
.flow-pill-emerald { background: rgba(52, 211, 153, 0.08); color: #34D399; border-color: rgba(52, 211, 153, 0.25); }
.flow-pill-purple { background: rgba(192, 132, 252, 0.08); color: #C084FC; border-color: rgba(192, 132, 252, 0.25); }
.flow-pill-rose { background: rgba(244, 63, 94, 0.08); color: #F43F5E; border-color: rgba(244, 63, 94, 0.25); }
.flow-pill-teal { background: rgba(45, 212, 191, 0.08); color: #2DD4BF; border-color: rgba(45, 212, 191, 0.25); }

/* Sector Expansion Drawer & Drivers Subtable */
.sector-parent-row {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}
.sector-parent-row:hover {
    background: rgba(255, 255, 255, 0.035) !important;
}
.sector-parent-row.is-expanded {
    background: rgba(56, 189, 248, 0.05) !important;
    border-left: 2px solid #38BDF8;
}
.sector-expand-chevron {
    display: inline-block;
    width: 14px;
    font-size: 11px;
    color: var(--text-muted);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}
.sector-parent-row.is-expanded .sector-expand-chevron {
    transform: rotate(90deg);
    color: #38BDF8;
}
.sector-expansion-row {
    background: #05080E !important;
}
.sector-expansion-drawer {
    animation: drawerFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 10px 14px 14px 14px;
    background: #05080E;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sector-drivers-subtable {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    background: #080C14;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
}
.sector-drivers-subtable th {
    padding: 6px 10px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}
.sector-drivers-subtable td {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
    font-family: var(--font-mono);
    vertical-align: middle;
}
.sector-drivers-subtable tr:last-child td {
    border-bottom: none;
}
.sector-drivers-subtable tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}
.heatmap-drivers-card {
    margin-top: 12px;
    padding: 12px 14px;
    background: #06090F;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 4px;
    animation: drawerFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes drawerFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes rowHighlightPulse {
    0% { background: rgba(56, 189, 248, 0.22); }
    100% { background: rgba(56, 189, 248, 0.05); }
}
.row-highlight-pulse {
    animation: rowHighlightPulse 1.2s ease-out;
}

/* ------------------------------------------------------------------------------
   VRP REDESIGN: MINIMAL HUD STRIP & INSTITUTIONAL WORKSPACE TABS
   ------------------------------------------------------------------------------ */
.vrp-hud-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #070B12;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-bottom: 14px;
    overflow: hidden;
}

.vrp-hud-cell {
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: #070B12;
}

.vrp-hud-cell:last-child {
    border-right: none;
}

.vrp-hud-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.vrp-hud-value-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.vrp-hud-val {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: -0.2px;
}

.vrp-hud-meta {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: #94A3B8;
}

/* Institutional Tab Navigation */
.vrp-tab-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0;
}

.vrp-tab-nav {
    display: flex;
    gap: 4px;
}

.vrp-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: #94A3B8;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    transition: all 0.15s ease;
}

.vrp-tab-btn:hover {
    color: #F1F5F9;
    background: rgba(255, 255, 255, 0.03);
}

.vrp-tab-btn.active {
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.06);
    border-bottom: 2px solid #38BDF8;
}

.vrp-tab-badge {
    font-family: var(--font-mono);
    font-size: 9.5px;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #CBD5E1;
}

.vrp-tab-btn.active .vrp-tab-badge {
    background: rgba(56, 189, 248, 0.2);
    color: #38BDF8;
}

.vrp-tab-pane {
    animation: vrpFadeIn 0.2s ease-out;
}

@keyframes vrpFadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

.vrp-formula-card {
    background: #070B12;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    padding: 12px 16px;
}

@media (max-width: 900px) {
    .vrp-hud-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .vrp-tab-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


