/* ═══════════════════════════════════════════════════════════════════════
   AI SALES PILOT — Quiet Luxury Design System
   Premium dark-mode interface for Enterprise sales training
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ──────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────── */
:root {
    /* Palette — Deep Charcoal with Muted Gold accents */
    --bg:          #0A0A0A;
    --bg-elevated: #111111;
    --surface:     #1A1A1A;
    --surface-2:   #222222;
    --border:      #2A2A2A;
    --border-hover:#3A3A3A;

    --accent:      #C9A96E;
    --accent-dim:  rgba(201, 169, 110, 0.15);
    --accent-glow: rgba(201, 169, 110, 0.25);

    --text:        #E8E4DF;
    --text-secondary: #9A9A9A;
    --muted:       #6B6B6B;

    --success:     #4ADE80;
    --error:       #F87171;
    --warning:     #FBBF24;
    --info:        #60A5FA;

    /* Equalizer colors */
    --eq-ai:       #4A90D9;
    --eq-listen:   #6B6B6B;
    --eq-user:     #C9A96E;

    /* Typography */
    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:   'JetBrains Mono', 'SF Mono', monospace;

    /* Spacing */
    --space-xs:    4px;
    --space-sm:    8px;
    --space-md:    16px;
    --space-lg:    24px;
    --space-xl:    32px;
    --space-2xl:   48px;
    --space-3xl:   64px;

    /* Radius */
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.3);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg:   0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition:      250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --sidebar-width: 64px;
    --header-height: 72px;
}


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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--text); }

::selection {
    background: var(--accent-dim);
    color: var(--accent);
}

/* Focus ring */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); }


/* ── Typography ────────────────────────────────────────────────────── */
.font-mono { font-family: var(--font-mono); }

.text-display {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.text-heading {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.text-body {
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
}

.text-caption {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
}

.text-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }
.text-success{ color: var(--success); }
.text-error  { color: var(--error); }


/* ── Layout Utilities ──────────────────────────────────────────────── */
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs  { gap: var(--space-xs); }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }
.gap-xl  { gap: var(--space-xl); }
.w-full  { width: 100%; }


/* ═══════════════════════════════════════════════════════════════════════
   COMPONENTS
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Card ──────────────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition);
}
.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}
.card--interactive:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.card--glass {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}


/* ── Button ────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}
.btn-primary:hover {
    background: #D4B878;
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}
.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    color: var(--text);
    background: var(--surface);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button loading spinner */
.btn--loading .btn__text { visibility: hidden; }
.btn--loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}


/* ── Input ─────────────────────────────────────────────────────────── */
.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.input-group label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    outline: none;
}
.input::placeholder {
    color: var(--muted);
}
.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.input--with-icon {
    padding-left: 44px;
}
.input-icon-wrapper {
    position: relative;
}
.input-icon-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
}


/* ── Sidebar ───────────────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md) var(--space-xs);
    z-index: 1000;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    box-shadow: var(--shadow-lg);
}

.sidebar:hover,
.sidebar--expanded {
    width: 220px;
}

.sidebar__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding: 0 4px;
}

.sidebar__logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    background: var(--accent-dim);
    flex-shrink: 0;
}

.sidebar__burger {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.sidebar__burger:hover {
    color: var(--text);
    background: var(--surface);
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    width: 100%;
    flex: 1;
}

.sidebar__link {
    width: 100%;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: var(--muted);
    transition: all var(--transition-fast);
    position: relative;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
}
.sidebar__link:hover {
    color: var(--text);
    background: var(--surface);
}
.sidebar__link--active {
    color: var(--accent);
    background: var(--accent-dim);
}
.sidebar__link--active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 3px;
    height: 20px;
    background: var(--accent);
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.sidebar__link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar__link-text {
    margin-left: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.sidebar:hover .sidebar__link-text,
.sidebar--expanded .sidebar__link-text {
    opacity: 1;
}


/* ── Onboarding Spotlight Tour Overlay, Spotlight & Card ─────────────── */
.onboarding-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 9990 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.onboarding-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}


.onboarding-spotlight-parent {
    z-index: 9998 !important;
    position: relative !important;
    animation: none !important;
    filter: none !important;
}

.onboarding-spotlight,
.onboarding-spotlight-active {
    position: relative !important;
    z-index: 9999 !important;
    background-color: #1A1A1A !important;
    color: var(--text) !important;
    border-radius: 12px !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 25px var(--accent) !important;
    pointer-events: auto !important;
    transition: box-shadow 0.3s ease;
}

.onboarding-popover,
.onboarding-card {
    position: fixed !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #141416;
    border: 1px solid var(--accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px var(--accent-glow);
    border-radius: 16px;
    padding: 22px;
    color: var(--text);
    font-family: var(--font-sans);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.onboarding-card.active,
.onboarding-popover.active {
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
}




.onboarding-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.onboarding-card__badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(201, 169, 110, 0.3);
}

.onboarding-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.onboarding-card__text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.onboarding-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.onboarding-card__close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}
.onboarding-card__close:hover { color: #fff; }

.onboarding-card__btn {
    background: linear-gradient(135deg, #C9A96E 0%, #A37F43 100%);
    color: #0A0A0A;
    border: none;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.onboarding-card__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}


/* ── Welcome Screen Modal ───────────────────────────────────────────── */
.welcome-card {
    position: fixed;
    z-index: 999999 !important;
    pointer-events: auto !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 420px;
    max-width: 90vw;
    background: #141416;
    border: 1px solid var(--accent);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px var(--accent-glow);
    border-radius: 20px;
    padding: 30px;
    color: var(--text);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.welcome-card.active {
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) scale(1);
}


.welcome-card__emoji {
    font-size: 42px;
    margin-bottom: 12px;
    display: inline-block;
}

.welcome-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.welcome-card__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.welcome-card__btn {
    width: 100%;
    background: linear-gradient(135deg, #C9A96E 0%, #A37F43 100%);
    color: #0A0A0A;
    border: none;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.welcome-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}




/* ── Main Content Area ─────────────────────────────────────────────── */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: var(--space-2xl) var(--space-2xl) var(--space-2xl) var(--space-3xl);
}

.page-header {
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.5s ease both;
}

.page-header__greeting {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.page-header__title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

.page-header__score {
    font-family: var(--font-mono);
    color: var(--accent);
}


/* ── Metric Cards ──────────────────────────────────────────────────── */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    animation: fadeInUp 0.5s ease both;
}
.metric-card:nth-child(2) { animation-delay: 0.1s; }
.metric-card:nth-child(3) { animation-delay: 0.2s; }

.metric-card__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--space-sm);
}

.metric-card__value {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1;
}

.metric-card__trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: var(--space-sm);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}
.metric-card__trend--up {
    color: var(--success);
    background: rgba(74, 222, 128, 0.1);
}
.metric-card__trend--down {
    color: var(--error);
    background: rgba(248, 113, 113, 0.1);
}


/* ── Niche Cards (Dashboard) ──────────────────────────────────────── */
.niche-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.niche-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease both;
}
.niche-card:nth-child(2) { animation-delay: 0.15s; }
.niche-card:nth-child(3) { animation-delay: 0.3s; }
.niche-card:nth-child(4) { animation-delay: 0.45s; }
.niche-card:nth-child(5) { animation-delay: 0.6s; }

.niche-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition);
}

.niche-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}
.niche-card:hover::before { opacity: 1; }

.niche-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
}

.niche-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
}

.niche-card__desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.niche-card__cta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition);
}
.niche-card:hover .niche-card__cta {
    opacity: 1;
    transform: translateY(0);
}
.niche-card__cta svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}
.niche-card:hover .niche-card__cta svg {
    transform: translateX(4px);
}


/* ── Progress Bars ─────────────────────────────────────────────────── */
.progress-section {
    animation: fadeInUp 0.5s ease 0.4s both;
}

.progress-section__title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--space-md);
}

.progress-bars {
    display: flex;
    align-items: flex-end;
    gap: var(--space-sm);
    height: 100px;
    padding: var(--space-md);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.progress-bar {
    flex: 1;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: var(--accent-dim);
    position: relative;
    transition: background var(--transition);
    animation: growUp 0.6s ease both;
}
.progress-bar:nth-child(1) { animation-delay: 0.5s; }
.progress-bar:nth-child(2) { animation-delay: 0.6s; }
.progress-bar:nth-child(3) { animation-delay: 0.7s; }
.progress-bar:nth-child(4) { animation-delay: 0.8s; }
.progress-bar:nth-child(5) { animation-delay: 0.9s; }

.progress-bar:hover {
    background: var(--accent);
}
.progress-bar__tooltip {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}
.progress-bar:hover .progress-bar__tooltip { opacity: 1; }


/* ═══════════════════════════════════════════════════════════════════════
   SIMULATION ROOM
   ═══════════════════════════════════════════════════════════════════════ */

.sim-room {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 520px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg);
    position: relative;
}

@media (min-width: 601px) {
    .sim-room {
        height: 90vh;
        min-height: 520px;
        margin-top: 5vh;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        overflow: hidden;
    }
}

.sim-room--no-sidebar {
    margin-left: auto;
    margin-right: auto;
}

/* ── Context Banner ────────────────────────────────────────────────── */
.sim-context {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 0.3s ease both;
}

.sim-context__role {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.sim-context__avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.125rem;
}

.sim-context__name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
}

.sim-context__desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.sim-context__step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sim-step-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--border);
    transition: all var(--transition);
}
.sim-step-dot--active {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}
.sim-step-dot--done {
    background: var(--success);
}


/* ── Equalizer ─────────────────────────────────────────────────────── */
.sim-equalizer {
    flex: 1;
    min-height: 0; /* allow shrinking */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-xl);
    overflow: hidden;
}

.equalizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 120px;
    padding: 0 var(--space-xl);
}

.eq-bar {
    width: 4px;
    border-radius: var(--radius-full);
    background: var(--eq-listen);
    transition: background var(--transition);
    animation: eqIdle 1.5s ease-in-out infinite;
}

/* 40 bars with staggered animations */
.eq-bar:nth-child(odd)  { animation-delay: 0s; }
.eq-bar:nth-child(even) { animation-delay: 0.3s; }
.eq-bar:nth-child(3n)   { animation-delay: 0.6s; }
.eq-bar:nth-child(5n)   { animation-delay: 0.15s; }
.eq-bar:nth-child(7n)   { animation-delay: 0.45s; }

/* State: AI Speaking */
.equalizer--ai-speaking .eq-bar {
    background: var(--eq-ai);
    animation-name: eqActive;
    animation-duration: 0.5s;
}

/* State: User Recording */
.equalizer--user-recording .eq-bar {
    background: var(--eq-user);
    animation-name: eqActive;
    animation-duration: 0.4s;
}

/* State: Processing */
.equalizer--processing .eq-bar {
    background: var(--muted);
    animation-name: eqProcessing;
    animation-duration: 1s;
}

.sim-status-text {
    font-size: 0.8125rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
}


/* ── Transcript ────────────────────────────────────────────────────── */
.sim-transcript {
    max-height: 220px;
    overflow-y: auto;
    padding: 0 var(--space-xl);
    width: 100%;
    max-width: 640px;
}

.transcript-line {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    animation: fadeInUp 0.3s ease both;
}

.transcript-line__role {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    min-width: 80px;
    text-align: right;
    padding-top: 2px;
}
.transcript-line__role--manager { color: var(--accent); }
.transcript-line__role--client  { color: var(--eq-ai); }

.transcript-line__text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .transcript-line {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .transcript-line__role {
        min-width: auto;
        text-align: center;
    }
    .transcript-line__text {
        text-align: center;
    }
    .sim-transcript {
        padding: 0 var(--space-md);
    }
}


/* ── Mic Button ────────────────────────────────────────────────────── */
.sim-controls {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    background: var(--bg-elevated);
    flex-shrink: 0; /* never compress — always visible */
}

.mic-btn {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent), #967e52);
    border: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(201, 169, 110, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
}
.mic-btn svg {
    width: 32px;
    height: 32px;
    z-index: 1;
}

.mic-btn:hover {
    box-shadow: 0 12px 30px rgba(201, 169, 110, 0.45);
    background: linear-gradient(135deg, #e0c38c, #aa8429);
}

.mic-btn:active {
    transform: scale(0.95);
}

.mic-btn--recording {
    background: #d32f2f !important;
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4) !important;
    color: #fff !important;
    animation: micPulse 1.5s ease infinite;
}
.mic-btn--recording::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: var(--radius-full);
    border: 2px solid var(--error);
    opacity: 0;
    animation: micRing 1.5s ease infinite;
}
.mic-btn--recording svg {
    color: #fff !important;
}

.mic-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--surface-2);
    color: var(--muted);
    box-shadow: none;
}

.mic-timer {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--error);
    min-width: 40px;
    text-align: center;
}

.sim-turn-indicator {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
}

/* ── Small viewport height (laptops at 100% zoom, 768-900px height) ── */
@media (max-height: 780px) {
    .sim-equalizer {
        gap: var(--space-md);
        padding: var(--space-md);
    }
    .equalizer {
        height: 80px;
    }
    .sim-transcript {
        max-height: 150px;
    }
    .mic-btn {
        width: 72px;
        height: 72px;
    }
    .mic-btn svg {
        width: 26px;
        height: 26px;
    }
    .sim-controls {
        padding: var(--space-md) var(--space-xl);
    }
}

@media (max-height: 640px) {
    .sim-equalizer {
        gap: var(--space-sm);
        padding: var(--space-sm);
    }
    .equalizer {
        height: 56px;
    }
    .sim-transcript {
        max-height: 100px;
    }
    .mic-btn {
        width: 60px;
        height: 60px;
    }
    .mic-btn svg {
        width: 22px;
        height: 22px;
    }
    .sim-controls {
        padding: var(--space-sm) var(--space-xl);
    }
}


/* ── CRM Brief Card (Pre-Simulation Briefing) ─────────────────────── */
.brief-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.4s ease both;
    padding: var(--space-xl);
    overflow-y: auto;
}

.brief-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeInUp 0.5s ease both;
    box-shadow: var(--shadow-lg);
}

.brief-card__header {
    padding: var(--space-xl) var(--space-xl) var(--space-md);
    border-bottom: 1px solid var(--border);
}

.brief-card__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.brief-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
}

.brief-card__subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.brief-card__body {
    padding: var(--space-lg) var(--space-xl);
}

.brief-field {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.brief-field + .brief-field {
    border-top: 1px solid var(--border);
}

.brief-field__icon {
    font-size: 1.125rem;
    min-width: 28px;
    text-align: center;
    padding-top: 2px;
}

.brief-field__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}

.brief-field__value {
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.5;
}

/* WhatsApp message preview */
.brief-whatsapp {
    margin-top: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
}

.brief-whatsapp__header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.brief-whatsapp__icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
}

.brief-whatsapp__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.brief-whatsapp__status {
    font-size: 0.6875rem;
    color: var(--warning);
    margin-left: auto;
}

.brief-whatsapp__text {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.65;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

/* Goal banner */
.brief-goal {
    margin-top: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--accent-dim);
    border: 1px solid rgba(201, 169, 110, 0.2);
    border-radius: var(--radius-md);
}

.brief-goal__title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.brief-goal__text {
    font-size: 0.8125rem;
    color: var(--text);
    line-height: 1.5;
}

/* Start call button */
.brief-card__footer {
    padding: var(--space-lg) var(--space-xl) var(--space-xl);
    border-top: 1px solid var(--border);
}

.brief-start-btn {
    width: 100%;
    padding: 16px 32px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.brief-start-btn:hover {
    background: #D4B878;
    box-shadow: 0 4px 24px rgba(201, 169, 110, 0.35);
    transform: translateY(-1px);
}

.brief-start-btn:active {
    transform: scale(0.98);
}

/* ═══════════════════════════════════════════════════════════════════════
   AUDIT SCREEN
   ═══════════════════════════════════════════════════════════════════════ */

.audit-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: var(--space-xl);
    min-height: calc(100vh - var(--space-2xl) * 2);
}

/* ── Left Panel: Score + Checklist ──────────────────────────────────── */
.audit-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    animation: fadeInUp 0.5s ease both;
}

.score-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.score-ring__svg {
    width: 160px;
    height: 160px;
    transform: rotate(-90deg);
    margin-bottom: var(--space-md);
}

.score-ring__bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 8;
}

.score-ring__fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-ring__value {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}

.score-ring__label {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: var(--space-xs);
}

/* Checklist */
.audit-checklist {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.audit-checklist__title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--space-md);
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
    animation: fadeInUp 0.3s ease both;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item:nth-child(2) { animation-delay: 0.1s; }
.checklist-item:nth-child(3) { animation-delay: 0.2s; }
.checklist-item:nth-child(4) { animation-delay: 0.3s; }

.checklist-item__icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.checklist-item__icon--pass {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
}
.checklist-item__icon--fail {
    background: rgba(248, 113, 113, 0.15);
    color: var(--error);
}

.checklist-item__text {
    font-size: 0.875rem;
    color: var(--text);
}

/* Stop Words */
.audit-stopwords {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.stopword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.stopword-tag {
    padding: 4px 12px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--error);
}


/* ── Right Panel: Transcript ───────────────────────────────────────── */
.audit-transcript-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    overflow-y: auto;
    animation: fadeInUp 0.5s ease 0.2s both;
}

.audit-transcript-panel__title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--space-lg);
    position: sticky;
    top: 0;
    background: var(--surface);
    padding-bottom: var(--space-sm);
}

.audit-turn {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    transition: background var(--transition-fast);
    cursor: default;
}
.audit-turn:hover {
    background: var(--bg-elevated);
}

.audit-turn--error {
    border-left: 3px solid var(--error);
    background: rgba(248, 113, 113, 0.05);
}

.audit-turn__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
}

.audit-turn__role {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.audit-turn__role--manager { color: var(--accent); }
.audit-turn__role--client  { color: var(--eq-ai); }

.audit-turn__text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.audit-turn__comment {
    margin-top: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(248, 113, 113, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--error);
    display: none;
}
.audit-turn--error:hover .audit-turn__comment {
    display: block;
    animation: fadeIn 0.2s ease both;
}


/* ── Audit Actions ─────────────────────────────────────────────────── */
.audit-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}


/* ═══════════════════════════════════════════════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════════════════════════════════════════════ */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient background */
.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at 30% 20%,
        rgba(201, 169, 110, 0.03) 0%,
        transparent 60%
    );
    animation: loginGlow 8s ease-in-out infinite alternate;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: var(--space-2xl);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease both;
}

.login-logo {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.login-logo__mark {
    width: 48px;
    height: 48px;
    background: var(--accent-dim);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    color: var(--accent);
}
.login-logo__mark svg {
    width: 24px;
    height: 24px;
}

.login-logo__text {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--text);
}

.login-logo__sub {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: var(--space-xs);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.login-error {
    padding: var(--space-sm) var(--space-md);
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: var(--radius-md);
    color: var(--error);
    font-size: 0.8125rem;
    text-align: center;
    display: none;
    animation: fadeIn 0.2s ease both;
}
.login-error--visible { display: block; }


/* ═══════════════════════════════════════════════════════════════════════
   ONBOARDING OVERLAY
   ═══════════════════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    animation: fadeIn 0.3s ease both;
}

.modal-card {
    background: #141416 !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6) !important;
    border-radius: 16px !important;
    padding: 32px !important;
    color: var(--text) !important;
    width: 100% !important;
    max-width: 450px !important;
    position: relative !important;
    animation: fadeInUp 0.3s ease both;
}



.legacy-onboarding-card {
    width: 100%;
    max-width: 520px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    animation: fadeInUp 0.5s ease both;
}

.legacy-onboarding-card__step {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.legacy-onboarding-card__icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
}

.legacy-onboarding-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-md);
}

.legacy-onboarding-card__desc {

    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.onboarding-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--border);
    transition: all var(--transition);
}
.onboarding-dot--active {
    background: var(--accent);
    width: 24px;
}


/* ═══════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes growUp {
    from { transform: scaleY(0); transform-origin: bottom; }
    to   { transform: scaleY(1); transform-origin: bottom; }
}

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

@keyframes loginGlow {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(3%, 5%); }
}

@keyframes eqIdle {
    0%, 100% { height: 6px; }
    50%      { height: 14px; }
}

@keyframes eqActive {
    0%   { height: 8px; }
    25%  { height: 60px; }
    50%  { height: 24px; }
    75%  { height: 80px; }
    100% { height: 12px; }
}

@keyframes eqProcessing {
    0%, 100% { height: 4px; opacity: 0.3; }
    50%      { height: 20px; opacity: 0.6; }
}

@keyframes micPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.3); }
    50%      { box-shadow: 0 0 0 12px rgba(248, 113, 113, 0); }
}

@keyframes micRing {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes scoreReveal {
    from { stroke-dashoffset: 440; }
}


/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .niche-grid {
        grid-template-columns: 1fr 1fr;
    }
    .audit-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }
    .sidebar { display: none; }
    .main-content {
        margin-left: 0;
        padding: var(--space-lg);
    }
    .niche-grid {
        display: flex;
        overflow-x: auto;
        gap: var(--space-md);
        padding-bottom: var(--space-md);
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE 10+ */
    }
    .niche-grid::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    .niche-card {
        flex: 0 0 85%;
        scroll-snap-align: start;
        margin-bottom: 0;
    }
    .login-card {
        margin: var(--space-md);
    }
}


/* ── Toast / Notification ──────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    color: var(--text);
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s ease both;
    z-index: 2000;
}
.toast--error { border-color: var(--error); }
.toast--success { border-color: var(--success); }


/* ── Language Dropdown Switcher ────────────────────────────────────── */
.lang-dropdown {
    position: absolute;
    left: 52px;
    bottom: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    padding: 4px;
    z-index: 1000;
    min-width: 60px;
    animation: fadeIn var(--transition-fast) ease both;
}

.lang-dropdown--open {
    display: flex;
}

.lang-dropdown__item {
    padding: 6px 12px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all var(--transition-fast);
}

.lang-dropdown__item:hover {
    color: var(--text);
    background: var(--surface);
}

.lang-dropdown__item.active {
    color: var(--accent);
    background: var(--accent-dim);
}
