@font-face { font-family: 'Be Vietnam Pro'; font-weight: 400; font-display: swap; src: url(/fonts/BeVietnamPro-400.ttf) format('truetype'); }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 500; font-display: swap; src: url(/fonts/BeVietnamPro-500.ttf) format('truetype'); }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 600; font-display: swap; src: url(/fonts/BeVietnamPro-600.ttf) format('truetype'); }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 700; font-display: swap; src: url(/fonts/BeVietnamPro-700.ttf) format('truetype'); }
@font-face { font-family: 'Be Vietnam Pro'; font-weight: 800; font-display: swap; src: url(/fonts/BeVietnamPro-800.ttf) format('truetype'); }

:root {
  --ink: #1D1F23;
  --ink-2: #3A3D44;
  --muted: #6B7079;
  --faint: #9AA0A9;
  --line: #E7E9ED;
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --blue: #4C8DF6;
  --blue-soft: #EAF2FF;
  --green: #8CCB72;
  --green-deep: #4F9A35;
  --green-soft: #EEF8EA;
  --red: #E5484D;
  --red-soft: #FDECEC;
  --amber: #E9A23B;
  --amber-soft: #FDF4E6;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 1px 2px rgba(29, 31, 35, .04), 0 8px 24px rgba(29, 31, 35, .06);
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--card); -webkit-font-smoothing: antialiased; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }
.en { font-feature-settings: 'kern'; }
[hidden] { display: none !important; }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; background: var(--ink); color: #fff; transition: transform .12s, opacity .2s, background .2s; white-space: nowrap; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; cursor: default; transform: none; }
.btn.blue { background: var(--blue); }
.btn.green { background: var(--green-deep); }
.btn.ghost { background: var(--bg); color: var(--ink); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn svg { width: 20px; height: 20px; }
.link { color: var(--blue); font-weight: 600; text-decoration: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.icon-btn svg { width: 22px; height: 22px; }

/* Trang giới thiệu */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(20px, 5vw, 64px); background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { color: var(--muted); font-weight: 600; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.hero { padding: clamp(40px, 9vw, 112px) 0 clamp(40px, 7vw, 88px); display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); font-weight: 700; font-size: 14px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { margin-top: 20px; font-size: clamp(38px, 6.2vw, 68px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p.lead { margin-top: 20px; font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 560px; }
.hero .cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.phone { position: relative; background: var(--ink); border-radius: 40px; padding: 14px; box-shadow: 0 30px 60px rgba(29, 31, 35, .18); max-width: 340px; justify-self: center; width: 100%; }
.phone .screen { background: #fff; border-radius: 28px; padding: 22px 20px; min-height: 480px; display: flex; flex-direction: column; gap: 14px; }
.phone .bar { display: flex; gap: 4px; }
.phone .bar i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.phone .bar i.on { background: var(--ink); }
.phone .step-name { font-size: 13px; font-weight: 700; color: var(--muted); }
.bubble-ai { align-self: flex-start; background: var(--bg); border-radius: 20px 20px 20px 6px; padding: 12px 16px; font-weight: 600; max-width: 85%; }
.bubble-ai small, .bubble-me small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.bubble-me { align-self: flex-end; background: var(--blue); color: #fff; border-radius: 20px 20px 6px 20px; padding: 12px 16px; font-weight: 600; max-width: 85%; }
.bubble-me small { color: rgba(255, 255, 255, .8); }
.timer-demo { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font-size: 14px; }

section.block { padding: clamp(56px, 8vw, 96px) 0; }
section.block.gray { background: var(--bg); }
.block h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; max-width: 760px; }
.block p.sub { margin-top: 14px; color: var(--ink-2); font-size: 18px; max-width: 680px; }
.grid { display: grid; gap: 16px; margin-top: 40px; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.feat { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.block.gray .feat { box-shadow: none; }
.feat .num { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--ink); margin-bottom: 18px; }
.feat:nth-child(3n+2) .num { background: var(--blue); }
.feat:nth-child(3n+3) .num { background: var(--green-deep); }
.feat h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.feat p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.compare { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare > div { border-radius: var(--radius); padding: 28px; }
.compare .old { background: var(--bg); }
.compare .new { background: var(--ink); color: #fff; }
.compare h3 { font-size: 18px; margin-bottom: 14px; }
.compare ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.compare li { display: flex; gap: 12px; font-size: 15.5px; }
.compare li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 9px; background: var(--faint); }
.compare .new li::before { background: var(--green); }
.phases { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.phase { border-radius: var(--radius); padding: 24px; background: var(--card); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.phase .wk { font-size: 13px; font-weight: 700; color: var(--muted); }
.phase h3 { margin-top: 6px; font-size: 22px; letter-spacing: -.02em; }
.phase p { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
.phase::after { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--ink); }
.phase:nth-child(2)::after { background: var(--blue); }
.phase:nth-child(3)::after { background: var(--green); }
.phase:nth-child(4)::after { background: var(--amber); }
.voice-card { margin-top: 40px; display: flex; gap: 28px; align-items: center; background: var(--ink); color: #fff; border-radius: 32px; padding: 32px; }
.voice-card .play.big { flex: none; }
.voice-card h3 { font-size: 24px; letter-spacing: -.02em; }
.voice-card p { margin-top: 8px; color: rgba(255, 255, 255, .78); }
.voice-card .samples { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.voice-card .samples button { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; font-size: 14px; }
.voice-card .samples button.playing { background: var(--green); color: var(--ink); }
.buy { margin-top: 40px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.buy .card-buy { background: var(--card); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.buy ol { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; }
.buy ol li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; }
.buy ol li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.buy .code-sample { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.code-sample .digits { margin-top: 14px; font-size: 34px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.faq { margin-top: 32px; display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border-radius: var(--radius-sm); padding: 18px 22px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 600; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; color: var(--ink-2); }
footer.foot { padding: 40px 0 56px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Đăng nhập */
.login-page { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.login-side { background: var(--ink); color: #fff; padding: 48px clamp(28px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-side .brand span { color: rgba(255, 255, 255, .6); }
.login-side h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; max-width: 460px; }
.login-side h2 em { font-style: normal; color: var(--green); }
.login-side .quote { display: grid; gap: 12px; max-width: 420px; }
.login-side .bubble-ai { background: rgba(255, 255, 255, .1); color: #fff; }
.login-side .bubble-ai small { color: rgba(255, 255, 255, .6); }
.login-side .foot-note { font-size: 14px; color: rgba(255, 255, 255, .55); }
.login-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-box { width: 100%; max-width: 420px; }
.login-box .brand { display: none; margin-bottom: 40px; }
.login-box h1 { font-size: 32px; letter-spacing: -.03em; font-weight: 800; }
.login-box > p { margin-top: 10px; color: var(--ink-2); }
.code-field { margin-top: 32px; position: relative; }
.code-field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.code-input { margin-top: 10px; width: 100%; height: 72px; border-radius: 20px; border: 2px solid var(--line); background: var(--bg); padding: 0 20px; font-size: 30px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; text-align: center; outline: none; transition: border-color .2s, background .2s; }
.code-input::placeholder { color: #C8CCD2; letter-spacing: .12em; }
.code-input:focus { border-color: var(--ink); background: #fff; }
.code-input.bad { border-color: var(--red); background: var(--red-soft); animation: shake .32s; }
.code-meta { margin-top: 10px; display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.code-dots { display: flex; gap: 5px; align-items: center; }
.code-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .15s; }
.code-dots i.on { background: var(--ink); }
.code-dots i.gap { margin-left: 6px; }
.form-error { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--red-soft); color: #A42328; font-size: 14.5px; font-weight: 500; }
.login-box .btn.wide { margin-top: 24px; height: 56px; }
.login-help { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.login-help strong { display: block; color: var(--ink); margin-bottom: 4px; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Khung ứng dụng */
.shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 248px 1fr; background: var(--bg); }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; background: var(--card); border-right: 1px solid var(--line); }
.side .brand { padding: 4px 10px 22px; }
.nav-item { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; position: relative; }
.nav-item svg { width: 22px; height: 22px; }
.nav-item:hover { background: var(--bg); }
.nav-item.on { background: var(--ink); color: #fff; }
.nav-item .badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; text-decoration: none; }
.side .me:hover { background: var(--bg); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; flex: none; }
.side .me b { display: block; font-size: 14.5px; }
.side .me small { color: var(--muted); font-size: 12.5px; }
.main { padding: 32px clamp(18px, 4vw, 48px) 120px; max-width: 1040px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.03em; font-weight: 800; line-height: 1.15; }
.page-head p { margin-top: 6px; color: var(--muted); }
.tabbar { display: none; }
.mobile-top { display: none; }

.card { background: var(--card); border-radius: var(--radius); padding: 24px; }
.card h2 { font-size: 19px; letter-spacing: -.01em; font-weight: 700; }
.card .hint { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.cols { display: grid; gap: 16px; }
.cols.c2 { grid-template-columns: 1.4fr 1fr; }
.cols.c3 { grid-template-columns: repeat(3, 1fr); }
.stack { display: grid; gap: 16px; }

.today { background: var(--ink); color: #fff; border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.today .tag { font-size: 13px; font-weight: 700; color: var(--green); letter-spacing: .02em; }
.today h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.02em; font-weight: 800; line-height: 1.15; }
.today p { color: rgba(255, 255, 255, .75); }
.today .meta { display: flex; gap: 16px; font-size: 14px; color: rgba(255, 255, 255, .65); flex-wrap: wrap; }
.today .btn { background: #fff; color: var(--ink); align-self: flex-start; }
.today .arch { position: absolute; right: -40px; bottom: -60px; width: 240px; opacity: .08; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { border-radius: 20px; padding: 18px; color: #fff; background: var(--blue); }
.tile:nth-child(2) { background: var(--ink); }
.tile:nth-child(3) { background: var(--green-deep); }
.tile b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { font-size: 13px; opacity: .85; }
.review-card { display: flex; align-items: center; gap: 16px; }
.review-card .ring { flex: none; }
.list { display: grid; gap: 2px; margin-top: 14px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.row .dot.on { background: var(--green); }
.row .grow { flex: 1; min-width: 0; }
.row small { color: var(--muted); display: block; font-size: 13px; }

/* Lộ trình */
.phase-block { margin-bottom: 28px; }
.phase-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.phase-title h2 { font-size: 21px; letter-spacing: -.02em; }
.phase-title span { color: var(--muted); font-size: 14px; font-weight: 600; }
.phase-title p { color: var(--muted); font-size: 14px; }
.lesson-list { display: grid; gap: 10px; }
.lesson-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; background: var(--card); text-decoration: none; transition: transform .12s; }
.lesson-item:active { transform: scale(.99); }
.lesson-item .n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: var(--bg); color: var(--ink-2); flex: none; }
.lesson-item.done .n { background: var(--green-soft); color: var(--green-deep); }
.lesson-item.now .n { background: var(--ink); color: #fff; }
.lesson-item.locked { opacity: .55; cursor: default; }
.lesson-item .grow { flex: 1; min-width: 0; }
.lesson-item b { display: block; font-size: 16px; }
.lesson-item small { color: var(--muted); font-size: 13.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-item .go { color: var(--faint); }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12.5px; font-weight: 700; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.pill.green { background: var(--green-soft); color: var(--green-deep); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.amber { background: var(--amber-soft); color: #9A6312; }

/* Trình học */
.player { position: fixed; inset: 0; z-index: 50; background: #fff; display: flex; flex-direction: column; }
.player-top { display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 4vw, 32px); padding-top: max(14px, env(safe-area-inset-top)); }
.steps { flex: 1; display: flex; gap: 5px; }
.steps i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.steps i.done { background: var(--ink); }
.steps i.now { background: var(--line); }
.steps i.now::after { content: ''; position: absolute; inset: 0; width: var(--p, 0%); background: var(--ink); border-radius: 3px; transition: width .3s; }
.player-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.stage { max-width: 640px; margin: 0 auto; padding: 12px 22px 40px; display: flex; flex-direction: column; gap: 18px; min-height: 100%; }
.step-label { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.stage h2 { font-size: clamp(24px, 3.4vw, 30px); letter-spacing: -.025em; line-height: 1.18; font-weight: 800; }
.stage .lead { color: var(--ink-2); font-size: 16.5px; }
.player-foot { padding: 14px 22px; padding-bottom: max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.player-foot .inner { max-width: 640px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.player-foot .inner .btn { flex: 1; }
.player-foot.ok { background: var(--green-soft); border-color: transparent; }
.player-foot.bad { background: var(--amber-soft); border-color: transparent; }
.foot-msg { flex: 1; font-weight: 700; }
.foot-msg small { display: block; font-weight: 500; color: var(--ink-2); }

.info-card { border-radius: 22px; background: var(--bg); padding: 22px; }
.info-card h3 { font-size: 18px; letter-spacing: -.01em; }
.info-card p { margin-top: 8px; color: var(--ink-2); }
.info-card ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.info-card li b { display: block; }
.info-card li span { color: var(--ink-2); font-size: 15px; }
.dots-nav { display: flex; justify-content: center; gap: 6px; }
.dots-nav i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .2s, background .2s; }
.dots-nav i.on { width: 22px; background: var(--ink); }

.phrase-card { border-radius: 26px; border: 1.5px solid var(--line); padding: 26px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.phrase-card .big-en { font-size: clamp(26px, 5vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.phrase-card .ipa { color: var(--muted); font-size: 15px; }
.phrase-card .vi { color: var(--ink-2); font-size: 17px; }
.tip { display: flex; gap: 10px; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--amber-soft); font-size: 14.5px; color: #6E4A12; }
.tip b { color: #9A6312; }
.tip .play { flex: none; }
.tip > svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.play-row { display: flex; gap: 10px; justify-content: center; align-items: center; }
.play { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; transition: transform .12s; }
.play:active { transform: scale(.94); }
.play svg { width: 22px; height: 22px; }
.play.slow { background: var(--blue-soft); color: var(--blue); width: auto; padding: 0 16px; border-radius: 26px; gap: 6px; display: flex; font-weight: 700; font-size: 14px; }
.play.big { width: 72px; height: 72px; }
.play.big svg { width: 30px; height: 30px; }
.play.playing { animation: pulse-blue 1.2s infinite; }
@keyframes pulse-blue { 0% { box-shadow: 0 0 0 0 rgba(76, 141, 246, .45); } 100% { box-shadow: 0 0 0 16px rgba(76, 141, 246, 0); } }

.mic-zone { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0; }
.mic { width: 84px; height: 84px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; position: relative; transition: transform .12s, background .2s; }
.mic svg { width: 34px; height: 34px; }
.mic:active { transform: scale(.95); }
.mic.listening { background: var(--red); }
.mic.listening::before, .mic.listening::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); animation: ring 1.4s infinite; }
.mic.listening::after { animation-delay: .7s; }
.mic:disabled { opacity: .35; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
.mic-label { font-size: 14.5px; color: var(--muted); font-weight: 500; min-height: 22px; text-align: center; }
.heard { min-height: 30px; font-size: 20px; font-weight: 600; text-align: center; line-height: 1.5; }
.heard .w { padding: 1px 3px; border-radius: 6px; }
.heard .w.ok { color: var(--green-deep); }
.heard .w.miss { color: var(--red); background: var(--red-soft); text-decoration: underline wavy; text-underline-offset: 4px; }
.heard .w.end { color: #9A6312; background: var(--amber-soft); }
.heard .raw { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.score { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }

.dialog-lines { display: grid; gap: 10px; }
.dline { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; background: var(--bg); text-align: left; width: 100%; transition: background .2s; }
.dline.on { background: var(--blue-soft); }
.dline .who { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.dline:nth-child(even) .who { background: var(--green-deep); }
.dline b { display: block; font-size: 17px; }
.dline small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.dline.blur b { filter: blur(6px); }

.options { display: grid; gap: 10px; }
.opt { width: 100%; text-align: left; padding: 16px 18px; border-radius: 18px; border: 1.5px solid var(--line); font-weight: 600; font-size: 16.5px; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--faint); }
.opt.right { border-color: var(--green); background: var(--green-soft); }
.opt.wrong { border-color: var(--red); background: var(--red-soft); }
.opt.pair { text-align: center; font-size: 22px; font-weight: 800; }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.builder { display: grid; gap: 14px; }
.slot-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.slot-row .fixed { font-size: 20px; font-weight: 700; }
.chip { padding: 10px 16px; border-radius: 999px; background: var(--bg); font-weight: 700; font-size: 16px; border: 2px solid transparent; transition: background .15s, border-color .15s; }
.chip.on { background: var(--ink); color: #fff; }
.built { text-align: center; font-size: clamp(22px, 4.6vw, 30px); font-weight: 800; letter-spacing: -.02em; padding: 20px; border-radius: 22px; background: var(--blue-soft); }
.built-count { text-align: center; color: var(--muted); font-size: 14px; }

.reflex-box { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.timer { position: relative; width: 120px; height: 120px; }
.timer svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 8; }
.timer .track { stroke: var(--line); }
.timer .bar { stroke: var(--ink); stroke-linecap: round; transition: stroke .2s; }
.timer.late .bar { stroke: var(--amber); }
.timer b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ask-text { font-size: clamp(24px, 4.6vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.ask-vi { color: var(--muted); }
.hint-box { width: 100%; display: grid; gap: 8px; }
.hint-line { padding: 12px 16px; border-radius: 14px; background: var(--amber-soft); color: #6E4A12; font-weight: 600; text-align: left; animation: rise .25s; }
.hint-line small { display: block; font-weight: 500; font-size: 12.5px; color: #9A6312; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.chat { display: flex; flex-direction: column; gap: 10px; }
.chat .bubble-ai { cursor: pointer; }
.chat .bubble-me.try { background: var(--bg); color: var(--muted); font-weight: 500; font-style: italic; }
.mission-brief { border-radius: 20px; background: var(--ink); color: #fff; padding: 18px 20px; }
.mission-brief b { color: var(--green); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.mission-brief p { margin-top: 6px; }

.done-screen { align-items: center; text-align: center; justify-content: center; }
.done-badge { width: 112px; height: 112px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.done-badge svg { width: 56px; height: 56px; color: var(--green-deep); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.can-card { width: 100%; border-radius: 22px; background: var(--ink); color: #fff; padding: 20px; text-align: left; }
.can-card small { color: var(--green); font-weight: 700; font-size: 13px; }
.can-card b { display: block; font-size: 19px; margin-top: 4px; }
.done-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.done-stats div { background: var(--bg); border-radius: 18px; padding: 14px 8px; }
.done-stats b { display: block; font-size: 24px; font-weight: 800; }
.done-stats span { font-size: 13px; color: var(--muted); }

/* Ôn tập, tiến bộ */
.review-empty { text-align: center; padding: 48px 24px; }
.review-empty .done-badge { margin: 0 auto 20px; }
.axes { display: grid; gap: 14px; margin-top: 16px; }
.axis label { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 600; }
.axis label span { color: var(--muted); font-weight: 500; }
.axis .track { margin-top: 6px; height: 10px; border-radius: 5px; background: var(--bg); overflow: hidden; }
.axis .track i { display: block; height: 100%; border-radius: 5px; background: var(--ink); }
.axis:nth-child(2) .track i { background: var(--blue); }
.axis:nth-child(3) .track i { background: var(--green); }
.axis:nth-child(4) .track i { background: var(--amber); }
.axis:nth-child(5) .track i { background: var(--ink-2); }
.cando { display: grid; gap: 8px; margin-top: 14px; }
.cando div { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-weight: 600; font-size: 15px; }
.cando div.on { background: var(--green-soft); }
.cando i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; flex: none; color: var(--faint); }
.cando div.on i { background: var(--green-deep); color: #fff; }
.cando i svg { width: 14px; height: 14px; }
.voice-box { display: grid; gap: 10px; margin-top: 14px; }
.voice-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--bg); }
.voice-item .play { width: 42px; height: 42px; }
.voice-item .grow { flex: 1; }
.voice-item small { color: var(--muted); display: block; font-size: 13px; }

.form { display: grid; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.field input, .field select { width: 100%; height: 52px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; padding: 0 16px; font-size: 16px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--ink); }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.jobs { display: flex; flex-wrap: wrap; gap: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin-top: 14px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

#toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(29, 31, 35, .45); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { width: 100%; max-width: 400px; background: #fff; border-radius: 28px; padding: 28px; text-align: center; }
.modal h3 { font-size: 20px; letter-spacing: -.01em; }
.modal p { margin-top: 8px; color: var(--ink-2); }
.modal .acts { margin-top: 22px; display: grid; gap: 10px; }
@keyframes fade { from { opacity: 0; } }

.loading { min-height: 100vh; display: grid; place-items: center; }
.loading img { width: 64px; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.9); opacity: .6; } }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .phone { display: none; }
  .grid.g3, .grid.g4, .phases { grid-template-columns: repeat(2, 1fr); }
  .buy { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-box .brand { display: flex; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; padding-top: max(14px, env(safe-area-inset-top)); background: var(--bg); position: sticky; top: 0; z-index: 10; }
  .mobile-top .avatar { width: 38px; height: 38px; text-decoration: none; }
  .main { padding-top: 8px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 6px 6px max(6px, env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; position: relative; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a .badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; display: grid; place-items: center; }
  .cols.c2, .cols.c3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid.g2, .grid.g3, .grid.g4, .phases, .compare { grid-template-columns: 1fr; }
  .voice-card { flex-direction: column; align-items: flex-start; padding: 24px; }
  .top .btn.line { display: none; }
  .stat-row .tile b { font-size: 24px; }
  .page-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
