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

.correlation-details {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.correlation-details p {
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 14px;
}

.correlation-details p:first-child {
    font-weight: bold;
    color: #2c3e50;
}

.error-message {
    color: #c47a6a;
    padding: 15px;
    background-color: #f8d7da;
    border-radius: 4px;
    margin: 10px 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TEST MODE - Orange pulsing glow to highlight changed components
   ═══════════════════════════════════════════════════════════════════════════════ */

@keyframes test-mode-glow {
    0%, 100% { 
        box-shadow: inset 0 0 3px rgba(196, 164, 106, 0.1); 
    }
    50% { 
        box-shadow: inset 0 0 8px rgba(196, 164, 106, 0.2); 
    }
}

.test-mode-highlight {
    animation: test-mode-glow 2s ease-in-out infinite !important;
    border: 2px solid #c4a46a !important;
    border-radius: 8px !important;
}

/* Test mode dropdown styling */
.test-mode-dropdown .Select-control {
    background-color: #15272a !important;
    border-color: #c4a46a !important;
}

.test-mode-dropdown .Select-value-label {
    color: #def1f3 !important;
}

.test-mode-dropdown .Select-menu-outer {
    background-color: #15272a !important;
    border-color: #335e62 !important;
}

.test-mode-dropdown .Select-option {
    background-color: #15272a !important;
    color: #def1f3 !important;
}

.test-mode-dropdown .Select-option:hover {
    background-color: #c4a46a !important;
    color: #000 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   EXTREME ALERT - Red pulsing glow for severe disruptions
   Used when: bullish_pct >= 80% (Price Outlook) or risk_score >= 80 (Supply Risk)
   ═══════════════════════════════════════════════════════════════════════════════ */

@keyframes extreme-alert-glow {
    0%, 100% { 
        box-shadow: inset 0 0 4px rgba(196, 122, 106, 0.15); 
    }
    50% { 
        box-shadow: inset 0 0 10px rgba(196, 122, 106, 0.25); 
    }
}

.extreme-alert-pulse {
    animation: extreme-alert-glow 1.5s ease-in-out infinite !important;
    border: 2px solid #c47a6a !important;
    border-radius: 8px !important;
}

/* Supply Risk card extreme state */
.supply-risk-extreme {
    animation: extreme-alert-glow 1.5s ease-in-out infinite !important;
    border: 2px solid #b06858 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, rgba(176, 104, 88, 0.15) 0%, rgba(6, 12, 14, 0.95) 100%) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ALERT ACKNOWLEDGED - Subtle static border after user acknowledges alert
   Replaces aggressive pulsing animation with a calm visual reminder
   ═══════════════════════════════════════════════════════════════════════════════ */

.alert-acknowledged {
    border: 1px solid rgba(196, 122, 106, 0.3) !important;
    border-radius: 8px !important;
    /* No animation - static subtle reminder that alert was active */
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BLACK SWAN ALERT - Full dashboard red flash for catastrophic events
   Triggered when: Multiple critical chokepoints, risk_score >= 95, or 5+ critical events
   ═══════════════════════════════════════════════════════════════════════════════ */

@keyframes black-swan-flash {
    0%, 100% { 
        box-shadow: inset 0 0 0 0 rgba(176, 104, 88, 0), 0 0 0 0 rgba(176, 104, 88, 0);
        border-color: rgba(176, 104, 88, 0.4);
    }
    50% { 
        box-shadow: inset 0 0 150px 30px rgba(176, 104, 88, 0.12);
        border-color: rgba(176, 104, 88, 0.9);
    }
}

.black-swan-alert {
    animation: black-swan-flash 1.2s ease-in-out infinite !important;
    border: 4px solid #b06858 !important;
    border-radius: 12px !important;
    position: relative;
}

/* Black Swan urgent banner at top */
.black-swan-banner {
    background: linear-gradient(90deg, #b06858 0%, #9a5a4c 50%, #b06858 100%);
    background-size: 200% 100%;
    animation: black-swan-banner-slide 2s ease-in-out infinite;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 20px;
    text-align: center;
    font-size: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(176, 104, 88, 0.5);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Black Swan banner dismiss button hover */
.black-swan-banner button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Show AI tooltip on banner hover */
.black-swan-banner:hover + #black-swan-ai-tooltip,
#black-swan-ai-tooltip:hover {
    display: block !important;
}

@keyframes black-swan-banner-slide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RISK COLLAPSE - Green pulsing glow for major de-escalation events
   Triggered when: Multiple confirmed de-escalation events cause risk to plummet
   Mirrors Black Swan (red) but uses green to signal de-escalation
   ═══════════════════════════════════════════════════════════════════════════════ */

@keyframes risk-collapse-glow {
    0%, 100% {
        box-shadow: inset 0 0 0 0 rgba(124, 180, 185, 0), 0 0 0 0 rgba(124, 180, 185, 0);
        border-color: rgba(124, 180, 185, 0.4);
    }
    50% {
        box-shadow: inset 0 0 100px 20px rgba(124, 180, 185, 0.08);
        border-color: rgba(124, 180, 185, 0.9);
    }
}

.risk-collapse-alert {
    animation: risk-collapse-glow 1.5s ease-in-out infinite !important;
    border: 3px solid #7cb4b9 !important;
    border-radius: 12px !important;
    position: relative;
}

/* Risk Collapse urgent banner at top */
.risk-collapse-banner {
    background: linear-gradient(90deg, #5f8f93 0%, #376f75 50%, #5f8f93 100%);
    background-size: 200% 100%;
    animation: risk-collapse-banner-slide 2s ease-in-out infinite;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 20px;
    text-align: center;
    font-size: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(124, 180, 185, 0.5);
    position: relative;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Risk Collapse banner dismiss button hover */
.risk-collapse-banner button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Show AI tooltip on Risk Collapse banner hover */
.risk-collapse-banner:hover + #risk-collapse-ai-tooltip,
#risk-collapse-ai-tooltip:hover {
    display: block !important;
}

@keyframes risk-collapse-banner-slide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Acknowledged state for Risk Collapse - subtle green border */
.deescalation-acknowledged {
    border: 1px solid rgba(124, 180, 185, 0.3) !important;
    border-radius: 8px !important;
    /* No animation - static subtle reminder */
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RISK ALERT MODAL - Popup that shows on page load when risk is elevated
   ═══════════════════════════════════════════════════════════════════════════════ */

#risk-alert-modal {
    animation: risk-alert-slide-in 0.3s ease-out;
}

@keyframes risk-alert-slide-in {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

#risk-alert-backdrop {
    animation: risk-alert-fade-in 0.2s ease-out;
}

@keyframes risk-alert-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Risk alert event list scrollbar styling */
#risk-alert-events::-webkit-scrollbar {
    width: 6px;
}

#risk-alert-events::-webkit-scrollbar-track {
    background: rgba(21, 39, 42, 0.5);
    border-radius: 3px;
}

#risk-alert-events::-webkit-scrollbar-thumb {
    background: #3a6a70;
    border-radius: 3px;
}

#risk-alert-events::-webkit-scrollbar-thumb:hover {
    background: #6795a3;
}

/* Risk alert button hover effects */
#risk-alert-acknowledge-btn:hover {
    background-color: #5f8f93 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 180, 185, 0.3);
}

#risk-alert-email-btn:hover {
    background-color: #376f75 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(95, 143, 147, 0.3);
}

#risk-alert-dismiss-btn:hover {
    background-color: rgba(51, 94, 98, 0.5) !important;
    border-color: #3a6a70 !important;
}

/* Notification status indicator tooltip */
#notif-status-container:hover #notif-status-tooltip {
    display: block !important;
}

#notif-status-icon {
    transition: color 0.2s ease;
}

#notif-status-container:hover #notif-status-icon {
    color: #5f8f93 !important;
}

/* Pulsing circle for critical events on map */
@keyframes map-pulse-critical {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1.0;
    }
}

.map-critical-pulse {
    animation: map-pulse-critical 1.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   QDT QUANTUM COMMAND CENTER - Neon Terminal Aesthetic
   A high-end trading terminal inspired by quantum computing visualizations
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Fonts imported at top of file (CSS spec requires @import before all rules) */

/* CSS Variables for the neon theme */
.qdt-quantum-page {
    --qdt-bg-deep: var(--brand-bg-deep);
    --qdt-bg-space: var(--brand-bg-page);
    --qdt-bg-panel: var(--brand-bg-panel);
    --qdt-bg-card: var(--brand-bg-card);
    --qdt-bg-elevated: var(--brand-bg-card-mid);

    --qdt-neon-cyan: var(--brand-accent);
    --qdt-neon-magenta: var(--brand-text-secondary);
    --qdt-neon-gold: var(--brand-sand);
    --qdt-neon-green: var(--brand-up);
    --qdt-neon-red: var(--brand-rust);
    --qdt-neon-purple: var(--brand-text-secondary);

    --qdt-text-primary: var(--brand-text-bright);
    --qdt-text-secondary: var(--brand-text-body);
    --qdt-text-muted: var(--brand-text-tertiary);

    --qdt-border-subtle: rgba(144, 191, 196, 0.1);
    --qdt-border-glow: rgba(117, 174, 178, 0.3);

    --qdt-font-display: var(--brand-font-sans);
    --qdt-font-mono: var(--brand-font-mono);

    font-family: var(--qdt-font-display);
    background: linear-gradient(180deg, var(--qdt-bg-deep) 0%, var(--qdt-bg-space) 50%, #05090a 100%);
    min-height: 100vh;
    color: var(--qdt-text-primary);
    position: relative;
    overflow-x: hidden;
}

/* Starfield background effect */
.qdt-quantum-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.15), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(117,174,178,0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.1), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(111,168,184,0.08), transparent),
        radial-gradient(1px 1px at 230px 80px, rgba(255,255,255,0.12), transparent),
        radial-gradient(2px 2px at 300px 160px, rgba(117,174,178,0.08), transparent);
    background-size: 350px 200px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* Subtle grid overlay */
.qdt-quantum-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(117, 174, 178, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(117, 174, 178, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.qdt-quantum-page > * {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   COMMAND CENTER HEADER - Compact controls with status
   ═══════════════════════════════════════════════════════════════════════════════ */

.qdt-command-header {
    background: linear-gradient(135deg, rgba(5, 9, 10, 0.95) 0%, rgba(4, 14, 14, 0.98) 100%);
    border-bottom: 1px solid var(--qdt-border-glow);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(117, 174, 178, 0.1) inset;
}

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

.qdt-logo-icon {
    width: 48px;
    height: 48px;
    position: relative;
}

.qdt-logo-icon::before {
    content: '⚛';
    font-size: 36px;
    filter: drop-shadow(0 0 10px var(--qdt-neon-cyan)) drop-shadow(0 0 20px var(--qdt-neon-magenta));
    animation: qdt-logo-pulse 3s ease-in-out infinite;
}

@keyframes qdt-logo-pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.qdt-logo-text {
    font-family: var(--qdt-font-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, var(--qdt-neon-cyan), var(--qdt-neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(117, 174, 178, 0.3));
}

.qdt-logo-subtitle {
    font-size: 11px;
    color: var(--qdt-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Control group */
.qdt-controls-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.qdt-control-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qdt-control-label {
    font-size: 10px;
    color: var(--qdt-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.qdt-control-item .Select-control,
.qdt-control-item select {
    background: var(--qdt-bg-elevated) !important;
    border: 1px solid var(--qdt-border-glow) !important;
    border-radius: 8px !important;
    min-width: 120px;
    font-family: var(--qdt-font-mono) !important;
    font-size: 13px !important;
}

/* Action buttons */
.qdt-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.qdt-btn {
    font-family: var(--qdt-font-mono);
    font-size: 12px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qdt-btn-fast {
    background: linear-gradient(135deg, #7cb4b9 0%, #7cb4b9 100%);
    color: #020505;
    box-shadow: none;
}

.qdt-btn-fast:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.qdt-btn-full {
    background: linear-gradient(135deg, #75aeb2 0%, #6fa8b8 100%);
    color: #020505;
    box-shadow: none;
}

.qdt-btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.qdt-btn-all {
    background: linear-gradient(135deg, #c4a46a 0%, #c4886a 100%);
    color: #020505;
    box-shadow: none;
}

.qdt-btn-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Status indicator */
.qdt-status-bar {
    font-family: var(--qdt-font-mono);
    font-size: 11px;
    color: var(--qdt-text-secondary);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid var(--qdt-border-subtle);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HERO SIGNAL CARD - The centerpiece showing current prediction
   ═══════════════════════════════════════════════════════════════════════════════ */

.qdt-hero-signal {
    background: linear-gradient(135deg, rgba(4, 14, 14, 0.95) 0%, rgba(7, 24, 24, 0.98) 100%);
    border: 2px solid var(--qdt-border-glow);
    border-radius: 16px;
    padding: 24px 32px;
    margin: 20px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4);
}

.qdt-hero-signal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--qdt-neon-cyan), var(--qdt-neon-magenta), transparent);
    animation: qdt-scan-line 3s linear infinite;
}

@keyframes qdt-scan-line {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

.qdt-hero-signal.bullish {
    border-color: var(--qdt-neon-green);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 80px rgba(124, 180, 185, 0.03);
}

.qdt-hero-signal.bearish {
    border-color: var(--qdt-neon-red);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 80px rgba(196, 122, 106, 0.03);
}

.qdt-hero-signal.neutral {
    border-color: var(--qdt-neon-gold);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 80px rgba(196, 164, 106, 0.02);
}

.qdt-signal-direction {
    text-align: center;
}

.qdt-signal-arrow {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 20px currentColor);
}

.qdt-signal-arrow.up { color: var(--qdt-neon-green); }
.qdt-signal-arrow.down { color: var(--qdt-neon-red); transform: rotate(180deg); }
.qdt-signal-arrow.flat { color: var(--qdt-neon-gold); }

.qdt-signal-label {
    font-family: var(--qdt-font-display);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.qdt-signal-label.bullish { color: var(--qdt-neon-green); }
.qdt-signal-label.bearish { color: var(--qdt-neon-red); }
.qdt-signal-label.neutral { color: var(--qdt-neon-gold); }

.qdt-signal-main {
    text-align: center;
}

.qdt-signal-value {
    font-family: var(--qdt-font-mono);
    font-size: 72px;
    font-weight: 300;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 8px;
}

.qdt-signal-value.bullish {
    color: var(--qdt-neon-green);
    text-shadow: none;
}
.qdt-signal-value.bearish {
    color: var(--qdt-neon-red);
    text-shadow: none;
}
.qdt-signal-value.neutral {
    color: var(--qdt-neon-gold);
    text-shadow: none;
}

.qdt-signal-subtitle {
    font-size: 14px;
    color: var(--qdt-text-secondary);
    font-weight: 500;
}

.qdt-signal-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qdt-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--qdt-border-subtle);
}

.qdt-meta-icon {
    font-size: 18px;
    opacity: 0.8;
}

.qdt-meta-content {
    display: flex;
    flex-direction: column;
}

.qdt-meta-label {
    font-size: 10px;
    color: var(--qdt-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qdt-meta-value {
    font-family: var(--qdt-font-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--qdt-text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TABBED NAVIGATION - Neon-styled tabs
   ═══════════════════════════════════════════════════════════════════════════════ */

.qdt-tabs-container {
    margin: 0 24px 24px 24px;
}

.qdt-tabs-nav {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--qdt-border-subtle);
    margin-bottom: 20px;
}

.qdt-tab-btn {
    font-family: var(--qdt-font-display);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--qdt-text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qdt-tab-btn:hover {
    background: rgba(117, 174, 178, 0.1);
    color: var(--qdt-text-primary);
}

.qdt-tab-btn.active {
    background: linear-gradient(135deg, rgba(117, 174, 178, 0.2) 0%, rgba(111, 168, 184, 0.2) 100%);
    color: var(--qdt-neon-cyan);
    box-shadow:
        inset 0 0 20px rgba(117, 174, 178, 0.05);
    border: 1px solid var(--qdt-border-glow);
}

.qdt-tab-icon {
    font-size: 16px;
}

.qdt-tab-content {
    display: none;
    animation: qdt-tab-fade-in 0.3s ease;
}

.qdt-tab-content.active {
    display: block;
}

@keyframes qdt-tab-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CONTENT PANELS - Elevated cards with neon accents
   ═══════════════════════════════════════════════════════════════════════════════ */

.qdt-panel {
    background: linear-gradient(135deg, var(--qdt-bg-panel) 0%, var(--qdt-bg-card) 100%);
    border: 1px solid var(--qdt-border-subtle);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    position: relative;
    transition: all 0.2s ease;
}

.qdt-panel:hover {
    border-color: rgba(117, 174, 178, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.qdt-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--qdt-border-subtle);
}

.qdt-panel-title {
    font-family: var(--qdt-font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--qdt-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.qdt-panel-title-icon {
    font-size: 20px;
    opacity: 0.8;
}

.qdt-panel-subtitle {
    font-size: 13px;
    color: var(--qdt-text-muted);
    margin-top: 4px;
}

/* KPI Grid */
.qdt-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.qdt-kpi-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--qdt-border-subtle);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.qdt-kpi-card:hover {
    border-color: var(--qdt-border-glow);
    transform: translateY(-2px);
}

.qdt-kpi-label {
    font-size: 11px;
    color: var(--qdt-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.qdt-kpi-value {
    font-family: var(--qdt-font-mono);
    font-size: 28px;
    font-weight: 500;
    color: var(--qdt-neon-cyan);
    line-height: 1.2;
}

.qdt-kpi-value.green { color: var(--qdt-neon-green); }
.qdt-kpi-value.red { color: var(--qdt-neon-red); }
.qdt-kpi-value.gold { color: var(--qdt-neon-gold); }
.qdt-kpi-value.purple { color: var(--qdt-neon-purple); }

/* Charts */
.qdt-chart-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid var(--qdt-border-subtle);
}

.qdt-graph {
    border-radius: 8px;
    overflow: hidden;
}

/* Tables */
.qdt-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--qdt-font-mono);
    font-size: 13px;
}

.qdt-table th {
    text-align: left;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--qdt-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    border-bottom: 1px solid var(--qdt-border-subtle);
}

.qdt-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--qdt-border-subtle);
    color: var(--qdt-text-primary);
}

.qdt-table tr:hover td {
    background: rgba(117, 174, 178, 0.03);
}

/* Collapsible sections */
.qdt-collapsible {
    border: 1px solid var(--qdt-border-subtle);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.qdt-collapsible-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--qdt-text-secondary);
    transition: all 0.2s ease;
}

.qdt-collapsible-header:hover {
    background: rgba(117, 174, 178, 0.05);
    color: var(--qdt-text-primary);
}

.qdt-collapsible-icon {
    transition: transform 0.2s ease;
}

.qdt-collapsible.open .qdt-collapsible-icon {
    transform: rotate(180deg);
}

.qdt-collapsible-content {
    padding: 16px 18px;
    display: none;
}

.qdt-collapsible.open .qdt-collapsible-content {
    display: block;
}

/* Progress bars */
.qdt-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
}

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

.qdt-progress-fill.green {
    background: linear-gradient(90deg, var(--qdt-neon-green), #7cb4b9);
    box-shadow: none;
}

.qdt-progress-fill.cyan {
    background: linear-gradient(90deg, var(--qdt-neon-cyan), var(--qdt-neon-purple));
    box-shadow: none;
}

.qdt-progress-fill.gold {
    background: linear-gradient(90deg, var(--qdt-neon-gold), #c4886a);
    box-shadow: none;
}

/* Trading guidance card */
.qdt-trade-card {
    background: linear-gradient(135deg, rgba(124, 180, 185, 0.05) 0%, rgba(117, 174, 178, 0.05) 100%);
    border: 1px solid rgba(124, 180, 185, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.qdt-trade-card.bearish {
    background: linear-gradient(135deg, rgba(196, 122, 106, 0.05) 0%, rgba(111, 168, 184, 0.05) 100%);
    border-color: rgba(196, 122, 106, 0.2);
}

.qdt-trade-card.neutral {
    background: linear-gradient(135deg, rgba(196, 164, 106, 0.05) 0%, rgba(196, 136, 106, 0.05) 100%);
    border-color: rgba(196, 164, 106, 0.2);
}

.qdt-trade-action {
    font-family: var(--qdt-font-mono);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
}

.qdt-trade-action.long { color: var(--qdt-neon-green); }
.qdt-trade-action.short { color: var(--qdt-neon-red); }
.qdt-trade-action.flat { color: var(--qdt-neon-gold); }

/* Chip/badge styles */
.qdt-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--qdt-border-subtle);
}

.qdt-chip.cyan {
    border-color: var(--qdt-neon-cyan);
    color: var(--qdt-neon-cyan);
}

.qdt-chip.green {
    border-color: var(--qdt-neon-green);
    color: var(--qdt-neon-green);
}

.qdt-chip.gold {
    border-color: var(--qdt-neon-gold);
    color: var(--qdt-neon-gold);
}

.qdt-chip.purple {
    border-color: var(--qdt-neon-purple);
    color: var(--qdt-neon-purple);
}

/* Muted text */
.qdt-muted {
    color: var(--qdt-text-muted);
    font-size: 13px;
}

/* Code/pre blocks */
.qdt-code {
    font-family: var(--qdt-font-mono);
    font-size: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--qdt-border-subtle);
    overflow-x: auto;
    white-space: pre-wrap;
    color: var(--qdt-text-secondary);
}

/* Quantum animation widget (compact) */
.qdt-quantum-widget {
    width: 80px;
    height: 80px;
    position: relative;
}

.qdt-quantum-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    animation: qdt-orbit 4s linear infinite;
}

.qdt-quantum-ring:nth-child(1) {
    width: 100%;
    height: 100%;
    border-color: rgba(117, 174, 178, 0.3);
    animation-duration: 4s;
}

.qdt-quantum-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-color: rgba(111, 168, 184, 0.4);
    animation-duration: 3s;
    animation-direction: reverse;
}

.qdt-quantum-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-color: rgba(111, 168, 184, 0.3);
    animation-duration: 2s;
}

.qdt-quantum-core {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--qdt-neon-cyan);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: none;
    animation: qdt-core-pulse 2s ease-in-out infinite;
}

@keyframes qdt-orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes qdt-core-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

/* Feature importance region cards */
.qdt-region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.qdt-region-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--qdt-border-subtle);
    border-radius: 10px;
    padding: 14px;
    transition: all 0.2s ease;
}

.qdt-region-card:hover {
    border-color: var(--qdt-border-glow);
    transform: translateY(-2px);
}

.qdt-region-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--qdt-neon-cyan);
}

.qdt-region-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.qdt-region-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--qdt-neon-cyan), var(--qdt-neon-purple));
    border-radius: 3px;
}

.qdt-region-value {
    font-family: var(--qdt-font-mono);
    font-size: 12px;
    color: var(--qdt-text-secondary);
}

/* Signal legend */
.qdt-signal-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.qdt-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--qdt-text-secondary);
}

.qdt-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.qdt-legend-dot.green { background: var(--qdt-neon-green); box-shadow: none; }
.qdt-legend-dot.red { background: var(--qdt-neon-red); box-shadow: none; }
.qdt-legend-dot.gold { background: var(--qdt-neon-gold); box-shadow: none; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .qdt-command-header {
        flex-direction: column;
        align-items: stretch;
    }

    .qdt-hero-signal {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .qdt-signal-value {
        font-size: 56px;
    }

    .qdt-tabs-nav {
        flex-wrap: wrap;
    }

    .qdt-tab-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}