/* ============================================================
   ORION v4.0 ULTRA PRO — Glass-Morphism Dashboard Styles
   Dark theme + glassmorphism + orbital animations + PRO UX
   + Animated borders + 3D tilt + Command palette + Particles
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.65);
    --bg-card-hover: rgba(30, 41, 59, 0.75);
    --border-glass: rgba(148, 163, 184, 0.12);
    --border-accent: rgba(59, 130, 246, 0.3);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-blue: #3b82f6;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-amber: #f59e0b;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;

    --glass-blur: 16px;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 1.5rem;
    --gap-xl: 2rem;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

/* ---------- CUSTOM SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.35); }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
}

/* ---------- PARTICLE CANVAS ---------- */
#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ---------- LOADING SCREEN ULTRA ---------- */
.loading-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loading-orion {
    font-size: 4rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    position: relative;
}
.loading-orion::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 80px; height: 80px;
    margin: -40px 0 0 -40px;
    border: 2px solid transparent;
    border-top-color: var(--accent-blue);
    border-right-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    animation: loading-pulse 1.5s ease-in-out infinite;
    margin-bottom: 2rem;
}
@keyframes loading-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Progress bar in loading */
.loading-progress-wrap {
    width: 220px;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
    border-radius: 2px;
    transition: width 0.3s ease;
}
.loading-percent {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* ---------- GLASS CARD ---------- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--gap-lg);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    /* 3D tilt perspective */
    transform-style: preserve-3d;
    will-change: transform;
}
.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.08), 0 0 0 1px rgba(59,130,246,0.05);
}

/* ---------- ANIMATED GRADIENT BORDER ---------- */
.glass-card.glow-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(
        var(--glow-angle, 0deg),
        rgba(59,130,246,0.4),
        rgba(168,85,247,0.3),
        rgba(6,182,212,0.4),
        rgba(59,130,246,0.2)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: glow-rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: -1;
}
.glass-card.glow-border:hover::before {
    opacity: 1;
}
@keyframes glow-rotate {
    0%   { --glow-angle: 0deg; }
    100% { --glow-angle: 360deg; }
}
/* Fallback for browsers that don't support @property */
@supports (background: paint(something)) {
    @property --glow-angle {
        syntax: '<angle>';
        initial-value: 0deg;
        inherits: false;
    }
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    overflow: hidden;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ---- ORBITAL LOGO (navbar) ---- */
.orion-logo {
    font-size: 1.8rem;
    color: var(--accent-blue);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
}
.orion-logo .logo-core {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    animation: pulse-glow 3s ease-in-out infinite;
}
.orion-logo .orbit {
    position: absolute;
    border: 1px solid;
    border-radius: 50%;
    top: 50%; left: 50%;
}
.orion-logo .orbit-1 {
    width: 36px; height: 36px;
    margin: -18px 0 0 -18px;
    border-color: rgba(59,130,246,0.25);
    animation: orbit-spin 6s linear infinite;
}
.orion-logo .orbit-2 {
    width: 48px; height: 48px;
    margin: -24px 0 0 -24px;
    border-color: rgba(168,85,247,0.15);
    animation: orbit-spin 10s linear infinite reverse;
}
.orion-logo .orbit-dot {
    position: absolute;
    width: 4px; height: 4px;
    background: var(--accent-blue);
    border-radius: 50%;
    top: -2px; left: 50%;
    margin-left: -2px;
    box-shadow: 0 0 6px var(--accent-blue);
}
.orbit-2 .orbit-dot { background: var(--accent-purple); box-shadow: 0 0 6px var(--accent-purple); }

@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
    50% { text-shadow: 0 0 35px rgba(59, 130, 246, 0.8), 0 0 60px rgba(59, 130, 246, 0.3); }
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.version {
    color: var(--accent-blue);
    font-weight: 500;
    font-size: 0.85em;
}
.nav-links {
    display: flex;
    gap: 0.25rem;
}
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-link.active {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}
/* Animated underline on active nav */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link.active::after {
    width: 60%;
}
.nav-link:hover::after {
    width: 40%;
}

/* Keyboard shortcut hint */
.nav-link .shortcut {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0px 4px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.6;
}

.nav-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.nav-clock {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.05);
}
/* Session timer */
.nav-session {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.6;
}
.nav-logout {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
}
.nav-logout:hover { color: var(--accent-red); transform: scale(1.1); }

/* CMD+K badge */
.nav-cmdk {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 3px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-cmdk:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(59,130,246,0.05);
}
.nav-cmdk kbd {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    background: rgba(255,255,255,0.06);
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Pulse dot */
.pulse-dot {
    width: 8px; height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot-anim 2s ease-in-out infinite;
}
@keyframes pulse-dot-anim {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ---------- CONTAINER & SECTIONS ---------- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--gap-xl) var(--gap-lg);
    position: relative;
    z-index: 1;
}
.section { display: none; }
.section.active { display: block; animation: fadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.section-header {
    margin-bottom: var(--gap-xl);
}
.section-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Typing cursor effect */
.section-header h1 .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--accent-blue);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: blink-cursor 0.8s step-end infinite;
}
@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ---------- KPI GRID ---------- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--gap-lg);
    margin-bottom: var(--gap-xl);
}
.kpi-card {
    text-align: center;
    padding: var(--gap-lg) var(--gap-md);
    position: relative;
    overflow: hidden;
}
/* Animated gradient accent on top of KPI cards */
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-purple), transparent);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s;
    animation: gradient-slide 3s linear infinite;
}
.kpi-card:hover::before { opacity: 1; }
@keyframes gradient-slide {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Sparkline in KPI */
.kpi-sparkline {
    margin-top: 0.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 24px;
}
.kpi-sparkline .spark-bar {
    width: 4px;
    border-radius: 2px 2px 0 0;
    transition: height 0.4s ease;
    min-height: 2px;
}

.kpi-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.kpi-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.kpi-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.kpi-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ---------- CHARTS ---------- */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--gap-lg);
    margin-bottom: var(--gap-xl);
}
.chart-card {
    padding: var(--gap-lg);
}
.chart-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--gap-md);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.chart-card h3::before {
    content: '';
    width: 3px;
    height: 14px;
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
    border-radius: 2px;
    display: inline-block;
}
.chart-card canvas {
    width: 100% !important;
    max-height: 320px;
}

/* ---------- MODEL SELECTOR ---------- */
.model-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--gap-lg);
    flex-wrap: wrap;
}
.model-tab {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s;
}
.model-tab:hover { border-color: var(--accent-blue); color: var(--text-primary); transform: translateY(-1px); }
.model-tab.active {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 16px rgba(59,130,246,0.1);
}

/* ---------- MODEL INFO ---------- */
.model-info-card { margin-bottom: var(--gap-lg); }
.model-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.model-header h2 { font-size: 1.35rem; font-weight: 700; }
.model-meta { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.15rem; }
.model-status-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    white-space: nowrap;
}
.status-fail { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); border: 1px solid rgba(239,68,68,0.3); }
.status-pass { background: rgba(34, 197, 94, 0.15); color: var(--accent-green); border: 1px solid rgba(34,197,94,0.3); }
.status-ref { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); border: 1px solid rgba(59,130,246,0.3); }
.status-pending { background: rgba(148, 163, 184, 0.1); color: var(--text-muted); border: 1px solid var(--border-glass); }

/* ---------- METRICS GRID ---------- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--gap-md);
    margin-bottom: var(--gap-lg);
}
.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.metric-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
/* Glow line on metric cards */
.metric-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.metric-card:hover::after { opacity: 1; }

.metric-value {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 700;
}
.metric-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-weight: 600;
}
.metric-pass { color: var(--accent-green); }
.metric-fail { color: var(--accent-red); }
.metric-warn { color: var(--accent-amber); }
.metric-neutral { color: var(--text-secondary); }

/* ---------- DATA TABLE ---------- */
.table-wrapper { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-glass);
    white-space: nowrap;
}
.data-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    white-space: nowrap;
}
.data-table tbody tr {
    transition: all 0.2s;
}
.data-table tbody tr:hover {
    background: rgba(59,130,246,0.06);
    box-shadow: inset 3px 0 0 var(--accent-blue);
}
.val-positive { color: var(--accent-green); }
.val-negative { color: var(--accent-red); }
.val-neutral { color: var(--text-secondary); }
.val-na { color: var(--text-muted); font-style: italic; }

/* ---------- INTERPRETATION CASES ---------- */
.interpretation-card { margin-bottom: var(--gap-xl); }
.card-subtitle { color: var(--text-muted); font-size: 0.8rem; margin-bottom: var(--gap-md); }
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap-md);
}
.case-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: var(--gap-md);
    border-left: 3px solid;
    transition: all 0.25s;
}
.case-item:hover {
    background: rgba(255,255,255,0.04);
    transform: translateX(4px);
}
.case-item .case-label {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.case-item .case-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ---------- BASELINE SPECS ---------- */
.baseline-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap-lg);
    margin-bottom: var(--gap-xl);
}
.baseline-spec-card {
    padding: var(--gap-lg);
    border-left: 3px solid;
    transition: all 0.3s;
}
.baseline-spec-card:hover { transform: translateX(4px); }
.baseline-spec-card .spec-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.baseline-spec-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.baseline-spec-card .spec-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 0.75rem; }
.spec-params {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

/* ---------- CRITERIA GRID ---------- */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--gap-md);
    margin-top: var(--gap-md);
}
.criteria-item {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding: var(--gap-md);
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    transition: all 0.25s;
}
.criteria-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-accent);
}
.criteria-icon { font-size: 1.5rem; min-width: 2rem; text-align: center; }
.criteria-info h4 { font-size: 0.85rem; font-weight: 600; }
.criteria-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ---------- ROADMAP TIMELINE ---------- */
.roadmap-timeline {
    position: relative;
    padding-left: 2.5rem;
}
.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple), var(--border-glass));
}
.roadmap-item {
    position: relative;
    margin-bottom: var(--gap-lg);
    padding: var(--gap-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}
.roadmap-item:hover {
    border-color: var(--border-accent);
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(59,130,246,0.08);
}
.roadmap-item::before {
    content: '';
    position: absolute;
    left: -1.85rem;
    top: 1.5rem;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-blue);
}
.roadmap-item.completed::before { background: var(--accent-green); border-color: var(--accent-green); }
.roadmap-item.running::before { background: var(--accent-blue); border-color: var(--accent-blue); animation: pulse-dot-anim 2s infinite; }
.roadmap-phase {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-blue);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.roadmap-name { font-size: 1.05rem; font-weight: 700; margin: 0.25rem 0; }
.roadmap-desc { font-size: 0.82rem; color: var(--text-secondary); }
.roadmap-status-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    margin-top: 0.5rem;
}

/* ---------- COMMAND PALETTE ---------- */
.cmd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 9000;
    display: none;
    visibility: hidden;
    opacity: 0;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18vh;
}
.cmd-overlay.active {
    display: flex;
    visibility: visible;
    opacity: 1;
    animation: fadeIn 0.15s ease;
}

.cmd-palette {
    width: 520px;
    max-width: 90vw;
    background: rgba(17, 24, 39, 0.97);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 40px rgba(59,130,246,0.08);
    overflow: hidden;
    animation: cmd-slide-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cmd-slide-in {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

.cmd-input-wrap {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    gap: 0.75rem;
}
.cmd-search-icon {
    color: var(--text-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.cmd-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}
.cmd-input::placeholder { color: var(--text-muted); }
.cmd-esc {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 3px;
}
.cmd-results {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}
.cmd-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.cmd-item:hover,
.cmd-item.selected {
    background: rgba(59,130,246,0.1);
    color: var(--text-primary);
}
.cmd-item-icon {
    font-size: 1rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.cmd-item-label { flex: 1; }
.cmd-item-shortcut {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    opacity: 0.5;
}
.cmd-footer {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
}
.cmd-footer kbd {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0px 4px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
}

/* ---------- FOOTER ---------- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-glass);
    margin-top: var(--gap-xl);
    position: relative;
    z-index: 1;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-logo {
    color: var(--accent-blue);
    font-size: 1rem;
    opacity: 0.5;
}
.footer-build {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    opacity: 0.4;
}

/* ---------- TOAST NOTIFICATION ---------- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 200;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast .toast-key {
    font-family: var(--font-mono);
    background: rgba(59,130,246,0.15);
    color: var(--accent-blue);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-right: 4px;
}

/* ---------- LOGIN PAGE ---------- */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    overflow: hidden;
}
.login-container { width: 100%; max-width: 420px; padding: var(--gap-lg); position: relative; z-index: 2; }
.login-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(59,130,246,0.15);
}

/* ---- ORBITAL LOGO (login) ---- */
.login-logo-wrap {
    position: relative;
    width: 120px; height: 120px;
    margin: 0 auto 1.5rem;
}
.login-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--accent-blue);
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
    z-index: 3;
    animation: pulse-glow 3s ease-in-out infinite;
}
.login-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    top: 50%; left: 50%;
}
.login-orbit-1 {
    width: 70px; height: 70px;
    margin: -35px 0 0 -35px;
    border-color: rgba(59,130,246,0.3);
    animation: orbit-spin 5s linear infinite;
}
.login-orbit-2 {
    width: 95px; height: 95px;
    margin: -47.5px 0 0 -47.5px;
    border-color: rgba(168,85,247,0.2);
    animation: orbit-spin 8s linear infinite reverse;
    transform: rotateX(60deg);
}
.login-orbit-3 {
    width: 115px; height: 115px;
    margin: -57.5px 0 0 -57.5px;
    border-color: rgba(6,182,212,0.12);
    animation: orbit-spin 13s linear infinite;
    transform: rotateY(45deg);
}
.login-orbit-dot {
    position: absolute;
    width: 5px; height: 5px;
    border-radius: 50%;
    top: -2.5px; left: 50%;
    margin-left: -2.5px;
}
.login-orbit-1 .login-orbit-dot { background: var(--accent-blue); box-shadow: 0 0 8px var(--accent-blue); }
.login-orbit-2 .login-orbit-dot { background: var(--accent-purple); box-shadow: 0 0 8px var(--accent-purple); }
.login-orbit-3 .login-orbit-dot { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }

.login-title { font-size: 1.75rem; font-weight: 800; }
.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0.5rem 0 1.5rem;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}
.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    animation: shake 0.4s ease;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}
.login-form { margin-bottom: 1.5rem; }
.input-group { margin-bottom: 1rem; position: relative; }
.input-icon {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}
.login-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.5rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}
.login-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15), 0 0 20px rgba(59,130,246,0.08);
}
.login-btn {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.03em;
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
}
/* Shimmer effect on button */
.login-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}
.login-secure {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
}

/* ---------- COMPARISON TABLE ---------- */
.comparison-table tr.is-sac { background: rgba(59, 130, 246, 0.03); }
.comparison-table tr.is-baseline { background: rgba(168, 85, 247, 0.03); }
.comparison-table tr.is-best td { font-weight: 700; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .navbar { flex-wrap: wrap; padding: 0.6rem 1rem; gap: 0.5rem; }
    .nav-links { order: 3; width: 100%; justify-content: center; gap: 0.15rem; border-top: 1px solid var(--border-glass); padding-top: 0.5rem; margin-top: 0.25rem; }
    .nav-link { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
    .nav-link .shortcut { display: none; }
    .nav-cmdk { display: none; }
    .nav-session { display: none; }
    .charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 0.75rem; padding: 0.75rem 1rem; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .nav-link .shortcut { display: none; }
    .nav-cmdk { display: none; }
    .container { padding: var(--gap-md); }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .charts-grid { grid-template-columns: 1fr; }
    .kpi-value { font-size: 1.5rem; }
    .section-header h1 { font-size: 1.35rem; }
    .footer { flex-direction: column; gap: 0.5rem; text-align: center; }
    .toast { bottom: 1rem; right: 1rem; left: 1rem; }
    .cmd-palette { max-width: 95vw; }
}

@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .model-header { flex-direction: column; gap: 0.75rem; }
}
