/* ==========================================================================
   MULTILEV — Dizayn tizimi v2
   Shrift: Plus Jakarta Sans (saytning o'zida, tez yuklanadi)
   Ranglar, o'lchamlar va komponentlar shu yerda — bir joydan boshqariladi.
   ========================================================================== */

@font-face {
  font-family: 'Jakarta';
  src: url('../fonts/PlusJakartaSans.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Asosiy ranglar */
  --brand: #4F46E5;
  --brand-dark: #4338CA;
  --brand-light: #EEF2FF;
  --brand-100: #E0E7FF;

  --bg: #F7F8FC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --ink: #0F172A;
  --ink-2: #334155;
  --ink-soft: #64748B;
  --faint: #94A3B8;
  --border: #E2E8F0;

  --gold: #F59E0B;
  --gold-bg: #FFFBEB;

  /* Ko'nikma ranglari */
  --skill-listening: #2563EB; --skill-listening-bg: #EFF6FF;
  --skill-reading:   #059669; --skill-reading-bg:   #ECFDF5;
  --skill-writing:   #EA580C; --skill-writing-bg:   #FFF7ED;
  --skill-speaking:  #DB2777; --skill-speaking-bg:  #FDF2F8;

  --success: #059669; --success-bg: #ECFDF5;
  --warning: #D97706;
  --error: #DC2626;   --error-bg: #FEF2F2;

  /* Tipografika */
  --font-display: 'Jakarta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Jakarta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Jakarta', system-ui, sans-serif;  /* raqamlar uchun ham bir xil shrift */

  /* Shakl */
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow-lift: 0 4px 12px rgba(15,23,42,.06), 0 16px 36px rgba(15,23,42,.08);
  --sidebar-w: 252px;
}

/* ---------- Asos ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .45em;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--brand); text-decoration: none; }
img, svg { max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 2px; border-radius: 8px; }

svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }

.gradient-text {
  background: linear-gradient(90deg, #4F46E5, #0EA5E9 55%, #10B981);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-soft); }

/* ---------- Layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.page-body { padding: 36px 0 64px; }
header.page-body { position: relative; }

/* ==========================================================================
   SHELL: chap menyu + yuqori panel + telefon pastki paneli
   ========================================================================== */
.app-shell { display: flex; min-height: 100vh; align-items: stretch; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-main > .page-body, .app-main > header.page-body { flex: 1 0 auto; }

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  width: var(--sidebar-w); flex: none;
  display: flex; flex-direction: column;
  padding: 20px 14px;
  background: linear-gradient(180deg, #EEF2FF 0%, #EFF6FF 45%, #ECFDF5 100%);
  border-right: 1px solid #E3E8F4;
  z-index: 60;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 4px 10px rgba(79,70,229,.25)); }
.brand-mark svg { width: 36px; height: 36px; display: block; }
.sidebar .brand { padding: 4px 10px 22px; }

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 16px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); transition: background .15s, color .15s; }
.side-link:hover { background: rgba(255,255,255,.7); }
.side-link.active { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.side-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-2); }
.side-ico svg { width: 17px; height: 17px; }
.side-link.active .side-ico:not([class*="c-"]) { background: var(--brand-light); color: var(--brand); }

.side-tip { margin-top: auto; background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--shadow); font-size: 13px; }
.side-tip-h { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--ink); margin-bottom: 4px; }
.side-tip-h svg { width: 16px; height: 16px; color: var(--warning); }
.side-tip p { margin: 0; font-size: 13px; line-height: 1.5; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 64px; display: flex; align-items: center; gap: 12px;
  padding: 0 32px;
  background: rgba(247,248,252,.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-logo { display: none; }
.topbar-spacer { flex: 1; }

.lang-switch { display: flex; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-opt { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); cursor: pointer; user-select: none; }
.lang-opt.active { background: var(--ink); color: #fff; }

.premium-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  box-shadow: 0 6px 16px rgba(249,115,22,.32);
  transition: filter .15s, transform .15s;
}
.premium-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.premium-btn svg { width: 16px; height: 16px; }

.auth-slot { display: flex; align-items: center; gap: 8px; }
.auth-login { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; }
.auth-login:hover { border-color: var(--brand); color: var(--brand); }
.avatar-wrap { position: relative; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, #6366F1, #14B8A6); color: #fff; font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.avatar-menu { position: absolute; right: 0; top: 48px; width: 240px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lift); padding: 8px; display: none; }
.avatar-menu.open { display: block; }
.avatar-menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--surface-2); margin-bottom: 6px; }
.avatar-menu .who b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-menu .who span { font-size: 12.5px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.avatar-menu a, .avatar-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: none; border: 0; cursor: pointer; text-align: left; }
.avatar-menu a:hover, .avatar-menu button:hover { background: var(--surface-2); }
.avatar-menu svg { width: 17px; height: 17px; }

.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }

.tabbar { display: none; }

.site-footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--ink-soft); font-size: 13.5px; margin-top: auto; }
.site-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer-links { display: flex; gap: 20px; font-weight: 600; }
.site-footer-links a { color: var(--ink-soft); }
.site-footer-links a:hover { color: var(--brand); }
.footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--ink-soft); font-size: 13.5px; }

/* ---------- Telefon / planshet ---------- */
@media (max-width: 960px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; height: 100%;
    width: 280px; transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: var(--shadow-lift);
  }
  .sidebar.open { transform: translateX(0); }
  .topbar { padding: 0 16px; gap: 8px; }
  .topbar-logo { display: block; }
  .topbar-logo .brand-name { display: none; }
  .menu-btn { display: grid; }
  .container { padding: 0 16px; }
  .page-body { padding: 24px 0 40px; }
  .site-footer { padding-bottom: 96px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--faint); padding: 4px 0; }
  .tabbar a.on { color: var(--brand); }
  .tabbar svg { width: 22px; height: 22px; }
}
@media (max-width: 420px) {
  .premium-txt { display: none; }
  .premium-btn { padding: 9px 10px; }
  .lang-opt { padding: 5px 9px; }
  .auth-login { padding: 8px 12px; }
}

/* ==========================================================================
   KOMPONENTLAR
   ========================================================================== */

/* --- Tugmalar --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 14px; border: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .15s, background .15s, border-color .15s, color .15s;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.26); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink-soft); padding: 10px 14px; }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn-green { background: var(--success); color: #fff; box-shadow: 0 8px 20px rgba(5,150,105,.25); }
.btn-green:hover { background: #047857; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* --- Kartalar --- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card-pad-lg { padding: 32px; }

.tag, .pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: var(--brand-light); color: var(--brand-dark);
}
.pill svg, .tag svg { width: 15px; height: 15px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }

.ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.ico svg { width: 22px; height: 22px; }
.ico-sm { width: 34px; height: 34px; border-radius: 10px; }
.ico-sm svg { width: 18px; height: 18px; }
.c-l { color: var(--skill-listening); background: var(--skill-listening-bg); }
.c-r { color: var(--skill-reading);   background: var(--skill-reading-bg); }
.c-w { color: var(--skill-writing);   background: var(--skill-writing-bg); }
.c-s { color: var(--skill-speaking);  background: var(--skill-speaking-bg); }
.c-b { color: var(--brand); background: var(--brand-light); }
.c-o { color: #EA580C; background: #FFF7ED; }
.c-y { color: var(--warning); background: var(--gold-bg); }

.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width .5s ease; }

.eyebrow { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.page-head { margin-bottom: 26px; }
.page-head h1, .page-head h2 { margin-bottom: 6px; }
.page-head p { font-size: 16px; margin: 0; max-width: 680px; }

/* --- Ko'nikma kartalari (eski .skill-card saqlangan) --- */
.skill-card {
  border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column; gap: 12px; height: 100%;
  color: var(--ink);
}
a.skill-card:hover, .skill-card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.skill-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; }
.skill-icon svg { width: 22px; height: 22px; }
.skill-card.listening .skill-icon { background: var(--skill-listening-bg); color: var(--skill-listening); }
.skill-card.reading .skill-icon   { background: var(--skill-reading-bg);   color: var(--skill-reading); }
.skill-card.writing .skill-icon   { background: var(--skill-writing-bg);   color: var(--skill-writing); }
.skill-card.speaking .skill-icon  { background: var(--skill-speaking-bg);  color: var(--skill-speaking); }
.skill-card p { font-size: 14.5px; margin: 0; }
.skill-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.skill-meta span { font-size: 12.5px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); padding: 4px 9px; border-radius: 8px; }
.skill-go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; }
.skill-go svg { width: 17px; height: 17px; transition: transform .15s; }
.skill-card:hover .skill-go svg { transform: translateX(3px); }
.skill-card.listening .skill-go { color: var(--skill-listening); }
.skill-card.reading .skill-go   { color: var(--skill-reading); }
.skill-card.writing .skill-go   { color: var(--skill-writing); }
.skill-card.speaking .skill-go  { color: var(--skill-speaking); }

/* --- Grid --- */
.grid { display: grid; gap: 20px; min-width: 0; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* --- Daraja narvoni (eski ladder.js uchun) --- */
.ladder-wrap { width: 100%; overflow-x: auto; }
.ladder-svg { width: 100%; height: auto; }
.ladder-step-label { font-family: var(--font-body); font-weight: 700; font-size: 13px; }

/* --- Statistika --- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card { background: var(--surface); border-radius: 16px; padding: 18px; border: 1px solid var(--border); }
.stat-num { font-weight: 800; font-size: 1.8rem; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.stat-label { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; font-weight: 600; }
@media (max-width: 600px) { .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } .stat-card { padding: 12px 10px; } .stat-num { font-size: 1.35rem; } .stat-label { font-size: .72rem; } }

.progress-track { width: 100%; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width .4s ease; }

/* --- Imtihon UI --- */
.exam-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.timer { font-weight: 700; font-size: 1.05rem; background: #fff; border: 1px solid var(--border); padding: 7px 16px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.timer.warning { background: var(--error-bg); border-color: #FECACA; color: var(--error); }

.question-block { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.question-block .qnum { font-weight: 800; color: var(--brand); font-size: .82rem; margin-bottom: 8px; display: block; letter-spacing: .02em; }

.option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 14px;
  margin-bottom: 10px; cursor: pointer; background: #fff;
  transition: border-color .12s, background .12s; font-weight: 500;
}
.option:hover { border-color: #A5B4FC; }
.option.selected { border-color: var(--brand); background: var(--brand-light); }
.option.correct { border-color: #34D399; background: var(--success-bg); }
.option.incorrect { border-color: #FCA5A5; background: var(--error-bg); }
.option input { accent-color: var(--brand); width: 18px; height: 18px; }

textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"], select {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--ink); resize: vertical;
}
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-light); }
input[type="range"] { accent-color: var(--brand); }

.word-count { font-size: .85rem; color: var(--ink-soft); text-align: right; margin-top: 6px; font-weight: 600; }
.word-count.ok { color: var(--success); }

.feedback-box { border: 1px solid var(--brand-100); background: var(--brand-light); border-radius: 16px; padding: 20px; margin-top: 20px; }
.feedback-box h4 { margin-bottom: 10px; }

.score-pill { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 800; background: var(--ink); color: #fff; padding: 6px 16px; border-radius: 999px; font-size: 1.1rem; }
.score-pill small { font-size: .7rem; opacity: .7; font-weight: 600; }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Modal --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; backdrop-filter: blur(3px); }
.modal { background: var(--surface); border-radius: 22px; padding: 28px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lift); }

/* --- Daraja kartalari --- */
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .level-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .level-grid { grid-template-columns: 1fr; } }
.level-card {
  position: relative; border-radius: 18px; padding: 20px 18px; min-height: 112px;
  color: var(--ink); cursor: pointer; text-align: left; font-family: var(--font-body);
  background: #fff !important; border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  display: flex; flex-direction: column; justify-content: space-between;
}
.level-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--lv, var(--brand)); }
.level-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--lv, var(--brand)); }
.level-card.current { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.level-card.locked { cursor: not-allowed; opacity: .6; }
.level-card.locked:hover { transform: none; box-shadow: var(--shadow); border-color: var(--border); }
.level-card .lv-name { font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; color: var(--lv, var(--ink)); line-height: 1.1; }
.level-card .lv-sub { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; font-weight: 600; opacity: 1; }
.level-card .lv-badge { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--ink-soft); display: grid; place-items: center; font-size: 12px; }
.lv-a1 { --lv: #0EA5E9; } .lv-a2 { --lv: #059669; } .lv-b1 { --lv: #4F46E5; } .lv-b2 { --lv: #7C3AED; } .lv-c1 { --lv: #DB2777; } .lv-c2 { --lv: #64748B; }

/* --- Mashq turi qatorlari --- */
.mode-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border-radius: 18px; padding: 16px 18px;
  border: 1px solid var(--border); margin-bottom: 12px; cursor: pointer; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.mode-row:hover { border-color: #A5B4FC; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.mode-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.mode-icon svg { width: 22px; height: 22px; }
.mode-title { font-weight: 700; font-size: 1rem; color: var(--ink); margin: 0; }
.mode-desc { font-size: .85rem; color: var(--ink-soft); margin: 2px 0 0; }
.mode-arrow { margin-left: auto; color: var(--faint); display: grid; place-items: center; }
.mode-arrow svg { width: 20px; height: 20px; }
.mode-row-future { border: 1.5px dashed var(--border); border-radius: 18px; padding: 14px 18px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }

/* --- Part qatorlari --- */
.part-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer; box-shadow: var(--shadow);
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.part-row:hover { border-color: #A5B4FC; transform: translateY(-1px); }
.part-row.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.part-row.locked { cursor: not-allowed; opacity: .55; }
.part-row.locked:hover { border-color: var(--border); transform: none; }
.part-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .95rem; flex-shrink: 0; background: var(--brand-light); color: var(--brand); }
.part-row.done .part-num { background: var(--success-bg); color: var(--success); }
.part-row.active .part-num { background: var(--brand); color: #fff; }
.part-info .part-title { font-weight: 700; font-size: .98rem; margin: 0; color: var(--ink); }
.part-info .part-status { font-size: .82rem; color: var(--ink-soft); margin: 2px 0 0; }
.part-progress { width: 72px; height: 6px; border-radius: 3px; background: var(--surface-2); margin-left: auto; overflow: hidden; flex-shrink: 0; }
.part-progress-fill { height: 100%; background: var(--brand); }

/* --- Mashq kartalari --- */
.exercise-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 18px; margin-bottom: 10px; cursor: pointer; box-shadow: var(--shadow);
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.exercise-card:hover { border-color: #A5B4FC; transform: translateY(-1px); }
.exercise-card.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.exercise-card.locked { cursor: not-allowed; opacity: .55; }
.exercise-card.locked:hover { border-color: var(--border); transform: none; }
.ex-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.ex-icon svg { width: 20px; height: 20px; }
.exercise-card .ex-title { font-weight: 700; font-size: .96rem; margin: 0; color: var(--ink); }
.exercise-card .ex-sub { font-size: .82rem; color: var(--ink-soft); margin: 3px 0 0; }
.ex-action { margin-left: auto; flex-shrink: 0; font-size: .82rem; font-weight: 700; padding: 8px 14px; border-radius: 10px; }
.ex-action.primary { background: var(--brand); color: #fff; }
.ex-action.secondary { background: var(--brand-light); color: var(--brand); }

/* --- Navigatsiya (orqaga) --- */
.crumb-pill { display: inline-flex; align-items: center; background: var(--brand-light); color: var(--brand-dark); font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-right: 6px; }
.crumb-back { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--ink-soft); font-weight: 700; cursor: pointer; background: #fff; border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px; margin-bottom: 16px; transition: color .15s, border-color .15s; }
.crumb-back:hover { color: var(--brand); border-color: #A5B4FC; }

/* --- Premium --- */
.premium-card { background: var(--ink); border-radius: var(--radius); padding: 28px; color: #fff; box-shadow: 0 0 0 2px var(--gold), var(--shadow-lift); }
.premium-card h3 { color: #fff; }
.premium-card .ptag { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: #422006; font-size: .72rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.premium-card p { color: #CBD5E1; }
.premium-card .pbtn { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #F59E0B, #F97316); color: #fff; font-weight: 700; font-size: .92rem; padding: 12px 22px; border-radius: 12px; border: none; cursor: pointer; margin-top: 6px; }
.premium-card .pbtn:hover { filter: brightness(1.05); }
.premium-card input { background: #1E293B; border-color: #334155; color: #fff; }

.free-card { background: linear-gradient(160deg, #059669, #047857); border-radius: var(--radius); padding: 24px; color: #fff; position: relative; box-shadow: 0 10px 24px rgba(5,150,105,.3); }
.free-card .ftag { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.2); color: #fff; font-size: .72rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.free-card .frec { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .7rem; font-weight: 800; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.free-card h3 { color: #fff; }
.free-card p { color: #D1FAE5; }
.free-card .fbtn { display: inline-block; background: #fff; color: #047857; font-weight: 800; font-size: .88rem; padding: 11px 22px; border-radius: 12px; border: none; cursor: pointer; margin-top: 6px; }

/* --- Split ko'rinish (Reading/Listening) --- */
.split-exam { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; height: calc(100vh - 200px); min-height: 400px; }
.split-panel-ref, .split-panel-q { overflow-y: auto; height: 100%; padding-right: 8px; }
@media (max-width: 900px) {
  .split-exam { grid-template-columns: 1fr; grid-template-rows: 38vh 46vh; height: auto; gap: 12px; }
  .split-panel-ref { border-bottom: 2px dashed var(--border); padding-bottom: 10px; }
}

/* --- Bo'sh holat --- */
.empty { text-align: center; padding: 28px 16px; color: var(--ink-soft); }
.empty .ico { margin: 0 auto 12px; }
.empty b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }
@media (max-width: 960px) { .hide-m { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   BOSH SAHIFA
   ========================================================================== */
.btn-lg { padding: 14px 24px; font-size: 16px; }
.home .hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 8px; }
.home .hero h1 { margin-top: 18px; }
.home .lead { font-size: 18px; color: var(--ink-2); margin: 18px 0 28px; max-width: 540px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.trust > span { display: flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; color: var(--success); }

.preview { position: relative; margin: 24px 0 20px; }
.preview-card { padding: 22px; border-radius: 24px; box-shadow: var(--shadow-lift); }
.pv-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pv-player { display: flex; align-items: center; gap: 14px; background: var(--brand-light); border-radius: 16px; padding: 12px 14px; }
.pv-play { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.pv-play svg { width: 18px; height: 18px; fill: #fff; stroke: none; }
.pv-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 34px; }
.pv-wave i { flex: 1; border-radius: 3px; background: #A5B4FC; }
.pv-wave i.p { background: var(--brand); }
.pv-time { font-size: 13px; font-weight: 700; color: var(--brand); }
.pv-q { margin-top: 18px; font-weight: 700; font-size: 16px; }
.pv-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--border); border-radius: 14px; padding: 11px 14px; margin-top: 10px; font-weight: 600; font-size: 14.5px; }
.pv-opt .k { width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--ink-soft); flex: none; }
.pv-opt.ok { border-color: #34D399; background: var(--success-bg); }
.pv-opt.ok .k { background: var(--success); color: #fff; }
.pv-opt.ok svg { margin-left: auto; color: var(--success); }
.pv-float { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lift); padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; border: 1px solid var(--border); }
.pv-float b { display: block; font-weight: 700; }
.pv-float small { display: block; font-weight: 600; color: var(--ink-soft); font-size: 12px; }
.pv-float.f1 { top: -40px; right: -12px; }
.pv-float.f2 { bottom: -30px; left: -20px; }

.stats-strip { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
.stats-strip > div { padding: 22px 26px; }
.stats-strip > div + div { border-left: 1px solid var(--border); }
.stats-strip b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.stats-strip span { color: var(--ink-soft); font-size: 14px; font-weight: 600; }

.home-sec { margin-top: 88px; }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 34px; }
.sec-head p { margin: 12px 0 0; font-size: 16.5px; }
.step { padding: 28px; }
.step-n { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 18px; }
.step p { margin: 8px 0 0; font-size: 14.5px; }

.fmt { padding: 0; overflow: hidden; }
.fmt table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fmt th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; padding: 15px 24px; background: #FAFBFD; border-bottom: 1px solid var(--border); }
.fmt td { padding: 16px 24px; border-bottom: 1px solid var(--surface-2); font-weight: 600; white-space: nowrap; }
.fmt tr:last-child td { border-bottom: 0; }
.fmt td:first-child { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.levels-card { margin-top: 20px; }
.levels-card h3 { margin-bottom: 2px; }
.small-note { font-size: 13px; margin: 0 0 22px; }
.lv-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; height: 220px; }
.lv-bars > div { border-radius: 14px 14px 6px 6px; padding: 14px 16px; color: #fff; display: flex; flex-direction: column; }
.lv-bars b { font-size: 20px; font-weight: 800; line-height: 1.15; }
.lv-bars span { font-size: 13px; font-weight: 600; opacity: .9; }

.faq { max-width: 800px; margin-left: auto; margin-right: auto; }
.fq { padding: 0; margin-top: 12px; }
.fq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 16px; color: var(--ink); }
.fq summary::-webkit-details-marker { display: none; }
.fq summary svg { color: var(--ink-soft); transition: transform .2s; }
.fq[open] summary svg { transform: rotate(180deg); }
.fq p { margin: 0; padding: 0 22px 20px; font-size: 15px; }

.cta-band { margin-top: 88px; border-radius: 28px; padding: 48px 52px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: radial-gradient(circle at 85% 20%, rgba(16,185,129,.55), transparent 45%), linear-gradient(120deg, #4338CA, #2563EB); }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { color: #E0E7FF; margin: 10px 0 0; font-size: 16px; }
.band-btn { background: #fff; color: var(--brand-dark); }
.band-btn:hover { background: #EEF2FF; }

@media (max-width: 960px) {
  .home .hero { grid-template-columns: 1fr; gap: 40px; }
  .preview { margin-top: 40px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip > div:nth-child(3) { border-left: 0; }
  .stats-strip > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 600px) {
  .home .lead { font-size: 16.5px; }
  .cta-row .btn { flex: 1; }
  .pv-float.f1 { right: -4px; top: -46px; }
  .pv-float.f2 { left: -4px; }
  .stats-strip > div { padding: 18px; }
  .stats-strip b { font-size: 24px; }
  .home-sec, .cta-band { margin-top: 64px; }
  .fmt th:nth-child(3), .fmt td:nth-child(3) { display: none; }
  .fmt td, .fmt th { padding: 13px 14px; }
  .lv-bars { height: 180px; gap: 8px; }
  .lv-bars > div { padding: 10px 8px; }
  .lv-bars b { font-size: 15px; }
  .lv-bars span { font-size: 11.5px; }
}

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.dash-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-hello h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 4px; }
.dash-hello p { margin: 0; font-size: 15.5px; }
.guest-banner { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 18px 22px; background: linear-gradient(90deg, #EEF2FF, #fff); border-color: var(--brand-100); }
.guest-banner b { display: block; font-size: 15px; }
.guest-banner p { margin: 2px 0 0; font-size: 14px; }
.guest-banner .btn { margin-left: auto; }
.dash-row1 { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 20px; }
.k-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.big-num { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin-top: 14px; line-height: 1; }
.big-num small { font-size: 15px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; margin-left: 8px; }
.week { display: flex; gap: 6px; margin-top: 18px; }
.week span { flex: 1; text-align: center; font-size: 11px; font-weight: 700; color: var(--faint); }
.week i { display: block; height: 26px; border-radius: 8px; background: var(--surface-2); margin-bottom: 5px; }
.week .on i { background: linear-gradient(180deg, #FB923C, #EA580C); }
.week .today i { outline: 2px solid #FDBA74; outline-offset: 2px; }
.goal { display: flex; align-items: center; gap: 20px; margin-top: 14px; }
.ring { width: 96px; height: 96px; flex: none; position: relative; }
.ring svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.goal p { font-size: 14px; margin: 0; }
.cont { background: linear-gradient(135deg, #4338CA, #2563EB); color: #fff; border: 0; position: relative; overflow: hidden; }
.cont::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.cont .k-title { color: #C7D2FE; }
.cont .k-title svg { width: 18px; height: 18px; }
.cont h3 { color: #fff; font-size: 20px; margin: 12px 0 2px; }
.cont .sub { color: #C7D2FE; font-size: 14px; min-height: 1.3em; }
.cont .bar { background: rgba(255,255,255,.2); margin-top: 16px; }
.cont .bar > i { background: #fff; }
.cont .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.cont .small { color: #C7D2FE; font-weight: 600; font-size: 13px; }
.cont .btn { background: #fff; color: var(--brand-dark); }
.cont .btn:hover { background: #EEF2FF; }
.dash-skills { margin-top: 20px; }
.sk { padding: 22px; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.sk:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.sk-top { display: flex; justify-content: space-between; align-items: center; }
.lvl { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); }
.sk h3 { margin: 14px 0 0; }
.sk .nums { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin: 10px 0 8px; }
.sk .nums b { color: var(--ink); }
.dash-row3 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin: 20px 0; align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: 20px; }
.h-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.h-row h3 { margin: 0; }
.h-row .small-note { margin: 2px 0 0; }
.wchart { margin-top: 18px; }
.wbars { display: flex; align-items: flex-end; gap: 14px; height: 170px; border-bottom: 1px solid var(--border); }
.wcol { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.wcol i { width: 100%; max-width: 34px; border-radius: 6px 6px 0 0; background: var(--brand); }
.wcol i.dim { background: var(--brand-100); }
.wcol em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.wcol em.z { color: var(--faint); }
.wlabels { display: flex; gap: 14px; margin-top: 8px; }
.wlabels span { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--faint); }
.wlabels span.today { color: var(--brand); }
.rec .tip { background: var(--gold-bg); border: 1px solid #FDE68A; border-radius: 14px; padding: 14px; margin: 14px 0 16px; font-size: 14px; color: #92400E; }
.rec .tip b { display: block; color: #78350F; margin-bottom: 3px; }
.rec .btn { width: 100%; }
.lvl-row { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.lvl-row b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.lvl-row span { font-weight: 700; color: var(--ink-soft); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 10px; }
.tbl td { padding: 13px 8px; border-top: 1px solid var(--surface-2); font-weight: 600; }
.tbl td.c1 { padding-left: 0; width: 120px; }
.tbl .sc { font-weight: 800; text-align: right; white-space: nowrap; }
.tbl .dt { color: var(--ink-soft); font-weight: 500; text-align: right; width: 110px; white-space: nowrap; }
@media (max-width: 1180px) { .dash-row1 { grid-template-columns: 1fr 1fr; } .dash-row1 .cont { grid-column: 1 / -1; order: -1; } }
@media (max-width: 960px) { .dash-row3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .dash-hello .btn { width: 100%; }
  .guest-banner { flex-wrap: wrap; }
  .guest-banner .btn { margin-left: 0; width: 100%; }
  .dash-row1 { gap: 12px; }
  .dash-row1 > .card:not(.cont) { padding: 16px; }
  .big-num { font-size: 32px; }
  .big-num small { display: block; margin: 6px 0 0; font-size: 13px; }
  .week { gap: 3px; } .week i { height: 20px; border-radius: 6px; } .week span { font-size: 10px; }
  .goal { flex-direction: column; align-items: flex-start; gap: 10px; }
  .goal p { font-size: 12.5px; }
  .ring, .ring svg { width: 76px; height: 76px; } .ring b { font-size: 18px; }
  .dash-skills.grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sk { padding: 16px; } .sk h3 { font-size: 16px; } .sk .nums { flex-direction: column; gap: 2px; }
  .wbars, .wlabels { gap: 8px; }
  .tbl td.c1 { width: auto; } .tbl .dt { display: none; } .tbl td { padding: 11px 5px; }
}

/* ==========================================================================
   MASHQ SAHIFALARI (Listening / Reading / Retention ...)
   ========================================================================== */
.skill-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.skill-head .ico { width: 52px; height: 52px; border-radius: 15px; }
.skill-head .ico svg { width: 26px; height: 26px; }
.skill-head .eyebrow { margin-bottom: 4px; }
.skill-head h1, .skill-head h2 { margin: 0 0 6px; }
.skill-head p { margin: 0; max-width: 640px; }
.lv-prog { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.lv-prog .bar { flex: 1; height: 6px; }
.lv-prog span { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.level-card .lv-badge svg { width: 14px; height: 14px; }
.part-num svg { width: 16px; height: 16px; }
.exercise-card.is-done { background: #FCFDFE; }
.ex-best { font-weight: 800; font-size: .9rem; margin-left: auto; }
.ex-best + .ex-action { margin-left: 10px; }
.mock-cta { margin-top: 20px; cursor: pointer; border-radius: var(--radius); padding: 22px 24px; color: #fff;
  background: radial-gradient(circle at 90% 10%, rgba(16,185,129,.45), transparent 45%), linear-gradient(120deg, #4338CA, #2563EB);
  box-shadow: 0 10px 28px rgba(67,56,202,.25); transition: transform .15s; }
.mock-cta:hover { transform: translateY(-2px); }
.mock-cta h3 { color: #fff; }
.mock-cta-ico { width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex-shrink: 0; }
.mock-cta-ico svg, .mock-cta-arrow svg { width: 22px; height: 22px; color: #fff; }
@media (max-width: 600px) {
  .skill-head { gap: 12px; }
  .skill-head .ico { width: 44px; height: 44px; }
  .exercise-card { padding: 14px; gap: 12px; }
  .ex-action { padding: 7px 10px; }
}
.set-card p { font-size: 14px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--error); display: inline-block; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.mock-item { display: flex; align-items: flex-start; gap: 16px; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.mock-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.mock-item h3 { margin: 8px 0 4px; }
.mock-item p { margin: 0; font-size: 14px; }
.mock-item .mode-arrow { align-self: center; }
.soon-card { display: flex; align-items: center; gap: 16px; margin-top: 20px; background: var(--gold-bg); border-color: #FDE68A; }
.soon-card h3 { margin: 0 0 4px; }
.soon-card p { margin: 0; font-size: 14px; color: #92400E; }
.soon-card .btn { margin-left: auto; }
@media (max-width: 600px) { .soon-card { flex-wrap: wrap; } .soon-card .btn { margin-left: 0; width: 100%; } }
.premium-pill { background: #1E1B4B; color: #FCD34D; }
.premium-card .ptag svg { width: 14px; height: 14px; }
@media (max-width: 600px) { .guest-banner > .ico { display: none; } }
.split-exam.split-map { grid-template-columns: 1.45fr 1fr; }
@media (max-width: 900px) { .split-exam.split-map { grid-template-columns: 1fr; } }

/* ==========================================================================
   SPEAKING
   ========================================================================== */
.sp-part { display: flex; flex-direction: column; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.sp-part:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.sp-part-top { display: flex; justify-content: space-between; align-items: center; }
.sp-part h3 { margin: 0 0 6px; }
.sp-part p { font-size: 14.5px; margin: 0 0 14px; }
.sp-part-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.sp-note { display: flex; gap: 12px; align-items: center; margin-top: 20px; background: var(--gold-bg); border-color: #FDE68A; }
.sp-note p { margin: 0; font-size: 14px; color: #92400E; }
.sp-thumb { width: 64px; height: 48px; border-radius: 10px; overflow: hidden; flex: none; background: var(--surface-2); display: flex; gap: 2px; }
.sp-thumb.two { width: 88px; }
.sp-thumb img { flex: 1; min-width: 0; height: 100%; object-fit: cover; display: block; }
.sp-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-timer { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 8px 16px; }
.sp-timer .sp-phase { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.sp-timer b { font-size: 24px; font-weight: 800; min-width: 64px; text-align: right; }
.sp-timer.prep { border-color: #FDE68A; background: var(--gold-bg); }
.sp-timer.prep .sp-phase { color: #92400E; }
.sp-timer.speak { border-color: #FBCFE8; background: var(--skill-speaking-bg); }
.sp-timer.speak .sp-phase { color: var(--skill-speaking); }
.sp-timer.speak .sp-phase::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--error); margin-right: 7px; animation: pulse 1s infinite; }
.sp-timer.warn b { color: var(--error); }
.sp-timer.done { border-color: #A7F3D0; background: var(--success-bg); }
.sp-timer.done .sp-phase { color: var(--success); }
.sp-instr { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-light); border-radius: 14px; padding: 12px 16px; font-size: 14.5px; font-weight: 600; color: var(--brand-dark); margin-bottom: 16px; }
.sp-instr svg { margin-top: 2px; }
.sp-imgs { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 8px; max-width: 760px; }
.sp-imgs.two { grid-template-columns: 1fr 1fr; max-width: none; }
.sp-imgs figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: var(--surface-2); aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.sp-imgs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-imgs figcaption { position: absolute; left: 12px; top: 12px; width: 32px; height: 32px; border-radius: 10px; background: #fff; display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow); }
.sp-credit { font-size: 12px; color: var(--faint); margin: 4px 0 16px; }
.sp-arg { margin-bottom: 16px; }
.sp-topic { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 18px; line-height: 1.35; }
.sp-table { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sp-table > div { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.sp-table b { display: inline-block; font-size: 12px; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.sp-table b.for { background: var(--success-bg); color: var(--success); }
.sp-table b.against { background: var(--error-bg); color: var(--error); }
.sp-table ul { margin: 0; padding-left: 18px; }
.sp-table li { margin: 6px 0; font-size: 14.5px; color: var(--ink-2); }
.sp-qs { padding: 8px 20px; }
.sp-q { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--surface-2); transition: opacity .2s; }
.sp-q:last-child { border-bottom: 0; }
.sp-q p { margin: 4px 0 0; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.sp-qn { width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); color: var(--ink-soft); display: grid; place-items: center; font-weight: 800; flex: none; }
.sp-qn svg { width: 17px; height: 17px; }
.sp-q.active .sp-qn { background: var(--skill-speaking); color: #fff; }
.sp-qs:has(.sp-q.active) .sp-q:not(.active) { opacity: .45; }
.sp-live { font-size: 14px; color: var(--ink-soft); margin-top: 6px; font-style: italic; }
.sp-controls { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.sp-ans { padding: 12px 0; border-bottom: 1px solid var(--surface-2); }
.sp-ans:last-child { border-bottom: 0; }
.sp-ans-q { font-weight: 700; font-size: 14px; }
.sp-ans p { margin: 6px 0 8px; color: var(--ink-2); }
.sp-ans p.empty-ans { color: var(--error); font-size: 14px; }
.sp-ans audio { width: 100%; max-width: 420px; height: 38px; }
.sp-result { display: flex; align-items: center; gap: 20px; }
.sp-score { width: 92px; height: 92px; border-radius: 24px; background: linear-gradient(135deg, #DB2777, #7C3AED); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.sp-score b { font-size: 34px; line-height: 1; }
.sp-score span { font-size: 13px; opacity: .85; font-weight: 700; }
.sp-phr { margin: 0; padding-left: 18px; }
.sp-phr li { margin: 6px 0; color: var(--ink-2); font-style: italic; }
@media (max-width: 700px) {
  .sp-imgs.two, .sp-table { grid-template-columns: 1fr; }
  .sp-timer b { font-size: 20px; min-width: 52px; }
  .sp-topic { font-size: 18px; }
  .sp-controls .btn { flex: 1; }
}
.sp-body.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.sp-body.split .sp-imgs { max-width: none; }
@media (max-width: 900px) { .sp-body.split { grid-template-columns: 1fr; } }
#viewExam .exam-header { position: sticky; top: 64px; z-index: 5; background: rgba(247,248,252,.95); backdrop-filter: blur(6px); }

/* WRITING natija */
.wr-result { display: flex; align-items: center; gap: 20px; }
.wr-big { width: 96px; height: 96px; border-radius: 24px; background: linear-gradient(135deg, #F97316, #EA580C); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.wr-big b { font-size: 36px; line-height: 1; }
.wr-big span { font-size: 13px; opacity: .85; font-weight: 700; }
.wr-task-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.wr-sc { font-size: 22px; font-weight: 800; }
.wr-sc small { font-size: 13px; color: var(--ink-soft); }
.wr-task p { margin: 12px 0 0; font-size: 14px; }
.wr-corr { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--surface-2); font-size: 14.5px; }
.wr-corr:last-child { border-bottom: 0; }
.wr-corr s { color: var(--error); }
.wr-corr b { color: var(--success); font-weight: 700; }
.wr-corr svg { width: 16px; height: 16px; color: var(--faint); }
.wr-scen { background: var(--brand-light); border-color: var(--brand-100); margin-bottom: 16px; }
.wr-scen p { margin: 12px 0 0; white-space: pre-line; color: var(--ink-2); line-height: 1.7; }
.wr-block { margin-bottom: 16px; border-top: 4px solid var(--skill-writing); }
.wr-block-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.wr-block h3 { margin: 12px 0 6px; }
.wr-task-text { color: var(--ink-2); }
.wr-block textarea { line-height: 1.65; }
.word-count.over { color: var(--warning); }
.wr-full { background: linear-gradient(135deg, #FFF7ED, #fff 60%); border-color: #FED7AA; }
.word-bank { background: var(--brand-light); border: 1px dashed #A5B4FC; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.word-bank-h { display: block; font-size: 13px; font-weight: 700; color: var(--brand-dark); margin-bottom: 8px; }
.wb-chip { display: inline-block; background: #fff; border: 1px solid var(--brand-100); border-radius: 10px; padding: 5px 12px; margin: 4px 6px 0 0; font-weight: 700; font-size: 14.5px; }
.sp-topic { text-align: center; }
/* Speaking: savollar birin-ketin, jonli matn ko'rsatilmaydi */
.sp-live { display: none !important; }
.sp-qs.seq .sp-q { display: none; border-bottom: 0; }
.sp-qs.seq .sp-q.active { display: flex; animation: spIn .25s ease; }
.sp-qs.seq:has(.sp-q.active) .sp-wait { display: none; }
.sp-qs.seq .sp-q.active p { font-size: 19px; }
.sp-wait { display: flex; align-items: center; gap: 10px; padding: 16px 0; color: var(--ink-soft); font-weight: 600; }
.sp-wait svg { width: 18px; height: 18px; color: var(--skill-speaking); }
@keyframes spIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sp-dl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--surface-2); }
.sp-mock-card { grid-column: 1 / -1; background: linear-gradient(135deg, #FDF2F8, #fff 60%); border-color: #FBCFE8; }
.sp-ans-part { margin: 18px 0 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--skill-speaking); }
.sp-ans-part:first-child { margin-top: 0; }
.sp-timer.listen { border-color: #BFDBFE; background: var(--skill-listening-bg); }
.sp-timer.listen .sp-phase, .sp-timer.listen b { color: var(--skill-listening); }
