@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');
/* ══════════════════════════════════════════════════════════════
   DARK GLASSMORPHISM THEME — Full Card System
   Direct port from tradingprofessional.py inject_elegant_card_css()
   ══════════════════════════════════════════════════════════════ */

:root {
    --bg-deep: #050a18;
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1629;
    --bg-card: rgba(15, 23, 42, 0.55);
    --bg-card-hover: rgba(15, 23, 42, 0.75);
    --glass-border: rgba(99, 102, 241, 0.12);
    --glass-glow: rgba(99, 102, 241, 0.06);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-indigo: #6366f1;
    --green: #10b981;
    --green-light: #34d399;
    --red: #ef4444;
    --red-light: #f87171;
    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --blue: #3b82f6;
    --blue-light: #93c5fd;
    --purple: #8b5cf6;
    --purple-light: #a78bfa;
    --cyan: #06b6d4;
    --pink: #ec4899;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    background: var(--bg-deep) !important;
    color: var(--text-primary);
    font-family: 'Outfit', system-ui, sans-serif;
    margin: 0; padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ══ Base Card ══ */
.ecard {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
}
.ecard:hover {
    border-color: rgba(99, 102, 241, 0.28);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.10);
    transform: translateY(-2px);
}

/* ══ Hero Card ══ */
.ecard-hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.70), rgba(30, 41, 59, 0.60));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 20px;
    padding: 36px 28px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ecard-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
}
.ecard-hero.bullish::before { background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7); }
.ecard-hero.bearish::before { background: linear-gradient(90deg, #ef4444, #f87171, #fca5a5); }
.ecard-hero .hero-icon { font-size: 52px; margin-bottom: 12px; }
.ecard-hero .hero-title {
    font-size: 1.75rem; font-weight: 800;
    letter-spacing: 2px; margin: 0 0 6px 0;
}
.ecard-hero .hero-sub {
    font-size: 0.95rem; color: rgba(148, 163, 184, 0.9); margin: 0;
}

/* ══ Metric Card ══ */
.ecard-metric {
    background: rgba(15, 23, 42, 0.50);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(99, 102, 241, 0.10);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
}
.ecard-metric::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
}
.ecard-metric:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.ecard-metric .metric-label {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: rgba(148, 163, 184, 0.85); margin-bottom: 8px;
}
.ecard-metric .metric-value {
    font-size: 1.55rem; font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 4px; line-height: 1.2;
}
.ecard-metric .metric-delta {
    font-size: 12px; font-weight: 600;
}

/* Accent colors via left border */
.ecard-metric.accent-blue::before   { background: var(--blue); }
.ecard-metric.accent-green::before  { background: var(--green); }
.ecard-metric.accent-red::before    { background: var(--red); }
.ecard-metric.accent-amber::before  { background: var(--amber); }
.ecard-metric.accent-purple::before { background: var(--purple); }
.ecard-metric.accent-cyan::before   { background: var(--cyan); }
.ecard-metric.accent-pink::before   { background: var(--pink); }

/* ══ Insight Card ══ */
.ecard-insight {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-left: 4px solid #6366f1;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 10px 0;
    transition: all 0.25s ease;
}
.ecard-insight:hover {
    background: rgba(15, 23, 42, 0.60);
    border-left-color: #818cf8;
}
.ecard-insight p {
    margin: 0; color: rgba(226, 232, 240, 0.92);
    font-size: 14px; line-height: 1.6;
}

/* ══ Badge ══ */
.ecard-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
}
.ecard-badge.bullish  { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.ecard-badge.bearish  { background: rgba(239, 68, 68, 0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.ecard-badge.neutral  { background: rgba(99, 102, 241, 0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25); }
.ecard-badge.warning  { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.ecard-badge.success  { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.ecard-badge.danger   { background: rgba(239, 68, 68, 0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }

/* ══ Section Header ══ */
.ecard-section-header {
    display: flex; align-items: center; gap: 10px;
    margin: 28px 0 16px 0; padding-bottom: 10px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}
.ecard-section-header .section-icon { font-size: 20px; }
.ecard-section-header .section-title {
    font-size: 1.1rem; font-weight: 700;
    color: rgba(226, 232, 240, 0.95);
    letter-spacing: 0.5px; margin: 0;
}

/* ══ Grid Helpers ══ */
.ecard-grid { display: grid; gap: 14px; }
.ecard-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ecard-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ecard-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ecard-grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 768px) {
    .ecard-grid-3, .ecard-grid-4, .ecard-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ecard-grid-2, .ecard-grid-3, .ecard-grid-4, .ecard-grid-5 { grid-template-columns: 1fr; }
}

/* ══ Forecast Day Card ══ */
.ecard-forecast-day {
    background: rgba(15, 23, 42, 0.50);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.10);
    border-radius: 14px;
    padding: 16px; text-align: center;
    transition: all 0.25s ease;
}
.ecard-forecast-day:hover {
    border-color: rgba(167, 139, 250, 0.3);
    transform: translateY(-2px);
}
.ecard-forecast-day .day-label {
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    color: rgba(148, 163, 184, 0.8); margin-bottom: 4px;
}
.ecard-forecast-day .day-date {
    font-size: 11px; color: rgba(148, 163, 184, 0.6); margin-bottom: 10px;
}
.ecard-forecast-day .day-price {
    font-size: 1.25rem; font-weight: 700;
    font-family: 'JetBrains Mono', monospace; margin-bottom: 4px;
}
.ecard-forecast-day .day-change {
    font-size: 12px; font-weight: 600;
}

/* ══ Trade Level Card ══ */
.ecard-trade-level {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    padding: 14px 18px; text-align: center;
    transition: all 0.2s ease;
}
.ecard-trade-level:hover { background: rgba(15, 23, 42, 0.60); }
.ecard-trade-level .level-label {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    color: rgba(148, 163, 184, 0.7); margin-bottom: 6px;
}
.ecard-trade-level .level-price {
    font-size: 1.15rem; font-weight: 700;
    font-family: 'JetBrains Mono', monospace; margin-bottom: 3px;
}
.ecard-trade-level .level-change { font-size: 12px; font-weight: 600; }

/* ══ Risk Card ══ */
.ecard-risk {
    background: rgba(15, 23, 42, 0.50);
    backdrop-filter: blur(14px);
    border-radius: 14px; padding: 18px;
    border: 1px solid rgba(99, 102, 241, 0.10);
    transition: all 0.25s ease;
}
.ecard-risk:hover { transform: translateY(-1px); }
.ecard-risk .risk-title {
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.ecard-risk .risk-value {
    font-size: 1.5rem; font-weight: 700;
    font-family: 'JetBrains Mono', monospace; margin-bottom: 4px;
}
.ecard-risk .risk-desc { font-size: 11px; color: rgba(148, 163, 184, 0.7); }

/* ══ Source Banner ══ */
.ecard-source-banner {
    backdrop-filter: blur(16px); border-radius: 14px;
    padding: 18px 24px; text-align: center;
    margin-bottom: 20px; border: 1px solid;
}
.ecard-source-banner.live {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.08));
    border-color: rgba(16, 185, 129, 0.25);
}
.ecard-source-banner.simulation {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.08));
    border-color: rgba(245, 158, 11, 0.25);
}
.ecard-source-banner h3 {
    margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: 1.5px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.ecard-source-banner.live h3 { color: #34d399; }
.ecard-source-banner.simulation h3 { color: #fbbf24; }
.ecard-source-banner p { margin: 6px 0 0 0; font-size: 13px; color: rgba(148, 163, 184, 0.8); }

/* ══ Assessment Card ══ */
.ecard-assessment {
    background: rgba(15, 23, 42, 0.50);
    backdrop-filter: blur(14px);
    border: 1px solid; border-radius: 14px;
    padding: 20px 24px; margin: 12px 0;
}
.ecard-assessment.low    { border-color: rgba(16, 185, 129, 0.3); }
.ecard-assessment.medium { border-color: rgba(245, 158, 11, 0.3); }
.ecard-assessment.high   { border-color: rgba(239, 68, 68, 0.3); }
.ecard-assessment .assessment-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.ecard-assessment.low .assessment-title    { color: #34d399; }
.ecard-assessment.medium .assessment-title { color: #fbbf24; }
.ecard-assessment.high .assessment-title   { color: #f87171; }

/* ══ Header Card ══ */
.header-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.80), rgba(30, 41, 59, 0.60));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    position: relative; overflow: hidden;
}
.header-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #8b5cf6, #6366f1);
}
.header-title {
    font-size: 1.8rem; font-weight: 800;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin: 0;
    font-family: 'Outfit', sans-serif; letter-spacing: -0.5px;
}
.header-subtitle {
    color: var(--text-muted); font-size: 0.9rem;
    font-weight: 500; margin: 4px 0 0 0;
}

/* ══ Status Card (small) ══ */
.status-card {
    background: rgba(15, 23, 42, 0.50);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 12px 16px;
}
.status-card .status-label {
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--text-muted); margin-bottom: 4px;
}
.status-card .status-value {
    font-size: 14px; font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

/* ══ Sidebar ══ */
.sidebar-wrap {
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-deep));
    min-height: 100vh; padding: 24px 20px;
    border-right: 1px solid var(--glass-border);
}
.sidebar-logo {
    font-size: 20px; font-weight: 800;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 2px;
}
.sidebar-sub { font-size: 11px; color: var(--text-muted); margin-bottom: 24px; }
.sidebar-section-label {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-muted); margin-bottom: 8px; display: block;
}

/* ══ Nav Item ══ */
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer; transition: all 0.25s ease;
    margin-bottom: 3px; font-size: 13px;
    color: var(--text-secondary); font-weight: 500;
}
.nav-item:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(4px);
}
.nav-item .nav-dot {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0;
}

/* ══ Footer ══ */
.footer-banner {
    text-align: center; padding: 20px; margin: 20px 0;
    border-radius: 14px; border: 2px solid;
}
.footer-banner.live {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.15));
    border-color: var(--green);
}
.footer-banner.demo {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.15));
    border-color: var(--amber);
}

/* ══ Loading shimmer ══ */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.loading-bar {
    height: 4px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-indigo), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ══ Hover glow on cards ══ */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 rgba(99, 102, 241, 0); }
    50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.08); }
}

/* ══ Checklist ══ */
.checklist-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px; margin: 4px 0;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(99, 102, 241, 0.06);
    border-radius: 10px; font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}
.checklist-item:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.15);
}

/* ══ Scenario Card ══ */
.scenario-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--glass-border);
    border-radius: 14px; padding: 20px;
    text-align: center;
}
.scenario-card .scenario-label {
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 12px;
}
.scenario-card .scenario-value {
    font-size: 1.4rem; font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 4px;
}
.scenario-card .scenario-sub {
    font-size: 12px; color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════
   ASSET SELECTION PANEL — Prominent, first-action section
   Elevated glassmorphic card with cyan accent
   ══════════════════════════════════════════════════════════════ */

.asset-selection-panel {
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.06), rgba(8, 145, 178, 0.03));
    border: 1px solid rgba(6, 182, 212, 0.18);
    border-radius: 14px;
    padding: 16px 14px 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.asset-selection-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #06b6d4, #22d3ee, #06b6d4, transparent);
}

/* ── Asset Dropdown (bright override) ── */
.asset-dropdown-bright .Select-control,
.asset-dropdown-bright .Select-control:hover,
.asset-selection-panel .Select-control,
.asset-selection-panel .dash-dropdown .Select-control {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.10), rgba(8, 145, 178, 0.06)) !important;
    border: 1.5px solid rgba(6, 182, 212, 0.35) !important;
    border-radius: 10px !important;
    min-height: 44px !important;
    transition: all 0.25s cubic-bezier(.4, 0, .2, 1) !important;
    cursor: pointer !important;
}
.asset-dropdown-bright .Select-control:hover,
.asset-selection-panel .Select-control:hover {
    border-color: rgba(6, 182, 212, 0.55) !important;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(8, 145, 178, 0.10)) !important;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.08) !important;
}
.asset-dropdown-bright .Select.is-open .Select-control,
.asset-dropdown-bright .Select.is-focused .Select-control,
.asset-selection-panel .Select.is-open .Select-control,
.asset-selection-panel .Select.is-focused .Select-control {
    border-color: rgba(6, 182, 212, 0.6) !important;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(8, 145, 178, 0.12)) !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12), 0 4px 20px rgba(6, 182, 212, 0.08) !important;
}

/* ── Selected value — BRIGHT white text ── */
.asset-dropdown-bright .Select-value,
.asset-dropdown-bright .Select-value-label,
.asset-dropdown-bright .Select--single > .Select-control .Select-value .Select-value-label,
.asset-selection-panel .Select-value-label,
.asset-selection-panel .Select--single > .Select-control .Select-value .Select-value-label {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.5px !important;
    padding-left: 14px !important;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.25) !important;
}

/* ── Placeholder ── */
.asset-dropdown-bright .Select-placeholder,
.asset-selection-panel .Select-placeholder {
    color: #67e8f9 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding-left: 14px !important;
    opacity: 0.7 !important;
}

/* ── Search input ── */
.asset-dropdown-bright .Select-input > input,
.asset-dropdown-bright .Select-input input,
.asset-selection-panel .Select-input > input,
.asset-selection-panel .Select-input input {
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* ── Arrow ── */
.asset-dropdown-bright .Select-arrow-zone,
.asset-selection-panel .Select-arrow-zone {
    color: #22d3ee !important;
    padding-right: 12px !important;
}
.asset-dropdown-bright .Select-arrow,
.asset-selection-panel .Select-arrow {
    border-color: #22d3ee transparent transparent !important;
    border-width: 6px 5px 0 !important;
}
.asset-dropdown-bright .Select.is-open .Select-arrow,
.asset-selection-panel .Select.is-open .Select-arrow {
    border-color: transparent transparent #22d3ee !important;
    border-width: 0 5px 6px !important;
}

/* ── Dropdown menu (open state) — bright & clear ── */
.asset-dropdown-bright .Select-menu-outer,
.asset-selection-panel .Select-menu-outer {
    background: rgba(8, 15, 30, 0.98) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1.5px solid rgba(6, 182, 212, 0.30) !important;
    border-radius: 12px !important;
    margin-top: 6px !important;
    z-index: 9999 !important;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.55),
        0 0 20px rgba(6, 182, 212, 0.06),
        inset 0 1px 0 rgba(6, 182, 212, 0.08) !important;
    overflow: hidden !important;
    animation: assetDropSlide 0.2s cubic-bezier(.4, 0, .2, 1) !important;
}
@keyframes assetDropSlide {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.asset-dropdown-bright .Select-menu,
.asset-selection-panel .Select-menu {
    max-height: 280px !important;
}

/* ── Menu options — high contrast ── */
.asset-dropdown-bright .Select-option,
.asset-selection-panel .Select-option {
    background: transparent !important;
    color: #e2e8f0 !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgba(6, 182, 212, 0.06) !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
    letter-spacing: 0.3px !important;
}
.asset-dropdown-bright .Select-option:last-child,
.asset-selection-panel .Select-option:last-child {
    border-bottom: none !important;
}
.asset-dropdown-bright .Select-option.is-focused,
.asset-selection-panel .Select-option.is-focused {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(8, 145, 178, 0.08)) !important;
    color: #0f172a !important;
    padding-left: 22px !important;
}
.asset-dropdown-bright .Select-option.is-selected,
.asset-selection-panel .Select-option.is-selected {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(8, 145, 178, 0.14)) !important;
    color: #22d3ee !important;
    font-weight: 700 !important;
}
.asset-dropdown-bright .Select-option.is-selected::before,
.asset-selection-panel .Select-option.is-selected::before {
    content: '◆ ';
    color: #22d3ee;
    font-size: 10px;
}
.asset-dropdown-bright .Select-option.is-disabled,
.asset-selection-panel .Select-option.is-disabled {
    color: #334155 !important;
    cursor: not-allowed !important;
    opacity: 0.4 !important;
}

/* ── No results ── */
.asset-dropdown-bright .Select-noresults,
.asset-selection-panel .Select-noresults {
    padding: 14px 16px !important;
    color: #67e8f9 !important;
    font-size: 13px !important;
    text-align: center !important;
    opacity: 0.7 !important;
}

/* ── Quick Select Pills — cyan accent ── */
.asset-quick-pill {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(6, 182, 212, 0.18);
    background: rgba(6, 182, 212, 0.06);
    color: #67e8f9;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(.4, 0, .2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.asset-quick-pill:hover {
    background: rgba(6, 182, 212, 0.18);
    border-color: rgba(6, 182, 212, 0.40);
    color: #a5f3fc;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(6, 182, 212, 0.10);
}
.asset-quick-pill:active {
    transform: translateY(0);
    background: rgba(6, 182, 212, 0.25);
    color: #0f172a;
}

/* ══════════════════════════════════════════════════════════════
   GLOBAL DROPDOWN & INPUT SYSTEM (non-asset dropdowns)
   Glassmorphic design with smooth transitions
   ══════════════════════════════════════════════════════════════ */

/* ── Dropdown Control (closed state) ── */
.Select-control,
.dash-dropdown .Select-control,
#_dash-app-content .Select-control,
#_dash-app-content .dash-dropdown .Select-control {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(20, 30, 55, 0.75)) !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
    border-radius: 12px !important;
    min-height: 42px !important;
    color: #e2e8f0 !important;
    transition: all 0.25s cubic-bezier(.4, 0, .2, 1) !important;
    cursor: pointer !important;
}
.Select-control:hover,
.dash-dropdown .Select-control:hover {
    border-color: rgba(16, 185, 129, 0.4) !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(20, 30, 55, 0.85)) !important;
}
.Select.is-open .Select-control,
.Select.is-focused .Select-control {
    border-color: rgba(16, 185, 129, 0.55) !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(20, 30, 55, 0.9)) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.10) !important;
}

/* ── Selected Value Text ── */
.Select-value,
.Select-value-label,
.dash-dropdown .Select-value-label,
#_dash-app-content .Select-value-label,
.Select--single > .Select-control .Select-value .Select-value-label {
    color: #e2e8f0 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.2px !important;
    padding-left: 14px !important;
}

/* ── Placeholder ── */
.Select-placeholder,
.dash-dropdown .Select-placeholder,
#_dash-app-content .Select-placeholder {
    color: #64748b !important;
    font-size: 14px !important;
    padding-left: 14px !important;
}

/* ── Search Input ── */
.Select-input > input,
.Select-input input {
    color: #f1f5f9 !important;
    font-size: 14px !important;
}

/* ── Arrow & Clear Icons ── */
.Select-arrow-zone {
    color: #94a3b8 !important;
    padding-right: 12px !important;
}
.Select-arrow {
    border-color: #94a3b8 transparent transparent !important;
    border-width: 5px 5px 0 !important;
}
.Select.is-open .Select-arrow {
    border-color: transparent transparent #34d399 !important;
    border-width: 0 5px 5px !important;
}
.Select-clear-zone {
    color: #64748b !important;
    padding-right: 6px !important;
}
.Select-clear-zone:hover { color: #ef4444 !important; }

/* ── Dropdown Menu (open state) ── */
.Select-menu-outer,
.dash-dropdown .Select-menu-outer,
#_dash-app-content .Select-menu-outer {
    background: rgba(10, 16, 32, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    border-radius: 12px !important;
    margin-top: 6px !important;
    z-index: 9999 !important;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(16, 185, 129, 0.10) !important;
    overflow: hidden !important;
    animation: dropdownSlide 0.2s cubic-bezier(.4, 0, .2, 1) !important;
}
@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.Select-menu {
    max-height: 260px !important;
}

/* ── Menu Options ── */
.Select-option,
.dash-dropdown .Select-option,
#_dash-app-content .Select-option {
    background: transparent !important;
    color: #cbd5e1 !important;
    padding: 11px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.06) !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
}
.Select-option:last-child {
    border-bottom: none !important;
}
.Select-option.is-focused {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.08)) !important;
    color: #f1f5f9 !important;
    padding-left: 20px !important;
}
.Select-option.is-selected {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.20), rgba(5, 150, 105, 0.12)) !important;
    color: #34d399 !important;
    font-weight: 700 !important;
}
.Select-option.is-selected::before {
    content: '✓ ';
    color: #34d399;
    font-weight: 700;
}
.Select-option.is-disabled {
    color: #334155 !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

/* ── No Results ── */
.Select-noresults {
    padding: 14px 16px !important;
    color: #64748b !important;
    font-size: 13px !important;
    text-align: center !important;
}

/* ══════════════════════════════════════════════════════════════
   MODERN INPUT FIELDS
   ══════════════════════════════════════════════════════════════ */

.dash-input,
input.dash-input-display,
input[type="number"],
input[type="text"],
input[type="email"],
input[type="password"],
#_dash-app-content input[type="number"],
#_dash-app-content input[type="text"],
.form-control {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(20, 30, 55, 0.75)) !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
    border-radius: 12px !important;
    color: #f1f5f9 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 10px 14px !important;
    transition: all 0.25s cubic-bezier(.4, 0, .2, 1) !important;
}
input[type="number"]:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
.form-control:hover {
    border-color: rgba(16, 185, 129, 0.35) !important;
}
input[type="number"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
.form-control:focus,
.dash-input--focused {
    border-color: rgba(16, 185, 129, 0.55) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.10) !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(20, 30, 55, 0.9)) !important;
    color: #f1f5f9 !important;
}

/* ── Input placeholder ── */
input::placeholder,
.form-control::placeholder {
    color: #475569 !important;
    font-weight: 400 !important;
}

/* ══════════════════════════════════════════════════════════════
   +/- BUTTONS (Number Inputs)
   ══════════════════════════════════════════════════════════════ */

.input-group-prepend .btn,
.input-group-append .btn,
button.btn-outline-secondary,
.input-group .btn {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(20, 30, 55, 0.6)) !important;
    border: 1px solid rgba(16, 185, 129, 0.18) !important;
    color: #94a3b8 !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
    font-weight: 600 !important;
    min-width: 36px !important;
}
button.btn-outline-secondary:hover,
.input-group .btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1)) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #e2e8f0 !important;
}
button.btn-outline-secondary:active,
.input-group .btn:active {
    transform: scale(0.95) !important;
    background: rgba(16, 185, 129, 0.2) !important;
}

/* ══════════════════════════════════════════════════════════════
   NATIVE SELECT ELEMENTS
   ══════════════════════════════════════════════════════════════ */

select.form-control,
select.form-select,
.custom-select {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(20, 30, 55, 0.75)) !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
    border-radius: 12px !important;
    color: #f1f5f9 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 10px 14px !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2334d399' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    cursor: pointer !important;
}
select.form-control:hover,
select.form-select:hover {
    border-color: rgba(16, 185, 129, 0.4) !important;
}
select option {
    background: #0a0e1a !important;
    color: #e2e8f0 !important;
    padding: 10px !important;
}

/* Dash tabs */
.tab-container .tab {
    background: transparent !important;
    border-color: var(--glass-border) !important;
    color: var(--text-secondary) !important;
    font-weight: 600 !important;
}
.tab-container .tab--selected {
    background: var(--bg-card) !important;
    border-bottom: 2px solid var(--accent-indigo) !important;
    color: var(--text-primary) !important;
}

/* Dash radio items */
.dash-radioitems label {
    display: flex !important; align-items: center; gap: 10px;
    padding: 8px 12px !important; border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    margin-bottom: 2px !important;
}
.dash-radioitems label:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}
.dash-radioitems input:checked + span {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

/* Dash checklist */
.dash-checklist label {
    font-size: 13px !important;
    color: var(--text-secondary) !important;
    padding: 3px 0 !important;
}

/* ══════════════════════════════════════════════════════════════
   ENHANCED SIDEBAR — Production Navigation System
   ══════════════════════════════════════════════════════════════ */

.sidebar-container {
    width: 270px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
}

/* Custom scrollbar */
.sidebar-container::-webkit-scrollbar { width: 3px; }
.sidebar-container::-webkit-scrollbar-track { background: transparent; }
.sidebar-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px;
}
.sidebar-container::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.35);
}

.sidebar-wrap {
    background: linear-gradient(180deg, #0c1020, #060a16);
    min-height: 100vh;
    padding: 22px 16px;
    border-right: 1px solid rgba(99, 102, 241, 0.08);
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1px;
    letter-spacing: -0.3px;
}

.sidebar-sub {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.sidebar-section-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #475569;
    margin-bottom: 10px;
    display: block;
    padding-left: 2px;
}

/* ── Nav Buttons ── */
.sidebar-nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(.4, 0, .2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.sidebar-nav-btn::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: transparent;
    border-radius: 0 3px 3px 0;
    transition: all 0.2s ease;
}

.sidebar-nav-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.12);
    color: #e2e8f0;
    transform: translateX(3px);
}

.sidebar-nav-btn:hover::before {
    background: rgba(99, 102, 241, 0.4);
}

.sidebar-nav-btn:active {
    transform: translateX(3px) scale(0.98);
    background: rgba(99, 102, 241, 0.15);
}

/* Active state applied via callback-driven inline styles,
   but we also provide a class for CSS-only active indication */
.sidebar-nav-btn[data-active="true"],
.sidebar-nav-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    border-color: rgba(99, 102, 241, 0.25);
    color: #e2e8f0;
    font-weight: 600;
}
.sidebar-nav-btn[data-active="true"]::before,
.sidebar-nav-btn.active::before {
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

/* ── Quick Select Pills ── */
.sidebar-quick-btn {
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    background: rgba(15, 23, 42, 0.5);
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}
.sidebar-quick-btn:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    transform: translateY(-1px);
}
.sidebar-quick-btn:active {
    transform: translateY(0);
    background: rgba(99, 102, 241, 0.2);
}

/* ── Model Checklist ── */
.sidebar-model-checklist label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 12px !important;
    color: #64748b !important;
    padding: 4px 8px !important;
    margin: 1px 0 !important;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.sidebar-model-checklist label:hover {
    background: rgba(99, 102, 241, 0.06);
    color: #94a3b8 !important;
}
.sidebar-model-checklist input[type="checkbox"] {
    accent-color: #6366f1;
    width: 14px;
    height: 14px;
}
.sidebar-model-checklist input[type="checkbox"]:checked + span {
    color: #c4b5fd !important;
    font-weight: 500;
}

/* ── Status Block ── */
.sidebar-status-block {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
}

/* ── Responsive sidebar ── */
@media (max-width: 900px) {
    .sidebar-container {
        width: 220px;
    }
    .sidebar-nav-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* ══════════════════════════════════════════════════════════════
   DASH dcc.Dropdown — Fix text visibility on dark background
   ══════════════════════════════════════════════════════════════ */

/* Dropdown control box */
.dash-dropdown .Select-control,
.dash-dropdown .Select--single .Select-control {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(20, 30, 55, 0.75)) !important;
    border: 1px solid rgba(99, 102, 241, 0.22) !important;
    border-radius: 12px !important;
    color: #e2e8f0 !important;
    min-height: 40px !important;
}

.dash-dropdown .Select-control:hover {
    border-color: rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1) !important;
}

/* Selected value text */
.dash-dropdown .Select-value-label,
.dash-dropdown .Select--single .Select-value .Select-value-label,
.dash-dropdown .Select-placeholder {
    color: #e2e8f0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: 'Outfit', sans-serif !important;
}

/* Placeholder text */
.dash-dropdown .Select-placeholder {
    color: #64748b !important;
}

/* Dropdown arrow */
.dash-dropdown .Select-arrow {
    border-color: #6366f1 transparent transparent !important;
}
.dash-dropdown .is-open .Select-arrow {
    border-color: transparent transparent #6366f1 !important;
}

/* Dropdown menu panel */
.dash-dropdown .Select-menu-outer {
    background: #0f1629 !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    margin-top: 4px !important;
    z-index: 9999 !important;
}

.dash-dropdown .Select-menu {
    background: transparent !important;
    border-radius: 12px !important;
}

/* Each option */
.dash-dropdown .Select-option {
    background: transparent !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 10px 14px !important;
    font-family: 'Outfit', sans-serif !important;
    transition: all 0.15s ease !important;
}

/* Option hover */
.dash-dropdown .Select-option:hover,
.dash-dropdown .Select-option.is-focused {
    background: rgba(99, 102, 241, 0.12) !important;
    color: #e2e8f0 !important;
}

/* Selected option */
.dash-dropdown .Select-option.is-selected {
    background: rgba(99, 102, 241, 0.20) !important;
    color: #a5b4fc !important;
    font-weight: 600 !important;
}

/* Input inside dropdown (for searchable dropdowns) */
.dash-dropdown .Select-input input {
    color: #e2e8f0 !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
}

/* Multi-select tags */
.dash-dropdown .Select-value {
    background: rgba(99, 102, 241, 0.15) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 6px !important;
    color: #a5b4fc !important;
}
.dash-dropdown .Select-value-icon {
    border-right: 1px solid rgba(99, 102, 241, 0.3) !important;
    color: #6366f1 !important;
}
.dash-dropdown .Select-value-icon:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
}

/* ══════════════════════════════════════════════════════════════
   ASSET DROPDOWN — Final overrides (highest specificity)
   Must appear last to beat the generic .dash-dropdown block
   ══════════════════════════════════════════════════════════════ */

.asset-selection-panel .dash-dropdown .Select-control,
.asset-selection-panel .dash-dropdown .Select--single .Select-control {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.10), rgba(8, 145, 178, 0.06)) !important;
    border: 1.5px solid rgba(6, 182, 212, 0.35) !important;
    border-radius: 10px !important;
    min-height: 44px !important;
}
.asset-selection-panel .dash-dropdown .Select-control:hover {
    border-color: rgba(6, 182, 212, 0.55) !important;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.10) !important;
}
.asset-selection-panel .dash-dropdown .Select-value-label,
.asset-selection-panel .dash-dropdown .Select--single .Select-value .Select-value-label {
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.25) !important;
}
.asset-selection-panel .dash-dropdown .Select-placeholder {
    color: #67e8f9 !important;
    opacity: 0.7 !important;
}
.asset-selection-panel .dash-dropdown .Select-arrow {
    border-color: #22d3ee transparent transparent !important;
    border-width: 6px 5px 0 !important;
}
.asset-selection-panel .dash-dropdown .is-open .Select-arrow {
    border-color: transparent transparent #22d3ee !important;
    border-width: 0 5px 6px !important;
}
.asset-selection-panel .dash-dropdown .Select-menu-outer {
    background: rgba(8, 15, 30, 0.98) !important;
    border: 1.5px solid rgba(6, 182, 212, 0.30) !important;
    border-radius: 12px !important;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.55),
        0 0 20px rgba(6, 182, 212, 0.06) !important;
}
.asset-selection-panel .dash-dropdown .Select-option {
    color: #e2e8f0 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: 0.3px !important;
}
.asset-selection-panel .dash-dropdown .Select-option:hover,
.asset-selection-panel .dash-dropdown .Select-option.is-focused {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(8, 145, 178, 0.08)) !important;
    color: #0f172a !important;
    padding-left: 22px !important;
}
.asset-selection-panel .dash-dropdown .Select-option.is-selected {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(8, 145, 178, 0.14)) !important;
    color: #22d3ee !important;
    font-weight: 700 !important;
}
.asset-selection-panel .dash-dropdown .Select-input input {
    color: #0f172a !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

/* ── Mobile responsive for asset panel ── */
@media (max-width: 900px) {
    .asset-selection-panel {
        padding: 12px 10px 10px;
        margin-bottom: 14px;
    }
    .asset-quick-pill {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* ══════════════════════════════════════════════════════════════
   LANDING PAGE — Full-page scrollable layout
   ══════════════════════════════════════════════════════════════ */

/* ── LANDING PAGE VARIABLES ── */
  :root {
    --lp-bg-primary: #0a0e17;
    --lp-bg-secondary: #111827;
    --lp-bg-card: rgba(17, 24, 39, 0.7);
    --lp-bg-card-hover: rgba(22, 33, 55, 0.85);
    --lp-border-subtle: rgba(255,255,255,0.06);
    --lp-border-glow: rgba(99, 102, 241, 0.3);
    --lp-text-primary: #f0f2f5;
    --lp-text-secondary: #8b95a8;
    --lp-text-muted: #5a6478;
    --lp-accent-primary: #6366f1;
    --lp-accent-secondary: #818cf8;
    --lp-accent-cyan: #22d3ee;
    --lp-accent-green: #34d399;
    --lp-accent-amber: #fbbf24;
    --lp-accent-red: #f87171;
    --lp-gradient-hero: linear-gradient(135deg, #6366f1 0%, #22d3ee 50%, #34d399 100%);
    --lp-gradient-card: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(34,211,153,0.04) 100%);
    --lp-glass-border: rgba(255,255,255,0.08);
  }

  /* ── AMBIENT BACKGROUND ── */
  .lp-bg-grid {
    position: fixed; inset: 0;
    background-image:
      linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none; z-index: 0;
  }
  .lp-bg-glow-1 {
    position: fixed; top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
  }
  .lp-bg-glow-2 {
    position: fixed; bottom: -300px; left: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(34,211,153,0.08) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
  }

  /* ── NAV ── */
  .lp-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(10,14,23,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 40px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .lp-nav-logo {
    display: flex; align-items: center; gap: 12px;
    font-weight: 700; font-size: 1.25rem;
    text-decoration: none; color: #f0f2f5; cursor: pointer;
  }
  .lp-nav-logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #6366f1 0%, #22d3ee 50%, #34d399 100%);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
  }
  .lp-nav-links { display: flex; gap: 32px; align-items: center; }
  .lp-nav-links a {
    color: #8b95a8; text-decoration: none;
    font-size: 0.9rem; font-weight: 500; transition: color 0.2s;
  }
  .lp-nav-links a:hover { color: #f0f2f5; }
  .lp-nav-cta-btn {
    background: #6366f1 !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.15s !important;
    border: none !important; cursor: pointer !important;
    font-size: 0.9rem !important;
  }
  .lp-nav-cta-btn:hover { background: #818cf8 !important; transform: translateY(-1px); }
  .lp-nav-signin-btn {
    background: transparent !important;
    color: #8b95a8 !important;
    padding: 8px 20px !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
  }
  .lp-nav-signin-btn:hover { border-color: #6366f1 !important; color: #f0f2f5 !important; }

  /* ── SECTIONS ── */
  .lp-section { position: relative; z-index: 1; }
  .lp-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

  /* ── HERO ── */
  .lp-hero { padding: 160px 0 100px; text-align: center; }
  @keyframes lp-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes lp-pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  /* ── STATS BAR ── */
  .lp-stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: rgba(255,255,255,0.06);
    border-radius: 16px; overflow: hidden;
    margin-top: 60px; animation: lp-fadeInUp 0.6s ease-out 0.5s both;
  }
  .lp-stat-item {
    background: rgba(17,24,39,0.7); padding: 32px 24px;
    text-align: center; backdrop-filter: blur(20px);
  }
  .lp-stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem; font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #22d3ee 50%, #34d399 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .lp-stat-label {
    font-size: 0.78rem; color: #5a6478;
    text-transform: uppercase; letter-spacing: 0.12em;
    margin-top: 4px; font-weight: 500;
  }

  /* ── ENSEMBLE STRIP ── */
  .lp-ensemble-strip { text-align: center; padding: 60px 0 20px; }

  /* ── MODEL TAGS ── */
  .lp-model-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .lp-model-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; font-weight: 500;
    padding: 6px 14px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.06);
    color: #8b95a8; background: rgba(17,24,39,0.7);
    transition: all 0.2s;
  }
  .lp-model-tag:hover { border-color: #6366f1; color: #818cf8; }

  /* ── SIGNAL PREVIEW ── */
  .lp-signal-card {
    background: rgba(17,24,39,0.7);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; overflow: hidden;
    backdrop-filter: blur(20px); max-width: 900px; margin: 0 auto;
  }

  /* ── STEPS GRID ── */
  .lp-steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 32px; margin-top: 48px; position: relative;
  }
  .lp-steps-grid::before {
    content: ''; position: absolute;
    top: 44px; left: calc(16.66% + 16px); right: calc(16.66% + 16px);
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #22d3ee, #34d399);
    opacity: 0.3;
  }

  /* ── FEATURES GRID ── */
  .lp-features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px; margin-top: 48px;
  }

  /* ── PROOF GRID ── */
  .lp-proof-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 40px;
  }

  /* ── CTA BOX ── */
  .lp-cta-box {
    background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(34,211,153,0.04) 100%);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 24px; padding: 64px 48px;
    position: relative; overflow: hidden; text-align: center;
  }
  .lp-cta-features {
    display: flex; justify-content: center; gap: 32px; margin-top: 24px;
  }

  /* ── AUTH MODAL OVERLAY ── */
  .lp-auth-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65); z-index: 10000;
    display: none; align-items: center; justify-content: center;
    padding: 20px; backdrop-filter: blur(4px);
  }
  .lp-auth-modal {
    max-width: 420px; width: 100%; padding: 36px 32px;
    background: rgba(15,23,42,0.95); backdrop-filter: blur(24px);
    border: 1px solid rgba(99,102,241,0.15); border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    max-height: 90vh; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: rgba(99,102,241,0.2) transparent;
  }
  .lp-auth-close-btn {
    position: absolute; top: 16px; right: 20px;
    background: none !important; border: none !important;
    color: #5a6478 !important; font-size: 22px !important;
    cursor: pointer !important; padding: 4px !important;
    line-height: 1 !important; transition: color 0.2s !important;
  }
  .lp-auth-close-btn:hover { color: #f0f2f5 !important; }

  /* ── FOOTER ── */
  .lp-footer {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 40px 0;
  }

  /* ── PRIMARY BUTTON (LANDING) ── */
  .lp-btn-primary {
    background: #6366f1 !important;
    color: white !important;
    padding: 14px 32px !important;
    border-radius: 10px !important;
    font-weight: 600 !important; font-size: 1rem !important;
    border: none !important; cursor: pointer !important;
    transition: all 0.2s !important;
    display: inline-flex !important; align-items: center !important; gap: 8px !important;
    text-decoration: none !important;
  }
  .lp-btn-primary:hover { background: #818cf8 !important; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,0.3); }
  .lp-btn-secondary {
    background: transparent !important;
    color: #f0f2f5 !important;
    padding: 14px 32px !important;
    border-radius: 10px !important;
    font-weight: 600 !important; font-size: 1rem !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    backdrop-filter: blur(10px) !important;
  }
  .lp-btn-secondary:hover { border-color: #6366f1 !important; background: rgba(99,102,241,0.05) !important; }

  /* ── PRODUCT SHOWCASE CAROUSEL ── */
  .lp-carousel-wrapper {
    position: relative;
    max-width: 860px;
    max-height: 480px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(10,14,23,0.9);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(99,102,241,0.08);
  }

  .lp-carousel-track {
    display: flex;
    animation: lp-carousel-slide 30s ease-in-out infinite;
  }

  .lp-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
  }

  .lp-carousel-slide img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: top left;
    display: block;
  }

  .lp-carousel-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 28px;
    background: linear-gradient(0deg, rgba(10,14,23,0.95) 0%, rgba(10,14,23,0.6) 60%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .lp-carousel-caption-icon {
    font-size: 1.1rem;
  }

  .lp-carousel-caption-text {
    font-weight: 600;
    font-size: 0.88rem;
    color: #f0f2f5;
  }

  .lp-carousel-caption-sub {
    font-size: 0.78rem;
    color: #8b95a8;
    margin-left: auto;
  }

  .lp-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 0;
  }

  .lp-carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: all 0.3s;
  }

  .lp-carousel-dot.active {
    background: #6366f1;
    box-shadow: 0 0 8px rgba(99,102,241,0.4);
  }

  /* 6 slides, each visible ~4s, 1s transition. Total 30s cycle */
  @keyframes lp-carousel-slide {
    0%      { transform: translateX(0); }
    13.33%  { transform: translateX(0); }
    16.67%  { transform: translateX(-100%); }
    30%     { transform: translateX(-100%); }
    33.33%  { transform: translateX(-200%); }
    46.67%  { transform: translateX(-200%); }
    50%     { transform: translateX(-300%); }
    63.33%  { transform: translateX(-300%); }
    66.67%  { transform: translateX(-400%); }
    80%     { transform: translateX(-400%); }
    83.33%  { transform: translateX(-500%); }
    96.67%  { transform: translateX(-500%); }
    100%    { transform: translateX(0); }
  }
    11.43%  { transform: translateX(0); }
    14.29%  { transform: translateX(-100%); }
    25.71%  { transform: translateX(-100%); }
    28.57%  { transform: translateX(-200%); }
    40%     { transform: translateX(-200%); }
    42.86%  { transform: translateX(-300%); }
    54.29%  { transform: translateX(-300%); }
    57.14%  { transform: translateX(-400%); }
    68.57%  { transform: translateX(-400%); }
    71.43%  { transform: translateX(-500%); }
    82.86%  { transform: translateX(-500%); }
    85.71%  { transform: translateX(-600%); }
    97.14%  { transform: translateX(-600%); }
    100%    { transform: translateX(0); }
  }
    13.33%  { transform: translateX(0); }
    16.67%  { transform: translateX(-100%); }
    30%     { transform: translateX(-100%); }
    33.33%  { transform: translateX(-200%); }
    46.67%  { transform: translateX(-200%); }
    50%     { transform: translateX(-300%); }
    63.33%  { transform: translateX(-300%); }
    66.67%  { transform: translateX(-400%); }
    80%     { transform: translateX(-400%); }
    83.33%  { transform: translateX(-500%); }
    96.67%  { transform: translateX(-500%); }
    100%    { transform: translateX(0); }
  }

  /* Pause on hover */
  .lp-carousel-wrapper:hover .lp-carousel-track {
    animation-play-state: paused;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    .lp-nav { padding: 0 20px; }
    .lp-nav-links { display: none; }
    .lp-stats-bar { grid-template-columns: repeat(2, 1fr); }
    .lp-steps-grid { grid-template-columns: 1fr; }
    .lp-steps-grid::before { display: none; }
    .lp-features-grid { grid-template-columns: 1fr; }
    .lp-proof-grid { grid-template-columns: 1fr; }
    .lp-cta-features { flex-direction: column; align-items: center; gap: 12px; }
    .lp-cta-box { padding: 40px 24px; }
    .lp-hero { padding: 120px 0 60px; }
    .lp-carousel-wrapper { border-radius: 12px; }
    .lp-carousel-caption-sub { display: none; }
  }
