/* ==============================================================================
   INTELLIWEALTH • LUXURY INSTITUTIONAL POLAIRYX TERMINAL OS (CSS)
   Architecture Doctorante : Multi-Fenêtres Terminal Amovibles & Dockables
   Inspiré de Polairyx & Bloomberg Terminal • Zéro Régression Fonctionnelle
   Palette Deep Navy Obsidian Blue (#060a12 / #0a101d / #0e1726 / #141f36)
   ============================================================================== */

:root {
    --iw-term-bg: #060a12;
    --iw-term-panel: #0a101d;
    --iw-term-card: #0e1726;
    --iw-term-header: #121c2e;
    --iw-term-border: rgba(56, 189, 248, 0.16);
    --iw-term-border-glow: rgba(56, 189, 248, 0.45);
    --iw-term-cyan: #38bdf8;
    --iw-term-emerald: #10b981;
    --iw-term-gold: #f5d77f;
    --iw-term-rose: #f43f5e;
    --iw-term-text: #f8fafc;
    --iw-term-muted: #94a3b8;
}

/* ==============================================================================
   CARTE MONDIALE 2D & GLOBE 3D HAUTE VISIBILITÉ (POLAIRYX MACRO RADAR)
   Palette Exacte Extraite des Captures Polairyx Réelles
   ============================================================================== */
.polairyx-world-svg-root {
    width: 100% !important;
    height: 100% !important;
    background: #060d1b !important;
    filter: drop-shadow(0 0 25px rgba(6, 13, 27, 0.9));
}

.world-countries-layer path,
.world-country-shape {
    fill: #152238 !important;
    stroke: rgba(56, 189, 248, 0.45) !important;
    stroke-width: 0.85px !important;
    transition: fill 0.15s ease, stroke 0.15s ease, filter 0.15s ease;
    cursor: pointer;
}

/* Pays avec biais Bullish (Vert Émeraude Polairyx) */
.world-country-shape.country-bullish {
    fill: #0c2a20 !important;
    stroke: #10b981 !important;
    stroke-width: 1.2px !important;
}

/* Pays avec biais Bearish / Risque (Rose/Rouge Crimson Polairyx) */
.world-country-shape.country-bearish {
    fill: #30121c !important;
    stroke: #f43f5e !important;
    stroke-width: 1.2px !important;
}

/* Pays avec biais Neutre */
.world-country-shape.country-neutral {
    fill: #16253c !important;
    stroke: rgba(56, 189, 248, 0.35) !important;
}

/* Pays Sélectionné / Actif (Surbrillance Or Radiant Polairyx) */
.world-country-shape.country-selected {
    fill: rgba(245, 215, 127, 0.35) !important;
    stroke: #f5d77f !important;
    stroke-width: 2px !important;
    filter: drop-shadow(0 0 12px rgba(245, 215, 127, 0.8)) !important;
}

.world-country-shape:hover {
    fill: rgba(56, 189, 248, 0.45) !important;
    stroke: #38bdf8 !important;
    stroke-width: 1.4px !important;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.7)) brightness(1.25) !important;
}

/* Tooltip Flottant Absolu Non-Bloquant Polairyx (Card Glassmorphic) */
#polairyxMapTooltip,
.polairyx-map-tooltip {
    position: fixed !important;
    pointer-events: none !important;
    z-index: 999999 !important;
    background: rgba(8, 14, 26, 0.96) !important;
    backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85), 0 0 15px rgba(56, 189, 248, 0.15) !important;
    font-size: 0.76rem !important;
    color: #f8fafc !important;
    line-height: 1.4 !important;
    max-width: 280px !important;
    transform: translate(14px, 14px);
    transition: opacity 0.12s ease;
}

.polairyx-map-tooltip strong {
    color: #f8fafc;
    font-size: 0.82rem;
}

.polairyx-map-tooltip .tooltip-sub {
    color: #94a3b8;
    font-size: 0.7rem;
    margin-top: 2px;
}

/* Restauration du Bouton Flottant Éléonore Sterling partout */
#copilotFloatingBtn {
    display: flex !important;
}

body.workspace-active #copilotFloatingBtn {
    bottom: 48px !important;
    right: 20px !important;
    z-index: 9998 !important;
}

/* Harmonisation universelle de la Sidebar (Zéro Beige/Blanc) */
.app-sidebar,
.sidebar,
body.theme-clean-light .app-sidebar,
body.theme-clean-light .sidebar {
    background: #090f1d !important;
    border-right: 1px solid rgba(56, 189, 248, 0.14) !important;
    color: #f8fafc !important;
}

.sidebar-scroll-container,
.sidebar-menu,
body.theme-clean-light .sidebar-scroll-container {
    background: transparent !important;
}

.sidebar-nav-item.active,
.nav-item.active {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.16) !important;
    border-left: 3px solid #38bdf8 !important;
    box-shadow: inset 0 0 16px rgba(56, 189, 248, 0.08) !important;
}

/* ==============================================================================
   DECK DE NAVIGATION MAÎTRE DU TERMINAL POLAIRYX (TOP-NAV SWITCHER)
   ============================================================================== */
.terminal-workspace-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 9px;
    padding: 3px 5px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 1;
}

.terminal-workspace-nav::-webkit-scrollbar {
    display: none;
}

.term-workspace-pill {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.73rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.16s ease;
    white-space: nowrap;
}

.term-workspace-pill:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.term-workspace-pill.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(14, 23, 38, 0.8) 100%);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.22);
    font-weight: 800;
}

/* CARTE MENTOR PÉDAGOGIQUE POUR TRADERS DÉBUTANTS */
.polairyx-mentor-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.polairyx-mentor-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

/* -----------------------------------------------------------------------------
   1. CONTENEUR MAÎTRE DU TERMINAL OS (PLEIN ÉCRAN FLUIDE)
   ----------------------------------------------------------------------------- */
.workspace-studio-view,
#viewWorkspace {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - 56px) !important;
    max-height: calc(100vh - 56px) !important;
    background: radial-gradient(circle at 45% 25%, #0c1424 0%, #060a12 70%, #030508 100%);
    display: flex;
    flex-direction: column !important;
    overflow: hidden !important;
    user-select: none;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
}

/* Neutralisation définitive des barres empilées dupliquées (remplacées par l'Apex Command Bar) */
#polairyxNavbar,
#polairyxHudStrip,
#zenRestoreBar {
    display: none !important;
}

#viewWorkspace[style*="display: none"],
.workspace-studio-view[style*="display: none"] {
    display: none !important;
}

body:has(#viewWorkspace[style*="display: flex"]:not([style*="display: none"])) {
    overflow-y: hidden !important;
}

.app-main-container:has(#viewWorkspace[style*="display: flex"]:not([style*="display: none"])) {
    overflow-y: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

/* -----------------------------------------------------------------------------
   2. TOOLBAR SUPÉRIEURE DU TERMINAL OS
   ----------------------------------------------------------------------------- */
.terminal-os-toolbar {
    height: 42px;
    min-height: 42px;
    background: #080d18;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    gap: 12px;
    z-index: 100;
}

.terminal-os-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terminal-logo-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #f5d77f;
    letter-spacing: 0.5px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 4px 10px;
    border-radius: 6px;
}

.terminal-layout-pills {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.terminal-layout-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.terminal-layout-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
}

.terminal-layout-btn.active {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2);
}

.terminal-os-center {
    display: flex;
    align-items: center;
}

.terminal-market-clocks {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.72rem;
    color: #94a3b8;
}

.clock-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.clock-item strong {
    color: #f8fafc;
    font-weight: 700;
}

.dot-open {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.dot-closed {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #64748b;
}

.dot-crypto {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.terminal-os-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dropdown-wrapper {
    position: relative;
}

.terminal-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.terminal-action-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
}

.terminal-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 230px;
    background: #0b1220;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    padding: 8px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.terminal-dropdown-menu label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    color: #cbd5e1;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.terminal-dropdown-menu label:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #f8fafc;
}

.terminal-dropdown-menu input[type="checkbox"] {
    accent-color: #38bdf8;
}

.terminal-btn-pedagogic {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.terminal-btn-pedagogic.active {
    background: #10b981;
    color: #022c22;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

/* -----------------------------------------------------------------------------
   3. DESKTOP CANVAS (ESPACE LIBRE OÙ VIVENT LES FENÊTRES)
   ----------------------------------------------------------------------------- */
.terminal-os-desktop {
    position: relative !important;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    height: calc(100vh - 56px - 38px - 40px) !important;
    max-height: calc(100vh - 56px - 38px - 40px) !important;
    overflow: hidden !important;
    z-index: 10 !important;
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* -----------------------------------------------------------------------------
   4. FENÊTRE TERMINAL AMOVIBLE (DRAGGABLE & RESIZABLE)
   ----------------------------------------------------------------------------- */
.terminal-window {
    position: absolute;
    background: rgba(10, 16, 28, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 8px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
    min-width: 260px;
    min-height: 120px;
    box-sizing: border-box;
    z-index: 20;
}

.terminal-window.is-focused {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.88), 0 0 25px rgba(56, 189, 248, 0.22);
}

.terminal-window.is-focused .terminal-window-header {
    border-top: 2px solid #38bdf8;
    background: linear-gradient(90deg, #132238, #0e182a);
}

.terminal-window.is-minimized {
    display: none !important;
}

.terminal-window.is-maximized {
    top: 4px !important;
    left: 4px !important;
    width: calc(100% - 8px) !important;
    height: calc(100% - 8px) !important;
    border-radius: 6px;
    z-index: 40 !important;
}


/* Barre de Titre de la Fenêtre (Zone de Glisser-Déposer) */
.terminal-window-header {
    height: 34px;
    min-height: 34px;
    background: linear-gradient(90deg, #10192a, #0b1322);
    border-bottom: 1px solid rgba(56, 189, 248, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    cursor: grab;
    user-select: none;
    border-radius: 9px 9px 0 0;
}

.terminal-window-header:active {
    cursor: grabbing;
}

.terminal-window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.3px;
    pointer-events: none;
}

.terminal-window-drag-grip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    color: #64748b;
    cursor: grab;
    user-select: none;
    padding: 2px 3px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
    pointer-events: auto;
}

.terminal-window-drag-grip:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
    transform: scale(1.15);
}

.terminal-window-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.terminal-window-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.win-ctrl-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 5px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.win-ctrl-btn.has-label {
    width: auto !important;
    padding: 0 8px !important;
    height: 22px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #cbd5e1 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.win-ctrl-btn.has-label:hover {
    background: rgba(56, 189, 248, 0.18) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
}

.win-ctrl-btn.has-label.is-active {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
    color: #10b981 !important;
}

.win-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

.win-ctrl-btn.popout:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.win-ctrl-btn.maximize:hover {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.win-ctrl-btn.close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* =========================================================================
   MODE IMMERSION ZEN TRADER (+220px D'ESPACE VERTICAL IMMÉDIAT)
   ========================================================================= */
body.zen-workspace-mode.workspace-active .top-nav,
body.zen-workspace-mode.workspace-active .top-navbar,
body.zen-workspace-mode.workspace-active .market-ticker-strip,
body.zen-workspace-mode.workspace-active .polairyx-navbar,
body.zen-workspace-mode.workspace-active .polairyx-hud-strip {
    display: none !important;
}

body.zen-workspace-mode #viewWorkspace,
body.zen-workspace-mode.workspace-active #viewWorkspace {
    height: 100vh !important;
    max-height: 100vh !important;
    padding-top: 0 !important;
}

body.zen-workspace-mode #terminalDesktop,
body.zen-workspace-mode.workspace-active #terminalDesktop {
    height: calc(100vh - 38px - 40px) !important;
    max-height: calc(100vh - 38px - 40px) !important;
}

.zen-restore-bar {
    display: none;
    position: fixed;
    top: 6px;
    right: 18px;
    z-index: 10000;
    background: rgba(10, 18, 32, 0.94);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 18px rgba(56, 189, 248, 0.15);
    border-radius: 999px;
    padding: 3px 12px;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.2s ease;
}

body.zen-workspace-mode .zen-restore-bar {
    display: flex;
}

.zen-restore-bar:hover {
    background: rgba(14, 25, 45, 0.98);
    border-color: #38bdf8;
    transform: translateY(-1px);
}

/* Bouton Zen Toggle dans les barres */
.btn-zen-toggle {
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    color: #38bdf8 !important;
    font-weight: 800 !important;
    transition: all 0.2s ease !important;
}

.btn-zen-toggle:hover,
.btn-zen-toggle.active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

/* =========================================================================
   MODE STANDALONE / ONGLETS SÉPARÉS (MULTI-ÉCRAN 100% PUR WORKSPACE)
   ========================================================================= */
body.standalone-window-mode {
    overflow: hidden !important;
    background: #050811 !important;
}

body.standalone-window-mode #sidebar,
body.standalone-window-mode .top-navbar,
body.standalone-window-mode .market-ticker-strip,
body.standalone-window-mode .polairyx-navbar,
body.standalone-window-mode .polairyx-hud-strip,
body.standalone-window-mode #terminalTaskbar {
    display: none !important;
}

body.standalone-window-mode #viewWorkspace {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    z-index: 9999 !important;
}

body.standalone-window-mode #terminalDesktop {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border: none !important;
    background: #050811 !important;
}

body.standalone-window-mode .terminal-window {
    display: none !important;
}

body.standalone-window-mode .terminal-window.is-standalone-active {
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    z-index: 10000 !important;
    box-shadow: none !important;
}

.standalone-floating-pill {
    display: none;
    position: fixed;
    top: 6px;
    right: 80px;
    z-index: 20000;
    background: rgba(6, 12, 22, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #e2e8f0;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

body.standalone-window-mode .standalone-floating-pill {
    display: flex;
}

/* Corps de la Fenêtre */
.terminal-window-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    background: #080d18;
}

/* Poignée de redimensionnement Coin Inférieur Droit Tactile */
.terminal-window-resizer {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 22px;
    height: 22px;
    cursor: nwse-resize;
    z-index: 100;
    background: linear-gradient(135deg, transparent 50%, rgba(212, 175, 55, 0.5) 50%);
    border-bottom-right-radius: 6px;
    touch-action: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

.terminal-window-resizer:hover {
    background: linear-gradient(135deg, transparent 40%, rgba(212, 175, 55, 0.95) 40%);
    transform: scale(1.1);
}

/* -----------------------------------------------------------------------------
   5. CONTENUS SPÉCIFIQUES DES FENÊTRES TERMINAL
   ----------------------------------------------------------------------------- */

/* A. Fenêtre Carte Polairyx */
.win-map-canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #05080f;
}

.win-map-subbar {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 13, 24, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 6px;
    padding: 5px 10px;
    backdrop-filter: blur(8px);
    z-index: 10;
}

/* B. Fenêtre Graphique Chandelier & Exécution */
.win-chart-viewport {
    width: 100%;
    height: 100%;
    background: #05080f;
}

.win-chart-action-bar {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    background: #060a14;
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    gap: 6px;
    box-sizing: border-box;
}

.chart-symbol-picker {
    background: #090f1d;
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #f8fafc;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    outline: none;
}

.chart-atr-indicator {
    font-size: 0.65rem;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-atr-indicator strong {
    color: #f5d77f;
}

.btn-chart-trade {
    border: none;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-chart-trade.buy {
    background: #10b981;
    color: #022c22;
}

.btn-chart-trade.buy:hover {
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
}

.btn-chart-trade.sell {
    background: #f43f5e;
    color: #4c0519;
}

.btn-chart-trade.sell:hover {
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.6);
}

/* C. Fenêtre Comité Firme IA */
.firm-window-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.firm-verdict-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(16, 24, 40, 0.8));
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    padding: 10px;
}

.firm-agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.firm-member-tile {
    background: rgba(14, 23, 38, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.firm-member-tile.active-speaking {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

/* D. Fenêtre Risque Prop-Firm FTMO */
.risk-window-container {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.risk-dials-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.risk-dial-box {
    background: #0a1120;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 8px;
    padding: 10px;
}

.risk-dial-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
}

.risk-dial-value {
    font-size: 1.3rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    margin: 4px 0;
}

.risk-progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}

.risk-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* E. Fenêtre Portefeuille & Positions */
.portfolio-window-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.74rem;
}

.portfolio-window-table th {
    background: #09101d;
    color: #94a3b8;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.66rem;
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.portfolio-window-table td {
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.portfolio-window-table tr:hover td {
    background: rgba(56, 189, 248, 0.05);
}

/* F. Fenêtre Mentor Didactique (Débutant) */
.mentor-window-container {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mentor-card {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 10px;
}

.mentor-card h4 {
    margin: 0 0 4px 0;
    font-size: 0.8rem;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mentor-card p {
    margin: 0;
    font-size: 0.74rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.terminal-os-taskbar {
    position: relative !important;
    z-index: 480 !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    background: #060a14 !important;
    border-top: 1px solid rgba(56, 189, 248, 0.14) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    overflow: hidden !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
}

.terminal-layout-pills {
    display: none !important;
}

.taskbar-chips-list {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.taskbar-chips-list::-webkit-scrollbar {
    display: none;
}

.taskbar-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.70rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.taskbar-chip:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #f8fafc;
}

.taskbar-chip.active {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
}

.taskbar-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #64748b;
    flex-shrink: 0;
}

.taskbar-chip.active .taskbar-dot {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.taskbar-status-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.terminal-btn-pedagogic {
    flex-shrink: 0;
    white-space: nowrap;
}

.taskbar-account-pill {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #f5d77f;
    font-size: 0.70rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.taskbar-account-pill:hover {
    background: rgba(212, 175, 55, 0.22);
}

.taskbar-system-time {
    font-size: 0.74rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    color: #94a3b8;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ==============================================================================
   7. HARMONISATION UNIVERSELLE DU TERMINAL SUR TOUTES LES PAGES
   Éradication totale du blanc / beige • Cohérence absolue Polairyx Terminal OS
   ============================================================================== */

/* Suppression de la bannière télémétrie encombrante qui vole 36px d'écran */
.telemetry-banner {
    display: none !important;
}

/* Toutes les vues adoptent le fond Deep Navy Obsidian du terminal */
.page-view,
#viewFloor,
#viewStrategy,
#viewReporting,
#viewPortfolio,
#viewAudit,
#viewExecutive,
#viewNewsroom,
#viewFinance,
#viewMarkets,
#viewCrypto,
#viewBacktest,
#viewAgents,
#viewChat,
#viewNodes {
    background: #060a12 !important;
    color: #f8fafc !important;
    box-sizing: border-box;
}

/* Éradication de TOUTES les boîtes blanches résiduelles (Stratégie, Reporting, etc.) */
div[style*="background: #ffffff"],
div[style*="background:#ffffff"],
div[style*="background: white"],
div[style*="background: rgb(255, 255, 255)"],
section[style*="background: #ffffff"],
main div[style*="background: #ffffff"],
.card,
.panel {
    background: #0d1527 !important;
    border-color: rgba(56, 189, 248, 0.16) !important;
    color: #f8fafc !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Remplacement des conteneurs gris clair f8fafc / e2e8f0 */
div[style*="background: #f8fafc"],
div[style*="background:#f8fafc"],
div[style*="background: #f1f5f9"],
div[style*="background:#f1f5f9"],
div[style*="background: #eef2ff"],
div[style*="background:#eef2ff"] {
    background: #111c34 !important;
    border-color: rgba(56, 189, 248, 0.2) !important;
    color: #f8fafc !important;
}

/* Harmonisation des textes sombres en blanc cassé lisible */
h1, h2, h3, h4, h5, h6,
*[style*="color: #0f172a"],
*[style*="color:#0f172a"],
*[style*="color: #1e293b"],
*[style*="color:#1e293b"],
*[style*="color: #334155"],
*[style*="color:#334155"] {
    color: #f8fafc !important;
}

/* Harmonisation des textes secondaires en gris bleuté doux */
p,
*[style*="color: #475569"],
*[style*="color:#475569"],
*[style*="color: #64748b"],
*[style*="color:#64748b"] {
    color: #94a3b8 !important;
}

/* Harmonisation des bordures grises claires */
*[style*="border: 1px solid #e2e8f0"],
*[style*="border:1px solid #e2e8f0"],
*[style*="border-bottom: 1px solid #f1f5f9"],
*[style*="border: 1px solid #cbd5e1"] {
    border-color: rgba(56, 189, 248, 0.15) !important;
}

/* Harmonisation des sélecteurs, inputs et sliders */
select,
input[type="text"],
input[type="number"],
input[type="password"] {
    background: #090e1c !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    color: #f8fafc !important;
    border-radius: 6px !important;
}

input[type="range"] {
    accent-color: #38bdf8 !important;
}

/* Harmonisation des tableaux de reporting et d'ordres */
table {
    background: #090e1c !important;
    border-color: rgba(56, 189, 248, 0.15) !important;
    color: #f8fafc !important;
}

th {
    background: #0d1527 !important;
    color: #38bdf8 !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2) !important;
}

td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
}

tr:hover td {
    background: rgba(56, 189, 248, 0.06) !important;
}

/* ==============================================================================
   8. ENHANCEMENT SPÉCIFIQUE DU STUDIO DE STRATÉGIE (MANDATS)
   ============================================================================== */
#strategyPresetsGrid .strategy-preset-card {
    background: #0d1527 !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    border-radius: 8px !important;
    color: #f8fafc !important;
    transition: all 0.2s ease !important;
}

#strategyPresetsGrid .strategy-preset-card:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.2) !important;
    transform: translateY(-2px);
}

#strategyPresetsGrid .strategy-preset-card.active {
    border-color: #f5d77f !important;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.3) !important;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), #0d1527) !important;
}

/* ==============================================================================
   9. ENHANCEMENT SPÉCIFIQUE DU REPORTING & DATASETS RL
   ============================================================================== */
#viewReporting .reporting-kpi-card {
    background: #0d1527 !important;
    border: 1px solid rgba(56, 189, 248, 0.16) !important;
    border-radius: 8px !important;
}

#viewReporting .reporting-kpi-val {
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
}

/* ==============================================================================
   10. PROTOCOLE COGNITIF & SYMBIOTIC COPILOT (HOMME-MACHINE)
   ============================================================================== */
.p-btn-explain {
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 800;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.p-btn-explain:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.symbiotic-tab-btn {
    padding: 7px 14px;
    font-size: 0.74rem;
    font-weight: 700;
    background: transparent;
    color: #94a3b8;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.symbiotic-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.04);
}

.symbiotic-tab-btn.active {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
    font-weight: 800;
}

/* ==============================================================================
   11. GLOBE 3D & CANVAS OPTIMISATIONS
   ============================================================================== */
#polairyxGlobe3DCanvas {
    outline: none;
    user-select: none;
    -webkit-user-drag: none;
}

#polairyxGlobe3DCanvas:active {
    cursor: grabbing !important;
}

/* ==============================================================================
   12. COCKPIT HUD & FIGHTER-JET AIRBORNE INTERFACE
   ============================================================================== */
.polairyx-top-ticker {
    display: none !important;
}

.ticker-scroll-content {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ticker-item {
    color: #94a3b8;
}

.ticker-sym {
    color: #f8fafc;
    font-weight: 700;
}

.ticker-pct.pos { color: #10b981; }
.ticker-pct.neg { color: #f43f5e; }
.ticker-sep { color: rgba(255, 255, 255, 0.15); }

.polairyx-navbar {
    position: relative !important;
    z-index: 500 !important;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    background: #070d1a;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    gap: 8px;
    box-sizing: border-box;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

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

.p-brand-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}

.p-brand-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.5px;
}

.p-brand-sub {
    font-size: 0.58rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 3px;
    border-radius: 3px;
}

.p-session-pills {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.p-session-pill {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.p-session-pill:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.p-session-pill.active {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    font-weight: 800;
}

.p-nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.p-copilot-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(8, 15, 28, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 6px;
    padding: 2px 10px;
    max-width: 580px;
    min-width: 0;
    overflow: hidden;
}

.p-copilot-icon {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.p-copilot-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.p-copilot-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 6px;
    flex-shrink: 0;
}

.p-btn-action {
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.p-btn-action:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.p-nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.p-layout-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
    flex-shrink: 0;
}

.p-layout-pill {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.p-layout-pill:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.p-layout-pill.active {
    background: rgba(56, 189, 248, 0.22);
    color: #38bdf8;
    font-weight: 800;
}

.p-btn-briefing {
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 1px solid #d4af37;
    color: #f5d77f;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.p-btn-briefing:hover {
    background: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.mobile-supervision-bar,
.mobile-quick-action-banner,
.mobile-workspace-tabs {
    display: none !important;
}

@media (max-width: 900px) {
    .polairyx-navbar { display: none !important; }
    .mobile-supervision-bar { display: block !important; }
    .mobile-workspace-tabs { display: flex !important; }
}

/* -----------------------------------------------------------------------------
   TIROIR LATÉRAL FIRME IA (GLISSANT & ISOLÉ DU FLUX DOM)
   ----------------------------------------------------------------------------- */
.firm-ia-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.firm-ia-overlay.is-open {
    display: block !important;
    opacity: 1 !important;
}

.firm-ia-drawer {
    position: fixed;
    top: 0;
    right: -520px;
    width: 500px;
    max-width: 92vw;
    height: 100vh;
    background: linear-gradient(180deg, #0b1322 0%, #060a12 100%);
    border-left: 1.5px solid rgba(212, 175, 55, 0.4);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    visibility: hidden;
}

.firm-ia-drawer.is-open {
    right: 0 !important;
    visibility: visible !important;
}

.firm-drawer-header {
    padding: 1.2rem 1.5rem;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.firm-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ==============================================================================
   TIROIR LATÉRAL MACRO PAYS & DOSSIER ÉCONOMIQUE (COUNTRY MACRO DRAWER)
   ============================================================================== */
.country-macro-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.65);
    backdrop-filter: blur(5px);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.country-macro-overlay.is-open {
    display: block !important;
    opacity: 1 !important;
}

.country-macro-drawer {
    position: fixed;
    top: 0;
    right: -580px;
    width: 540px;
    max-width: 95vw;
    height: 100vh;
    background: linear-gradient(180deg, #09111e 0%, #040812 100%);
    border-left: 1.5px solid rgba(56, 189, 248, 0.4);
    box-shadow: -25px 0 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(56, 189, 248, 0.15);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    visibility: hidden;
}

.country-macro-drawer.is-open {
    right: 0 !important;
    visibility: visible !important;
}

.country-drawer-header {
    padding: 1.1rem 1.4rem;
    background: rgba(14, 23, 40, 0.92);
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.country-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* ==============================================================================
   13. INSTITUTIONAL HUD STRIP (POCHES, PNL, IA SELECTION & FEED TRIGGER)
   ============================================================================== */
.polairyx-hud-strip {
    position: relative !important;
    z-index: 490 !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #050b16;
    border-bottom: 1px solid rgba(56, 189, 248, 0.18);
    padding: 0 10px;
    gap: 8px;
    font-size: 0.65rem;
    box-sizing: border-box;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    flex-shrink: 0 !important;
}

.hud-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Poche Allocation Segmented Meter */
.hud-sleeves-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 1px 6px;
}

.sleeves-segmented-bar {
    display: flex;
    width: 90px;
    height: 5px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    gap: 1px;
}
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    gap: 1.5px;
}

.sleeve-seg {
    height: 100%;
    transition: width 0.3s ease;
}

.sleeve-seg.tradfi { background: #38bdf8; }
.sleeve-seg.crypto { background: #c084fc; }
.sleeve-seg.cash { background: #34d399; }

.sleeves-legend {
    display: flex;
    gap: 6px;
    font-size: 0.66rem;
    font-weight: 700;
}

.sleeves-legend-item {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #94a3b8;
}

.sleeves-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.sleeves-dot.tradfi { background: #38bdf8; }
.sleeves-dot.crypto { background: #c084fc; }
.sleeves-dot.cash { background: #34d399; }

/* HUD PnL & Equity Chips */
.hud-metric-chip {
    display: flex;
    flex-direction: column;
    padding: 2px 8px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.hud-metric-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.hud-metric-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 0.76rem;
}

.hud-metric-val.pos { color: #10b981; }
.hud-metric-val.neg { color: #f43f5e; }

/* AI Pilot Selector in HUD */
.hud-ai-selector-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 6px;
    padding: 3px 8px;
}

.hud-ai-select {
    background: transparent;
    border: none;
    color: #f5d77f;
    font-weight: 800;
    font-size: 0.72rem;
    cursor: pointer;
    outline: none;
}

.hud-ai-select option {
    background: #0f172a;
    color: #f8fafc;
}

/* AI Live Feed Toggle Switch */
.hud-btn-ai-feed {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    transition: all 0.2s ease;
}

.hud-btn-ai-feed.is-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.08));
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.hud-btn-ai-feed.is-paused {
    background: rgba(100, 116, 139, 0.15);
    border-color: rgba(100, 116, 139, 0.35);
    color: #94a3b8;
}

/* ==============================================================================
   14. TABLEAU MULTI-ONGLETS PRO BLOTTER (POSITIONS, PROPOSITIONS, ORDRES, POCHES)
   ============================================================================== */
.blotter-subbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #09101d;
    border-bottom: 1px solid rgba(56, 189, 248, 0.16);
    padding: 4px 8px;
    flex-wrap: wrap;
    gap: 6px;
}

.blotter-tabs {
    display: flex;
    gap: 4px;
}

.blotter-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blotter-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.04);
}

.blotter-tab-btn.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-weight: 800;
}

.blotter-badge {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.blotter-badge.alert {
    background: rgba(245, 215, 127, 0.25);
    color: #f5d77f;
    border: 1px solid rgba(245, 215, 127, 0.4);
}

.blotter-badge.green {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
}

/* Boutons d'Action Rapide de Table */
.btn-table-action {
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    outline: none;
}

.btn-table-action.be {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}
.btn-table-action.be:hover {
    background: rgba(56, 189, 248, 0.35);
}

.btn-table-action.half {
    background: rgba(245, 215, 127, 0.18);
    color: #f5d77f;
    border: 1px solid rgba(245, 215, 127, 0.4);
}
.btn-table-action.half:hover {
    background: rgba(245, 215, 127, 0.35);
}

.btn-table-action.close {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.btn-table-action.close:hover {
    background: rgba(239, 68, 68, 0.35);
}

/* ==============================================================================
   15. DECK PROPOSITIONS IA (POUR L'ONGLET PROPOSITIONS)
   ============================================================================== */
.proposals-deck-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.proposal-item-card {
    background: linear-gradient(135deg, rgba(14, 23, 42, 0.95), rgba(7, 12, 22, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.proposal-item-card:hover {
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-1px);
}

.proposal-item-card.ratified {
    border-color: rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(7, 12, 22, 0.95));
}

.proposal-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.proposal-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.proposal-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.proposal-symbol {
    font-size: 0.92rem;
    font-weight: 900;
    color: #f8fafc;
}

.proposal-side-pill {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
}

.proposal-side-pill.long {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.proposal-side-pill.short {
    background: rgba(244, 63, 94, 0.2);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.4);
}

.proposal-agent-source {
    font-size: 0.68rem;
    color: #94a3b8;
}

.proposal-params-row {
    font-size: 0.72rem;
    color: #cbd5e1;
    display: flex;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.proposal-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-ratify-proposal {
    padding: 6px 14px;
    font-size: 0.74rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
    transition: all 0.15s ease;
}

.btn-ratify-proposal:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

/* ==============================================================================
   16. FENÊTRE FLUX COGNITIF & EXPLICATIF IA EN DIRECT (PERIODIC LIVE STREAM)
   ============================================================================== */
.ai-feed-window-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #060a13;
    overflow: hidden;
}

.ai-feed-toolbar {
    background: #0b1220;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-feed-filter-group {
    display: flex;
    gap: 3px;
}

.ai-feed-filter-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ai-feed-filter-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.ai-feed-filter-btn.active {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    font-weight: 800;
}

.ai-feed-stream-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
}

.ai-feed-item {
    background: rgba(14, 22, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid #38bdf8;
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: fadeInSlide 0.3s ease-out;
}

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

.ai-feed-item.eleonore { border-left-color: #f5d77f; }
.ai-feed-item.arthur { border-left-color: #10b981; }
.ai-feed-item.elena { border-left-color: #38bdf8; }
.ai-feed-item.david { border-left-color: #c084fc; }
.ai-feed-item.victor { border-left-color: #ef4444; }

.ai-feed-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-feed-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-feed-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-feed-agent-name {
    font-size: 0.74rem;
    font-weight: 800;
    color: #f8fafc;
}

.ai-feed-timestamp {
    font-size: 0.62rem;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
}

.ai-feed-text {
    font-size: 0.72rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.ai-feed-tag {
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 800;
    margin-left: 6px;
}
.ai-feed-tag.bullish { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.ai-feed-tag.bearish { background: rgba(244, 63, 94, 0.2); color: #fb7185; }
.ai-feed-tag.macro { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.ai-feed-tag.risk { background: rgba(239, 68, 68, 0.2); color: #f87171; }

/* Barre de focus actif & chips de dialogue contextuel */
.ai-feed-context-bar {
    background: #080e1b;
    border-bottom: 1px solid rgba(56, 189, 248, 0.14);
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}

.ai-feed-context-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-feed-prompt-chips {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ai-feed-prompt-chip {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #cbd5e1;
    font-size: 0.64rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ai-feed-prompt-chip:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* Barre de question interactive amarrée en bas du Briefing Live */
.ai-feed-chat-bar {
    background: #080d19;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ai-feed-chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 6px;
    padding: 6px 12px;
    color: #f8fafc;
    font-size: 0.74rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-feed-chat-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.ai-feed-chat-input::placeholder {
    color: #64748b;
}

.btn-ai-feed-send {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.btn-ai-feed-send:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
    transform: translateY(-1px);
}

/* Bulle message de l'utilisateur dans le flux */
.ai-feed-item.user {
    border-left-color: #6366f1 !important;
    background: rgba(49, 46, 129, 0.35) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    align-self: flex-end;
    width: 90%;
    margin-left: auto;
}

.ai-feed-item.user .ai-feed-avatar {
    border-color: #818cf8;
    background: rgba(99, 102, 241, 0.25);
}

.ai-feed-item.user .ai-feed-agent-name {
    color: #a5b4fc;
}

/* Bulle typing indicator */
.ai-feed-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #94a3b8;
    padding: 6px 10px;
    font-style: italic;
    background: rgba(14, 22, 38, 0.5);
    border-radius: 6px;
    border: 1px dashed rgba(56, 189, 248, 0.2);
}

/* -------------------------------------------------------------------------
   🎯 SYNCHRONISATION MULTI-ACTIFS & BARRE RAPIDE D'ACTIFS
   ------------------------------------------------------------------------- */
.chart-asset-switcher-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    height: 26px;
    min-height: 26px;
    max-height: 26px;
    box-sizing: border-box;
    background: #080d18;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    overflow-x: auto;
    scrollbar-width: none;
}
.chart-asset-switcher-bar::-webkit-scrollbar { display: none; }

.chart-asset-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.chart-asset-pill:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    color: #f8fafc;
}
.chart-asset-pill.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}
.chart-asset-pill .pill-price {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #cbd5e1;
    font-size: 0.65rem;
}
.chart-asset-pill .pill-chg {
    font-size: 0.62rem;
    font-weight: 800;
}
.chart-asset-pill .pill-chg.pos { color: #10b981; }
.chart-asset-pill .pill-chg.neg { color: #f43f5e; }

/* -------------------------------------------------------------------------
   👑 COCKPIT STRATÉGIQUE D'ÉLÉONORE STERLING DANS LE GRAPHIQUE
   ------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------
   ⚡ ALPHA SIGNAL RIBBON HAUTE DENSITÉ DANS LE GRAPHIQUE (TRADER-FIRST)
   ------------------------------------------------------------------------- */
.chart-alpha-ribbon {
    background: linear-gradient(135deg, rgba(12, 19, 32, 0.98) 0%, rgba(8, 14, 24, 0.98) 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.22);
    padding: 1px 8px;
    height: 24px;
    min-height: 24px;
    max-height: 24px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 10;
}

.alpha-ribbon-left {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
}
.alpha-ribbon-left::-webkit-scrollbar {
    display: none;
}

.alpha-status-pill {
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.alpha-target-sym {
    font-size: 0.78rem;
    font-weight: 900;
    color: #f5d77f;
    font-family: 'JetBrains Mono', monospace;
}

.alpha-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.7rem;
}

.alpha-metric {
    font-size: 0.70rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
}
.alpha-metric strong {
    color: #f8fafc;
}

.alpha-ribbon-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-alpha-ratify-compact {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 5px;
    border: 1px solid rgba(16, 185, 129, 0.6);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-alpha-ratify-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
}

.btn-alpha-thesis-pill {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-alpha-thesis-pill:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
}

/* Drawer de Thèse IA Collapsible */
.chart-alpha-thesis-drawer {
    background: rgba(8, 14, 24, 0.98);
    border-bottom: 1px solid rgba(245, 215, 127, 0.35);
    padding: 8px 12px;
    position: relative;
    z-index: 9;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.alpha-thesis-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alpha-thesis-text {
    font-size: 0.72rem;
    color: #cbd5e1;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    padding: 6px 10px;
}

.alpha-committee-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    color: #94a3b8;
    overflow-x: auto;
    white-space: nowrap;
}
.alpha-committee-pills strong {
    color: #f8fafc;
}

/* -------------------------------------------------------------------------
   📊 CONTENEUR SPLIT : GRAPHIQUE + FENÊTRE DES VOLUMES & FLUX
   ------------------------------------------------------------------------- */
.chart-and-flow-split {
    display: flex;
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #020617;
}

.chart-main-viewport {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* -------------------------------------------------------------------------
   🛡️ BRACKET HUD CARD - REPÈRES RATIFIÉS CRO IMMUNISÉS AU ZOOM
   ------------------------------------------------------------------------- */
.chart-markers-layer {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 6;
    pointer-events: auto;
    transition: all 0.2s ease;
    max-width: 220px;
}

.bracket-hud-card {
    background: rgba(8, 14, 26, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 6px;
    padding: 4px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    min-width: 170px;
}

.bracket-hud-card.is-minimized {
    min-width: auto;
    max-width: auto;
    padding: 2px 8px;
    background: rgba(8, 14, 26, 0.85);
    cursor: pointer;
}

.bracket-hud-card.is-minimized .bracket-hud-rows {
    display: none;
}

.bracket-hud-card.is-minimized .bracket-hud-head {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.bracket-hud-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bracket-hud-title {
    font-size: 0.64rem;
    font-weight: 800;
    color: #f5d77f;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bracket-hud-min-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s ease;
}
.bracket-hud-min-btn:hover {
    color: #f43f5e;
}

.bracket-hud-rows {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bracket-hud-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    position: relative;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    transition: background 0.15s ease;
}
.bracket-hud-row:hover {
    background: rgba(255, 255, 255, 0.07);
}

.bracket-hud-row.tp2 {
    border-color: rgba(245, 158, 11, 0.3);
}
.bracket-hud-row.tp1 {
    border-color: rgba(16, 185, 129, 0.3);
}
.bracket-hud-row.entry {
    border-color: rgba(56, 189, 248, 0.3);
}
.bracket-hud-row.sl {
    border-color: rgba(244, 63, 94, 0.3);
}

.bracket-badge-pill {
    font-weight: 800;
    font-size: 0.62rem;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}
.bracket-badge-pill.tp2 { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.bracket-badge-pill.tp1 { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.4); }
.bracket-badge-pill.entry { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.bracket-badge-pill.sl { background: rgba(244, 63, 94, 0.2); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.4); }

.bracket-val {
    font-weight: 800;
    color: #f8fafc;
}

.bracket-delta {
    font-size: 0.64rem;
}
.bracket-delta.pos { color: #10b981; }
.bracket-delta.neg { color: #f43f5e; }
.bracket-delta.neutral { color: #94a3b8; }

.bracket-sub {
    font-size: 0.60rem;
    color: #64748b;
    white-space: nowrap;
}

/* Tooltips didactiques intégrés */
.chart-didactic-tooltip {
    display: none !important;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 25;
    background: rgba(8, 14, 26, 0.98);
    border: 1px solid rgba(56, 189, 248, 0.4);
    backdrop-filter: blur(14px);
    color: #cbd5e1;
    font-size: 0.65rem;
    padding: 6px 10px;
    border-radius: 6px;
    max-width: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
    pointer-events: none;
    line-height: 1.35;
}
.chart-didactic-tooltip strong {
    color: #38bdf8;
}

.bracket-hud-row:hover .chart-didactic-tooltip,
body.didactic-active .chart-didactic-tooltip {
    display: block !important;
}

/* -------------------------------------------------------------------------
   📊 PANNEAU DROIT : FENÊTRE DES VOLUMES & FLUX DU STOCK
   ------------------------------------------------------------------------- */
.win-volume-flow-panel {
    width: 260px;
    min-width: 260px;
    background: #070c17;
    border-left: 1px solid rgba(56, 189, 248, 0.15);
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    gap: 8px;
    overflow-y: auto;
    scrollbar-width: thin;
    transition: width 0.2s ease, transform 0.2s ease;
}
.win-volume-flow-panel.collapsed {
    display: none;
}

.vflow-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}
.vflow-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 6px;
}
.vflow-badge {
    font-size: 0.6rem;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
}

/* Delta Acheteur vs Vendeur */
.vflow-delta-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 7px;
}
.vflow-delta-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.66rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.vflow-delta-bar-wrap {
    height: 8px;
    background: #1e293b;
    border-radius: 4px;
    display: flex;
    overflow: hidden;
    margin-bottom: 4px;
}
.vflow-delta-buy {
    background: #10b981;
    height: 100%;
}
.vflow-delta-sell {
    background: #f43f5e;
    height: 100%;
}
.vflow-delta-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
}

/* Profil de Volume Horizontal */
.vflow-profile-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 7px;
}
.vflow-profile-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
    font-size: 0.62rem;
    font-family: 'JetBrains Mono', monospace;
}
.vflow-price-lvl {
    width: 48px;
    color: #94a3b8;
}
.vflow-vol-bar-bg {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}
.vflow-vol-bar-fill {
    height: 100%;
    background: rgba(56, 189, 248, 0.4);
    border-radius: 3px;
}
.vflow-vol-bar-fill.poc {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}
.vflow-vol-bar-fill.vah, .vflow-vol-bar-fill.val {
    background: #38bdf8;
}
.vflow-vol-qty {
    width: 32px;
    text-align: right;
    color: #cbd5e1;
}

/* Enchère d'Ouverture & Dark Pools */
.vflow-auction-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 7px;
    font-size: 0.65rem;
}
.vflow-auction-title {
    font-size: 0.66rem;
    font-weight: 800;
    color: #e2e8f0;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}
.vflow-auction-item {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    margin-bottom: 2px;
}
.vflow-auction-item strong {
    color: #10b981;
}

/* Dark Pools Ticker */
.vflow-blocks-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 7px;
    font-size: 0.62rem;
    font-family: 'JetBrains Mono', monospace;
}
.vflow-block-item {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
}
.vflow-block-item strong {
    color: #38bdf8;
}

/* Hide top telemetry banner to preserve vertical height for trading desktop */
#telemetryBanner {
    display: none !important;
}

/* ==============================================================================
   🏛️ MODALE INSTITUTIONNELLE POLAIRYX (GAME PLAN, EXPLICATIONS, DÉBRIEFING DRL)
   ============================================================================== */
.polairyx-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.polairyx-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1;
}

.polairyx-modal-dialog {
    position: relative;
    z-index: 2;
    background: #090f1d;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.92), 0 0 30px rgba(56, 189, 248, 0.2);
    width: 100%;
    max-width: 860px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 1 !important;
}

.polairyx-modal-header {
    background: linear-gradient(90deg, #0d1728, #090f1d);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.polairyx-modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.polairyx-modal-close:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.4);
    color: #fda4af;
}

.symbiotic-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.symbiotic-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

.symbiotic-tab-btn.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-weight: 800;
}

.polairyx-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #070d18;
}

.polairyx-modal-footer {
    background: #080d17;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.polairyx-modal-btn-primary {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.polairyx-modal-btn-primary:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

/* =========================================================================
   ⚡ APEX COMMAND BAR • BARRE DE COMMANDE HAUTE VITESSE TRADER-FIRST
   ========================================================================= */
.apex-command-bar {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    background: #080e1a;
    border-bottom: 1px solid rgba(56, 189, 248, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    gap: 8px;
    z-index: 100;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Omnibox Search */
.apex-omnibox-wrap,
.apex-search-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 220px;
    flex-shrink: 0;
}

.apex-omnibox-icon,
.apex-search-icon {
    position: absolute;
    left: 8px;
    color: #f59e0b;
    font-size: 0.78rem;
    pointer-events: none;
    z-index: 2;
}

.apex-omnibox-input,
.apex-ticker-input {
    width: 100%;
    height: 26px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 6px;
    padding: 0 28px 0 24px;
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 700;
    outline: none;
    transition: all 0.2s ease;
}

.apex-omnibox-input:focus,
.apex-ticker-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
    width: 240px;
    background: #0c1424;
}

.apex-omnibox-badge,
.apex-shortcut-badge {
    position: absolute;
    right: 6px;
    pointer-events: none;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.apex-ticker-dropdown {
    position: absolute;
    top: 32px;
    left: 0;
    width: 280px;
    background: #0b1322;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85);
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
}

.apex-ticker-item,
.apex-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-size: 0.72rem;
    transition: background 0.15s ease;
}

.apex-ticker-item:hover, .apex-ticker-item.selected,
.apex-dropdown-item:hover, .apex-dropdown-item.selected {
    background: rgba(56, 189, 248, 0.15);
}

.apex-item-sym { font-weight: 800; color: #38bdf8; }
.apex-item-name { color: #94a3b8; font-size: 0.65rem; margin-left: 6px; flex: 1; }
.apex-item-badge { font-size: 0.6rem; background: rgba(255, 255, 255, 0.08); padding: 1px 5px; border-radius: 3px; color: #cbd5e1; }

/* Quick Tickers Hotbar */
.apex-quick-tickers {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}

.apex-ticker-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 2px 7px;
    color: #cbd5e1;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.apex-ticker-pill:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #f8fafc;
}

.apex-ticker-pill.active {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

/* Divider */
.apex-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    margin: 0 2px;
}

/* Layout Group & Tools */
.apex-layout-group,
.apex-layout-pills {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
    flex-shrink: 0;
}

.apex-btn-tool,
.apex-layout-pill {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.apex-btn-tool:hover,
.apex-layout-pill:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
}

.apex-btn-tool.active,
.apex-layout-pill.active {
    background: #0284c7;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
}

.apex-btn-tool.save,
.apex-save-layout-btn {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #f5d77f;
    font-weight: 800;
}

.apex-btn-tool.save:hover,
.apex-save-layout-btn:hover {
    background: rgba(212, 175, 55, 0.22);
    border-color: #f5d77f;
}

.apex-btn-tool#btnApexCustomLayout.has-saved {
    color: #f5d77f;
    border-color: rgba(212, 175, 55, 0.35);
}

/* Right Command Controls */
.apex-command-right,
.apex-right-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    margin-left: auto;
}

.apex-btn-tool#btnApexSmartMoney {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-weight: 800;
}

.apex-btn-tool#btnApexSmartMoney.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.apex-btn-tool.zen {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-weight: 800;
}

.apex-btn-tool.zen:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #38bdf8;
}

.apex-zen-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
}

/* =========================================================================
   📊 NIVEAUX DE PRIX HAUTE PRÉCISION • LIGNES HORIZONTALES PLEINE LARGEUR
   ========================================================================= */
.chart-price-overlay-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 15;
    overflow: hidden;
}

.chart-h-price-line {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    pointer-events: none;
    z-index: 16;
}

/* Ligne Laser & Pointillés */
.chart-h-price-line::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    z-index: 1;
}

.chart-h-price-line.tp2::before {
    background: repeating-linear-gradient(90deg, #10b981 0, #10b981 8px, transparent 8px, transparent 14px);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.chart-h-price-line.tp1::before {
    background: repeating-linear-gradient(90deg, #34d399 0, #34d399 6px, transparent 6px, transparent 12px);
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}

.chart-h-price-line.entry::before {
    background: repeating-linear-gradient(90deg, #38bdf8 0, #38bdf8 4px, transparent 4px, transparent 8px);
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
}

.chart-h-price-line.sl::before {
    background: #f43f5e;
    height: 2px;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.85);
}

/* Badges Gauche & Droite */
.chart-h-price-line .line-badge-left {
    position: relative;
    z-index: 2;
    margin-left: 12px;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    pointer-events: auto;
    backdrop-filter: blur(8px);
}

.chart-h-price-line .line-price-pill-right {
    position: relative;
    z-index: 2;
    margin-right: 64px; /* Évite l'échelle de prix de TradingView */
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Couleurs spécifiques */
.chart-h-price-line.tp2 .line-badge-left,
.chart-h-price-line.tp2 .line-price-pill-right {
    background: rgba(16, 185, 129, 0.9);
    color: #022c22;
    border: 1px solid #34d399;
}

.chart-h-price-line.tp1 .line-badge-left,
.chart-h-price-line.tp1 .line-price-pill-right {
    background: rgba(52, 211, 153, 0.9);
    color: #022c22;
    border: 1px solid #6ee7b7;
}

.chart-h-price-line.entry .line-badge-left,
.chart-h-price-line.entry .line-price-pill-right {
    background: rgba(56, 189, 248, 0.9);
    color: #032030;
    border: 1px solid #7dd3fc;
}

.chart-h-price-line.sl .line-badge-left,
.chart-h-price-line.sl .line-price-pill-right {
    background: rgba(244, 63, 94, 0.95);
    color: #ffffff;
    border: 1px solid #fecdd3;
    animation: slGlowPulse 2s infinite ease-in-out;
}

@keyframes slGlowPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(244, 63, 94, 0.6); }
    50% { box-shadow: 0 0 16px rgba(244, 63, 94, 0.95); }
}

/* Contrôleur de Zoom & Auto-Fit sur le Graphique */
.chart-zoom-controller {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(10, 16, 28, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 6px;
    padding: 2px 4px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.chart-zoom-btn {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chart-zoom-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

.chart-zoom-btn.active {
    background: #38bdf8;
    color: #020617;
    font-weight: 800;
}

/* =========================================================================
   📈 ÉCHELLE DE PRIX VERTICALE INTERACTIVE (DRAG-TO-ZOOM / MOLETTE DE ZOOM)
   ========================================================================= */
.chart-scale-drag-axis {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 60px;
    z-index: 18;
    pointer-events: auto;
    cursor: ns-resize;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 4px;
    background: linear-gradient(90deg, transparent 0%, rgba(6, 10, 18, 0.45) 40%, rgba(6, 10, 18, 0.85) 100%);
    border-left: 1px dashed rgba(56, 189, 248, 0.25);
    user-select: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.chart-scale-drag-axis:hover,
.chart-scale-drag-axis.is-zooming {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.08) 0%, rgba(6, 10, 18, 0.75) 40%, rgba(6, 10, 18, 0.95) 100%);
    border-left: 1px solid rgba(56, 189, 248, 0.6);
}

.chart-scale-tick {
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--font-mono, monospace);
    color: #94a3b8;
    text-align: right;
    padding-right: 4px;
    white-space: nowrap;
    pointer-events: none;
    transition: color 0.15s ease;
}

.chart-scale-drag-axis:hover .chart-scale-tick {
    color: #38bdf8;
}

.chart-scale-drag-indicator {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: #38bdf8;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 4px;
    padding: 2px 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.chart-scale-drag-axis:hover .chart-scale-drag-indicator,
.chart-scale-drag-axis.is-zooming .chart-scale-drag-indicator {
    opacity: 1;
}

/* Poignée de drag direct sur chaque ligne de prix */
.chart-h-price-line.is-dragging {
    transition: none !important;
}

.chart-h-price-line .line-badge-left,
.chart-h-price-line .line-price-pill-right {
    cursor: ns-resize !important;
    touch-action: none;
}

.chart-h-price-line .line-badge-left:hover,
.chart-h-price-line .line-price-pill-right:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* Boutons de zoom compacts dans le ruban alpha */
.btn-chart-zoom {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-chart-zoom:hover {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.5);
}

.btn-chart-zoom.fit {
    color: #f5d77f;
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.1);
}

/* =========================================================================
   ⚡ PULSE ET ANIMATIONS DE TICK HAUTE FRÉQUENCE (SALLE DES MARCHÉS)
   ========================================================================= */
@keyframes tickFlashUp {
    0% {
        background-color: rgba(16, 185, 129, 0.5) !important;
        color: #34d399 !important;
        text-shadow: 0 0 8px rgba(16, 185, 129, 0.9);
    }
    100% {
        background-color: transparent;
    }
}

@keyframes tickFlashDown {
    0% {
        background-color: rgba(244, 63, 94, 0.5) !important;
        color: #fb7185 !important;
        text-shadow: 0 0 8px rgba(244, 63, 94, 0.9);
    }
    100% {
        background-color: transparent;
    }
}

.tick-flash-up {
    animation: tickFlashUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tick-flash-down {
    animation: tickFlashDown 0.85s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.tick-badge-pulse {
    display: inline-block;
    transition: transform 0.2s ease;
}

.tick-badge-pulse.pulsing {
    transform: scale(1.08);
}

/* =========================================================================
   🎙️ BULLETIN D'INFORMATION BLOOMBERG DESK • ÉLÉONORE STERLING
   ========================================================================= */
.bloomberg-briefing-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 12, 20, 0.98));
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bloomberg-briefing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.bloomberg-tag-flash {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fef08a;
    background: rgba(212, 175, 55, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.45);
    padding: 2px 7px;
    border-radius: 4px;
}

.bloomberg-briefing-time {
    font-size: 0.65rem;
    font-family: var(--font-mono, monospace);
    color: #94a3b8;
}

.bloomberg-section {
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid rgba(56, 189, 248, 0.4);
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
}

.bloomberg-section.highlight {
    border-left-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.bloomberg-section.next-action {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.bloomberg-section-title {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #fef08a;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bloomberg-section p {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.45;
    color: #cbd5e1;
}

.bloomberg-section strong {
    color: #ffffff;
    font-weight: 700;
}

.btn-bloomberg-action {
    margin-top: 10px;
    width: 100%;
    padding: 7px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(212, 175, 55, 0.6);
    color: #fef08a;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-bloomberg-action:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.45), rgba(16, 185, 129, 0.35));
    border-color: #fef08a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

/* =========================================================================
   POLAIRYX MASTER RADAR & OPPORTUNITIES OS (Inspiré du TikTok PierreWinvest)
   ========================================================================= */

.badge-polairyx-live {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    letter-spacing: 0.5px;
}

@keyframes spin360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.is-spinning {
    display: inline-block;
    animation: spin360 0.6s linear infinite !important;
}

.btn-polairyx-refresh-header {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    padding: 2px 9px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-polairyx-refresh-header:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.btn-spotlight-refresh {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-spotlight-refresh:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.btn-opps-refresh {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.76rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-opps-refresh:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

/* 1. Spotlight Banner supérieur */
.polairyx-spotlight-bar {
    background: linear-gradient(90deg, #0e1726 0%, #0a111e 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

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

.spotlight-sym {
    font-size: 1.05rem;
    font-weight: 900;
    color: #f8fafc;
    letter-spacing: -0.2px;
}

.spotlight-dir {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
}

.spotlight-dir.pos {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.spotlight-dir.neg {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.4);
}

.spotlight-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.18);
    color: #fef08a;
    border: 1px solid rgba(212, 175, 55, 0.45);
}

.spotlight-conf {
    font-size: 0.7rem;
    color: #38bdf8;
    font-weight: 700;
}

.spotlight-thesis {
    font-size: 0.74rem;
    color: #cbd5e1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

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

.spotlight-levels {
    font-size: 0.68rem;
    color: #94a3b8;
    font-family: monospace;
}

.btn-spotlight-chart {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-spotlight-chart:hover {
    background: rgba(56, 189, 248, 0.3);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.btn-spotlight-exec {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(16, 185, 129, 0.6);
    color: #ffffff;
    padding: 4px 11px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-spotlight-exec:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

/* 2. Grille maîtresse 3 colonnes Polairyx */
.polairyx-master-grid {
    display: grid;
    grid-template-columns: 290px 1fr 290px;
    gap: 8px;
    padding: 8px;
    height: calc(100% - 46px);
    overflow: hidden;
}

.polairyx-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.polairyx-panel-card {
    background: rgba(11, 19, 34, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    height: 32px;
    min-height: 32px;
    padding: 0 10px;
    background: rgba(16, 26, 44, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-sub-tag {
    font-size: 0.65rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* Colonne 1 : Globe 3D et Événements */
.globe-panel {
    height: 220px;
    min-height: 220px;
    flex-shrink: 0;
}

.globe-viewport-container {
    position: relative;
    width: 100%;
    height: calc(100% - 32px);
    background: radial-gradient(circle at center, #0d1a30 0%, #050913 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.polairyx-globe-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
}

.events-panel {
    flex: 1;
    min-height: 0;
}

.polairyx-events-feed {
    padding: 8px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
    height: 100%;
}

.polairyx-event-item {
    background: rgba(15, 25, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 7px 9px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.polairyx-event-item:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(20, 34, 58, 0.9);
}

.event-tags-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.event-pills-left {
    display: flex;
    gap: 4px;
}

.event-tag-pill {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.event-tag-pill.gold {
    background: rgba(212, 175, 55, 0.15);
    color: #fef08a;
    border-color: rgba(212, 175, 55, 0.3);
}

.event-time-ago {
    font-size: 0.62rem;
    color: #64748b;
    font-weight: 600;
}

.event-title-text {
    font-size: 0.72rem;
    line-height: 1.35;
    color: #e2e8f0;
}

/* Colonne 2 : OPPORTUNITÉS (Hero Component) */
.opps-panel {
    height: 100%;
    min-height: 0;
}

.opps-top-bar {
    padding: 8px 12px;
    background: rgba(16, 26, 44, 0.95);
    border-bottom: 1px solid rgba(56, 189, 248, 0.18);
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex-shrink: 0;
}

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

.opps-dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.opps-title-text {
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    color: #f8fafc;
}

.opps-count-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.opps-filters-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.p-opp-filter {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.67rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s;
}

.p-opp-filter:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.p-opp-filter.active {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #020617;
    font-weight: 800;
}

.opps-cards-viewport {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* CARTE TICKER INDIVIDUELLE ("les petites fenêtres de chaque ticker") */
.polairyx-opp-card {
    background: rgba(14, 23, 38, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 8px;
    padding: 9px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.polairyx-opp-card:hover {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(18, 30, 50, 0.96);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.polairyx-opp-card.is-active-opp {
    border-color: #38bdf8 !important;
    background: linear-gradient(135deg, rgba(20, 36, 62, 0.98), rgba(13, 23, 40, 0.98)) !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.3), inset 0 0 10px rgba(56, 189, 248, 0.1);
}

.opp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.opp-card-sym-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.opp-card-sym {
    font-size: 0.88rem;
    font-weight: 900;
    color: #f8fafc;
    letter-spacing: -0.2px;
}

.opp-card-badge {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.opp-card-badge.forex {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
}

.opp-card-badge.crypto {
    background: rgba(168, 85, 247, 0.18);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.35);
}

.opp-card-badge.indices {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
}

.opp-card-dir-pill {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
}

.opp-card-dir-pill.pos {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.opp-card-dir-pill.neg {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.4);
}

.opp-card-thesis {
    font-size: 0.72rem;
    color: #cbd5e1;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.opp-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 2px;
}

.opp-card-timing {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-weight: 600;
}

.opp-card-timing .live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
}

.opp-card-history {
    color: #38bdf8;
    cursor: pointer;
    font-weight: 700;
}

.opp-card-levels-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.66rem;
    font-family: monospace;
    color: #94a3b8;
    padding-top: 4px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

/* Colonne 3 : Sessions, Calendrier, Régime & Peur/Avidité */
.sessions-panel {
    flex-shrink: 0;
}

.sessions-list {
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #cbd5e1;
}

.session-name-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.session-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #64748b;
}

.session-status-dot.open {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.session-hours {
    font-size: 0.65rem;
    color: #64748b;
    font-family: monospace;
}

.calendar-panel {
    flex: 1;
    min-height: 0;
}

.calendar-list {
    padding: 6px 9px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
}

.cal-event-item {
    background: rgba(15, 25, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.cal-event-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.cal-time {
    font-size: 0.65rem;
    color: #94a3b8;
    font-family: monospace;
    font-weight: 700;
}

.cal-desc {
    font-size: 0.7rem;
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cal-impact {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 3px;
    flex-shrink: 0;
}

.cal-impact.high {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
}

.cal-impact.med {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.regime-panel {
    flex-shrink: 0;
    padding-bottom: 6px;
}

.regime-body {
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.regime-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    font-weight: 800;
}

.regime-factors-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.regime-factor-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 0.62rem;
    color: #94a3b8;
}

.regime-factor-chip strong {
    color: #f8fafc;
    display: block;
    font-size: 0.66rem;
}

/* Fear & Greed */
.fg-meter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.fg-score-val {
    font-size: 1.1rem;
    font-weight: 900;
    color: #fb7185;
}

.fg-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #fb7185;
}

.fg-tabs-row {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.fg-tab-pill {
    flex: 1;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 0;
    text-align: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.fg-tab-pill.active {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.4);
}
