:root {
    --bg-main: #0b0f19;
    --bg-card: #111827;
    --bg-card-hover: #172033;
    --bg-subtle: #1e293b;
    --bg-input: #0f172a;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.16);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #64748b;

    --color-emerald: #10b981;
    --color-cyan: #0ea5e9;
    --color-purple: #8b5cf6;
    --color-amber: #f59e0b;
    --color-rose: #f43f5e;

    --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

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

body.theme-clean-dark {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

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

.text-emerald { color: var(--color-emerald); }
.text-cyan { color: var(--color-cyan); }
.text-rose { color: var(--color-rose); }
.text-amber { color: var(--color-amber); }
.text-muted { color: var(--text-muted); }

/* ==========================================================================
   TOP NAVIGATION (HIGH STYLE TRADER PRO)
   ========================================================================== */

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 56px;
    background: var(--bg-card, #ffffff);
    border-bottom: 1px solid var(--border-subtle, #e2e8f0);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: nowrap;
    gap: 1rem;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-symbol {
    width: 32px;
    height: 32px;
    background: #0f172a;
    border: 1px solid var(--border-subtle, #334155);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #10b981;
    font-weight: 800;
}

.brand-titles h1 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.brand-titles h1 span {
    color: var(--color-cyan);
}

.brand-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* 3 Main Tabs */
.main-tabs {
    display: flex;
    gap: 0.35rem;
    background: var(--bg-main, #f8fafc);
    padding: 3px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle, #e2e8f0);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border: none;
    background: transparent;
    color: var(--text-muted, #64748b);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tab-btn:hover {
    color: var(--text-main, #0f172a);
}

.tab-btn.active {
    background: var(--bg-card, #ffffff);
    color: var(--text-main, #0f172a);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-subtle, #cbd5e1);
}

.tab-count-badge {
    background: rgba(14, 165, 233, 0.12);
    color: var(--color-cyan, #0284c7);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Style Trader Pro : Boutons fins, précis et discrets */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 4px 9px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-main, #0f172a);
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.status-pill:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-emerald, #10b981);
}

.btn-kill-switch {
    background: transparent;
    color: var(--color-rose, #ef4444);
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-kill-switch:hover {
    background: #ef4444;
    color: #ffffff;
}

/* ==========================================================================
   PAGE VIEWS GENERAL
   ========================================================================== */

.page-view {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.25rem 1.75rem 4rem 1.75rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ==========================================================================
   SECTION 1: MON PORTEFEUILLE
   ========================================================================== */

.portfolio-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    gap: 2rem;
}

.hero-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.hero-val-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.4rem 0;
}

.hero-value {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-pnl-pill {
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-emerald);
    font-weight: 700;
    font-size: 0.85rem;
}

.hero-cash-row {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 380px;
}

.add-ticker-box {
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.add-ticker-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
}

.btn-add-action {
    background: var(--bg-subtle);
    border: none;
    color: var(--text-main);
    padding: 0 1.25rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-action:hover {
    background: var(--color-cyan);
    color: #041019;
}

.action-buttons-row {
    display: flex;
    gap: 0.75rem;
}

.btn-action-primary {
    flex: 1;
    background: linear-gradient(135deg, var(--color-cyan), #0284c7);
    color: #041019;
    font-weight: 700;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    transition: filter 0.2s;
}

.btn-action-primary:hover {
    filter: brightness(1.1);
}

.btn-action-outline {
    background: transparent;
    border: 1px solid var(--border-bright);
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action-outline:hover {
    color: var(--text-main);
    border-color: var(--text-muted);
}

/* Allocation Bar (Simply Wall St) */
.allocation-bar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.allocation-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.allocation-visual-bar {
    height: 12px;
    border-radius: var(--radius-full);
    display: flex;
    overflow: hidden;
    background: var(--bg-subtle);
}

.alloc-slice {
    height: 100%;
    transition: width 0.3s ease;
}

.allocation-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.8rem;
    max-height: 88px;
    overflow-y: auto;
    padding: 0.5rem 0.7rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.allocation-legend::-webkit-scrollbar {
    width: 4px;
}

.allocation-legend::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 4px;
}

.legend-chip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.chip-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Assets Grid */
.section-sub-header {
    margin-bottom: 1rem;
}

.section-sub-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.asset-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.asset-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.asset-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.asset-ticker-title {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

.asset-weight-tag {
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--bg-subtle);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    color: var(--color-cyan);
}

.asset-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.asset-price {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.asset-verdict-pill {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.verdict-buy { background: rgba(16, 185, 129, 0.2); color: var(--color-emerald); border: 1px solid rgba(16, 185, 129, 0.4); }
.verdict-hold { background: rgba(245, 158, 11, 0.2); color: var(--color-amber); border: 1px solid rgba(245, 158, 11, 0.4); }
.verdict-sell { background: rgba(244, 63, 94, 0.2); color: var(--color-rose); border: 1px solid rgba(244, 63, 94, 0.4); }

.asset-summary-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.asset-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.75rem;
    font-size: 0.75rem;
    color: var(--color-cyan);
    font-weight: 600;
}

.btn-remove-asset {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-remove-asset:hover {
    color: var(--color-rose);
    background: rgba(244, 63, 94, 0.1);
}

/* Orders History Simple List */
.orders-history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
}

.orders-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.orders-history-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.orders-simple-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.orders-simple-list::-webkit-scrollbar {
    width: 5px;
}

.orders-simple-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.order-simple-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.order-simple-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.order-simple-item.is-pending {
    border-left: 3px solid var(--color-cyan);
    background: rgba(14, 165, 233, 0.04);
}

.order-filter-bar {
    display: flex;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.015);
    flex-wrap: wrap;
}

.order-filter-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-filter-chip:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.order-filter-chip.active {
    background: rgba(14, 165, 233, 0.18);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

.highlight-glow {
    animation: flashGlowCyan 2.5s ease-out;
}

@keyframes flashGlowCyan {
    0% {
        box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.8), 0 0 35px rgba(14, 165, 233, 0.5);
        border-color: var(--color-cyan);
    }
    50% {
        box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.4), 0 0 20px rgba(14, 165, 233, 0.25);
    }
    100% {
        box-shadow: none;
    }
}

/* ==========================================================================
   SECTION 2: RAPPORTS FINROBOT (SIMPLY WALL ST STYLE)
   ========================================================================== */

.reports-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    gap: 2rem;
}

.banner-text h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.banner-text p {
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 800px;
}

.reports-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    color: var(--text-main);
    border-color: var(--border-bright);
}

.filter-btn.active {
    background: var(--color-cyan);
    color: #041019;
    font-weight: 700;
    border-color: var(--color-cyan);
}

.reports-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.2s ease;
}

.report-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.report-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-ticker-block {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.report-ticker {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

.report-price {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Simply Wall St 3 Pillars Radar */
.pillars-mini-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    background: var(--bg-subtle);
    padding: 0.75rem;
    border-radius: var(--radius-md);
}

.pillar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pillar-name {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.pillar-score {
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

.debate-box {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: var(--bg-main);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.debate-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.debate-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    align-self: flex-start;
}

.tag-bull { background: rgba(16, 185, 129, 0.2); color: var(--color-emerald); }
.tag-bear { background: rgba(244, 63, 94, 0.2); color: var(--color-rose); }

.report-cro-strip {
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==========================================================================
   SECTION 3: BACKTEST SIMPLIFIÉ (SANS JARGON)
   ========================================================================== */

.backtest-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    gap: 2rem;
}

.backtest-hero-text h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.backtest-hero-text p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.backtest-hero-actions {
    display: flex;
    gap: 0.75rem;
}

.clean-select {
    background: var(--bg-input);
    border: 1px solid var(--border-bright);
    color: var(--text-main);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    outline: none;
}

.simple-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.simple-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.simple-kpi-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.simple-kpi-val {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.simple-kpi-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chart-clean-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.chart-clean-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-clean-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.chart-simple-legend {
    display: flex;
    gap: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-mine::before {
    content: '';
    width: 12px;
    height: 3px;
    background: var(--color-cyan);
    border-radius: 2px;
}

.legend-market::before {
    content: '';
    width: 12px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
}

.chart-box {
    height: 360px;
    position: relative;
}

.research-proof-card {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.research-proof-card h4 {
    font-size: 0.9rem;
    color: var(--color-cyan);
}

.research-proof-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   MODAL (RAPPORT DÉTAILLÉ)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100050 !important;
    padding: 1.5rem;
}

.modal-overlay.open {
    display: flex !important;
}

#tradeModal {
    z-index: 100070 !important;
}

#nodeInspectorModal, .node-inspector-modal {
    z-index: 100065 !important;
}

#candlestickModal {
    z-index: 100060 !important;
}

.toast-shelf {
    z-index: 100090 !important;
}

/* Floating sticky button for fullscreen exit */
.btn-exit-fullscreen-floating {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 100010;
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: rgba(244, 63, 94, 0.25);
    border: 1px solid var(--color-rose);
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 25px rgba(244, 63, 94, 0.4);
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.finrl-multicrypto-panel.is-fullscreen-matrix .btn-exit-fullscreen-floating {
    display: inline-flex !important;
}

.btn-exit-fullscreen-floating:hover {
    background: rgba(244, 63, 94, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(244, 63, 94, 0.6);
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-xl);
    max-width: 650px;
    width: 100%;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    max-height: 90vh;
    overflow-y: auto;
}

/* Toast Shelf */
.toast-shelf {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 100080 !important;
}

.toast-pill {
    padding: 0.85rem 1.25rem;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Deterministic Metrics Grid (AI4Finance Code-Calculated) */
.metrics-provenance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem;
}

.metric-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-box-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.metric-box-val {
    font-size: 0.95rem;
    font-weight: 700;
}

/* AutoGen Multi-Agent Dialogue Stream */
.autogen-debate-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dialogue-stream {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.dialogue-bubble {
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    line-height: 1.45;
}

.dialogue-sender-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

.dialogue-name {
    color: var(--text-main);
}

.dialogue-role {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.dialogue-bull {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}
.dialogue-bull .dialogue-name {
    color: var(--color-emerald);
}

.dialogue-bear {
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.25);
}
.dialogue-bear .dialogue-name {
    color: var(--color-rose);
}

.dialogue-cro {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.3);
}
.dialogue-cro .dialogue-name {
    color: var(--color-cyan);
}

.dialogue-macro {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}
.dialogue-macro .dialogue-name {
    color: #f59e0b;
}

.dialogue-standard {
    background: var(--bg-subtle);
    border-color: var(--border-subtle);
}
.dialogue-standard .dialogue-name {
    color: var(--color-purple);
}

/* ==========================================================================
   SÉLECTION D'ACTIONS ML (SCREENER)
   ========================================================================== */

.screener-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.screener-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.2s ease;
}

.screener-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.screener-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.screener-ticker {
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-main);
}

.screener-company-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.screener-ai-score {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    border: 2px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
}

.screener-ai-score .score-num {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}

.screener-ai-score .score-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.8;
}

.screener-meta-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.screener-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.screener-tag.tag-bucket {
    background: rgba(14, 165, 233, 0.1);
    color: var(--color-cyan);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.screener-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.5rem;
    text-align: center;
}

.sm-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sm-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.btn-screener-in {
    width: 100%;
    padding: 0.65rem;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-emerald);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: default;
}

/* ==========================================================================
   BOARD DES AGENTS (MISSION CONTROL AVEC PHOTOS)
   ========================================================================== */

.agents-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.agent-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.agent-profile-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.agent-photo-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    background: #000;
    overflow: hidden;
}

.agent-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.agent-profile-card:hover .agent-photo-img {
    transform: scale(1.03);
}

.agent-photo-status-dot {
    position: absolute;
    bottom: 12px;
    right: 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    box-shadow: 0 0 10px currentColor;
}

.agent-info-block {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}

.agent-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.agent-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.agent-title {
    font-size: 0.8rem;
    color: var(--color-cyan);
    font-weight: 600;
    margin-top: 2px;
}

.agent-status-pill {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid;
    font-weight: 600;
    white-space: nowrap;
}

.agent-tags-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.agent-tech-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: var(--color-cyan);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.agent-model-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
}

.agent-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.agent-metrics-strip {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* ==========================================================================
   TRADE EXECUTION MODAL & STRATEGY MODES (SWING, DAY, SCAFFOLDING)
   ========================================================================== */

.btn-trade-trigger {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

.btn-trade-trigger:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-1px);
}

.btn-trade-chip {
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--color-emerald);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-trade-chip:hover {
    background: var(--color-emerald);
    color: #0b0f19;
}

.trade-modal-card {
    max-width: 720px;
}

.trade-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.trade-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.trade-field-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.trade-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trade-text-input {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-bright);
    color: var(--text-main);
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    outline: none;
    text-transform: uppercase;
}

.trade-text-input:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
}

.trade-price-badge {
    padding: 0.65rem 0.85rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.trade-side-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.side-btn {
    padding: 0.65rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.side-btn.side-buy.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--color-emerald);
    color: var(--color-emerald);
}

.side-btn.side-sell.active {
    background: rgba(244, 63, 94, 0.2);
    border-color: var(--color-rose);
    color: var(--color-rose);
}

.strategy-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.strategy-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.strategy-card:hover {
    border-color: var(--border-bright);
    background: var(--bg-card-hover);
}

.strategy-card.active {
    background: rgba(14, 165, 233, 0.08);
    border-color: var(--color-cyan);
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.15);
}

.strategy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.25rem;
}

.strategy-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.strategy-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.badge-recommended {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-intraday {
    background: rgba(245, 158, 11, 0.2);
    color: var(--color-amber);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-dca {
    background: rgba(139, 92, 246, 0.2);
    color: var(--color-purple);
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.strategy-horizon {
    font-size: 0.72rem;
    color: var(--color-cyan);
    font-weight: 600;
}

.strategy-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.scalping-info-banner {
    background: rgba(15, 23, 42, 0.85);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.scalping-info-banner .info-icon {
    font-size: 1.15rem;
}

.scalping-info-banner .info-content strong {
    font-size: 0.8rem;
    color: var(--text-main);
}

.scalping-info-banner .info-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.2rem 0 0 0;
    line-height: 1.4;
}

.cro-limit-pill {
    padding: 2px 8px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--color-cyan);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
}

.cro-slider {
    width: 100%;
    accent-color: var(--color-cyan);
    cursor: pointer;
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-dark);
}

.risk-preview-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem;
}

.risk-preview-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.preview-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.preview-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.btn-confirm-trade {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid #10b981;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.btn-confirm-trade:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
}

/* ==========================================================================
   COCKPIT DE RISK MANAGEMENT (CRO VICTOR CROSS) & ALPACA LIVE SYNC
   ========================================================================== */

.risk-management-cockpit {
    background: var(--bg-card);
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.risk-cockpit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
}

.risk-kpis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.risk-kpi-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kpi-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.kpi-main-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.kpi-sub-text {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.cro-advice-strip {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
}

.cro-advice-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--color-amber);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.cro-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cro-speaker-label {
    font-size: 0.8rem;
    color: var(--color-amber);
    margin-bottom: 0.25rem;
}

.cro-advice-text p {
    font-size: 0.82rem;
    color: var(--text-main);
    line-height: 1.45;
    margin: 0;
}

.alpaca-live-sync-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .alpaca-live-sync-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   AI RECOMMENDATION CARD & SIZING FORMULA (TRADE MODAL)
   ========================================================================== */

.ai-recommendation-card {
    background: rgba(14, 165, 233, 0.06);
    border: 1px solid rgba(14, 165, 233, 0.35);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.ai-badge-pulse {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-cyan);
    letter-spacing: 0.05em;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(14, 165, 233, 0.6); }
    50% { opacity: 0.75; text-shadow: 0 0 4px rgba(14, 165, 233, 0.2); }
}

.btn-apply-advice {
    padding: 4px 12px;
    background: var(--color-cyan);
    color: #0b0f19;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-apply-advice:hover {
    background: #38bdf8;
    transform: translateY(-1px);
}

.ai-advice-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-advice-verdict-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ai-verdict-badge {
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 800;
}

.ai-mode-tag, .ai-alloc-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-main);
}

.ai-advice-rationale {
    font-size: 0.8rem;
    color: var(--text-main);
    line-height: 1.45;
    margin: 0;
}

.ai-agent-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.ai-agent-mini-chip {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mini-chip-name {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.mini-chip-val {
    font-size: 0.72rem;
    font-weight: 700;
}

.sizing-formula-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sizing-formula-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.formula-line {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 600;
}

.sizing-risk-breakdown {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.sizing-risk-breakdown strong {
    color: var(--color-emerald);
}

/* ==========================================================================
   AUTONOMY SWITCHER & LIVE COGNITIVE TELEMETRY BAR
   ========================================================================== */

.autonomy-control-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border-bright);
    padding: 3px 6px;
    border-radius: var(--radius-md);
}

.autonomy-tag {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.autonomy-pill-group {
    display: flex;
    gap: 3px;
}

.auto-pill-btn {
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auto-pill-btn:hover {
    color: var(--text-main);
}

.auto-pill-btn.active {
    background: rgba(14, 165, 233, 0.2);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

#modeBtnFull.active {
    background: rgba(244, 63, 94, 0.2);
    border-color: var(--color-rose);
    color: var(--color-rose);
}

.telemetry-banner {
    background: #070a11;
    border-bottom: 1px solid var(--border-subtle);
    padding: 6px 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
}

.telemetry-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-cyan);
    font-weight: 800;
    font-size: 0.7rem;
    white-space: nowrap;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-cyan);
    box-shadow: 0 0 8px var(--color-cyan);
    animation: pulse 1.5s infinite ease-in-out;
}

.telemetry-scroll-wrapper {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.telemetry-feed {
    color: var(--text-muted);
}

.chat-live-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--color-emerald);
    color: var(--color-emerald);
    font-weight: 800;
    margin-left: 4px;
}

/* ==========================================================================
   FORECAST SECTION (CORRIDOR PROBABILISTE FINRL)
   ========================================================================== */

.forecast-section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.forecast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.forecast-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: transform 0.2s ease;
}

.forecast-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-bright);
}

.f-horizon-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-cyan);
}

.f-expected-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.f-expected-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-emerald);
}

.f-corridor-strip {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   CANDLESTICK MODAL & CANVAS
   ========================================================================== */

.candle-modal-card {
    max-width: 860px;
    width: 100%;
}

.candle-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
}

.c-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.c-stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.candle-legend-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.c-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.c-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.dot-bull { background: #10b981; }
.dot-bear { background: #f43f5e; }

.c-line {
    width: 14px;
    height: 2px;
    display: inline-block;
}

.line-sma { background: #0ea5e9; }
.line-sl { background: #f43f5e; border-top: 1px dashed #f43f5e; }
.line-tp { background: #10b981; border-top: 1px dashed #10b981; }

.canvas-tooltip {
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-bright);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-main);
    pointer-events: none;
    backdrop-filter: blur(8px);
    z-index: 10;
}

/* ==========================================================================
   INVESTMENT POLICY MEMORANDUM MODAL
   ========================================================================== */

.memo-modal-card {
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
}

.memo-document-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    padding-right: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.memo-block {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.memo-block-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-cyan);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.memo-signatures-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.memo-sig-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.memo-sig-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.78rem;
}

.memo-sig-role {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.memo-sig-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--color-emerald);
}

/* ==========================================================================
   SALON DES STRATÈGES (CHAT MULTI-AGENTS GROUNDÉ)
   ========================================================================== */

.chat-room-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 160px);
    width: 100%;
}

.chat-personas-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.chat-sidebar-header {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
}

.personas-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.persona-item-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.persona-item-btn:hover {
    border-color: var(--border-bright);
    background: var(--bg-card-hover);
}

.persona-item-btn.active {
    background: rgba(14, 165, 233, 0.12);
    border-color: var(--color-cyan);
    box-shadow: 0 0 14px rgba(14, 165, 233, 0.15);
}

.persona-thumb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-bright);
}

.persona-info {
    flex: 1;
    overflow: hidden;
}

.p-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
}

.p-role {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-window-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.chat-active-agent-bar {
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-messages-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.chat-msg-row {
    display: flex;
    gap: 1rem;
    max-width: 85%;
}

.chat-msg-row.user-msg-row {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--color-cyan);
}

.chat-msg-bubble {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    line-height: 1.55;
    font-size: 0.85rem;
}

.user-msg-row .chat-msg-bubble {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.35);
}

.chat-msg-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.chat-suggestions-bar {
    padding: 0.65rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    border-top: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.2);
}

.suggestion-chip {
    padding: 4px 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.suggestion-chip:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

.chat-input-bar {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 0.75rem;
    background: var(--bg-card);
}

.chat-input-field {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-bright);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    outline: none;
}

.chat-input-field:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
}

.btn-send-message {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-send-message:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-1px);
}

/* ==========================================================================
   COCKPIT DU MOTEUR AUTONOME & BOÎTE D'ACTION IA (SEMI-AUTO & 100% AUTO)
   ========================================================================== */

.autonomous-command-hero {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(11, 15, 25, 0.98));
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(14, 165, 233, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.autonomous-command-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-emerald), var(--color-purple));
}

.auto-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.auto-hero-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pulse-engine-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(16, 185, 129, 0.25));
    border: 1px solid rgba(14, 165, 233, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--color-cyan);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.25);
}

.auto-hero-sub {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.engine-status-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 0.04em;
}

.engine-status-pill.online {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.auto-hero-controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.auto-mode-switcher-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-subtle);
    padding: 4px 6px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auto-mode-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-left: 0.35rem;
    letter-spacing: 0.05em;
}

.auto-mode-btn-group {
    display: flex;
    gap: 4px;
}

.mode-select-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.mode-select-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.mode-select-btn.active {
    background: rgba(14, 165, 233, 0.2);
    border-color: var(--color-cyan);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.3);
}

.mode-select-btn.active#btnModeAuto {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--color-purple);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}

.btn-scan-now {
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auto-mode-explanation-strip {
    background: rgba(15, 23, 42, 0.6);
    border-left: 3px solid var(--color-cyan);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.84rem;
    color: var(--text-main);
    line-height: 1.45;
}

/* ==========================================================================
   BOÎTE D'ACTION IA : CARTES DE PROPOSITIONS (SEMI-AUTO)
   ========================================================================== */

.auto-inbox-section {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inbox-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
}

.inbox-badge-count {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--color-emerald);
    color: #041019;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.btn-clear-inbox {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: rgba(244, 63, 94, 0.12);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-inbox:hover {
    background: rgba(244, 63, 94, 0.22);
    border-color: #f43f5e;
    color: #fda4af;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.25);
}

.inbox-proposals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 1.25rem;
}

.proposal-ticket {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.proposal-ticket:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.prop-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prop-sym-title {
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-main, #f8fafc);
}

.prop-action-pill {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.prop-action-pill.buy {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.prop-action-pill.sell {
    background: rgba(244, 63, 94, 0.15);
    color: var(--color-rose);
    border: 1px solid rgba(244, 63, 94, 0.35);
}

.prop-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--bg-input);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    gap: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.prop-m-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.prop-m-lbl {
    font-size: 0.68rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prop-m-val {
    font-size: 0.95rem;
    font-weight: 700;
}

.prop-risk-reward-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.prop-risk-cell {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.prop-reward-cell {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.prop-thesis-quote {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--color-purple);
}

.prop-actions-bar {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.25rem;
}

.btn-approve-trade {
    flex: 2;
    background: #10b981;
    border: 1px solid #059669;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: none;
    transition: all 0.15s ease;
}

.btn-approve-trade:hover {
    background: #059669;
    box-shadow: none;
    transform: none;
}

.btn-chat-trade {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border-subtle, #cbd5e1);
    color: var(--text-main, #334155);
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.76rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: all 0.15s ease;
}

.btn-chat-trade:hover {
    background: rgba(14, 165, 233, 0.08);
    border-color: var(--color-cyan, #0284c7);
    color: var(--color-cyan, #0284c7);
}

.btn-reject-trade {
    background: transparent;
    border: 1px solid var(--border-subtle, #cbd5e1);
    color: var(--text-muted, #94a3b8);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.76rem;
    transition: all 0.15s ease;
}

.btn-reject-trade:hover {
    color: var(--color-rose, #ef4444);
    border-color: var(--color-rose, #ef4444);
    background: rgba(244, 63, 94, 0.08);
}

/* ==========================================================================
   CAPITAL SUMMARY METRIC STRIP
   ========================================================================== */

.capital-summary-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    gap: 1.25rem 1rem;
}

.capital-metric-box {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md, 8px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Row 1: 4 metrics (span 1 = 25% each) */
.capital-summary-card > .capital-metric-box:nth-child(1),
.capital-summary-card > .capital-metric-box:nth-child(2),
.capital-summary-card > .capital-metric-box:nth-child(3),
.capital-summary-card > .capital-metric-box:nth-child(4) {
    grid-column: span 1;
}

/* Row 2: 2 metrics (span 2 = 50% each for perfect balance and zero blank space) */
.capital-summary-card > .capital-metric-box:nth-child(5),
.capital-summary-card > .capital-metric-box:nth-child(6) {
    grid-column: span 2;
}

@media (max-width: 1200px) {
    .capital-summary-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .capital-summary-card > .capital-metric-box:nth-child(5),
    .capital-summary-card > .capital-metric-box:nth-child(6) {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .capital-summary-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .capital-summary-card > .capital-metric-box:nth-child(1),
    .capital-summary-card > .capital-metric-box:nth-child(2),
    .capital-summary-card > .capital-metric-box:nth-child(3),
    .capital-summary-card > .capital-metric-box:nth-child(4),
    .capital-summary-card > .capital-metric-box:nth-child(5),
    .capital-summary-card > .capital-metric-box:nth-child(6) {
        grid-column: span 1;
    }
}

/* Full width allocation bar spanning all 4 columns */
.global-allocation-bar-container {
    grid-column: 1 / -1;
    width: 100%;
}

.cap-lbl {
    font-size: 0.72rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.cap-val {
    font-size: 1.45rem;
    font-weight: 800;
}

.cap-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.metric-info-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: help;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
    user-select: none;
    margin-left: 6px;
}

.metric-info-bubble:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: #818cf8;
    color: #ffffff;
    transform: scale(1.18);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   NODES TOPOLOGY & GRAND ÉCRAN (AI DECISION NETWORK)
   ========================================================================== */

#viewNodes.page-view,
.nodes-fullwidth-view {
    max-width: 100%;
    width: 100%;
    padding: 1.5rem 2rem 4rem 2rem;
    box-sizing: border-box;
}

#viewNodes.page-view.active,
#viewNodes.page-view[style*="display: block"],
#viewNodes.page-view[style*="display: flex"] {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
}

.page-view[style*="display: none"] {
    display: none !important;
}

.nodes-view-header {
    width: 100% !important;
    box-sizing: border-box !important;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.nodes-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.nodes-main-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
}

.pulse-icon {
    display: inline-block;
    color: var(--color-cyan);
    animation: pulseIcon 1.5s infinite alternate ease-in-out;
}

@keyframes pulseIcon {
    from { transform: scale(1); filter: drop-shadow(0 0 4px var(--color-cyan)); }
    to { transform: scale(1.25); filter: drop-shadow(0 0 12px var(--color-cyan)); }
}

.nodes-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-fullscreen-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(99, 102, 241, 0.25));
    border: 1px solid var(--color-cyan);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.25);
    transition: all 0.25s ease;
}

.btn-fullscreen-toggle:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.4), rgba(99, 102, 241, 0.45));
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.5);
}

.btn-refresh-nodes {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refresh-nodes:hover {
    border-color: var(--border-bright);
    background: var(--bg-card-hover);
}

.nodes-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Network Stage */
.network-stage-container {
    width: 100% !important;
    box-sizing: border-box !important;
    background: radial-gradient(ellipse at center top, #111a2e 0%, #080b13 70%, #04060a 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.8), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.network-stage-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.6;
}

.network-legend-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.6rem 1.25rem;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.node-status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 0.4rem;
}

.dot-active { background: #10b981; box-shadow: 0 0 8px #10b981; }
.dot-firewall { background: #f43f5e; box-shadow: 0 0 8px #f43f5e; }
.dot-gateway { background: #0ea5e9; box-shadow: 0 0 8px #0ea5e9; }

.laser-sample {
    display: inline-block;
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #10b981);
    box-shadow: 0 0 8px #0ea5e9;
    border-radius: 2px;
    margin-right: 0.4rem;
}

/* Tier Styling */
.node-tier {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
    z-index: 2;
}

.tier-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.tier-num {
    font-size: 0.7rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--color-cyan);
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.35);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.tier-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.tier-nodes-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.tier-central {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Network Node Card */
.network-node-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.network-node-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.network-node-card:hover {
    border-color: rgba(14, 165, 233, 0.6);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(14, 165, 233, 0.2);
}

.network-node-card:hover::before {
    opacity: 1;
}

.node-cro-firewall {
    border-color: rgba(244, 63, 94, 0.45);
    background: rgba(30, 15, 23, 0.85);
}

.node-cro-firewall:hover {
    border-color: var(--color-rose);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(244, 63, 94, 0.35);
}

.node-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.node-avatar-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.node-agent-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-bright);
}

.node-info {
    flex: 1;
    min-width: 0;
}

.node-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.node-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.node-status-pill {
    font-size: 0.68rem;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--color-emerald);
}

.badge-firewall {
    background: rgba(244, 63, 94, 0.2) !important;
    border: 1px solid rgba(244, 63, 94, 0.5) !important;
    color: var(--color-rose) !important;
}

.node-score-badge {
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: var(--color-cyan);
}

.node-telemetry {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.85rem;
}

.telemetry-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.t-lbl {
    color: var(--text-muted);
}

.t-val {
    font-weight: 700;
}

/* Vertical Pulsing Laser Connector */
.laser-connector-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0.5rem 0;
    z-index: 2;
}

.laser-stream-line {
    width: 2px;
    height: 28px;
    background: linear-gradient(180deg, #0ea5e9, #10b981, #0ea5e9);
    background-size: 100% 200%;
    box-shadow: 0 0 10px #0ea5e9, 0 0 20px #10b981;
    animation: laserFlow 1.5s infinite linear;
}

@keyframes laserFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 200%; }
}

.laser-label {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: var(--color-cyan);
    background: rgba(11, 15, 25, 0.9);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    margin-top: 4px;
    letter-spacing: 0.04em;
    backdrop-filter: blur(4px);
}

/* Fullscreen / TV Big Screen Mode */
#viewNodes:fullscreen,
#viewNodes:-webkit-full-screen,
#viewNodes.is-fullscreen-simulated {
    background: #050811 !important;
    padding: 2.5rem !important;
    overflow-y: auto;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
}

#viewNodes:fullscreen .network-stage-container,
#viewNodes.is-fullscreen-simulated .network-stage-container {
    padding: 2.5rem;
    border-width: 2px;
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 0 100px rgba(14, 165, 233, 0.15);
}

#viewNodes:fullscreen .network-node-card,
#viewNodes.is-fullscreen-simulated .network-node-card {
    padding: 1.5rem;
}

#viewNodes:fullscreen .node-title,
#viewNodes.is-fullscreen-simulated .node-title {
    font-size: 1.15rem;
}

/* Node Inspector Modal */
.node-inspector-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.5rem;
}

.node-inspector-card {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-xl);
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(14, 165, 233, 0.2);
    overflow: hidden;
}

.node-inspector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
}

.node-inspector-body {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Candlestick Tabs & External Link */
.candle-tab-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}

.candle-tab-btn {
    padding: 6px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.candle-tab-btn:hover {
    color: var(--text-main);
    border-color: var(--border-bright);
}

.candle-tab-btn.active {
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

.btn-external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 6px 12px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-cyan);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-external-link:hover {
    background: rgba(14, 165, 233, 0.25);
    border-color: var(--color-cyan);
    transform: translateY(-1px);
}

/* ==========================================================================
   FINRL MULTI-CRYPTO PANEL (AI4FINANCE 10 ASSETS 24/7)
   ========================================================================== */

.finrl-multicrypto-panel {
    background: var(--bg-card);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

.finrl-crypto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.finrl-crypto-table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.finrl-crypto-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.finrl-crypto-table th {
    padding: 0.65rem 0.85rem;
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.finrl-crypto-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
    white-space: nowrap;
}

.finrl-crypto-table tr:hover td {
    background: rgba(14, 165, 233, 0.04);
}

.crypto-pair-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.crypto-icon-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--color-cyan);
}

.signal-pill {
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    display: inline-block;
}

.signal-buy { background: rgba(16, 185, 129, 0.2); color: var(--color-emerald); border: 1px solid var(--color-emerald); }
.signal-sell { background: rgba(244, 63, 94, 0.2); color: var(--color-rose); border: 1px solid var(--color-rose); }
.signal-hold { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); border: 1px solid var(--border-subtle); }

/* Live Agent Cockpit Strip & Node Detail Chips */
.live-agent-cell {
    transition: all 0.25s ease !important;
}

.live-agent-cell:hover {
    transform: translateY(-2px);
    border-color: var(--color-cyan) !important;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15) !important;
}

.btn-node-detail-chip {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-cyan);
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.35);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-node-detail-chip:hover {
    background: rgba(14, 165, 233, 0.28);
    border-color: var(--color-cyan);
    color: #fff;
}

/* Fullscreen Mode for FinRL Crypto Matrix */
.finrl-multicrypto-panel.is-fullscreen-matrix {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    background: #080b13 !important;
    padding: 2rem !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* Market Category Switcher Bar */
.market-category-switcher-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 0.5rem;
    border-radius: var(--radius-xl);
    flex-wrap: wrap;
}

.market-subtab-btn {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.market-subtab-btn:hover {
    background: var(--bg-subtle);
    color: #fff;
}

.market-subtab-btn.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(99, 102, 241, 0.25));
    border-color: var(--color-cyan);
    color: #fff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.subtab-badge {
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.subtab-badge.emerald {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-emerald);
}

.subtab-badge.amber {
    background: rgba(245, 158, 11, 0.2);
    color: var(--color-amber);
}

/* ==========================================================================
   COCKPIT LIVE 5-AGENT RADAR (MISSION CONTROL HERO STRIP)
   ========================================================================== */

.cockpit-radar-section {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
}

.cockpit-radar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cockpit-radar-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cockpit-radar-title-group h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.2px;
}

.cockpit-radar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.agent-radar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.agent-radar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-cyan);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.agent-radar-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.agent-radar-card:hover::before {
    opacity: 1;
}

.agent-radar-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.agent-radar-photo {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid rgba(14, 165, 233, 0.5);
    flex-shrink: 0;
}

.agent-radar-meta {
    flex: 1;
    min-width: 0;
}

.agent-radar-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agent-radar-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.agent-radar-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.agent-radar-badge.online {
    background: rgba(16, 185, 129, 0.18);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.agent-radar-badge.firewall {
    background: rgba(244, 63, 94, 0.18);
    color: var(--color-rose);
    border: 1px solid rgba(244, 63, 94, 0.35);
}

.agent-radar-activity {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 10px;
    border-radius: var(--radius-md);
    border-left: 2px solid var(--color-cyan);
}

.agent-radar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.agent-radar-signal {
    font-family: var(--font-mono);
    font-weight: 700;
}

.agent-radar-inspect-link {
    color: var(--color-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
}

.agent-radar-inspect-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   EXPLICABILITÉ DES DÉCISIONS & LE "POURQUOI" DES AGENTS (AUDIT TRAIL)
   ========================================================================== */

.execution-decision-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.execution-decision-card:hover {
    border-color: rgba(14, 165, 233, 0.35);
    transform: translateY(-1px);
}

.exec-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.exec-badge-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.decision-pill {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 9999px;
    letter-spacing: 0.03em;
}

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

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

.exec-sym {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    font-family: var(--font-mono);
}

.exec-price {
    color: var(--color-cyan);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
}

.exec-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.exec-sl-tp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
}

.sl-tag {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(244, 63, 94, 0.25);
}

.tp-tag {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.decision-why-box {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(139, 92, 246, 0.06));
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-top: 0.5rem;
}

.why-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    color: var(--color-cyan);
}

.why-thesis-text {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0 0 0.75rem 0;
    font-style: italic;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--color-cyan);
}

.agents-breakdown-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.agent-why-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.76rem;
    line-height: 1.4;
}

.agent-why-chip.quant { border-left: 3px solid var(--color-purple); }
.agent-why-chip.fund { border-left: 3px solid var(--color-emerald); }
.agent-why-chip.news { border-left: 3px solid var(--color-amber); }
.agent-why-chip.cro { border-left: 3px solid var(--color-rose); }

.agent-why-name {
    font-weight: 700;
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}

.agent-why-text {
    color: var(--text-muted);
}

.why-actions-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-why-debate {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c084fc;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-why-debate:hover {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
}

.btn-why-chart {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: var(--color-cyan);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-why-chart:hover {
    background: rgba(14, 165, 233, 0.3);
    color: #fff;
}

/* ==========================================================================
   TERMINAL CRYPTO 24/7 INTERACTIF
   ========================================================================== */

.crypto-terminal-container {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .crypto-terminal-container {
        grid-template-columns: 1fr;
    }
}

.crypto-chart-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.crypto-pills-bar {
    display: flex;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    overflow-x: auto;
    white-space: nowrap;
}

.crypto-pill-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s ease;
}

.crypto-pill-btn:hover {
    background: rgba(14, 165, 233, 0.15);
    color: var(--color-cyan);
    border-color: rgba(14, 165, 233, 0.35);
}

.crypto-pill-btn.active {
    background: var(--color-cyan);
    color: #0b0f19;
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.crypto-order-module {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.crypto-side-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.crypto-side-btn {
    padding: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crypto-side-btn.buy {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.crypto-side-btn.buy.active {
    background: #10b981;
    color: #0b0f19;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.crypto-side-btn.sell {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.3);
}

.crypto-side-btn.sell.active {
    background: #f43f5e;
    color: #fff;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

/* ==========================================================================
   COCKPIT SENTINELLE ACTIVE DES POSITIONS & DAY TRADING
   ========================================================================== */

.sentinel-cockpit-section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(11, 15, 25, 0.95) 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.sentinel-cockpit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.85rem;
    margin-bottom: 1.25rem;
}

.sentinel-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1rem;
}

.sentinel-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.sentinel-card:hover {
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.16);
    transform: translateY(-2px);
}

.sentinel-card.is-interactive {
    cursor: pointer;
}

.sentinel-view-analysis-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 6px;
    background: rgba(14, 165, 233, 0.16);
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: #38bdf8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sentinel-view-analysis-btn:hover {
    background: rgba(14, 165, 233, 0.35);
    border-color: #38bdf8;
    color: #ffffff;
    transform: scale(1.03);
}

.sentinel-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sentinel-strategy-pill {
    padding: 3px 8px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 700;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.sentinel-pnl-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.sentinel-trailing-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    background: rgba(14, 165, 233, 0.06);
    border: 1px dashed rgba(14, 165, 233, 0.25);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.sentinel-alert-box {
    font-size: 0.78rem;
    line-height: 1.4;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
}

.sentinel-alert-box.SECURE {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.sentinel-alert-box.WARNING {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.sentinel-alert-box.STOP_LOSS_HIT {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #f43f5e;
}

.sentinel-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.btn-sentinel-sell {
    background: rgba(244, 63, 94, 0.18);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #f43f5e;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sentinel-sell:hover {
    background: #f43f5e;
    color: #fff;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

.btn-sentinel-tp {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: var(--color-cyan);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sentinel-tp:hover {
    background: var(--color-cyan);
    color: #0b0f19;
}

/* ==========================================================================
   ANIMATIONS DE FLASH TEMPS RÉEL SUR LES TUILES
   ========================================================================== */

@keyframes pricePulseGreen {
    0% { background-color: rgba(16, 185, 129, 0.35); color: #34d399; }
    100% { background-color: transparent; }
}

@keyframes pricePulseRed {
    0% { background-color: rgba(244, 63, 94, 0.35); color: #f43f5e; }
    100% { background-color: transparent; }
}

.price-flash-up {
    animation: pricePulseGreen 0.9s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.price-flash-down {
    animation: pricePulseRed 0.9s cubic-bezier(0.1, 0.9, 0.2, 1);
}

/* ==========================================================================
   JAUGE DE JUSTE VALEUR & FLOCON SIMPLY WALL ST
   ========================================================================== */

/* GRAND MODAL INSTITUTIONNEL DE RECHERCHE & SIDEBAR COPILOT */
#reportModal .modal-card {
    max-width: 95vw !important;
    width: 1540px !important;
    height: 90vh !important;
    max-height: 90vh !important;
    padding: 1.25rem 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.7) !important;
}

.report-modal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(390px, 460px);
    gap: 1.25rem;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    transition: grid-template-columns 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1100px) {
    .report-modal-grid {
        grid-template-columns: 1fr !important;
        overflow-y: auto;
    }
}

.report-modal-main {
    overflow-y: auto;
    padding-right: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: opacity 0.25s ease;
}

.report-modal-copilot-sidebar {
    background: rgba(11, 16, 26, 0.85);
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
    position: relative;
}

.modal-copilot-header {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(24, 29, 36, 0.9), rgba(15, 18, 23, 0.95));
    border-bottom: 1px solid rgba(197, 160, 89, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.modal-copilot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2b2316, #14171c);
    border: 1.5px solid #c5a059;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #dfba73;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
    flex-shrink: 0;
}

.copilot-role-pill {
    font-size: 0.65rem;
    background: rgba(197, 160, 89, 0.15);
    border: 1px solid rgba(197, 160, 89, 0.35);
    color: #dfba73;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.copilot-sentinel-status-badge {
    font-size: 0.68rem;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.copilot-sentinel-status-badge.is-active {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.copilot-sentinel-status-badge.is-scout {
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.35);
    color: #38bdf8;
}

.modal-copilot-view-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-copilot-view-mode {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.15s ease;
}

.btn-copilot-view-mode:hover {
    background: rgba(197, 160, 89, 0.2);
    border-color: #c5a059;
    color: #ffffff;
}

.btn-copilot-view-mode.active {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.35), rgba(180, 140, 60, 0.25));
    border-color: #dfba73;
    color: #dfba73;
}

.btn-copilot-view-mode.drawer-transfer {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.35);
    color: #38bdf8;
}

.btn-copilot-view-mode.drawer-transfer:hover {
    background: rgba(14, 165, 233, 0.25);
    color: #ffffff;
}

.modal-copilot-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.6rem 0.85rem;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid var(--border-subtle);
}

/* BOUTONS ET PILULES INSTITUTIONNELS INTELLIWEALTH (FINI LE LOOK GAMIFIÉ) */
.btn-intelliwealth-header {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    letter-spacing: 0.02em;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-intelliwealth-header:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(197, 160, 89, 0.5);
    color: #dfba73;
    transform: translateY(-1px);
}

.btn-intelliwealth-pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.95rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    letter-spacing: 0.02em;
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.55);
    color: #dfba73;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.15);
}

.btn-intelliwealth-pdf:hover {
    background: rgba(197, 160, 89, 0.22);
    border-color: #dfba73;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(197, 160, 89, 0.3);
    transform: translateY(-1px);
}

.modal-copilot-pill {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.modal-copilot-pill:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(197, 160, 89, 0.45);
    color: #dfba73;
    transform: translateY(-1px);
}

.modal-copilot-pill.sentinel-pill-stop {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(197, 160, 89, 0.35);
    color: #dfba73;
    font-weight: 700;
}

.modal-copilot-pill.sentinel-pill-stop:hover {
    background: rgba(197, 160, 89, 0.15);
    border-color: #dfba73;
    color: #ffffff;
}

.modal-copilot-pill.sentinel-pill-tp {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
    font-weight: 700;
}

.modal-copilot-pill.sentinel-pill-tp:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(197, 160, 89, 0.4);
    color: #dfba73;
}

.modal-copilot-pill.sentinel-pill-sell {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(244, 63, 94, 0.3);
    color: #fca5a5;
    font-weight: 700;
}

.modal-copilot-pill.sentinel-pill-sell:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: #f43f5e;
    color: #ffffff;
}

.modal-copilot-pill.sentinel-pill-freeze {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.25);
    color: #94a3b8;
}

.modal-copilot-pill.sentinel-pill-freeze:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #fca5a5;
}

.modal-copilot-pill.btn-action-buy {
    background: rgba(197, 160, 89, 0.12);
    border-color: rgba(197, 160, 89, 0.5);
    color: #dfba73;
    font-weight: 700;
}

.modal-copilot-pill.btn-action-buy:hover {
    background: rgba(197, 160, 89, 0.25);
    border-color: #dfba73;
    color: #ffffff;
}

.modal-copilot-chat {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.modal-copilot-chat .copilot-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0.6rem 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
}

.modal-copilot-chat table.copilot-table {
    width: 100%;
    min-width: 440px;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.modal-copilot-chat table.copilot-table th {
    background: rgba(30, 41, 59, 0.9);
    color: #dfba73;
    padding: 6px 8px;
    text-align: left;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.modal-copilot-chat table.copilot-table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    white-space: normal;
    line-height: 1.35;
}

.modal-copilot-input-bar {
    padding: 0.65rem 0.85rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(30, 41, 59, 0.5);
    display: flex;
    gap: 0.5rem;
}

.simply-snowflake-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.fair-value-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fair-value-gauge-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.fair-value-gauge-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.fair-value-gauge-fill.emerald {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.fair-value-gauge-fill.rose {
    background: linear-gradient(90deg, #f43f5e 0%, #fb7185 100%);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

.fair-value-gauge-fill.cyan {
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

/* ==========================================================================
   FLUX D'ACTUALITÉS RÉELLES FINGPT
   ========================================================================== */

.news-stream-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

.news-item-pill {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.news-item-pill:hover {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.3);
    color: var(--color-cyan);
    transform: translateX(3px);
}

.news-pill-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ==========================================================================
   STYLE TRADINGVIEW PRO & MICRO-TICKS EN TEMPS RÉEL
   ========================================================================== */

@keyframes flashTickUp {
    0% {
        background-color: rgba(16, 185, 129, 0.5) !important;
        color: #34d399 !important;
        text-shadow: 0 0 10px rgba(16, 185, 129, 0.9);
    }
    100% {
        background-color: transparent;
    }
}

@keyframes flashTickDown {
    0% {
        background-color: rgba(239, 68, 68, 0.5) !important;
        color: #f87171 !important;
        text-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
    }
    100% {
        background-color: transparent;
    }
}

.tick-flash-up {
    animation: flashTickUp 0.65s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.tick-flash-down {
    animation: flashTickDown 0.65s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Header d'Exécution Directe TradingView (SELL / SPREAD / BUY) */
.tv-execution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0b0f19;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
}

.tv-execution-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tv-quote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    min-width: 120px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.tv-quote-btn.sell {
    background: #dc2626;
    color: #ffffff;
}

.tv-quote-btn.sell:hover {
    background: #ef4444;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.7);
    transform: translateY(-1px);
}

.tv-quote-btn.buy {
    background: #2563eb;
    color: #ffffff;
}

.tv-quote-btn.buy:hover {
    background: #3b82f6;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.7);
    transform: translateY(-1px);
}

.tv-quote-price {
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.tv-quote-label {
    font-size: 0.65rem;
    opacity: 0.85;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.tv-spread-pill {
    padding: 0.25rem 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.tv-indicator-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-cyan);
}

/* Watchlist Latérale Style TradingView */
.tv-watchlist-table {
    width: 100%;
    border-collapse: collapse;
}

.tv-watchlist-table th {
    text-align: left;
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tv-watchlist-row {
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.tv-watchlist-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tv-watchlist-row.active {
    background: rgba(14, 165, 233, 0.12);
    border-left: 3px solid var(--color-cyan);
}

.tv-watchlist-row td {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Grille de Performance Historique TradingView */
.tv-perf-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.tv-perf-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 0.45rem 0.5rem;
    text-align: center;
}

.tv-perf-box-val {
    font-size: 0.85rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.tv-perf-box-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Badge Live WebSocket */
.badge-live-pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 9999px;
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 700;
}

.live-dot-ping {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pingDot 1.2s infinite ease-in-out;
}

@keyframes pingDot {
    0%, 100% { transform: scale(0.85); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* ==========================================================================
   RUBAN DÉFILANT BOURSES MONDIALES / WALL STREET TICKER TAPE (CNBC STYLE)
   ========================================================================== */

/* Top Dual Ticker Tape Container */
.top-dual-ticker-tape {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    background: #060913;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    flex-direction: column;
}

.wallstreet-ticker-tape {
    width: 100%;
    height: 28px;
    background: #060913;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    font-size: 0.74rem;
}

.wallstreet-ticker-tape.ticker-row-stocks {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(8, 12, 22, 0.98);
}

.wallstreet-ticker-tape.ticker-row-crypto {
    background: rgba(6, 9, 17, 0.98);
}

.ticker-tape-badge {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.64rem;
    letter-spacing: 0.6px;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
}

.ticker-tape-badge.badge-wallstreet {
    background: linear-gradient(135deg, #0284c7, #0369a1);
}

.ticker-tape-badge.badge-crypto-top {
    background: linear-gradient(135deg, #b45309, #d97706);
}

.ticker-tape-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-tape-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marqueeTape 45s linear infinite;
    will-change: transform;
}

.ticker-tape-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeTape {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tape-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.tape-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.tape-flag {
    font-size: 0.9rem;
}

.tape-symbol {
    font-weight: 800;
    color: var(--text-main);
    font-size: 0.78rem;
}

.tape-price {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #e2e8f0;
    font-size: 0.78rem;
}

.tape-change {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    font-weight: 700;
}

/* ==========================================================================
   OPTION 1 : MODE MENTOR & ACADÉMIE DE TRADING ASSISTÉE (EXPLAIN & ACT)
   ========================================================================== */
.mentor-modal-card {
    max-width: 980px !important;
    width: 95% !important;
    background: linear-gradient(180deg, #111827 0%, #0b0f19 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(16, 185, 129, 0.15) !important;
}

.mentor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mentor-card {
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

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

.mentor-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.mentor-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-subtle);
}

.mentor-concept-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 9999px;
    background: rgba(14, 165, 233, 0.15);
    color: var(--color-cyan);
    border: 1px solid rgba(14, 165, 233, 0.3);
    margin-top: 0.2rem;
    display: inline-block;
}

.mentor-explanation-text {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.mentor-metric-strip {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--color-emerald);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mentor-lesson-box {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 1px solid rgba(147, 51, 234, 0.35);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.mentor-lesson-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #f3e8ff;
    margin-bottom: 0.4rem;
}

.mentor-practice-card {
    background: rgba(6, 78, 59, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.45);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    margin-bottom: 1.25rem;
}

.practice-metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin: 0.85rem 0;
}

.practice-metric-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    text-align: center;
}

.practice-metric-item span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.2rem;
}

.practice-metric-item strong {
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.btn-mentor-execute {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-mentor-execute:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.mentor-qa-box {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.mentor-qa-input-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.mentor-qa-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
    color: var(--text-main);
    font-size: 0.85rem;
}

.mentor-qa-input:focus {
    outline: none;
    border-color: var(--color-emerald);
}

.btn-mentor-trigger {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(14, 165, 233, 0.18) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 5px 11px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-mentor-trigger:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(14, 165, 233, 0.3) 100%);
    border-color: #34d399;
    color: #fff;
    transform: translateY(-1px);
}

.badge-armed-live {
    animation: armedPulse 2s infinite ease-in-out;
}

@keyframes armedPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(0.98); }
}

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

/* ==========================================================================
   PERFORMANCE & SCROLL ACCELERATION (60fps / 120fps ProMotion)
   ========================================================================== */
html, body {
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
}

.page-view,
.sentinel-cockpit-section,
.inbox-proposals-grid,
#alpacaPositionsContainer,
.orders-history-card,
#autogenDebateContainer,
.simply-snowflake-card,
.reports-tab-content,
.backtest-tab-content {
    content-visibility: auto;
    contain-intrinsic-size: 1px 700px;
}

.order-simple-item,
.proposal-ticket,
.sentinel-card,
.asset-card {
    will-change: auto;
    contain: layout style paint;
}

/* Base Global Allocation Bar inside Capital Summary Card */
.global-allocation-bar-container {
    grid-column: 1 / -1;
    margin-top: 0.6rem;
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.global-alloc-strip-wrapper {
    height: 8px;
    border-radius: 999px;
    display: flex;
    overflow: hidden;
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
}

.global-alloc-seg {
    height: 100%;
    transition: width 0.4s ease;
}

.global-alloc-seg.seg-stocks { background: #0284c7; }
.global-alloc-seg.seg-crypto { background: #7c3aed; }
.global-alloc-seg.seg-cash { background: #10b981; }

.global-alloc-legend {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.76rem;
    flex-wrap: wrap;
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.legend-dot.dot-stocks { background: #0284c7; }
.legend-dot.dot-crypto { background: #7c3aed; }
.legend-dot.dot-cash { background: #10b981; }

/* ==========================================================================
   BOUCLIER DE HEDGING INVERSE COCKPIT (BASE)
   ========================================================================== */
.hedging-cockpit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.hedging-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hedging-status-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.hedging-subtitle-text {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.hedging-toggle-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hedging-toggle-lbl {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}

/* Switch Luxury */
.switch-luxury {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

.switch-luxury input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-luxury {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 20px;
}

.slider-luxury:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

input:checked + .slider-luxury {
    background-color: #10b981;
}

input:checked + .slider-luxury:before {
    transform: translateX(18px);
}

.btn-hedging-action {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-hedging-action.manual-trigger {
    background: rgba(14, 165, 233, 0.15);
    color: #0284c7;
    border: 1px solid rgba(14, 165, 233, 0.35);
}

.btn-hedging-action.manual-trigger:hover {
    background: rgba(14, 165, 233, 0.25);
}

.btn-hedging-action.unwind-trigger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn-hedging-action.unwind-trigger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-hedging-action.guide-trigger {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.btn-hedging-action.guide-trigger:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
    transform: translateY(-1px);
}

/* Quick Pills Bar under Hedging Header */
.hedging-quick-pills-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.55rem 0.85rem;
}

body.theme-clean-light .hedging-quick-pills-bar {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.h-pill-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.76rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

body.theme-clean-light .h-pill-item {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}

.h-pill-item:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.h-pill-icon {
    font-size: 0.9rem;
}

.h-pill-txt strong {
    color: var(--text-primary);
}

body.theme-clean-light .h-pill-txt strong {
    color: #0f172a;
}

.h-pill-info-link {
    margin-left: auto;
    background: none;
    border: none;
    color: #10b981;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.h-pill-info-link:hover {
    background: rgba(16, 185, 129, 0.12);
    text-decoration: underline;
}

/* Hedging Guide Modal Internal Boxes */
.h-guide-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.15rem;
    transition: all 0.2s ease;
}

body.theme-clean-light .h-guide-box {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

.h-guide-box:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.h-guide-box-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.h-guide-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Grid & Explanation - 50/50 Uniform Symmetrical Split */
.hedging-body-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 1rem;
}

@media (max-width: 900px) {
    .hedging-body-grid {
        grid-template-columns: 1fr;
    }
}

.hedging-explanation-box {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hedging-exp-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.hedging-timestamp {
    font-size: 0.68rem;
    opacity: 0.7;
    font-family: var(--font-mono);
}

.hedging-exp-text {
    font-size: 0.82rem;
    line-height: 1.4;
    font-weight: 500;
}

.hedging-stats-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.h-stat-box {
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.h-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.h-stat-val {
    font-size: 0.98rem;
    font-weight: 800;
}

/* ==========================================================================
   COPILOT DRAWER & CHAT LOOK ENHANCEMENTS (LUXURY EXECUTIVE SUITE)
   ========================================================================== */
.copilot-messages-container {
    background: #080d16 !important;
    color: #f8fafc !important;
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 1.15rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.95rem !important;
}

.copilot-drawer-header {
    background: linear-gradient(135deg, #181d24 0%, #0d1016 100%) !important;
    border-bottom: 2px solid #d4af37 !important;
    padding: 1.15rem 1.35rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.copilot-avatar-ring {
    position: relative !important;
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0 !important;
}

.copilot-avatar-img {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #d4af37 !important;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.45) !important;
    display: block !important;
}

.copilot-avatar-ping {
    position: absolute !important;
    bottom: 1px !important;
    right: 1px !important;
    width: 11px !important;
    height: 11px !important;
    background: #10b981 !important;
    border: 2px solid #0d1016 !important;
    border-radius: 50% !important;
}

.copilot-title-text {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background: linear-gradient(135deg, #ffffff 15%, #fef08a 60%, #dfba73 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: -0.3px !important;
    line-height: 1.25 !important;
}

.copilot-badge-gold {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(197, 160, 89, 0.15)) !important;
    border: 1.2px solid rgba(212, 175, 55, 0.55) !important;
    color: #fef08a !important;
    font-size: 0.68rem !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2) !important;
    display: inline-block !important;
}

.copilot-subtitle-text {
    font-size: 0.74rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    margin-top: 3px !important;
    letter-spacing: 0.1px !important;
}

.btn-copilot-header-action,
.btn-copilot-header-close {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #dfba73 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
}

.btn-copilot-header-action:hover,
.btn-copilot-header-close:hover {
    background: rgba(212, 175, 55, 0.2) !important;
    border-color: #d4af37 !important;
    color: #ffffff !important;
    transform: scale(1.06) !important;
}

.copilot-welcome-card {
    background: rgba(14, 20, 32, 0.95) !important;
    border: 1px solid rgba(197, 160, 89, 0.35) !important;
    border-radius: 14px !important;
    padding: 1.25rem !important;
    color: #cbd5e1 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.copilot-action-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
    margin-top: 1rem !important;
}

.copilot-quick-tile {
    background: rgba(18, 26, 40, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 0.85rem !important;
    cursor: pointer !important;
    transition: all 0.22s ease !important;
    display: flex !important;
    gap: 0.65rem !important;
    align-items: flex-start !important;
    text-align: left !important;
}

.copilot-quick-tile:hover {
    background: rgba(26, 36, 56, 0.95) !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45) !important;
}

.tile-icon-badge {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    flex-shrink: 0 !important;
}

.tile-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
    min-width: 0 !important;
}

.tile-content strong {
    font-size: 0.82rem !important;
    color: #f8fafc !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.tile-content span {
    font-size: 0.7rem !important;
    color: #94a3b8 !important;
    line-height: 1.35 !important;
}

.copilot-quick-tile:hover .tile-content strong {
    color: #fef08a !important;
}

.copilot-grounding-banner {
    background: #0d131f !important;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2) !important;
    color: #94a3b8 !important;
}

.copilot-quick-prompts-bar {
    background: #0a0f1a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 0.7rem 1.1rem !important;
    display: flex !important;
    gap: 0.5rem !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    scrollbar-width: thin !important;
}

.btn-copilot-pill {
    background: rgba(18, 26, 42, 0.95) !important;
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    color: #e2e8f0 !important;
    border-radius: 999px !important;
    padding: 7px 14px !important;
    font-size: 0.77rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.42rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.btn-copilot-pill:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(197, 160, 89, 0.12)) !important;
    border-color: #d4af37 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3) !important;
}

.copilot-input-container {
    background: #080d16 !important;
    border-top: 1.5px solid rgba(197, 160, 89, 0.35) !important;
    padding: 0.85rem 1.25rem 1.25rem !important;
    flex-shrink: 0 !important;
}

.copilot-input-box {
    background: rgba(14, 20, 32, 0.95) !important;
    border: 1.5px solid rgba(197, 160, 89, 0.32) !important;
    border-radius: 14px !important;
    padding: 0.75rem 0.95rem !important;
    transition: all 0.22s ease !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
}

.copilot-input-box:focus-within {
    border-color: #d4af37 !important;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.35) !important;
    background: rgba(18, 26, 42, 0.98) !important;
}

.copilot-textarea {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    color: #f8fafc !important;
    font-size: 0.9rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    resize: none !important;
    outline: none !important;
    line-height: 1.45 !important;
    min-height: 44px !important;
    max-height: 120px !important;
    box-sizing: border-box !important;
}

.copilot-textarea::placeholder {
    color: #64748b !important;
    font-style: italic !important;
}

.copilot-input-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 0.45rem !important;
    padding-top: 0.45rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.copilot-input-tags {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
}

.copilot-tag-live {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #10b981 !important;
    font-family: var(--font-mono) !important;
}

.copilot-tag-cro {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #dfba73 !important;
}

.btn-copilot-send {
    background: linear-gradient(135deg, #d4af37, #9e7732) !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 7px 16px !important;
    font-weight: 800 !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    transition: all 0.2s ease !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.btn-copilot-send:hover {
    transform: scale(1.04) !important;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.55) !important;
}

.copilot-assistant-bubble {
    background: rgba(14, 20, 32, 0.9) !important;
    border: 1px solid rgba(197, 160, 89, 0.22) !important;
    color: #e2e8f0 !important;
    border-radius: 14px 14px 14px 2px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

/* ==========================================================================
   PROP-FIRM CALCULATOR & BEGINNER PEDAGOGY SUITE
   ========================================================================== */
.fin-metric-tile {
    background: rgba(14, 20, 32, 0.85) !important;
    border: 1px solid rgba(197, 160, 89, 0.22) !important;
    border-radius: var(--radius-md) !important;
    padding: 1.25rem !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

.fin-metric-tile.highlight-emerald {
    border: 1.5px solid rgba(16, 185, 129, 0.5) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(14, 20, 32, 0.95)) !important;
}

.fin-tile-label {
    font-size: 0.74rem !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
}

.fin-tile-val {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    margin: 0.35rem 0 !important;
}

.fin-tile-sub {
    font-size: 0.76rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.fin-verdict-pill {
    font-size: 0.68rem !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    background: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
    font-weight: 800 !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.prop-calculator-card {
    background: rgba(14, 20, 32, 0.95) !important;
    border: 1.5px solid rgba(197, 160, 89, 0.35) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.65rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.prop-calc-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2) !important;
    padding-bottom: 1.15rem !important;
    margin-bottom: 1.25rem !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

.prop-calc-title {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #fef08a !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    margin: 0 !important;
}

.prop-calc-desc {
    font-size: 0.82rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    margin-top: 0.25rem !important;
    display: block !important;
}

.prop-status-mode-pill {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    padding: 3px 10px !important;
    border-radius: 999px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.prop-status-mode-pill.is-challenge {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fef08a !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
}

.prop-status-mode-pill.is-free {
    background: rgba(14, 165, 233, 0.2) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(14, 165, 233, 0.5) !important;
}

.btn-prop-mode-toggle {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(197, 160, 89, 0.1)) !important;
    border: 1.5px solid #d4af37 !important;
    color: #fef08a !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    transition: all 0.2s ease !important;
}

.btn-prop-mode-toggle:hover {
    background: linear-gradient(135deg, #d4af37, #9e7732) !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4) !important;
}

.prop-switch-group {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    background: rgba(18, 26, 42, 0.95) !important;
    padding: 3px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.prop-switch-label {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    padding: 0 6px !important;
}

.btn-tier-select,
.btn-split-select {
    border: none !important;
    padding: 4px 10px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    background: transparent !important;
    color: #cbd5e1 !important;
    transition: all 0.18s ease !important;
}

.btn-tier-select.active,
.btn-split-select.active {
    background: linear-gradient(135deg, #d4af37, #9e7732) !important;
    color: #000000 !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3) !important;
}

.prop-mode-banner {
    background: rgba(18, 26, 42, 0.85) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.9rem 1.25rem !important;
    margin-bottom: 1.25rem !important;
}

.prop-gauges-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.25rem !important;
    margin-bottom: 1.25rem !important;
}

.prop-gauge-box {
    background: rgba(18, 26, 42, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-md) !important;
    padding: 1.25rem !important;
}

.gauge-title {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
}

.gauge-progress-track {
    width: 100% !important;
    height: 10px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    margin-bottom: 0.55rem !important;
}

.gauge-progress-fill {
    height: 100% !important;
    border-radius: 999px !important;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.gauge-progress-fill.emerald {
    background: linear-gradient(90deg, #10b981, #0ea5e9) !important;
}

.gauge-progress-fill.rose {
    background: #ef4444 !important;
}

.gauge-progress-fill.amber {
    background: #f59e0b !important;
}

.gauge-footer-stats {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 0.76rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

.prop-payout-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(14, 20, 32, 0.95) 100%) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
    border-radius: var(--radius-md) !important;
    padding: 1.25rem 1.5rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.prop-beginner-guide-card {
    background: rgba(18, 26, 42, 0.95) !important;
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    border-radius: var(--radius-md) !important;
    padding: 1.35rem !important;
}

.beginner-guide-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 0.85rem !important;
    margin-bottom: 1rem !important;
}

.beginner-steps-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1rem !important;
    margin-bottom: 1.25rem !important;
}

.beginner-step-box {
    background: rgba(14, 20, 32, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    padding: 1rem !important;
    display: flex !important;
    gap: 0.75rem !important;
    align-items: flex-start !important;
}

.beginner-step-box.warning {
    border-color: rgba(239, 68, 68, 0.35) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

.step-num {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    background: rgba(212, 175, 55, 0.25) !important;
    color: #fef08a !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.step-num.danger {
    background: rgba(239, 68, 68, 0.25) !important;
    color: #fca5a5 !important;
}

.step-info strong {
    font-size: 0.84rem !important;
    color: #f8fafc !important;
    display: block !important;
    margin-bottom: 0.25rem !important;
}

.step-info p {
    margin: 0 !important;
    font-size: 0.76rem !important;
    color: #94a3b8 !important;
    line-height: 1.45 !important;
}

.beginner-sim-strip {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    flex-wrap: wrap !important;
    background: rgba(10, 15, 26, 0.95) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px !important;
}

.btn-quick-gain-sim {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-quick-gain-sim.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(14, 165, 233, 0.15)) !important;
    border-color: #10b981 !important;
    color: #34d399 !important;
}

.quick-sim-result {
    font-size: 0.82rem !important;
    color: #f8fafc !important;
    margin-left: auto !important;
}

.quick-sim-result strong {
    color: #10b981 !important;
    font-size: 0.95rem !important;
}

/* ==========================================================================
   SECTION: SCREENER & SÉLECTEUR IA (AI4FINANCE DISCOVERY) & ONBOARDING
   ========================================================================== */
.filter-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    outline: none;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}

.filter-chip.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(168, 85, 247, 0.25));
    border-color: #38bdf8;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    margin-left: 6px;
    line-height: 1;
}

.filter-chip.active .tab-badge {
    background: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.ai-onboarding-banner {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(49, 46, 129, 0.4) 50%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 14px;
    padding: 1.15rem 1.6rem;
    margin: 0.85rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
}

.btn-ai-onboarding {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
    background-size: 200% 200%;
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 6px 22px rgba(168, 85, 247, 0.45);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-appearance: none;
    appearance: none;
    white-space: nowrap;
}

.btn-ai-onboarding:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.65);
    background-position: right center;
}

.btn-ai-onboarding:active {
    transform: translateY(0) scale(0.98);
}

/* Screener Search Input */
.screener-search-input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    color: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
    width: 260px;
}

.screener-search-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
    background: rgba(15, 23, 42, 0.95);
    width: 300px;
}

/* AI Screener Cards (Ultra-Spacious & Readable) */
.ai-screener-card {
    background: linear-gradient(180deg, rgba(23, 32, 54, 0.88) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.ai-screener-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.ai-screener-card.in-portfolio {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.12);
}

/* ==========================================================================
   TABLEAU DE BORD INDICATEURS TRADER & SANTÉ FINANCIÈRE (AVEC BULLES INFO)
   ========================================================================== */
.trader-metrics-card {
    background: linear-gradient(145deg, rgba(23, 32, 54, 0.9), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    margin-top: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.trader-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.trader-metric-cell {
    background: rgba(10, 16, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.trader-metric-cell:hover {
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.metric-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.metric-title-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.metric-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.metric-info-btn:hover .metric-tooltip-box,
.metric-info-btn.active .metric-tooltip-box,
.metric-tooltip-box.force-show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.metric-tooltip-box {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 26px;
    right: -10px;
    width: 270px;
    background: #0b1329;
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75);
    border-radius: 10px;
    padding: 0.85rem 0.95rem;
    color: #f1f5f9;
    font-size: 0.76rem;
    line-height: 1.45;
    z-index: 999999;
    pointer-events: none;
    transform: translateY(6px);
    transition: all 0.2s ease;
    text-align: left;
}

.metric-tooltip-box strong {
    color: #38bdf8;
    display: block;
    margin-bottom: 4px;
    font-size: 0.82rem;
}

.metric-val-large {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.35rem;
    letter-spacing: 0.2px;
}

.metric-sub-badge {
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    width: fit-content;
}

/* ==========================================================================
   ✨ LOADER ÉLÉGANT INTELLIWEALTH : BASCULE DE COMPTE & SYNCHRO HAUTE-FIDÉLITÉ
   ========================================================================== */
.intelli-loader-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(6, 10, 20, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.intelli-loader-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.intelli-loader-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(10, 15, 30, 0.98));
    border: 1px solid rgba(245, 215, 127, 0.35);
    border-radius: 20px;
    padding: 2.2rem 2.8rem;
    width: 440px;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(245, 158, 11, 0.15);
    transform: scale(0.92) translateY(10px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.intelli-loader-overlay.active .intelli-loader-card {
    transform: scale(1) translateY(0);
}

.intelli-loader-orb {
    position: relative;
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.intelli-loader-spinner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 0deg, transparent 0%, #f59e0b 25%, #06b6d4 50%, #8b5cf6 75%, transparent 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 0);
    animation: intelliSpin 1.2s linear infinite;
}

@keyframes intelliSpin {
    to { transform: rotate(360deg); }
}

.intelli-loader-logo {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 215, 127, 0.2) 0%, rgba(15, 23, 42, 0.9) 70%);
    border: 1px solid rgba(245, 215, 127, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    animation: intelliPulse 2s ease-in-out infinite;
}

@keyframes intelliPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(245, 158, 11, 0.25); }
    50% { transform: scale(1.06); box-shadow: 0 0 30px rgba(245, 158, 11, 0.5); }
}

.intelli-loader-brand {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ffffff 30%, #f5d77f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.intelli-loader-tagline {
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.2em;
    margin-top: -0.6rem;
}

.intelli-loader-account-box {
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.intelli-loader-badge {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.intelli-loader-target-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
}

.intelli-loader-details {
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: var(--font-mono);
}

.intelli-loader-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    margin-top: 0.3rem;
}

.intelli-loader-progress-fill {
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #06b6d4, #8b5cf6);
    border-radius: 999px;
    transition: width 0.35s ease;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

.intelli-loader-step {
    font-size: 0.78rem;
    color: #cbd5e1;
    font-style: italic;
    min-height: 1.2rem;
}

/* ==========================================================================
   INTELLIWEALTH LUXURY ONBOARDING & STRATEGY SETUP WIZARD
   ========================================================================== */

.onboarding-wizard-card {
    position: relative;
    box-sizing: border-box;
    animation: wizardCardEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wizardCardEnter {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.onboarding-stepper {
    position: relative;
}

.onboarding-stepper::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.wizard-step-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-step-node .step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.wizard-step-node .step-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    transition: color 0.2s ease;
    text-align: center;
}

.wizard-step-node.active .step-circle {
    background: linear-gradient(135deg, #d4af37, #f5d77f);
    border-color: #fef08a;
    color: #0b0f19;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.6);
    transform: scale(1.08);
}

.wizard-step-node.active .step-label {
    color: #f5d77f;
}

.wizard-step-node.completed .step-circle {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

.wizard-step-node.completed .step-label {
    color: #cbd5e1;
}

.wizard-pane {
    display: none;
    animation: paneFade 0.25s ease;
}

.wizard-pane.active {
    display: block;
}

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

.wizard-strategy-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.wizard-strategy-card:hover {
    background: rgba(212, 175, 55, 0.06);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.wizard-strategy-card.selected {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.14) 0%, rgba(245, 215, 127, 0.04) 100%);
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.wizard-pack-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-pack-card:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.wizard-pack-card.active {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.12);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.wizard-asset-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 4px 9px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f1f5f9;
}

.wizard-asset-tag.crypto {
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.wizard-asset-tag .tag-remove {
    cursor: pointer;
    color: #94a3b8;
    font-weight: bold;
}

.wizard-asset-tag .tag-remove:hover {
    color: #ef4444;
}





