/*
  Press Start 2P  — пиксельный UI
  DotGothic16     — пиксельный, покрывает Latin + японский (かな + кандзи)
  Noto Kufi Arabic — геометрический арабский, наиболее близок к пиксельному
  Noto Sans SC/KR  — фолбэк для китайского и корейского
*/
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=DotGothic16&family=Noto+Kufi+Arabic:wght@400;700&family=Noto+Sans+SC:wght@400;700&family=Noto+Sans+KR:wght@400;700&display=swap');

/* ══════════════════════════════════════════════════
   CSS VARIABLES
══════════════════════════════════════════════════ */
:root {
    --bg:           #EEF1F4;       /* холодный светлый */
    --bg-card:      #F8FAFB;
    --bg-nav:       #E2E6EA;
    --bg-input:     #FAFCFD;
    --border:       #1A2530;
    --text:         #1A2530;
    --text-muted:   #546878;
    --accent:       #0D5C72;       /* тёмный морской */
    --accent-h:     #094A5C;
    --accent-2:     #B83D18;       /* обожжённая глина */
    --accent-2-h:   #952E10;
    --emerald:      #1A7A4E;
    --emerald-light:#D6EFE3;
    --shadow:       4px 4px 0 #1A2530;
    --shadow-sm:    2px 2px 0 #1A2530;
    --shadow-lg:    6px 6px 0 #1A2530;
}

[data-theme="dark"] {
    --bg:           #090D12;       /* глубокий ночной */
    --bg-card:      #101720;
    --bg-nav:       #070B0F;
    --bg-input:     #141E28;
    --border:       #5BB8D4;       /* ледяной голубой */
    --text:         #D8EEF5;
    --text-muted:   #4A7A8E;
    --accent:       #38C0DC;       /* яркий циан */
    --accent-h:     #56D0E8;
    --accent-2:     #E8603A;       /* яркая глина */
    --accent-2-h:   #FF7A52;
    --emerald:      #2ECC80;
    --emerald-light:#08301E;
    --shadow:       4px 4px 0 #5BB8D4;
    --shadow-sm:    2px 2px 0 #5BB8D4;
    --shadow-lg:    6px 6px 0 #5BB8D4;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

/* Notebook grid — ненавязчивые клетки */
:root   { --grid-line: rgba(26,37,48,0.055); }
[data-theme="dark"] { --grid-line: rgba(91,184,212,0.045); }

body {
    font-family: 'DotGothic16', 'Noto Kufi Arabic', 'Noto Sans SC', 'Noto Sans KR', monospace;
    background: var(--bg);
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 28px 28px;
    color: var(--text);
    transition: background 0.25s, color 0.25s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════════════════
   PIXEL HELPERS
══════════════════════════════════════════════════ */
.px      { font-family: 'Press Start 2P', monospace; }
.b3      { border: 3px solid var(--border); }
.b2      { border: 2px solid var(--border); }
.sh      { box-shadow: var(--shadow); }
.sh-sm   { box-shadow: var(--shadow-sm); }
.sh-lg   { box-shadow: var(--shadow-lg); }

/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
.nav {
    position: sticky; top: 0; z-index: 200;
    background: color-mix(in srgb, var(--bg-nav) 72%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
    padding: env(safe-area-inset-top, 0px) 1.5rem 0;
    height: calc(60px + env(safe-area-inset-top, 0px));
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Группа всех элементов навбара (кроме логотипа) */
.nav__items {
    display: contents; /* на десктопе — как будто обёртки нет */
}

/* Группа мут+тема */
.nav__controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Гамбургер — скрыт на десктопе */
.nav__burger {
    display: none;
    background: none;
    border: 2px solid var(--border);
    color: var(--text);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    width: 2.2rem;
    height: 2.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Logo */
.nav__logo {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    letter-spacing: -1px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* pixel — красный (как "учись" на лендинге = accent-2)
   speech — загорается мягко, как слово при распознавании  */
.logo-dot   { color: var(--emerald); }
.logo-pixel { color: var(--accent-2); }          /* всегда красный */

@keyframes logoWord {
    0%, 25%, 100% { color: var(--text-muted); }
    12%            { color: var(--accent); }
}

.logo-speech { animation: logoWord 7s ease-in-out infinite; }

/* ── Language buttons (pixel flags) ─────────────────── */
.nav__lang-btns {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}

.nav__lang-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-muted);
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: none;
    line-height: 1;
}

.nav__lang-btn:hover {
    background: var(--bg);
    color: var(--text);
    transform: translate(-1px,-1px);
    box-shadow: var(--shadow);
}

.nav__lang-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.nav__lang-btn.active:hover {
    background: var(--accent-h);
    color: #fff;
}

.pixel-flag {
    display: block;
    width: 32px;   /* 16px × 2 — nearest-neighbour scale */
    height: 20px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.nav__lang-code { letter-spacing: 1px; }

.pixel-flag--lg { width: 48px; height: 30px; }

/* ── RU theme overrides: saturated blue (deeper than EN teal) ─ */
[data-learn-lang="ru"] {
    --accent:     #0F4BB8;
    --accent-h:   #0A3999;
    --accent-2:   #B83D18;
    --accent-2-h: #952E10;
}

[data-learn-lang="ru"][data-theme="dark"] {
    --accent:     #4A82F0;
    --accent-h:   #5A92FF;
    --accent-2:   #E8603A;
    --accent-2-h: #FF7A52;
}

/* ── ZH theme overrides: Chinese red + gold ─────────── */
[data-learn-lang="zh"] {
    --accent:     #C8181A;
    --accent-h:   #A61214;
    --accent-2:   #B8860B;
    --accent-2-h: #9A7209;
}

[data-learn-lang="zh"][data-theme="dark"] {
    --accent:     #FF3D3D;
    --accent-h:   #FF5555;
    --accent-2:   #FFD700;
    --accent-2-h: #FFE040;
}

/* Spacer */
.nav__spacer { flex: 1; }

/* Emerald balance (right side) */
.nav__emerald {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    background: var(--emerald-light);
    border: 2px solid var(--border);
    color: var(--emerald);
    padding: 0.35rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ◆ — пиксельный ромб, символ изумруда */
.nav__emerald .gem { font-size: 0.75rem; color: var(--emerald); }

/* Theme toggle */
.theme-btn {
    width: 36px; height: 36px;
    background: none;
    border: 2px solid var(--border);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: none;
}

.theme-btn:hover {
    background: var(--accent-2);
    color: #fff;
    transform: translate(-1px,-1px);
    box-shadow: var(--shadow-sm);
}

.theme-btn:active { transform: none; box-shadow: none; }

/* Mute button — красный немой */
.mute-btn {
    width: 36px; height: 36px;
    background: #C0221A;
    border: 2px solid var(--border);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: none;
    line-height: 1;
}

.mute-btn:hover {
    background: #A01812;
    transform: translate(-1px,-1px);
    box-shadow: var(--shadow);
}

.mute-btn:active { transform: none; box-shadow: none; }

.mute-btn.unmuted {
    background: var(--bg-card);
    color: var(--text);
}

.mute-btn.unmuted:hover { background: #C0221A; color: #fff; }

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    padding: 0.8rem 1.5rem;
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: none;
    line-height: 1;
    text-decoration: none;
}

.btn:hover   { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.btn:active  { transform: none; box-shadow: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { color: #fff; }

.btn-secondary { background: var(--accent-2); color: #fff; }
.btn-secondary:hover { color: #fff; }

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

.btn-emerald { background: var(--emerald); color: #fff; }
.btn-emerald:hover { color: #fff; }

.btn-sm {
    font-size: 0.45rem;
    padding: 0.5rem 1rem;
    border-width: 2px;
    box-shadow: var(--shadow-sm);
}
.btn-sm:hover { box-shadow: var(--shadow); }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Scanline texture */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(
        0deg, transparent, transparent 3px,
        rgba(0,0,0,0.025) 3px, rgba(0,0,0,0.025) 4px
    );
    pointer-events: none;
}

.hero__eyebrow {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    letter-spacing: 4px;
    color: var(--emerald);
    border: 2px solid var(--emerald);
    padding: 0.35rem 0.8rem;
    margin-bottom: 2.5rem;
    display: inline-block;
    background: var(--emerald-light);
}

.hero__title {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(1.1rem, 3.5vw, 2.2rem);
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 1.8rem;
}

.hero__title .t-amber { color: var(--accent); }
.hero__title .t-blue  { color: var(--accent-2); }

.hero__sub {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.9;
    margin-bottom: 2.8rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero__sub-actions {
    margin-top: 0.75rem;
    text-align: center;
}

.hero__all-link {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
    padding-bottom: 2px;
    transition: color 0.15s;
}

.hero__all-link:hover { color: var(--text); }

/* Blinking cursor */
@keyframes blink { 50% { opacity: 0; } }
.cursor::after {
    content: '▌';
    animation: blink 1s step-end infinite;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8em;
    color: var(--accent);
}

/* ══════════════════════════════════════════════════
   DEMO SECTION
══════════════════════════════════════════════════ */
.demo {
    padding: 5rem 1.5rem;
    background: var(--bg-card);
    border-top: 3px solid var(--border);
    border-bottom: 3px solid var(--border);
}

.demo__inner {
    max-width: 780px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-label::before {
    content: '//';
    color: var(--accent);
}

/* Language tabs */
.demo__tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.demo__tab {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    padding: 0.4rem 0.7rem;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: none;
}

.demo__tab:hover { background: var(--bg); }

.demo__tab.active {
    background: var(--accent-2);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

/* ── Dialog (demo + practice) ────────────────────────── */
.dialog-box {
    border: 3px solid var(--border);
    background: var(--bg-input);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-height: 160px;
}

.demo .dialog-box {
    min-height: 360px;
}

/* ── Practice: 3-event carousel window with torn-page edges ── */
.practice .dialog-box {
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 340px;
}

/* Gradient "torn page" fades at top and bottom */
.practice .dialog-box::before,
.practice .dialog-box::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 56px;
    pointer-events: none;
    z-index: 10;
}

.practice .dialog-box::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-input) 0%, transparent 100%);
}

.practice .dialog-box::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-input) 0%, transparent 100%);
}

/* Carousel inner container — slides via translateY */
.dialog-carousel {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem;
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    position: relative;
}

.dialog-line {
    display: flex;
    flex-direction: row-reverse; /* пользователь (B) — справа */
    gap: 0.8rem;
    align-items: flex-start;
    opacity: 0.35;
    transition: opacity 0.4s;
}

.dialog-line--npc { flex-direction: row; } /* NPC (A) — слева */

.dialog-line.active-line { opacity: 1; }
.dialog-line.done-line   { opacity: 0.65; }

/* Avatar */
.avatar {
    width: 44px; height: 44px;
    border: 3px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.38rem;
    flex-shrink: 0;
    position: relative;
    image-rendering: pixelated;
    box-shadow: var(--shadow-sm);
    line-height: 1.4;
    gap: 1px;
}

.avatar__face { font-size: 1rem; line-height: 1; }
.avatar__name { color: rgba(255,255,255,0.8); letter-spacing: 0; }

.avatar--user { background: var(--accent-2); color: #fff; }
.avatar--npc  { background: var(--accent);   color: #fff; }

/* Bubble */
.bubble {
    flex: 1;
    max-width: 82%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 0.7rem 1rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.dialog-line--npc .bubble {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.dialog-line.active-line .bubble {
    border-color: var(--accent-2);
    box-shadow: var(--shadow);
}

.bubble__emoji {
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    font-size: 1.35rem;
    line-height: 1;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--border);
    display: block;
    image-rendering: pixelated;
}

.dialog-line--npc .bubble__emoji {
    border-bottom-color: rgba(255,255,255,0.3);
}

.bubble__text {
    font-family: 'DotGothic16', 'Noto Kufi Arabic', 'Noto Sans SC', 'Noto Sans KR', monospace;
    font-size: 1rem;
    line-height: 1.9;
}

.bubble__audio {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.38rem;
    color: rgba(255,255,255,0.65);
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Score row */
.demo__footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.demo__score {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    color: var(--text-muted);
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.score-val {
    font-size: 0.75rem;
    color: var(--emerald);
    min-width: 3.5ch;
    display: inline-block;
    text-align: right;
}

.word {
    display: inline-block;
    padding: 0 2px;
    border-radius: 0;
    transition: color 0.35s ease, background-color 0.35s ease;
    cursor: default;
}

.word.done              { color: var(--emerald); }
.word.done.skipped      { color: var(--emerald); opacity: 0.38; }
.word.active {
    color: #fff;
    background-color: var(--accent-2);
    outline: 2px solid var(--accent-2);
    transform: none;
}

/* Waveform (fake) */
.demo__wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 32px;
    margin-bottom: 1.5rem;
}

.wave-bar {
    width: 4px;
    background: var(--text-muted);
    opacity: 0.3;
    transition: height 0.15s, opacity 0.15s, background 0.3s;
}

.wave-bar.active {
    background: var(--accent-2);
    opacity: 1;
}

@keyframes waveAnim {
    0%,100% { height: 4px; }
    50%      { height: var(--h); }
}

/* Controls */
.demo__controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════ */
.features {
    padding: 5rem 1.5rem;
    max-width: 1020px;
    margin: 0 auto;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feat-card {
    background: var(--bg-card);
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: none;
}

.feat-card:hover {
    transform: translate(-3px,-3px);
    box-shadow: var(--shadow-lg);
}

.feat-card__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feat-card__title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.feat-card__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ══════════════════════════════════════════════════
   PRICING
══════════════════════════════════════════════════ */
.pricing {
    padding: 5rem 1.5rem;
    background: var(--bg-card);
    border-top: 3px solid var(--border);
    border-bottom: 3px solid var(--border);
    scroll-margin-top: 70px;
}

.pricing__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.pricing__sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Блок «что входит» — единый для всех планов */
.pricing__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: 2px solid var(--border);
}

.pricing__feat {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.plan-card {
    background: var(--bg);
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
    padding: 2rem;
    position: relative;
    transition: none;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translate(-3px,-3px);
    box-shadow: var(--shadow-lg);
}

.plan-card.popular {
    border-color: var(--accent);
    box-shadow: var(--shadow), 0 0 0 1px var(--accent);
}

.plan-card__badge {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    background: var(--accent);
    color: #fff;
    padding: 0.3rem 0.7rem;
    border: 2px solid var(--border);
    white-space: nowrap;
}

.plan-card__name {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.plan-card__price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.plan-card__gem { font-size: 1.4rem; color: var(--emerald); }

.plan-card__amount {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.6rem;
    color: var(--emerald);
    line-height: 1;
}

.plan-card__unit {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.plan-card__cost {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.plan-card__subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.plan-card__day-rate {
    font-size: 0.78rem;
    color: var(--emerald);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.plan-card__saving {
    display: inline-block;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.38rem;
    background: color-mix(in srgb, var(--emerald) 12%, transparent);
    color: var(--emerald);
    border: 2px solid var(--emerald);
    padding: 0.3rem 0.6rem;
    margin-bottom: 1.5rem;
}

.plan-card__badge--amber {
    background: var(--accent-2);
    color: #fff;
    border-color: var(--accent-2);
}

.plan-card.annual {
    border-color: var(--accent-2);
    box-shadow: var(--shadow), 0 0 0 1px var(--accent-2);
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
    border-top: 3px solid var(--border);
    background: var(--bg-nav);
    padding: 2.5rem 2rem;
}

.footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__logo {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
}

.footer__cols {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__col-head {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: var(--text);
    margin-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

.footer__col a {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    color: var(--text-muted);
}

.footer__col a:hover { color: var(--accent); }

.footer__copy {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Кнопка «наверх» ──────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    right: 2rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ══════════════════════════════════════════════════
   COMPARE
══════════════════════════════════════════════════ */
.compare {
    padding: 4rem 1.5rem;
    background: var(--bg-card);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}

.compare__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 760px;
    margin: 2rem auto 0;
}

.compare__col {
    border: 2px solid var(--border);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.compare__col--bad  { background: var(--bg); }
.compare__col--good { background: var(--bg); border-color: var(--emerald); box-shadow: var(--shadow), 0 0 0 1px var(--emerald); }

.compare__col-head {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.compare__col--good .compare__col-head { color: var(--emerald); border-color: var(--emerald); }
.compare__col--bad  .compare__col-head { color: var(--accent-2); }

.compare__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.compare__list li {
    font-size: 0.8rem;
    line-height: 1.5;
}

.compare__col--bad  .compare__list li { color: var(--text-muted); }
.compare__col--good .compare__list li { color: var(--text); }

/* ══════════════════════════════════════════════════
   FREE CTA
══════════════════════════════════════════════════ */
.free-cta {
    padding: 5rem 1.5rem;
    text-align: center;
}

.free-cta__inner {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.free-cta__label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.free-cta__title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.1rem;
    line-height: 1.5;
}

.free-cta__sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════
   SMART PICK BUTTON (Exercise list)
══════════════════════════════════════════════════ */
.smart-pick-btn {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 0.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 0.25rem;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s;
}

.smart-pick-btn:hover {
    background: var(--accent-h);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.smart-pick-btn__icon {
    grid-row: 1 / 3;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.1rem;
    align-self: center;
}

.smart-pick-btn__text {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    line-height: 1.4;
}

.smart-pick-btn__sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}

/* ══════════════════════════════════════════════════
   TICKER
══════════════════════════════════════════════════ */
.ticker-wrap {
    overflow: hidden;
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    background: var(--bg-nav);
    padding: 0.55rem 0;
}

.ticker {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: tickerScroll 32s linear infinite;
}

.ticker span {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    white-space: nowrap;
    line-height: 1;
    display: inline-block;
}

.ticker span:nth-child(odd)  { color: var(--accent);  }
.ticker span:nth-child(even) { color: var(--accent-2); }

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════ */
.faq {
    padding: 4rem 1.5rem;
}

.faq__list {
    max-width: 760px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq__item {
    border: 2px solid var(--border);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.faq__item[open] {
    box-shadow: var(--shadow);
}

.faq__q {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    line-height: 1.6;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
    content: '▶';
    font-size: 0.4rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq__item[open] .faq__q::after {
    transform: rotate(90deg);
}

.faq__a {
    padding: 0 1.25rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

/* ══════════════════════════════════════════════════
   UTILITY
══════════════════════════════════════════════════ */
.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.t-center { text-align: center; }
.t-emerald { color: var(--emerald); }
.t-amber   { color: var(--accent); }
.t-blue    { color: var(--accent-2); }

/* ══════════════════════════════════════════════════
   RESPONSIVE — tablet (≤ 768px)
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Pricing grid */
    .pricing__grid      { grid-template-columns: 1fr; }

    /* Compare */
    .compare__grid      { grid-template-columns: 1fr; }

    /* Footer */
    .footer__inner      { flex-direction: column; }
    .footer__cols       { gap: 1.5rem; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — mobile (≤ 640px)
══════════════════════════════════════════════════ */
@media (max-width: 640px) {
    /* Nav */
    .nav                { padding: 0 0.75rem; gap: 0.5rem; height: 52px; }
    .nav__logo          { font-size: 0.7rem; }
    .nav__burger        { display: flex; }

    /* Мобильный drawer */
    .nav__items {
        display: none;
        position: fixed;
        top: calc(52px + env(safe-area-inset-top, 0px)); left: 0; right: 0;
        background: var(--bg-nav);
        border-bottom: 2px solid var(--border);
        padding: 1rem 1rem 1.25rem;
        flex-direction: column;
        gap: 1rem;
        z-index: 199;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .nav__items.open    { display: flex; }

    .nav__lang-btns     { justify-content: flex-start; gap: 0.5rem; }
    .nav__lang-btn      { padding: 0.4rem 0.6rem; font-size: 0.5rem; }
    .nav__lang-code     { display: inline; }

    .nav__controls      { gap: 0.75rem; }
    .mute-btn, .theme-btn { font-size: 1rem; }

    .nav__user          { width: 100%; }
    .nav__user-link     { flex: 1; }
    .nav__username      { display: inline; }

    .nav__login-btn     { width: 100%; text-align: center; padding: 0.6rem; }

    /* Hero */
    .hero               { padding: 2.5rem 1rem 2rem; min-height: 0; }
    .hero__title        { font-size: clamp(0.85rem, 5vw, 1.3rem); }
    .hero__sub          { font-size: 0.85rem; }
    .hero__actions      { flex-direction: column; width: 100%; gap: 0.6rem; }
    .hero__actions .btn { width: 100%; text-align: center; }
    .hero__eyebrow      { font-size: 0.4rem; }

    /* Demo */
    .demo               { padding: 2.5rem 1rem; }
    .demo .dialog-box   { min-height: 260px; }

    /* Ticker */
    .ticker             { animation-duration: 22s; }

    /* Features */
    .features           { padding: 2.5rem 1rem; }
    .features__grid     { grid-template-columns: 1fr; gap: 1rem; }
    .feat-card          { padding: 1.25rem; }
    .feat-card:hover    { transform: none; }

    /* Compare */
    .compare            { padding: 2.5rem 1rem; }
    .compare__col       { padding: 1rem; }

    /* FAQ */
    .faq                { padding: 2.5rem 1rem; }
    .faq__q             { font-size: 0.45rem; padding: 0.85rem 1rem; }
    .faq__a             { padding: 0.65rem 1rem 0.85rem; }

    /* Pricing */
    .pricing            { padding: 2.5rem 1rem; }
    .pricing__grid      { grid-template-columns: 1fr; }
    .pricing__feat      { white-space: normal; }
    .plan-card          { padding: 1.25rem; }
    .plan-card:hover    { transform: none; }

    /* Free CTA */
    .free-cta           { padding: 3rem 1rem; }
    .free-cta__title    { font-size: 0.85rem; }

    /* Exercise list */
    .page               { padding: 1.5rem 1rem; }
    .exercise-grid      { grid-template-columns: 1fr; gap: 0.75rem; }
    .ex-card            { padding: 1rem; }
    .ex-card:hover      { transform: none; }
    .smart-pick-btn     { padding: 1rem 1.25rem; }
    .smart-pick-btn__text { font-size: 0.5rem; }
    .diff-bar           { gap: 0.35rem; flex-wrap: wrap; }
    .diff-btn           { font-size: 0.4rem; padding: 0.35rem 0.5rem; }

    /* Practice page */
    .practice           { padding: 1rem 0.75rem; }
    .done-panel__btns   { flex-direction: column; }
    .done-panel__score  { font-size: 1.8rem; }

    /* Footer */
    .footer             { padding: 2rem 1rem; }
    .footer__logo       { font-size: 0.65rem; }
    .back-to-top        { bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); right: 1rem; width: 2rem; height: 2rem; font-size: 0.45rem; }

    /* Cookie banner */
    .cookie-banner      { flex-direction: column; align-items: flex-start; bottom: 0; width: 100%; left: 0; transform: none; border-left: none; border-right: none; border-bottom: none; }
    .cookie-banner__btn { width: 100%; text-align: center; }

    /* Убираем hover-трансформации на touch */
    .feat-card:hover, .plan-card:hover, .ex-card:hover { box-shadow: var(--shadow); }
}

/* ══════════════════════════════════════════════════
   404 PAGE
══════════════════════════════════════════════════ */
.notfound {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    gap: 1.25rem;
}

.notfound__code {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(3rem, 15vw, 7rem);
    color: var(--accent-2);
    text-shadow: 6px 6px 0 var(--border);
    line-height: 1;
}

.notfound__msg {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(0.55rem, 2vw, 0.85rem);
    color: var(--text);
    margin: 0;
}

.notfound__sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 360px;
    line-height: 1.8;
    margin: 0;
}

/* ══════════════════════════════════════════════════
   HERO — language pills
══════════════════════════════════════════════════ */
.hero__langs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
}

.hero__lang-pill {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    padding: 0.35rem 0.65rem;
    border: 2px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: none;
}

.hero__lang-pill:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
    transform: translate(-1px,-1px);
}

/* ══════════════════════════════════════════════════
   EXERCISE LIST PAGE
══════════════════════════════════════════════════ */
.page {
    max-width: 1040px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.page__header {
    margin-bottom: 2.5rem;
}

.page__title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.page__title .t-flag { font-family: 'Noto Sans', sans-serif; font-size: 1.4rem; }

/* Lang filter bar */
.lang-bar {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border);
}

.lang-bar__item {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    padding: 0.4rem 0.75rem;
    border: 2px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: none;
    text-decoration: none;
}

.lang-bar__item:hover  { background: var(--accent-2); color: #fff; box-shadow: var(--shadow-sm); }
.lang-bar__item.active { background: var(--accent-2); color: #fff; box-shadow: var(--shadow-sm); }

/* Exercise search */
.ex-search-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    border: 3px solid var(--border);
    background: var(--bg-card);
    padding: 0.5rem 0.75rem;
    box-shadow: var(--shadow-sm);
}

.ex-search-bar__icon { font-size: 0.85rem; flex-shrink: 0; }

.ex-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'DotGothic16', monospace;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
}

.ex-search-input::placeholder { color: var(--text-muted); }

.ex-search-count {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.38rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Difficulty filter */
.diff-bar {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    align-items: center;
}

.diff-bar__label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.diff-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    padding: 0.35rem 0.65rem;
    border: 2px solid var(--border);
    background: none;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.diff-btn:hover, .diff-btn.active { background: var(--accent); color: #fff; }

/* Exercise cards */
.exercise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
}

.ex-card {
    background: var(--bg-card);
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: none;
}

.ex-card:hover {
    transform: translate(-3px,-3px);
    box-shadow: var(--shadow-lg);
}

.ex-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ex-card__diff {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    padding: 0.25rem 0.5rem;
    border: 2px solid var(--border);
}

.diff-1 { color: var(--emerald);  border-color: var(--emerald); }
.diff-2 { color: var(--accent);   border-color: var(--accent);  }
.diff-3 { color: var(--accent-2); border-color: var(--accent-2); }

.ex-card__cost {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    color: var(--emerald);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ex-card__text {
    font-family: 'DotGothic16', 'Noto Kufi Arabic', 'Noto Sans SC', 'Noto Sans KR', monospace;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.8;
    flex: 1;
}

.ex-card__title-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 0.3rem;
}

.ex-card__footer {
    border-top: 2px solid var(--border);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ex-card__events {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.38rem;
    color: var(--text-muted);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.empty-state__icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.empty-state__text {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    line-height: 1.8;
}

/* ══════════════════════════════════════════════════
   PRACTICE PAGE
══════════════════════════════════════════════════ */
.practice {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    position: relative;
}

.practice__back {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 2rem;
    text-decoration: none;
}

.practice__back:hover { color: var(--accent); }

.practice__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.practice__lang {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.practice__lang .flag { font-family: 'Noto Sans', sans-serif; font-size: 1.2rem; }

.practice__cost {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: var(--emerald);
    background: var(--emerald-light);
    border: 2px solid var(--border);
    padding: 0.35rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Reading card */
.reading-card {
    background: var(--bg-input);
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
    margin-bottom: 1.5rem;
    min-height: 140px;
}

.reading-text {
    font-family: 'DotGothic16', 'Noto Kufi Arabic', 'Noto Sans SC', 'Noto Sans KR', monospace;
    font-size: 1.6rem;
    line-height: 2.2;
    color: var(--text);
}

/* Progress bar */
.progress-bar {
    height: 8px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    background: var(--emerald);
    transition: width 0.3s ease;
    width: 0%;
}

/* Mic button */
.mic-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.mic-btn {
    width: 80px; height: 80px;
    background: var(--bg-card);
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.mic-btn:hover {
    background: var(--accent-2);
    transform: translate(-3px,-3px);
    box-shadow: var(--shadow-lg);
}

.mic-btn.recording {
    background: #DC2626;
    border-color: #DC2626;
    color: #fff;
    animation: micPulse 1s ease-in-out infinite;
}

@keyframes micPulse {
    0%,100% { box-shadow: var(--shadow); }
    50%      { box-shadow: 0 0 0 8px rgba(220,38,38,0.2), var(--shadow); }
}

.mic-btn.retry {
    background: #D97706;
    border-color: #D97706;
    color: #fff;
    box-shadow: 6px 6px 0 rgba(217,119,6,0.35);
    animation: retryPulse 1.1s ease-in-out infinite;
}

@keyframes retryPulse {
    0%,100% { transform: scale(1);    box-shadow: 6px 6px 0 rgba(217,119,6,0.35); }
    50%      { transform: scale(1.07); box-shadow: 8px 8px 0 rgba(217,119,6,0.5); }
}

.mic-label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    color: var(--text-muted);
}

/* Done panel (replaces mic button on finish) */
#micControls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* ── Кнопка "прослушать" текущую реплику ────────────────── */
.listen-btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.38rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-muted);
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: var(--shadow-sm);
    transition: none;
    line-height: 1;
    letter-spacing: 0.02em;
}

.listen-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translate(-1px, -1px);
    box-shadow: var(--shadow);
}

.listen-btn:active { transform: none; box-shadow: none; }

.listen-btn:disabled,
.listen-btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.listen-btn[hidden] { display: none; }

/* ── Полноэкранный загрузчик модели ─────────────────────── */
.model-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: overlayIn 0.2s ease-out;
}
.model-overlay[hidden] { display: none !important; }

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

.model-overlay__box {
    background: var(--bg-card);
    border: 3px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    min-width: 280px;
    text-align: center;
    animation: boxSlideUp 0.25s ease-out;
}

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

.model-overlay__icon {
    font-size: 2.5rem;
    line-height: 1;
    animation: iconPop 0.75s ease-in-out infinite alternate;
}

@keyframes iconPop {
    0%   { transform: scale(1);    opacity: 0.7; }
    100% { transform: scale(1.22); opacity: 1;   }
}

.model-overlay__title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    color: var(--text);
    letter-spacing: 0.06em;
    animation: labelBlink 0.9s step-end infinite;
}

@keyframes labelBlink {
    0%, 60%, 100% { opacity: 1; }
    30%            { opacity: 0.3; }
}

.model-overlay__track {
    width: 200px;
    height: 12px;
    border: 3px solid var(--border);
    background: var(--bg-input);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.model-overlay__fill {
    position: absolute;
    top: 0; bottom: 0;
    width: 40%;
    background: var(--accent);
    animation: pixelScan 1.1s ease-in-out infinite;
}

@keyframes pixelScan {
    0%   { left: -40%; }
    100% { left: 100%; }
}

.model-overlay__sub {
    font-family: 'DotGothic16', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.done-panel {
    display: none;
    text-align: center;
    width: 100%;
    animation: fadeSlideUp 0.35s ease-out;
}

.done-panel.visible { display: block; }

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

.done-panel__label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    color: var(--emerald);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}

.done-panel__score {
    font-family: 'Press Start 2P', monospace;
    font-size: 2.5rem;
    color: var(--emerald);
    margin-bottom: 0.5rem;
}

.done-panel__sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.done-panel__btns {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Done panel tiers */
.done-panel.result--perfect .done-panel__label { color: #FFD700; }
.done-panel.result--perfect .done-panel__score {
    color: #FFD700;
    animation: scorePop 0.35s ease-out 3;
}

@keyframes scorePop {
    0%,100% { transform: scale(1); }
    50%      { transform: scale(1.14); }
}

/* Victory particles */
.victory-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    line-height: 1;
    font-size: var(--sz, 1.4rem);
    animation: victoryRain var(--dur, 1.2s) ease-in var(--delay, 0s) forwards;
}

@keyframes victoryRain {
    0%   { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
    80%  { opacity: 0.7; }
    100% { opacity: 0; transform: translateY(65vh) rotate(var(--rot, 200deg)) scale(0.2); }
}

/* Контейнер фиксированной высоты — wave и playback не сдвигают верстку */
.anim-slot {
    position: relative;
    height: 40px;
    margin-bottom: 0.5rem;
}

.anim-slot > .practice__wave,
.anim-slot > .demo__wave,
.anim-slot > .playback-anim {
    position: absolute;
    inset: 0;
    margin-bottom: 0;
    width: 100%;
}

/* Waveform (practice page) */
.practice__wave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
    justify-content: center;
    margin-bottom: 0.5rem;
}

/* ── Playback animation (NPC lines) ─────────────────────
   Горизонтальные лучи из динамика — намеренно отличается
   от вертикального waveform микрофона по форме и цвету.
──────────────────────────────────────────────────────── */
.playback-anim {
    display: none;
    align-items: center;
    gap: 0.75rem;
    height: 40px;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.playback-anim.active { display: flex; }

.playback-anim__icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    animation: speakerPop 0.7s ease-in-out infinite alternate;
}

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

.playback-anim__rays {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
}

.playback-anim__ray {
    height: 3px;
    background: var(--accent);
    box-shadow: 1px 1px 0 var(--border);
    transform-origin: left center;
    animation: rayPulse 1s ease-in-out infinite alternate;
}

.playback-anim__ray:nth-child(1) { width: 56px; animation-delay: 0s;    }
.playback-anim__ray:nth-child(2) { width: 40px; animation-delay: 0.18s; }
.playback-anim__ray:nth-child(3) { width: 68px; animation-delay: 0.34s; }
.playback-anim__ray:nth-child(4) { width: 32px; animation-delay: 0.09s; }
.playback-anim__ray:nth-child(5) { width: 52px; animation-delay: 0.25s; }

@keyframes rayPulse {
    0%   { transform: scaleX(0.2); opacity: 0.35; }
    100% { transform: scaleX(1);   opacity: 1;    }
}

/* ═══════════════════ AUTH NAV ═══════════════════════════ */
.nav__login-btn { margin-left: 0.5rem; }

.nav__user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

/* Аватар + имя — единая кликабельная ссылка на профиль */
.nav__user-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.45rem;
    border: 2px solid transparent;
    text-decoration: none;
    transition: border-color 0.15s;
}

.nav__user-link:hover {
    border-color: var(--border);
    background: var(--bg-card);
}

.nav__avatar {
    width: 28px; height: 28px;
    border-radius: 0;
    border: 2px solid var(--border);
    image-rendering: pixelated;
    object-fit: cover;
    flex-shrink: 0;
}

.nav__avatar--initials {
    display: flex; align-items: center; justify-content: center;
    background: var(--accent);
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.5rem;
    text-transform: uppercase;
}

.nav__username {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    color: var(--text);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav__logout-form { margin: 0; }

.nav__logout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0 0.2rem;
    line-height: 1;
}
.nav__logout-btn:hover { color: #DC2626; }

/* ═══════════════════ LOGIN PAGE ═════════════════════════ */
.login-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    background: var(--bg-card);
    border: 3px solid var(--border);
    box-shadow: var(--shadow);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.login-card__eyebrow {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.login-card__title {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}

.login-card__sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.login-btns {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 3px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    cursor: pointer;
    text-decoration: none;
    transition: none;
    box-shadow: 4px 4px 0 var(--border);
}

.login-btn:hover {
    transform: translate(-2px,-2px);
    box-shadow: 6px 6px 0 var(--border);
}
.login-btn:active {
    transform: translate(2px,2px);
    box-shadow: 2px 2px 0 var(--border);
}

.login-btn__icon {
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.login-btn__icon--text {
    background: #FC3F1D;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    border-radius: 0;
}

.login-btn--google  { border-color: #4285F4; }
.login-btn--google:hover  { background: rgba(66,133,244,0.08); }

.login-btn--yandex  { border-color: #FC3F1D; }
.login-btn--yandex:hover  { background: rgba(252,63,29,0.08); }

.login-btn--tg      { border-color: #2AABEE; }
.login-btn--tg:hover      { background: rgba(42,171,238,0.08); }

.login-btn--disabled { opacity: 0.4; pointer-events: none; }

.login-tg {
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
}

/* ════════════════════════════════════════════════════════════
   Admin Panel
   ════════════════════════════════════════════════════════════ */
.admin-page {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.admin-title {
    font-size: 1rem;
    color: var(--c-accent);
    margin: 0;
}

.admin-breadcrumb {
    font-size: 0.5rem;
    color: var(--c-muted);
    text-decoration: none;
}
.admin-breadcrumb:hover { color: var(--c-accent); }
.admin-breadcrumb-sep { margin: 0 0.4rem; color: var(--c-muted); font-size: 0.5rem; }

/* Stats */
.admin-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.stat-card {
    border: 3px solid var(--border);
    background: var(--bg-card);
    padding: 1rem 1.25rem;
    box-shadow: 4px 4px 0 var(--border);
    min-width: 100px;
    text-align: center;
}
.stat-card__value {
    font-size: 1.4rem;
    color: var(--c-accent);
    margin-bottom: 0.25rem;
}
.stat-card__label {
    font-size: 0.4rem;
    color: var(--c-muted);
}

/* Nav cards */
.admin-nav-cards {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.admin-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border: 3px solid var(--border);
    background: var(--bg-card);
    padding: 1.25rem 1.5rem;
    box-shadow: 4px 4px 0 var(--border);
    text-decoration: none;
    color: var(--text);
    font-size: 0.5rem;
    transition: none;
}
.admin-nav-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--border); }
.admin-nav-card__icon { font-size: 1.5rem; }

/* Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.45rem;
}
.admin-table th,
.admin-table td {
    border: 2px solid var(--border);
    padding: 0.5rem 0.6rem;
    text-align: left;
}
.admin-table th {
    background: var(--bg-card);
    color: var(--c-muted);
    font-size: 0.4rem;
}
.admin-table__text {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-table__actions {
    white-space: nowrap;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.admin-action {
    background: none;
    border: 2px solid var(--border);
    padding: 0.2rem 0.4rem;
    font-size: 0.55rem;
    cursor: pointer;
    color: var(--text);
    text-decoration: none;
    font-family: inherit;
}
.admin-action:hover { border-color: var(--c-accent); color: var(--c-accent); }
.admin-action--danger:hover { border-color: var(--c-wrong); color: var(--c-wrong); }

/* Form */
.admin-form { display: flex; flex-direction: column; gap: 1rem; max-width: 640px; }
.admin-form__row { display: flex; gap: 1rem; flex-wrap: wrap; }
.admin-form__group { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; min-width: 140px; }
.admin-form__group--check { justify-content: flex-end; min-width: auto; }
.admin-form__group label { font-size: 0.4rem; color: var(--c-muted); }
.admin-form__footer { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.admin-input {
    border: 3px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: 'Press Start 2P', monospace;
    font-size: 0.45rem;
    padding: 0.5rem 0.6rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.admin-input:focus { border-color: var(--c-accent); }
.admin-error { font-size: 0.4rem; color: var(--c-wrong); }

/* Alert */
.admin-alert { padding: 0.75rem 1rem; font-size: 0.45rem; border: 3px solid; margin-bottom: 1rem; }
.admin-alert--ok  { border-color: var(--c-correct); color: var(--c-correct); }
.admin-alert--err { border-color: var(--c-wrong); color: var(--c-wrong); }

/* Badge */
.admin-badge {
    display: inline-block;
    border: 2px solid var(--border);
    padding: 0.1rem 0.35rem;
    font-size: 0.38rem;
    margin-right: 0.25rem;
}
.admin-badge--ok { border-color: var(--c-correct); color: var(--c-correct); }

/* TTS */
.admin-tts { margin-top: 2rem; border-top: 3px solid var(--border); padding-top: 1.5rem; max-width: 640px; }
.admin-tts__title { font-size: 0.5rem; color: var(--c-muted); margin-bottom: 1rem; }
.admin-tts__langs { display: flex; flex-direction: column; gap: 0.75rem; }
.admin-tts__item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-tts__info { display: flex; align-items: center; gap: 0.75rem; }
.admin-tts__player { height: 28px; }
.admin-tts__none { font-size: 0.4rem; color: var(--c-muted); }

/* ── Profile page ── */
.profile { max-width: 780px; margin: 0 auto; padding: 3rem 1.5rem; display: flex; flex-direction: column; gap: 2rem; }
.profile__hero { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.profile__avatar { width: 64px; height: 64px; border: 3px solid var(--border); box-shadow: var(--shadow); image-rendering: pixelated; object-fit: cover; }
.profile__avatar--initials { display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-family: 'Press Start 2P', monospace; font-size: 1.2rem; }
.profile__name { font-family: 'Press Start 2P', monospace; font-size: 0.75rem; color: var(--text); margin-bottom: 0.4rem; }
.profile__meta { font-size: 0.8rem; color: var(--text-muted); }
.premium-badge { font-family: 'Press Start 2P', monospace; font-size: 0.38rem; background: var(--emerald); color: #fff; padding: 0.3rem 0.65rem; border: 2px solid var(--border); display: inline-flex; align-items: center; gap: 0.3rem; }

.profile-card { background: var(--bg-card); border: 3px solid var(--border); box-shadow: var(--shadow); padding: 1.5rem; }
.profile-card__title { font-family: 'Press Start 2P', monospace; font-size: 0.5rem; color: var(--text-muted); margin-bottom: 1.2rem; letter-spacing: 0.04em; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat-box { background: var(--bg-card); border: 3px solid var(--border); box-shadow: var(--shadow); padding: 1.2rem; text-align: center; }
.stat-box__val { font-family: 'Press Start 2P', monospace; font-size: 1.6rem; color: var(--emerald); margin-bottom: 0.5rem; }
.stat-box__label { font-family: 'Press Start 2P', monospace; font-size: 0.38rem; color: var(--text-muted); line-height: 1.7; }

.activity-table { width: 100%; border-collapse: collapse; }
.activity-table th { font-family: 'Press Start 2P', monospace; font-size: 0.38rem; color: var(--text-muted); text-align: left; padding: 0.5rem 0.75rem; border-bottom: 2px solid var(--border); }
.activity-table td { font-size: 0.85rem; color: var(--text); padding: 0.6rem 0.75rem; border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent); }
.activity-table tbody tr { cursor: pointer; transition: background 0.12s; }
.activity-table tbody tr:hover td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.score-chip { font-family: 'Press Start 2P', monospace; font-size: 0.4rem; padding: 0.25rem 0.5rem; border: 2px solid var(--border); }
.score-chip--good { color: var(--emerald); border-color: var(--emerald); }
.score-chip--ok   { color: var(--accent);  border-color: var(--accent);  }
.score-chip--low  { color: var(--accent-2); border-color: var(--accent-2); }

.sub-info { display: flex; flex-direction: column; gap: 0.6rem; }
.sub-info__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sub-info__label { font-family: 'Press Start 2P', monospace; font-size: 0.4rem; color: var(--text-muted); }
.sub-info__val { font-size: 0.9rem; color: var(--text); }

.ex-link { color: var(--accent); text-decoration: underline; }
.ex-link:hover { color: var(--accent-h); }

.flash-msg { border: 2px solid var(--emerald); background: var(--emerald-light); color: var(--emerald); padding: 0.75rem 1rem; font-family: 'Press Start 2P', monospace; font-size: 0.42rem; line-height: 1.7; }

/* ══════════════════════════════════════════════════
   AVATAR PICKER (profile page)
══════════════════════════════════════════════════ */
.avatar-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.avatar-pick-btn {
    width: 48px; height: 48px;
    font-size: 1.5rem;
    line-height: 1;
    background: var(--bg-card);
    border: 3px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
    position: relative;
    padding: 0;
}

.avatar-pick-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow);
    background: var(--bg);
}

.avatar-pick-btn.selected {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px var(--emerald);
}

.avatar-pick-btn--locked {
    opacity: 0.45;
    cursor: not-allowed;
}

.avatar-pick-btn--locked:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.avatar-lock {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 0.55rem;
    background: var(--accent-2);
    color: #fff;
    border-radius: 0;
    padding: 1px 3px;
    font-family: 'Press Start 2P', monospace;
    line-height: 1;
    border: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════
   LEGAL PAGES (privacy, terms)
══════════════════════════════════════════════════ */
.legal-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legal-page__title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 0;
}

.legal-page__date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: -1.25rem;
}

.legal-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legal-section h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.55rem;
    color: var(--accent);
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.legal-section p,
.legal-section li {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.75;
}

.legal-section ul {
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.legal-section a {
    color: var(--accent);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--accent-h);
}

/* ══════════════════════════════════════════════════
   COOKIE BANNER
══════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 640px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    font-size: 0.65rem;
}

.cookie-banner p {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    flex: 1;
}

.cookie-banner a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner__btn {
    flex-shrink: 0;
    padding: 0.4rem 0.9rem;
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-family: inherit;
    font-size: 0.6rem;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-banner__btn:hover {
    background: var(--accent-h);
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--border);
}

.cookie-banner.hidden {
    display: none;
}

/* ══════════════════════════════════════════════════
   PAYWALL OVERLAY
══════════════════════════════════════════════════ */
.paywall-overlay {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.paywall-overlay[hidden] { display: none; }

.paywall-box {
    background: var(--bg-card);
    border: 3px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: calc(100% - 3rem);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.paywall-box__icon {
    font-size: 2rem;
    color: var(--accent);
}

.paywall-box__label {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.paywall-box__title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    color: var(--text);
    line-height: 1.8;
}

.paywall-box__sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.paywall-box__btns {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
}
