/* ===== Design Tokens (from figma-tokens.json) ===== */
:root {
    /* Primary — Indigo-Violet */
    --primary-10: #1A1B2F;
    --primary-20: #2E3050;
    --primary-30: #434670;
    --primary-40: #5B5F99;
    --primary-50: #7478B3;
    --primary-60: #9195CC;
    --primary-70: #B0B3DE;
    --primary-80: #CFD1EE;
    --primary-90: #E8E9F7;

    /* Secondary — Teal */
    --secondary-30: #457066;
    --secondary-40: #5E9488;
    --secondary-80: #DBEEEA;
    --secondary-90: #EDF7F5;

    /* Tertiary — Mauve */
    --tertiary-30: #704563;
    --tertiary-40: #945E84;
    --tertiary-80: #EEDBE8;

    /* Error */
    --error-40: #B3261E;
    --error-60: #E46962;
    --error-80: #F2B8B5;

    /* Neutrals */
    --neutral-0: #000000;
    --neutral-4: #0D0E11;
    --neutral-6: #131418;
    --neutral-10: #1B1C20;
    --neutral-12: #1F2024;
    --neutral-17: #282930;
    --neutral-20: #303038;
    --neutral-22: #34353D;
    --neutral-24: #38394A;
    --neutral-30: #464752;
    --neutral-40: #5E5F6B;
    --neutral-50: #777884;
    --neutral-60: #91929E;
    --neutral-80: #C7C7D1;
    --neutral-90: #E3E2EC;
    --neutral-95: #F1F0FA;

    /* Neutral Variant */
    --nv-30: #49454F;
    --nv-50: #7A7582;
    --nv-60: #948F9C;
    --nv-80: #CBC4D1;

    /* Dark theme semantic */
    --surface: #131418;
    --surface-dim: #131418;
    --surface-bright: #38394A;
    --surface-container-lowest: #0D0E11;
    --surface-container-low: #1B1C20;
    --surface-container: #1F2024;
    --surface-container-high: #282930;
    --surface-container-highest: #34353D;
    --on-surface: #E3E2EC;
    --on-surface-variant: #CBC4D1;
    --outline: #948F9C;
    --outline-variant: #49454F;
    --primary: #CFD1EE;
    --on-primary: #2E3050;
    --primary-container: #434670;
    --secondary: #DBEEEA;
    --secondary-container: #457066;
    --tertiary: #EEDBE8;
    --tertiary-container: #704563;
    --error: #F2B8B5;
    --inverse-surface: #E3E2EC;
    --scrim: #000000;

    /* Spacing */
    --sp-4: 4px;
    --sp-6: 6px;
    --sp-8: 8px;
    --sp-12: 12px;
    --sp-16: 16px;
    --sp-20: 20px;
    --sp-24: 24px;
    --sp-32: 32px;

    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* Elevation */
    --elevation-1: 0px 1px 3px 1px rgba(0,0,0,0.15), 0px 1px 2px 0px rgba(0,0,0,0.30);
    --elevation-2: 0px 2px 6px 2px rgba(0,0,0,0.15), 0px 1px 2px 0px rgba(0,0,0,0.30);
    --elevation-3: 0px 4px 8px 3px rgba(0,0,0,0.15), 0px 1px 3px 0px rgba(0,0,0,0.30);
    --elevation-4: 0px 6px 10px 4px rgba(0,0,0,0.15), 0px 2px 3px 0px rgba(0,0,0,0.30);

    /* Motion */
    --ease-standard: cubic-bezier(0.2, 0.0, 0, 1.0);
    --ease-decel: cubic-bezier(0, 0, 0, 1);
    --ease-accel: cubic-bezier(0.3, 0, 1, 1);
    --ease-emphasized: cubic-bezier(0.2, 0.0, 0, 1.0);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Font */
    --font-display: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Menlo', monospace;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-display);
    background: #0a0a10;
    color: var(--on-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Phone Frame ===== */
.phone-frame {
    position: relative;
    width: 390px;
    height: 844px;
    border-radius: 50px;
    border: 3px solid #2a2a3a;
    background: var(--surface);
    overflow: hidden;
    box-shadow: 0 0 0 8px #111118, 0 20px 80px rgba(91,95,153,0.15), 0 0 120px rgba(91,95,153,0.08);
}

.phone-notch {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 126px; height: 34px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 100;
}
.phone-notch::after {
    content: '';
    position: absolute;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    width: 10px; height: 10px;
    background: #1a1a2a;
    border-radius: 50%;
}

.phone-screen {
    width: 100%; height: 100%;
    position: relative;
    overflow: hidden;
}

.phone-home-bar {
    position: absolute;
    bottom: 8px; left: 50%;
    transform: translateX(-50%);
    width: 134px; height: 5px;
    background: var(--on-surface-variant);
    border-radius: var(--radius-full);
    opacity: 0.3;
    z-index: 200;
}

/* ===== Screens ===== */
.screen {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(30px);
    transition: opacity 350ms var(--ease-emphasized), transform 350ms var(--ease-emphasized);
    display: flex;
    flex-direction: column;
    background: var(--surface);
}
.screen.active-screen {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
}

.screen-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 44px;
    padding-bottom: 80px;
    scroll-behavior: smooth;
}
.screen-content::-webkit-scrollbar { width: 0; }

/* ===== Top App Bar ===== */
.top-app-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-16) var(--sp-16) var(--sp-8);
    min-height: 64px;
    background: var(--surface);
    position: sticky;
    top: -44px;
    z-index: 10;
}
.greeting-text {
    font-size: 14px;
    color: var(--on-surface-variant);
    display: block;
}
.greeting-name {
    font-size: 22px;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}
.avatar, .settings-avatar {
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-container);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 16px;
    cursor: pointer;
    transition: transform 200ms var(--ease-spring);
}
.avatar:active, .settings-avatar:active { transform: scale(0.92); }
.app-bar-title { font-size: 22px; font-weight: 500; flex: 1; text-align: center; }
.app-bar-title.mono { font-family: var(--font-mono); font-size: 18px; }
.app-bar-actions { display: flex; gap: var(--sp-4); }
.icon-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; color: var(--on-surface-variant);
    border-radius: var(--radius-full); cursor: pointer;
    transition: background 150ms;
}
.icon-btn:hover { background: rgba(255,255,255,0.08); }
.icon-btn:active { background: rgba(255,255,255,0.16); }
.back-btn { position: relative; z-index: 5; }

/* ===== Voice Orb ===== */
.voice-orb-section {
    display: flex; flex-direction: column; align-items: center;
    padding: var(--sp-24) 0 var(--sp-16);
}
.voice-orb {
    position: relative;
    width: 80px; height: 80px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.orb-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(207,209,238,0.2) 0%, transparent 70%);
    transition: all 600ms var(--ease-emphasized);
}
.orb-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid rgba(207,209,238,0.15);
    animation: orbBreathe 3s ease-in-out infinite;
}
.ring-2 {
    inset: -18px;
    border-color: rgba(207,209,238,0.08);
    animation-delay: -1s;
}
@keyframes orbBreathe {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.6; }
}
.orb-body {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-30), var(--primary-40), var(--primary-50));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px rgba(207,209,238,0.3), inset 0 -2px 6px rgba(0,0,0,0.3);
    transition: all 300ms var(--ease-spring);
}
.orb-body:active { transform: scale(0.92); }
.orb-icon { font-size: 32px; color: #fff; }

/* Orb states */
.voice-orb.listening .orb-glow {
    inset: -50px;
    background: radial-gradient(circle, rgba(207,209,238,0.4) 0%, transparent 70%);
}
.voice-orb.listening .orb-ring { animation: orbPulse 800ms ease-in-out infinite; }
.voice-orb.listening .orb-body { background: linear-gradient(135deg, var(--primary-40), var(--primary-50), var(--primary-60)); }
@keyframes orbPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
.voice-orb.processing .orb-body { background: linear-gradient(135deg, var(--secondary-30), var(--secondary-40)); }
.voice-orb.processing .orb-ring { animation: orbSpin 1200ms linear infinite; }
@keyframes orbSpin { to { transform: rotate(360deg); } }
.voice-orb.error .orb-body { background: linear-gradient(135deg, var(--error-40), var(--error-60)); }
.voice-orb.error .orb-glow { background: radial-gradient(circle, rgba(242,184,181,0.3) 0%, transparent 70%); }

.orb-label {
    margin-top: var(--sp-12);
    font-size: 13px;
    color: var(--on-surface-variant);
    transition: color 200ms;
}
.transcript-bubble {
    margin-top: var(--sp-8);
    font-size: 16px;
    line-height: 1.5;
    color: var(--on-surface);
    max-width: 280px;
    text-align: center;
    opacity: 0.9;
}

/* ===== Quick Actions ===== */
.quick-actions {
    display: flex;
    gap: var(--sp-8);
    padding: 0 var(--sp-16);
    overflow-x: auto;
    scrollbar-width: none;
}
.quick-actions::-webkit-scrollbar { display: none; }
.action-chip {
    display: flex; align-items: center; gap: var(--sp-6);
    padding: var(--sp-8) var(--sp-16);
    background: var(--surface-container-high);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-sm);
    color: var(--on-surface);
    font-size: 13px; font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 200ms var(--ease-standard);
}
.action-chip .material-symbols-rounded { font-size: 18px; color: var(--primary); }
.action-chip:hover { background: var(--surface-container-highest); border-color: var(--outline); }
.action-chip:active { transform: scale(0.96); }

/* ===== Status Grid ===== */
.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    padding: var(--sp-16);
}
.status-card {
    background: var(--surface-container);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-md);
    padding: var(--sp-12);
    transition: all 200ms var(--ease-standard);
    cursor: pointer;
}
.status-card:hover { background: var(--surface-container-high); border-color: var(--outline); }
.status-card:active { transform: scale(0.97); }
.status-card-header {
    display: flex; align-items: center; gap: var(--sp-6);
    margin-bottom: var(--sp-8);
}
.status-card-header .material-symbols-rounded { font-size: 20px; }
.status-title { font-size: 12px; color: var(--on-surface-variant); font-weight: 500; letter-spacing: 0.5px; }
.status-value { font-size: 20px; font-weight: 600; }
.status-subtitle { font-size: 11px; color: var(--on-surface-variant); margin-top: 2px; }
.status-bar { width: 100%; height: 4px; background: var(--surface-container-highest); border-radius: var(--radius-full); margin-top: var(--sp-8); overflow: hidden; }
.status-bar-fill { height: 100%; border-radius: var(--radius-full); transition: width 800ms var(--ease-decel); }

/* ===== Section ===== */
.section-block { padding: var(--sp-16); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-12); font-size: 14px; font-weight: 500; }
.text-btn { background: none; border: none; color: var(--primary); font-size: 13px; font-weight: 500; cursor: pointer; }
.section-title { font-size: 14px; font-weight: 500; color: var(--on-surface); }

/* ===== Activity List ===== */
.activity-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.activity-item {
    display: flex; align-items: center; gap: var(--sp-12);
    padding: var(--sp-12);
    background: var(--surface-container);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 150ms;
}
.activity-item:hover { background: var(--surface-container-high); }
.activity-icon { font-size: 24px; }
.activity-info { flex: 1; min-width: 0; }
.activity-title { font-size: 14px; font-weight: 500; }
.activity-sub { font-size: 12px; color: var(--on-surface-variant); margin-top: 1px; }
.activity-time { font-size: 11px; color: var(--nv-60); white-space: nowrap; }

/* ===== Bottom Navigation ===== */
.bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 80px;
    background: var(--surface-container);
    border-top: 1px solid var(--outline-variant);
    padding-bottom: 12px;
    position: relative;
    z-index: 20;
    flex-shrink: 0;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: none; border: none;
    color: var(--on-surface-variant);
    cursor: pointer; padding: 8px 16px;
    border-radius: var(--radius-lg);
    transition: all 200ms var(--ease-standard);
    position: relative;
}
.nav-item .material-symbols-rounded { font-size: 24px; transition: color 200ms; }
.nav-label { font-size: 11px; font-weight: 500; letter-spacing: 0.5px; }
.nav-item.active {
    color: var(--on-surface);
}
.nav-item.active::before {
    content: '';
    position: absolute;
    top: 2px; left: 50%; transform: translateX(-50%);
    width: 56px; height: 30px;
    background: var(--secondary-container);
    border-radius: var(--radius-lg);
    z-index: -1;
    animation: indicatorIn 250ms var(--ease-emphasized);
}
@keyframes indicatorIn {
    from { transform: translateX(-50%) scaleX(0.5); opacity: 0; }
    to { transform: translateX(-50%) scaleX(1); opacity: 1; }
}
.nav-fab {
    width: 56px; height: 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-30), var(--primary-40));
    border: none; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--elevation-3);
    cursor: pointer;
    transition: all 200ms var(--ease-spring);
    margin-top: -20px;
}
.nav-fab .material-symbols-rounded { font-size: 28px; }
.nav-fab:active { transform: scale(0.92); box-shadow: var(--elevation-4); }

/* ===== NAVIGATION SCREEN ===== */
.nav-screen-content { padding: 0 !important; position: relative; }
.map-bg {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, #0f1018 0%, #151720 50%, #1a1d2c 100%);
    overflow: hidden;
}
.map-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}
.map-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-animate {
    stroke-dasharray: 12 6;
    animation: routeFlow 2s linear infinite;
}
@keyframes routeFlow { to { stroke-dashoffset: -36; } }
.pulse-dot { animation: pulseDot 2s ease-in-out infinite; }
@keyframes pulseDot {
    0%, 100% { r: 10; opacity: 1; }
    50% { r: 16; opacity: 0.5; }
}

.maneuver-card {
    position: absolute;
    top: 54px; left: var(--sp-16); right: var(--sp-16);
    background: rgba(40,41,48,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--sp-16);
    display: flex; gap: var(--sp-16);
    box-shadow: var(--elevation-2);
    border: 1px solid rgba(255,255,255,0.06);
    z-index: 10;
}
.maneuver-icon-wrap {
    width: 48px; height: 48px;
    background: var(--primary-container);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.maneuver-icon-wrap .material-symbols-rounded { font-size: 28px; color: var(--primary); }
.maneuver-distance { font-size: 24px; font-weight: 700; }
.maneuver-instruction { font-size: 14px; color: var(--on-surface); margin-top: 2px; }
.maneuver-street { font-size: 12px; color: var(--on-surface-variant); margin-top: 2px; }

.map-controls {
    position: absolute;
    right: var(--sp-16); top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: var(--sp-8);
    z-index: 10;
}
.map-ctrl-btn {
    width: 40px; height: 40px;
    background: rgba(40,41,48,0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    color: var(--on-surface);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 150ms;
}
.map-ctrl-btn:hover { background: rgba(60,61,72,0.9); }
.map-ctrl-btn .material-symbols-rounded { font-size: 22px; }

.speed-hud {
    position: absolute;
    bottom: 140px; left: var(--sp-16);
    background: rgba(40,41,48,0.9);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: var(--sp-8) var(--sp-12);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
    z-index: 10;
}
.speed-value { font-size: 32px; font-weight: 700; font-feature-settings: 'tnum' 1; }
.speed-unit { font-size: 10px; color: var(--on-surface-variant); letter-spacing: 1px; text-transform: uppercase; }

.nav-bottom-panel {
    position: absolute;
    bottom: 80px; left: 0; right: 0;
    background: rgba(40,41,48,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--sp-8) var(--sp-16) var(--sp-16);
    border-top: 1px solid rgba(255,255,255,0.06);
    z-index: 10;
}
.drag-handle {
    width: 32px; height: 4px;
    background: var(--outline-variant);
    border-radius: var(--radius-full);
    margin: 0 auto var(--sp-12);
}
.eta-section { display: flex; align-items: center; justify-content: space-around; }
.eta-block { text-align: center; }
.eta-time, .eta-duration, .eta-distance { font-size: 20px; font-weight: 700; font-feature-settings: 'tnum' 1; }
.eta-time { color: var(--primary); }
.eta-label { font-size: 10px; color: var(--on-surface-variant); letter-spacing: 0.5px; text-transform: uppercase; margin-top: 2px; }
.eta-divider { width: 1px; height: 32px; background: var(--outline-variant); }
.nav-actions { display: flex; gap: var(--sp-12); margin-top: var(--sp-12); }
.nav-end-btn {
    flex: 1; padding: var(--sp-12);
    background: rgba(179,38,30,0.15);
    border: 1px solid var(--error-40);
    border-radius: var(--radius-full);
    color: var(--error);
    font-weight: 600; font-size: 14px;
    cursor: pointer; transition: all 150ms;
}
.nav-end-btn:active { background: rgba(179,38,30,0.3); }
.nav-overview-btn {
    flex: 1; padding: var(--sp-12);
    background: transparent;
    border: 1px solid var(--outline);
    border-radius: var(--radius-full);
    color: var(--on-surface);
    font-weight: 500; font-size: 14px;
    cursor: pointer; transition: all 150ms;
}
.nav-overview-btn:active { background: rgba(255,255,255,0.08); }

/* ===== SPEAKER SCREEN ===== */
.visualizer-section {
    position: relative;
    height: 220px;
    background: linear-gradient(180deg, var(--surface-container) 0%, var(--surface) 100%);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
#visualizerCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.now-playing {
    position: relative; z-index: 2;
    text-align: center;
}
.track-title { font-size: 20px; font-weight: 600; }
.track-artist { font-size: 14px; color: var(--on-surface-variant); margin-top: 4px; }

.playback-controls {
    display: flex; align-items: center; justify-content: center;
    gap: var(--sp-20);
    padding: var(--sp-20) var(--sp-24);
}
.ctrl-btn {
    width: 40px; height: 40px;
    background: none; border: none;
    color: var(--on-surface-variant);
    border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 150ms;
}
.ctrl-btn.lg .material-symbols-rounded { font-size: 32px; }
.ctrl-btn:hover { color: var(--on-surface); background: rgba(255,255,255,0.08); }
.ctrl-btn.active { color: var(--primary); }
.play-fab {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary-30), var(--primary-40));
    border: none; border-radius: var(--radius-full);
    color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: var(--elevation-3);
    cursor: pointer; transition: all 200ms var(--ease-spring);
}
.play-fab .material-symbols-rounded { font-size: 32px; }
.play-fab:active { transform: scale(0.92); }

.seek-bar-section {
    display: flex; align-items: center; gap: var(--sp-8);
    padding: 0 var(--sp-24);
}
.seek-time { font-size: 11px; color: var(--on-surface-variant); font-feature-settings: 'tnum' 1; width: 32px; }
.seek-bar { flex: 1; height: 4px; background: var(--surface-container-highest); border-radius: var(--radius-full); position: relative; }
.seek-fill { height: 100%; background: var(--primary); border-radius: var(--radius-full); }
.seek-thumb {
    position: absolute; top: 50%;
    width: 14px; height: 14px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.volume-section, .eq-section, .source-section { padding: var(--sp-20) var(--sp-24); }
.volume-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--sp-12); }
.volume-value { font-size: 28px; font-weight: 600; color: var(--primary); font-feature-settings: 'tnum' 1; }
.volume-slider-row { display: flex; align-items: center; gap: var(--sp-12); }
.vol-icon { font-size: 22px; color: var(--on-surface-variant); }
.slider-track {
    flex: 1; height: 6px;
    background: var(--surface-container-highest);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
}
.slider-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-40), var(--primary-60));
    border-radius: var(--radius-full);
    transition: width 100ms;
}
.slider-thumb {
    position: absolute; top: 50%;
    width: 24px; height: 24px;
    background: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: grab;
    transition: width 100ms, height 100ms;
}
.slider-thumb:active { width: 28px; height: 28px; cursor: grabbing; }

.eq-presets { display: flex; gap: var(--sp-8); overflow-x: auto; padding-bottom: var(--sp-12); }
.eq-presets::-webkit-scrollbar { display: none; }
.eq-chip {
    padding: var(--sp-6) var(--sp-16);
    background: var(--surface-container-high);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-sm);
    color: var(--on-surface);
    font-size: 13px; font-weight: 500;
    cursor: pointer; white-space: nowrap;
    transition: all 200ms;
}
.eq-chip.active {
    background: var(--secondary-container);
    border-color: var(--secondary-container);
    color: var(--secondary);
}
.eq-chip:active { transform: scale(0.95); }

.eq-bands { display: flex; justify-content: space-around; align-items: flex-end; height: 120px; gap: var(--sp-8); }
.eq-band { display: flex; flex-direction: column; align-items: center; gap: var(--sp-6); flex: 1; }
.eq-band span { font-size: 10px; color: var(--on-surface-variant); }
.eq-bar-track {
    width: 100%; max-width: 32px; height: 90px;
    background: var(--surface-container-highest);
    border-radius: var(--radius-xs);
    display: flex; align-items: flex-end;
    overflow: hidden;
}
.eq-bar-fill {
    width: 100%;
    background: linear-gradient(0deg, var(--primary-40), var(--tertiary-40));
    border-radius: var(--radius-xs);
    transition: height 400ms var(--ease-spring);
}

.source-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.source-item {
    display: flex; align-items: center; gap: var(--sp-12);
    padding: var(--sp-12);
    background: var(--surface-container);
    border-radius: var(--radius-md);
    cursor: pointer; transition: background 150ms;
}
.source-item.active { background: var(--surface-container-high); }
.source-item .material-symbols-rounded { font-size: 24px; color: var(--on-surface-variant); }
.source-info { flex: 1; }
.source-name { font-size: 14px; font-weight: 500; }
.source-sub { font-size: 12px; color: var(--on-surface-variant); }
.radio-dot {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid var(--outline);
    transition: all 200ms;
}
.radio-dot.checked {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 4px var(--surface-container);
}

/* ===== CONSOLE SCREEN ===== */
.console-screen-content { padding-top: 44px !important; padding-bottom: 0 !important; display: flex; flex-direction: column; }
.console-bar { background: var(--neutral-4); }
.sys-status-bar {
    display: flex;
    align-items: center;
    gap: var(--sp-12);
    padding: var(--sp-6) var(--sp-12);
    background: var(--neutral-6);
    border-bottom: 1px solid var(--neutral-22);
    overflow-x: auto;
}
.sys-metric { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.sys-label { font-family: var(--font-mono); font-size: 10px; color: var(--neutral-50); font-weight: 600; }
.sys-bar { width: 40px; height: 4px; background: var(--neutral-24); border-radius: var(--radius-full); overflow: hidden; }
.sys-bar-fill { height: 100%; border-radius: var(--radius-full); }
.sys-val { font-family: var(--font-mono); font-size: 10px; color: var(--neutral-60); font-feature-settings: 'tnum' 1; }
.sys-dot { width: 6px; height: 6px; border-radius: 50%; }

.log-viewer {
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-8) var(--sp-12);
    background: var(--neutral-4);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 18px;
    scrollbar-width: none;
}
.log-viewer::-webkit-scrollbar { display: none; }
.log-line {
    display: flex; gap: var(--sp-8);
    padding: 1px 0;
    animation: logFadeIn 200ms var(--ease-decel);
}
@keyframes logFadeIn { from { opacity: 0; transform: translateY(4px); } }
.log-num { color: var(--neutral-40); min-width: 24px; text-align: right; user-select: none; }
.log-time { color: var(--neutral-50); white-space: nowrap; }
.log-tag { font-weight: 600; min-width: 42px; }
.log-tag.info { color: #81C784; }
.log-tag.warn { color: #FFB74D; }
.log-tag.error { color: #E57373; }
.log-tag.debug { color: #64B5F6; }
.log-msg { color: var(--neutral-90); word-break: break-all; }

.console-input-bar {
    display: flex; align-items: center; gap: var(--sp-8);
    padding: var(--sp-8) var(--sp-12);
    background: var(--neutral-6);
    border-top: 1px solid var(--neutral-22);
    margin-bottom: 80px;
}
.console-prompt {
    font-family: var(--font-mono);
    font-size: 14px; font-weight: 600;
    color: #81C784;
}
.console-input {
    flex: 1;
    background: none; border: none; outline: none;
    color: var(--on-surface);
    font-family: var(--font-mono);
    font-size: 13px; font-weight: 500;
    caret-color: var(--primary);
}
.console-input::placeholder { color: var(--neutral-40); }
.send-btn { color: var(--primary) !important; }

/* ===== SETTINGS SCREEN ===== */
.settings-bar { background: var(--surface); justify-content: flex-start; gap: var(--sp-8); }
.settings-profile {
    display: flex; align-items: center; gap: var(--sp-16);
    padding: var(--sp-16);
    margin: 0 var(--sp-16) var(--sp-8);
    background: var(--surface-container);
    border-radius: var(--radius-xl);
    cursor: pointer;
}
.settings-avatar { width: 48px; height: 48px; font-size: 20px; flex-shrink: 0; }
.settings-profile-info { flex: 1; }
.settings-name { font-size: 18px; font-weight: 600; }
.settings-email { font-size: 13px; color: var(--on-surface-variant); }

.settings-group { padding: 0 var(--sp-16); margin-bottom: var(--sp-16); }
.settings-group-title {
    font-size: 12px; font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.5px;
    padding: var(--sp-8) 0 var(--sp-4);
}
.settings-segmented {
    display: flex; gap: 2px;
    background: var(--surface-container);
    border-radius: var(--radius-full);
    padding: 3px;
    margin-bottom: var(--sp-8);
}
.seg-btn {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    padding: var(--sp-8);
    background: transparent;
    border: none; border-radius: var(--radius-full);
    color: var(--on-surface-variant);
    font-size: 12px; font-weight: 500;
    cursor: pointer; transition: all 200ms var(--ease-standard);
}
.seg-btn .material-symbols-rounded { font-size: 16px; }
.seg-btn.active {
    background: var(--secondary-container);
    color: var(--on-surface);
}
.seg-btn:active { transform: scale(0.96); }

.settings-item {
    display: flex; align-items: center; gap: var(--sp-12);
    padding: var(--sp-12) 0;
    border-bottom: 1px solid var(--outline-variant);
    cursor: pointer;
}
.settings-item:last-child { border-bottom: none; }
.si-icon { font-size: 24px; color: var(--on-surface-variant); }
.si-text { flex: 1; }
.si-label { font-size: 14px; font-weight: 500; }
.si-sub { font-size: 12px; color: var(--on-surface-variant); margin-top: 1px; }
.si-value { font-size: 13px; color: var(--on-surface-variant); }

.toggle {
    width: 48px; height: 28px;
    background: var(--surface-container-highest);
    border-radius: var(--radius-full);
    padding: 2px;
    cursor: pointer;
    transition: background 200ms var(--ease-emphasized);
    position: relative;
}
.toggle.on { background: var(--primary-40); }
.toggle-thumb {
    width: 24px; height: 24px;
    background: var(--outline);
    border-radius: 50%;
    transition: all 200ms var(--ease-emphasized);
}
.toggle.on .toggle-thumb {
    transform: translateX(20px);
    background: #fff;
}

/* ===== ONBOARDING ===== */
.onboarding-screen {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-container-low) 100%);
    display: flex; flex-direction: column;
}
.onboarding-skip {
    position: absolute; top: 56px; right: var(--sp-16);
    font-size: 14px; font-weight: 500;
    color: var(--on-surface-variant);
    cursor: pointer; z-index: 10;
    padding: var(--sp-8);
}
.onboarding-skip:hover { color: var(--primary); }

.onboarding-pager { flex: 1; position: relative; overflow: hidden; }
.onboarding-page {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 80px var(--sp-32) 0;
    text-align: center;
    opacity: 0;
    transform: translateX(60px);
    transition: all 400ms var(--ease-emphasized);
    pointer-events: none;
}
.onboarding-page.active-page {
    opacity: 1; transform: translateX(0);
    pointer-events: all;
}
.onboarding-page.exit-page {
    opacity: 0; transform: translateX(-60px);
}
.onboarding-page h1 { font-size: 28px; font-weight: 700; margin-bottom: var(--sp-12); }
.onboarding-page p { font-size: 16px; line-height: 1.6; color: var(--on-surface-variant); max-width: 300px; }

.onboarding-illustration {
    width: 200px; height: 200px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--sp-32);
}

/* Onboarding animations */
.ob-ring, .ob-core {
    position: absolute;
    border-radius: 50%;
}
.onboarding-orb-demo { position: relative; width: 120px; height: 120px; }
.ob-core {
    width: 60px; height: 60px;
    left: 30px; top: 30px;
    background: linear-gradient(135deg, var(--primary-40), var(--primary-60));
    box-shadow: 0 0 40px rgba(207,209,238,0.4);
}
.ob-ring.r1 { inset: -10px; border: 2px solid rgba(207,209,238,0.2); animation: orbBreathe 3s ease-in-out infinite; }
.ob-ring.r2 { inset: -25px; border: 1.5px solid rgba(207,209,238,0.1); animation: orbBreathe 3s ease-in-out infinite 0.5s; }
.ob-ring.r3 { inset: -40px; border: 1px solid rgba(207,209,238,0.06); animation: orbBreathe 3s ease-in-out infinite 1s; }

.ob-voice-demo {
    position: relative;
    width: 120px; height: 120px;
    display: flex; align-items: center; justify-content: center;
}
.ob-voice-demo > .material-symbols-rounded { font-size: 48px; color: var(--primary); z-index: 2; }
.ob-wave {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary-40);
    opacity: 0;
    animation: obWave 2s ease-out infinite;
}
.ob-wave.w1 { width: 80px; height: 80px; }
.ob-wave.w2 { width: 110px; height: 110px; animation-delay: 0.5s; }
.ob-wave.w3 { width: 140px; height: 140px; animation-delay: 1s; }
@keyframes obWave {
    0% { transform: scale(0.5); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}

.ob-nav-demo {
    position: relative;
    width: 160px; height: 160px;
    display: flex; align-items: flex-end; justify-content: center;
}
.ob-nav-demo > .material-symbols-rounded { font-size: 36px; color: var(--primary); animation: navBounce 1.5s ease-in-out infinite; }
@keyframes navBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.ob-route-line {
    position: absolute;
    width: 3px; height: 100px;
    background: linear-gradient(180deg, var(--primary-40), var(--secondary-40));
    left: 50%; transform: translateX(-50%);
    bottom: 40px;
    border-radius: var(--radius-full);
}
.ob-dest-pin {
    position: absolute; top: 10px; right: 20px;
}
.ob-dest-pin .material-symbols-rounded { font-size: 36px; color: var(--error-60); }

.ob-speaker-demo {
    display: flex; align-items: flex-end; gap: 8px; height: 140px;
}
.ob-eq-bar {
    width: 12px;
    height: var(--h);
    background: linear-gradient(0deg, var(--primary-40), var(--tertiary-40));
    border-radius: 4px 4px 0 0;
    animation: eqBounce 1.2s ease-in-out infinite alternate;
}
.ob-eq-bar:nth-child(2) { animation-delay: 0.1s; }
.ob-eq-bar:nth-child(3) { animation-delay: 0.2s; }
.ob-eq-bar:nth-child(4) { animation-delay: 0.3s; }
.ob-eq-bar:nth-child(5) { animation-delay: 0.4s; }
.ob-eq-bar:nth-child(6) { animation-delay: 0.5s; }
.ob-eq-bar:nth-child(7) { animation-delay: 0.6s; }
@keyframes eqBounce {
    0% { height: var(--h); }
    100% { height: calc(var(--h) * 0.4 + 20%); }
}

.ob-complete-demo .material-symbols-rounded {
    font-size: 80px;
    color: #4CAF50;
    animation: popIn 600ms var(--ease-spring) both;
}
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.onboarding-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--sp-24) var(--sp-32) 40px;
}
.onboarding-dots { display: flex; gap: var(--sp-8); }
.dot {
    width: 8px; height: 8px;
    border-radius: var(--radius-full);
    background: var(--neutral-40);
    transition: all 300ms var(--ease-emphasized);
}
.dot.active {
    width: 24px;
    background: var(--primary);
}
.ob-btn {
    padding: var(--sp-12) var(--sp-32);
    background: linear-gradient(135deg, var(--primary-30), var(--primary-40));
    border: none;
    border-radius: var(--radius-full);
    color: #fff;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    box-shadow: var(--elevation-2);
    transition: all 200ms var(--ease-spring);
}
.ob-btn:active { transform: scale(0.95); }

/* ===== Prototype Info Badge ===== */
.proto-info {
    position: fixed;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
}
.proto-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-40);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(91,95,153,0.3);
}
.proto-hint {
    margin-top: 6px;
    font-size: 11px;
    color: var(--neutral-50);
}

/* ===== Material Symbols config ===== */
.material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ===== Responsive ===== */
@media (max-height: 900px) {
    .phone-frame { transform: scale(0.9); transform-origin: center; }
}
@media (max-height: 780px) {
    .phone-frame { transform: scale(0.8); transform-origin: center; }
}
