/* =========================================================
   Huquqdan milliy sertifikat — dizayn tizimi (v4, ilova ko‘rinishi)
   Ranglar: oq · ko‘k · qizil. Tuzilma: pastki tablar (Profil · Imtihon · Natijalar · Mashq · Bugun). Shrift: Helvetica Neue (meraki.uz uslubi).
   Referenslar: milliysinov.uz, 5ball.uz, sertifikatim.uz (mahsulot UI),
   7Sage / Kaplan / IELTS (maqsadga yo‘naltirilgan yo‘l, reja, arxitektura),
   Pinterest — navy + gold sertifikatlar va ta’lim platformalari.
   Kompozitsiya: to‘q ko‘k «sahna» bloklari + oq ish maydoni; oltin faqat urg‘u uchun.
   ========================================================= */
:root {
  --navy-990: #D4E9FF;
  --navy-950: #E4F1FF;
  --navy-900: #BADCFF;   /* asosiy och ko‘k (to‘q ko‘k o‘rniga) */
  --navy-850: #C9E3FF;
  --navy-800: #A9D3FF;
  --navy-700: #93C6FF;
  --navy-600: #3A6FC4;
  --navy-400: #9DB8D6;
  --navy-200: #CFE2F6;
  --navy-100: #E3EFFB;
  --navy-50:  #F2F8FE;
  --blue: #1F4E9C;       /* urg‘u matn va ikonlar */
  --gold: #E30A17;       /* sariq — asosiy urg‘u */
  --gold-2: #1F4E9C;
  --gold-3: #1F4E9C;
  --gold-50: #EAF4FF;
  --gold-grad: linear-gradient(135deg, #F0343F 0%, #E30A17 55%, #B8081A 100%);
  --sky: #3A6FC4;
  --bg: #FFFFFF;
  --bg-alt: #F5F6FA;
  --ink: #15181E;
  --ink-2: #444A56;
  --muted: #6D7483;
  --line: #DCE8F5;
  --line-dark: rgba(21,24,30,.1);
  --ok: #173C7A; --ok-bg: #EEF3FB;
  --bad: #E30A17; --bad-bg: #FDECEA;
  --sans: "Helvetica Neue", "HelveticaNeueCyr", "Inter Tight", Helvetica, Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --wrap: 1220px;
  --r: 12px; --r-lg: 20px;
  --shadow: 0 1px 2px rgba(10,22,54,.04), 0 8px 24px -12px rgba(10,22,54,.16);
  --shadow-lg: 0 2px 4px rgba(10,22,54,.05), 0 32px 64px -28px rgba(10,22,54,.4);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Tipografiya ---------- */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.025em; line-height: 1.06; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 3.7vw, 2.9rem); }
h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.22; }
p { margin: 0 0 1em; }
.hl { color: var(--ink); background: linear-gradient(transparent 66%, rgba(125,190,255,.38) 66%, rgba(125,190,255,.38) 92%, transparent 92%); }
.gold { color: var(--blue); background: none; }
.dark .hl { color: var(--ink); background: linear-gradient(transparent 66%, rgba(125,190,255,.45) 66%, rgba(125,190,255,.45) 92%, transparent 92%); }
.dark .gold, .result-hero .gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-3); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; }
.dark .eyebrow, .result-hero .eyebrow { color: var(--gold-2); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 58ch; }
.dark .lead, .result-hero .lead { color: rgba(21,24,30,.72); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.d-block { display: block; }
.nowrap { flex-wrap: nowrap !important; white-space: nowrap; }
.w100 { width: 100%; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fine { font-size: .8rem; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }

/* ---------- Tugmalar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border-radius: var(--r); border: 1.5px solid var(--navy-900); background: var(--navy-900); color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--navy-700); border-color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.btn-lg { padding: 15px 26px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 7px 13px; font-size: .85rem; border-radius: 10px; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--navy-50); border-color: var(--navy-200); color: var(--ink); }
.btn-gold { background: var(--gold-grad); border-color: transparent; color: var(--ink); box-shadow: 0 10px 24px -12px rgba(125,190,255,.9), inset 0 1px 0 rgba(21,24,30,.4); }
.btn-gold:hover { background: var(--gold-grad); filter: brightness(1.06); border-color: transparent; color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-line-white { background: transparent; border-color: rgba(21,24,30,.3); color: var(--ink); }
.btn-line-white:hover { background: rgba(21,24,30,.08); border-color: var(--gold-2); color: var(--ink); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--navy-950); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(228,241,255,.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(125,190,255,.22); color: var(--ink); }
.site-header .wrap { display: flex; align-items: center; height: 72px; gap: 26px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; color: inherit; }
.brand-mark { width: 40px; height: 40px; background: var(--navy-900); color: var(--blue); display: grid; place-items: center; font-family: Georgia, serif; font-size: 1.45rem; border-radius: 11px; box-shadow: inset 0 0 0 1.5px var(--gold); text-decoration: none; flex-shrink: 0; }
.brand-text { line-height: 1.05; font-size: 1rem; font-weight: 700; letter-spacing: -0.025em; }
.brand-text small { display: block; font-size: .72rem; font-weight: 500; opacity: .6; letter-spacing: 0; margin-top: 3px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { white-space: nowrap; text-decoration: none; padding: 8px 12px; font-size: .92rem; font-weight: 500; color: rgba(21,24,30,.75); border-radius: 10px; }
.nav a:hover { color: var(--ink); background: rgba(21,24,30,.07); }
.nav a.active { color: var(--gold-2); background: rgba(125,190,255,.12); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.header-cta .btn-ghost { background: transparent; color: var(--ink); border-color: rgba(21,24,30,.25); }
.header-cta .btn-ghost:hover { border-color: var(--gold-2); background: rgba(21,24,30,.06); }
.user-chip { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid rgba(21,24,30,.18); font-size: .88rem; font-weight: 600; }
.user-chip:hover { border-color: var(--gold-2); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--gold-grad); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: .85rem; text-transform: uppercase; flex-shrink: 0; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.6rem; box-shadow: 0 0 0 4px rgba(125,190,255,.25); }
.plan-badge { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; color: var(--navy-400); white-space: nowrap; }
.plan-badge.comfort { background: var(--navy-100); color: var(--ink); border-color: var(--navy-200); }
.plan-badge.pro { background: var(--gold-grad); color: var(--ink); border-color: transparent; }
.burger { display: none; margin-left: auto; background: transparent; border: 1px solid rgba(21,24,30,.25); width: 42px; height: 42px; border-radius: 10px; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; margin: 4px auto; border-radius: 2px; }
@media (max-width: 1100px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .site-header.open .nav { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy-950); padding: 12px max(16px, env(safe-area-inset-right, 0px)) 80px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid rgba(125,190,255,.25); }
  .site-header.open .header-cta { display: flex; position: absolute; top: calc(72px + 300px); left: max(16px, env(safe-area-inset-left, 0px)); }
}

/* ---------- Hero ---------- */
.dark { background: var(--navy-950); color: var(--ink); }
.hero { position: relative; overflow: hidden; padding: 72px 0 0; background: radial-gradient(900px 520px at 85% 10%, rgba(125,190,255,.45), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(125,190,255,.12), transparent 60%), var(--navy-950); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(21,24,30,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(21,24,30,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(#000 0%, transparent 85%); -webkit-mask-image: linear-gradient(#000 0%, transparent 85%); }
.hero > .wrap:first-child { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero-copy { min-width: 0; }
.pill-badge { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(21,24,30,.06); border: 1px solid rgba(125,190,255,.35); font-size: .84rem; font-weight: 600; color: var(--gold-2); }
.pill-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(125,190,255,.2); }
.hero h1 { margin: 22px 0 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; margin-top: 38px; border: 1px solid rgba(21,24,30,.12); border-radius: 16px; width: max-content; max-width: 100%; background: rgba(21,24,30,.03); }
.hero-meta div { padding: 13px 20px; font-size: .8rem; color: rgba(21,24,30,.6); }
.hero-meta div + div { border-left: 1px solid rgba(21,24,30,.12); }
.hero-meta b { display: block; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.15; }
@media (max-width: 980px) { .hero > .wrap:first-child { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 44px; } }
@media (max-width: 560px) { .hero-meta { grid-template-columns: repeat(2, 1fr); width: 100%; } .hero-meta div:nth-child(3) { border-left: 0; } .hero-meta div:nth-child(n+3) { border-top: 1px solid rgba(21,24,30,.12); } }

/* Maqsad kartasi */
.goal { background: linear-gradient(180deg, rgba(21,24,30,.07), rgba(21,24,30,.02)); border: 1px solid rgba(125,190,255,.3); border-radius: 24px; padding: 18px; box-shadow: 0 40px 80px -40px rgba(40,96,160,.25); min-width: 0; }
.goal-tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.goal-tabs button { background: rgba(21,24,30,.06); border: 1px solid rgba(21,24,30,.12); color: var(--ink); padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.goal-tabs button.on { background: var(--gold-grad); color: var(--ink); border-color: transparent; }
.goal-tabs span { margin-left: auto; font-size: .78rem; color: rgba(21,24,30,.5); }
.goal-art { color: var(--sky); margin: 14px 0 4px; padding: 10px 6px 0; background: radial-gradient(300px 140px at 50% 100%, rgba(125,190,255,.14), transparent 70%); border-radius: 16px; }
.goal-art .bld { width: 100%; height: auto; display: block; }
.goal-info { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: end; padding: 12px 6px 4px; }
.goal-info > div { min-width: 0; }
.goal-short { font-size: .74rem; font-weight: 700; letter-spacing: .12em; color: var(--gold-2); }
.goal-info h3 { color: var(--ink); margin: 4px 0 6px; font-size: 1.15rem; }
.goal-info p { color: rgba(21,24,30,.62); font-size: .88rem; margin: 0; }
.goal-score { text-align: right; }
.goal-score b { display: block; font-size: 2.3rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.goal-score span { font-size: .78rem; color: rgba(21,24,30,.6); display: block; }
.goal-score small { font-size: .7rem; color: rgba(21,24,30,.4); display: block; max-width: 18ch; margin-left: auto; line-height: 1.3; margin-top: 4px; }
.goal-path { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 12px 14px; background: rgba(255,255,255,.35); border-radius: 14px; font-size: .78rem; color: rgba(21,24,30,.75); flex-wrap: wrap; }
.goal-path i { flex: 1; min-width: 12px; height: 1px; background: linear-gradient(90deg, rgba(125,190,255,.2), var(--gold)); }
.goal-path .gold { font-weight: 700; }
@media (max-width: 560px) { .goal-info { grid-template-columns: 1fr; } .goal-score { text-align: left; } .goal-score small { margin-left: 0; } .goal-tabs span { display: none; } }

.hero-skyline { position: relative; margin-top: 56px; color: rgba(125,190,255,.55); border-top: 1px solid rgba(125,190,255,.15); background: linear-gradient(180deg, transparent, rgba(255,255,255,.35)); }
.hero-skyline .wrap { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 10px; align-items: end; padding-top: 18px; }
.hero-skyline .bld { width: 100%; height: auto; display: block; }
@media (max-width: 700px) { .hero-skyline .wrap { grid-template-columns: 1fr; } .hero-skyline .bld:not(:first-child) { display: none; } }

/* ---------- Bo‘limlar ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 52px 0; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; margin-bottom: 44px; }
.section-head h2 { margin-top: 12px; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 1.04rem; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; gap: 14px; } .section { padding: 64px 0; } }
.alt { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.split-60 { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.split > *, .split-60 > * { min-width: 0; }
.split-60.rev { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 900px) { .split, .split-60, .split-60.rev { grid-template-columns: 1fr; gap: 36px; } }
.ticks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.ticks svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--gold-50); color: var(--gold-3); flex-shrink: 0; }
.ticks.light li { color: rgba(21,24,30,.85); }
.ticks.light svg { background: rgba(125,190,255,.18); color: var(--gold-2); }

/* Yo‘l xaritasi */
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: rm; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 6%; right: 6%; top: 46px; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px); opacity: .6; }
.roadmap li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.roadmap h3 { font-size: 1.08rem; }
.roadmap p { color: var(--ink-2); font-size: .9rem; margin: 0; }
.rm-n { width: 48px; height: 48px; border-radius: 14px; background: var(--navy-900); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; box-shadow: inset 0 0 0 1.5px rgba(125,190,255,.6); margin-bottom: 6px; position: relative; z-index: 1; }
.rm-tag { margin-top: auto; padding-top: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-3); }
.rm-goal { background: var(--navy-950) !important; color: var(--ink); border-color: var(--ink) !important; }
.rm-goal p { color: rgba(21,24,30,.7) !important; }
.rm-goal .rm-n { background: var(--gold-grad); color: var(--ink); }
.rm-goal .rm-tag { color: var(--gold-2); }
@media (max-width: 1000px) { .roadmap { grid-template-columns: 1fr 1fr; } .roadmap::before { display: none; } }
@media (max-width: 560px) { .roadmap { grid-template-columns: 1fr; } }

/* Ikonli kartalar */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.feature:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.icon-sq { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-900); color: var(--blue); margin-bottom: 6px; flex-shrink: 0; }
.icon-sq.gold { background: var(--gold-grad); color: var(--ink); }
.feature p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.feature .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .9rem; color: var(--gold-3); display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Jonli savol kartasi */
.q-demo { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0; }
.qd-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--navy-950); color: var(--ink); }
.qd-chip { font-size: .8rem; font-weight: 600; background: rgba(125,190,255,.16); color: var(--gold-2); padding: 4px 10px; border-radius: 999px; }
.qd-timer { font-family: var(--mono); font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.qd-progress { height: 4px; background: var(--navy-100); }
.qd-progress i { display: block; height: 100%; background: var(--gold); }
.qd-body { padding: 20px 20px 22px; }
.qd-no { font-size: .78rem; font-weight: 700; color: var(--gold-3); }
.qd-q { font-weight: 600; font-size: 1.05rem; line-height: 1.45; margin: 8px 0 16px; }
.qd-opts { display: grid; gap: 8px; }
.qd-opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 12px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; font-size: .93rem; transition: border-color .12s; }
.qd-opt span { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: var(--navy-50); font-weight: 700; font-size: .82rem; color: var(--ink); }
.qd-opt:hover { border-color: var(--navy-400); }
.q-demo.done .qd-opt { pointer-events: none; }
.qd-opt.ok { border-color: var(--ok); background: var(--ok-bg); } .qd-opt.ok span { background: var(--ok); color: var(--ink); }
.qd-opt.bad { border-color: var(--bad); background: var(--bad-bg); } .qd-opt.bad span { background: var(--bad); color: var(--ink); }
.qd-expl { margin-top: 14px; padding: 12px 14px; background: var(--gold-50); border: 1px solid rgba(125,190,255,.3); border-radius: 12px; font-size: .86rem; color: var(--ink-2); line-height: 1.5; }
.qd-expl a { color: var(--gold-3); font-weight: 700; text-decoration: none; }

/* ---------- Mock katalogi ---------- */
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .mock-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .mock-grid { grid-template-columns: 1fr; } }
.mock-card { border: 1px solid var(--line); background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 14px; position: relative; border-radius: var(--r-lg); transition: border-color .15s, box-shadow .15s; min-width: 0; }
.mock-card:hover { border-color: var(--navy-200); box-shadow: var(--shadow-lg); }
.mock-card.free { background: var(--navy-950); color: var(--ink); border-color: var(--ink); }
.mock-card.free .variant, .mock-card.free ul { color: rgba(21,24,30,.65); }
.mock-card.free ul li { border-color: rgba(21,24,30,.14); }
.mock-card.free ul li b { color: var(--ink); }
.mock-card.free .last { background: rgba(21,24,30,.08); }
.mock-card.free .actions .btn { background: var(--gold-grad); color: var(--ink); border-color: transparent; }
.mock-card.free .actions .btn-ghost { background: transparent; color: var(--ink); border-color: rgba(21,24,30,.3); }
.mock-card .tag { position: absolute; top: 20px; right: 20px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 5px 11px; background: var(--navy-50); color: var(--ink); border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.mock-card.free .tag { background: var(--gold-grad); color: var(--ink); }
.mock-card.pro .tag { background: var(--gold-50); color: var(--gold-3); }
.mock-card .variant { font-size: .82rem; color: var(--muted); font-weight: 500; }
.mock-card h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }
.mock-card ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--ink-2); display: grid; gap: 2px; }
.mock-card ul li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.mock-card ul li b { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.mock-card .last { font-size: .86rem; background: var(--navy-50); padding: 9px 12px; display: flex; justify-content: space-between; border-radius: 10px; }
.mock-card .actions { margin-top: auto; display: flex; gap: 8px; }
.mock-card .actions .btn { flex: 1; }
.mock-card.soon { background: transparent; border-style: dashed; color: var(--muted); }
.mock-card.soon h3 { color: var(--ink-2); }

/* ---------- Sertifikat promo / ramka ---------- */
.cert-promo { background: radial-gradient(800px 400px at 20% 50%, rgba(125,190,255,.14), transparent 70%), var(--navy-950); }
.cert-frame { border-radius: 10px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(40,96,160,.25), 0 0 0 1px rgba(125,190,255,.3); background: #ffffff; line-height: 0; }
.cert-frame .cert-svg { width: 100%; height: auto; display: block; }
.cert-promo .cert-frame { transform: rotate(-1.5deg); }

/* ---------- Asoschi ---------- */
.founder-sec { background: linear-gradient(180deg, var(--bg-alt), #fff); }
.founder { display: grid; grid-template-columns: 400px 1fr; gap: 64px; align-items: center; }
.founder > * { min-width: 0; }
.founder-photo { position: relative; aspect-ratio: 4/5; max-width: 100%; background: radial-gradient(circle at 50% 40%, var(--navy-700), var(--navy-950)); overflow: hidden; border-radius: 28px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(125,190,255,.4); }
.founder-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.founder-photo .mono-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 7.5rem; font-weight: 600; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.founder-photo .cap { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 14px; background: rgba(255,255,255,.92); color: var(--ink); border-radius: 14px; font-size: .9rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid rgba(125,190,255,.35); }
.founder blockquote { font-size: clamp(1.25rem, 2.2vw, 1.65rem); font-weight: 400; font-style: normal; line-height: 1.3; margin: 18px 0 24px; padding-left: 20px; border-left: 3px solid var(--gold); color: var(--ink); }
.founder-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.founder-stats div { padding: 16px; font-size: .84rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.founder-stats b { display: block; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1.1; }
.ig-link { text-decoration: none; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; gap: 36px; } .founder-photo { max-width: 360px; } }
@media (max-width: 480px) { .founder-stats { grid-template-columns: 1fr; } }

/* ---------- Tariflar ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; }
.plan.featured { background: var(--navy-950); color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-lg); }
.plan.pro { border-color: var(--blue); background: linear-gradient(180deg, var(--gold-50), #fff 40%); box-shadow: 0 0 0 1px var(--gold) inset; }
.plan .pname { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.plan .pname em { font-style: normal; background: var(--gold-grad); color: var(--ink); padding: 3px 10px; border-radius: 999px; font-size: .7rem; letter-spacing: .04em; }
.plan .price { font-size: 2.7rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: .88rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan.featured .price small, .plan.featured .pdesc { color: rgba(21,24,30,.65); }
.plan .pdesc { font-size: .93rem; color: var(--ink-2); margin: 0; }
.plan ul { list-style: none; padding: 18px 0 0; margin: 0; display: grid; gap: 11px; font-size: .93rem; border-top: 1px solid var(--line); }
.plan.featured ul { border-color: rgba(21,24,30,.14); }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.plan li svg { margin-top: 3px; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--gold-50); color: var(--gold-3); }
.plan.featured li svg { background: rgba(125,190,255,.2); color: var(--gold-2); }
.plan li.off { color: var(--muted); } .plan li.off svg { background: transparent; color: var(--muted); }
.plan.featured li.off { color: rgba(21,24,30,.4); }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq details[open] { border-color: rgba(125,190,255,.6); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-size: 1.06rem; font-weight: 700; letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--navy-50); display: grid; place-items: center; font-size: 1.2rem; transition: transform .2s, background .2s; color: var(--ink); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--gold-grad); color: var(--ink); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; max-width: 75ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-990); color: rgba(21,24,30,.66); padding: 64px 0 32px; font-size: .92rem; border-top: 1px solid rgba(125,190,255,.2); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--ink); }
.site-footer h4 { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; margin-bottom: 14px; }
.site-footer a:not(.brand) { text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .82rem; color: rgba(21,24,30,.42); }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Ichki sahifa sarlavhasi ---------- */
.page-head { padding: 56px 0 44px; background: radial-gradient(700px 300px at 85% 0%, rgba(125,190,255,.5), transparent 70%), var(--navy-950); color: var(--ink); }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin: 14px 0 12px; }
.page-head .lead { color: rgba(21,24,30,.7); }
.page-head .hl { color: var(--ink); background: linear-gradient(transparent 66%, rgba(125,190,255,.5) 66%, rgba(125,190,255,.5) 92%, transparent 92%); }
.crumbs { font-size: .86rem; color: var(--muted); }
.page-head .crumbs { color: rgba(21,24,30,.5); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* ---------- Jadvallar va baholash ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.table-wrap.flat { border: 0; border-radius: 0; }
.grade-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.grade-table th, .grade-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.grade-table th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--bg-alt); white-space: nowrap; }
.grade-table tr:last-child td { border-bottom: 0; }
.grade-table .bar { height: 8px; background: var(--navy-100); position: relative; min-width: 120px; border-radius: 99px; overflow: hidden; }
.grade-table .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy-900); border-radius: 99px; }
.grade-table a { color: var(--ink); font-weight: 600; }
.admin-t td { white-space: nowrap; }
.admin-t tr.blocked td { opacity: .5; }
.admin-t select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.gchip { display: inline-grid; place-items: center; min-width: 38px; padding: 3px 8px; border-radius: 8px; background: var(--navy-900); color: var(--ink); font-weight: 700; font-size: .85rem; }
.gchip.top { background: var(--gold-grad); color: var(--ink); }
.gchip.none { background: var(--navy-100); color: var(--muted); }
.st { display: inline-block; font-weight: 700; padding: 3px 10px; font-size: .74rem; letter-spacing: .03em; border-radius: 999px; white-space: nowrap; }
.st.ok { background: var(--ok-bg); color: var(--ok); }
.st.bad { background: var(--bad-bg); color: var(--bad); }
.st.skip { background: var(--gold-50); color: var(--gold-3); }
.formula { background: var(--navy-950); color: var(--ink); padding: 24px 26px; font-family: var(--mono); font-size: .9rem; line-height: 1.9; border-radius: var(--r-lg); overflow-x: auto; border: 1px solid rgba(125,190,255,.3); }
.formula .c { color: var(--gold-2); opacity: .8; }
.note { border: 1px solid rgba(125,190,255,.35); padding: 14px 18px; background: var(--gold-50); font-size: .92rem; color: var(--ink-2); border-radius: 14px; }
.note b { color: var(--ink); }
.note a { color: var(--gold-3); font-weight: 700; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 16px; background: #fff; }
.empty a { color: var(--gold-3); font-weight: 700; }

/* ---------- Qonunchilik ---------- */
.law-toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.search { flex: 1; min-width: 220px; position: relative; display: block; }
.search.sm { flex: 0 1 300px; min-width: 180px; }
.search input { width: 100%; padding: 12px 16px 12px 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; outline: none; }
.search input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(125,190,255,.18); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.chip:hover { border-color: var(--navy-200); }
.chip.on { background: var(--navy-900); border-color: var(--ink); color: var(--ink); }
.law-list { display: grid; gap: 10px; }
.law { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.law.open { border-color: rgba(125,190,255,.6); box-shadow: var(--shadow); }
.law > button { width: 100%; background: none; border: 0; text-align: left; padding: 18px 20px; display: grid; grid-template-columns: 44px 1fr auto 28px; gap: 16px; align-items: center; }
.law .lnum { width: 40px; height: 40px; border-radius: 12px; background: var(--navy-900); display: grid; place-items: center; color: var(--blue); font-weight: 700; font-size: .85rem; }
.law .lname { font-size: 1.06rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.law .lname small { display: block; font-size: .84rem; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-top: 4px; }
.law .weight { font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--navy-50); color: var(--ink); white-space: nowrap; }
.law .weight.hi { background: var(--gold-grad); color: var(--ink); }
.law .tog { font-size: 1.3rem; transition: transform .2s; text-align: center; color: var(--gold-3); }
.law.open .tog { transform: rotate(45deg); }
.law-body { display: none; padding: 0 20px 22px 80px; }
.law.open .law-body { display: block; }
.law-body .kp { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.law-body .kp div { padding: 12px 14px; background: var(--bg-alt); border-radius: 12px; font-size: .92rem; display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.law-body .kp div::before { content: "§"; font-family: Georgia, serif; color: var(--blue); font-weight: 700; }
.law-body .src { margin-top: 16px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: .86rem; color: var(--muted); }
@media (max-width: 720px) { .law > button { grid-template-columns: 1fr 28px; gap: 8px; padding: 16px; } .law .lnum, .law .weight { display: none; } .law-body { padding: 0 16px 18px; } .law-body .kp { grid-template-columns: 1fr; } }

/* ---------- Darsliklar ---------- */
.grade-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 36px; }
.grade-tabs a { background: #fff; border: 1px solid var(--line); padding: 16px 18px; text-align: left; border-radius: 16px; text-decoration: none; }
.grade-tabs a:hover { border-color: var(--blue); }
.grade-tabs b { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.grade-tabs span { font-size: .84rem; color: var(--muted); }
.grade-tabs a.on { background: var(--navy-950); border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow-lg); }
.grade-tabs a.on b { color: var(--gold-2); }
.grade-tabs a.on span { color: rgba(21,24,30,.6); }
@media (max-width: 700px) { .grade-tabs { grid-template-columns: repeat(2, 1fr); } }
.book { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.book > * { min-width: 0; }
.book-side { position: sticky; top: 96px; align-self: start; }
.book-cover { aspect-ratio: 3/4; max-width: 100%; background: radial-gradient(circle at 70% 20%, var(--navy-700), var(--navy-950)); color: var(--ink); padding: 24px 22px; display: flex; flex-direction: column; justify-content: space-between; position: relative; border-radius: 6px 18px 18px 6px; box-shadow: var(--shadow-lg); overflow: hidden; }
.book-cover::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--gold); opacity: .6; }
.book-cover::after { content: ""; position: absolute; inset: 14px 14px 14px 22px; border: 1px solid rgba(125,190,255,.35); border-radius: 4px 12px 12px 4px; pointer-events: none; }
.book-cover .bc-top { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); padding-left: 12px; }
.book-cover .bc-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; padding-left: 12px; }
.book-cover .bc-title small { font-size: .78rem; font-weight: 500; opacity: .7; letter-spacing: 0; }
.book-cover .bc-grade { font-family: var(--serif); font-size: 6rem; line-height: .85; padding-left: 12px; font-weight: 600; color: var(--blue); }
.book-side .toc { margin-top: 18px; font-size: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px 14px; }
.book-side .toc a { display: block; text-decoration: none; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.book-side .toc a:last-child { border-bottom: 0; }
.book-side .toc a:hover { color: var(--gold-3); }
.topic { padding: 28px; margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); scroll-margin-top: 90px; }
.topic .tnum { font-size: .8rem; font-weight: 700; color: var(--gold-3); }
.topic h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 12px; }
.topic p { color: var(--ink-2); }
.topic .facts { background: var(--navy-50); padding: 16px 20px; margin-top: 14px; border-radius: 14px; border-left: 3px solid var(--gold); }
.topic .facts h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.topic .facts ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .93rem; }
@media (max-width: 900px) { .book { grid-template-columns: 1fr; } .book-side { position: static; display: grid; grid-template-columns: 130px 1fr; gap: 16px; } .book-side .toc { margin-top: 0; } .book-cover .bc-grade { font-size: 3rem; } .book-cover .bc-title { font-size: 1rem; } .book-cover { padding: 14px 12px; } .topic { padding: 20px; } }

/* =========================================================
   TEST INTERFEYSI
   ========================================================= */
.exam { min-height: 100vh; background: #ECEFF6; display: flex; flex-direction: column; }
.exam-bar { background: var(--navy-950); color: var(--ink); height: 64px; display: flex; align-items: center; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); gap: 18px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; border-bottom: 1px solid rgba(125,190,255,.25); }
.exam-bar .brand-mark { width: 36px; height: 36px; font-size: 1.2rem; }
.exam-title { font-size: .92rem; font-weight: 600; line-height: 1.2; }
.exam-title small { display: block; font-family: var(--mono); font-size: .7rem; color: var(--gold-2); letter-spacing: .06em; font-weight: 500; }
.timer { margin-left: auto; font-family: var(--mono); font-size: 1.22rem; font-weight: 600; display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 10px; background: rgba(21,24,30,.08); font-variant-numeric: tabular-nums; }
.timer.warn { background: #fff; color: var(--bad); }
.exam-body { flex: 1; display: grid; grid-template-columns: 1fr 340px; gap: 18px; padding: 18px; max-width: 1400px; width: 100%; margin: 0 auto; }
.exam-body > * { min-width: 0; }
.q-panel { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; min-height: calc(100vh - 100px); border-radius: 16px; overflow: hidden; }
.q-head { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.q-head .qno { font-weight: 700; background: var(--navy-900); color: var(--gold-2); padding: 4px 12px; font-size: .95rem; border-radius: 8px; font-variant-numeric: tabular-nums; }
.q-head .qtype { font-size: .85rem; color: var(--muted); }
.q-head .flag { margin-left: auto; background: #fff; border: 1px solid var(--line); padding: 7px 12px; font-size: .84rem; display: flex; gap: 8px; align-items: center; border-radius: 10px; }
.q-head .flag.on { border-color: var(--blue); background: var(--gold-50); font-weight: 700; color: var(--gold-3); }
.q-content { padding: 30px 34px; flex: 1; }
.q-text { font-size: 1.14rem; line-height: 1.65; margin-bottom: 26px; max-width: 75ch; font-weight: 500; }
.opts { display: grid; gap: 10px; max-width: 760px; }
.opt { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; text-align: left; padding: 13px 15px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; transition: border-color .12s, background .12s; }
.opt:hover { border-color: var(--navy-400); }
.opt .l { width: 36px; height: 36px; display: grid; place-items: center; background: var(--navy-50); font-weight: 700; border-radius: 10px; color: var(--ink); }
.opt.sel { border-color: var(--ink); background: var(--navy-50); }
.opt.sel .l { background: var(--navy-900); color: var(--gold-2); }
.match { display: grid; gap: 10px; max-width: 820px; }
.match-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; }
.match-row .ml { font-weight: 600; }
.match-row .ml b { margin-right: 8px; color: var(--gold-3); }
.match-row select, .field select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; }
.match-row.filled { border-color: var(--navy-400); background: var(--navy-50); }
.open-input { max-width: 520px; }
.open-input input { width: 100%; padding: 15px 18px; border: 1.5px solid var(--line); font-size: 1.1rem; border-radius: 12px; outline: none; background: #fff; }
.open-input input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(125,190,255,.18); }
.open-input .hint { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.q-foot { display: flex; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--line); gap: 10px; background: var(--bg-alt); }
.side-panel { display: flex; flex-direction: column; gap: 14px; }
.side-box { background: #fff; border: 1px solid var(--line); padding: 18px; border-radius: 16px; }
.side-box h4 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.nav-part { font-size: .8rem; color: var(--ink-2); margin: 12px 0 6px; font-weight: 600; }
.nav-part:first-of-type { margin-top: 0; }
.qgrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.qgrid button { aspect-ratio: 1; border: 1px solid var(--line); background: #fff; font-size: .78rem; font-weight: 600; border-radius: 8px; position: relative; padding: 0; font-variant-numeric: tabular-nums; }
.qgrid button.ans { background: var(--navy-900); color: var(--ink); border-color: var(--ink); }
.qgrid button.cur { outline: 2px solid var(--gold); outline-offset: 1px; }
.qgrid button.flg::after { content: ""; position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; font-size: .76rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border: 1px solid var(--line); display: inline-block; border-radius: 3px; }
.legend i.a { background: var(--navy-900); border-color: var(--ink); }
.legend i.f { background: var(--gold); border-radius: 50%; border: 0; width: 8px; height: 8px; }
.progress { height: 6px; background: var(--navy-100); margin-top: 10px; border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.stat-line { display: flex; justify-content: space-between; font-size: .86rem; padding: 5px 0; }
.stat-line b { font-variant-numeric: tabular-nums; }
@media (max-width: 980px) { .exam-body { grid-template-columns: 1fr; padding: 12px; } .q-panel { min-height: auto; } .q-content { padding: 22px 18px; } .match-row { grid-template-columns: 1fr; } .exam-title { display: none; } .qgrid { grid-template-columns: repeat(10, 1fr); } }

/* ---------- Natija ---------- */
.result-hero { background: radial-gradient(700px 400px at 15% 0%, rgba(125,190,255,.16), transparent 70%), var(--navy-950); color: var(--ink); padding: 56px 0; }
.result-grid { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.result-grid > * { min-width: 0; }
.score-ring { width: 220px; height: 220px; position: relative; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring svg circle:last-child { stroke-linecap: round; }
.score-ring .inner { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.score-ring b { font-size: 4rem; font-weight: 700; line-height: 1; letter-spacing: -0.05em; display: block; font-variant-numeric: tabular-nums; }
.score-ring span { font-size: .85rem; color: var(--gold-2); }
.result-grade { display: inline-flex; align-items: center; gap: 14px; margin: 14px 0 16px; }
.result-grade .g { font-weight: 700; font-size: 1.6rem; background: var(--gold-grad); color: var(--ink); padding: 4px 16px; border-radius: 12px; }
.result-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; max-width: 640px; }
.result-counts div { padding: 14px 16px; font-size: .82rem; color: rgba(21,24,30,.62); background: rgba(21,24,30,.06); border: 1px solid rgba(21,24,30,.1); border-radius: 14px; }
.result-counts b { display: block; font-size: 1.8rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.result-actions svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .result-grid { grid-template-columns: 1fr; gap: 28px; } .score-ring { width: 180px; height: 180px; } .result-counts { grid-template-columns: repeat(2, 1fr); } }
.topic-bars { display: grid; gap: 14px; }
.topic-bar { display: grid; grid-template-columns: 220px 1fr 64px; gap: 16px; align-items: center; font-size: .9rem; }
.topic-bar.sm { grid-template-columns: 60px 1fr 44px; }
.topic-bar .t { height: 10px; background: var(--navy-100); position: relative; border-radius: 99px; overflow: hidden; }
.topic-bar .t i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--navy-900), var(--navy-700)); border-radius: 99px; }
.topic-bar b { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .topic-bar { grid-template-columns: 1fr 60px; } .topic-bar .t { grid-column: 1 / -1; grid-row: 2; } }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.review-item { border: 1px solid var(--line); background: #fff; margin-bottom: 12px; border-radius: 16px; overflow: hidden; }
.review-item .rh { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: .86rem; flex-wrap: wrap; background: var(--bg-alt); }
.review-item .rb { padding: 18px; }
.review-item .rq { font-size: 1.02rem; margin-bottom: 12px; font-weight: 500; }
.review-item .ra { display: grid; gap: 6px; font-size: .92rem; margin-bottom: 12px; }
.review-item .ra .row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.review-item .ra .row span:first-child { color: var(--muted); }
.good { color: var(--ok); font-weight: 600; }
.wrong { color: var(--bad); font-weight: 600; }
.review-item .expl { background: var(--gold-50); padding: 12px 16px; font-size: .9rem; color: var(--ink-2); border-radius: 12px; border-left: 3px solid var(--gold); }
.review-item .expl b { color: var(--ink); }
@media (max-width: 640px) { .review-item .ra .row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Natijani olish / auth ---------- */
.claim { padding: 64px 0 80px; background: radial-gradient(800px 500px at 90% 0%, rgba(125,190,255,.5), transparent 60%), var(--navy-950); min-height: calc(100vh - 72px); }
.claim-grid { display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: center; }
.claim-grid > * { min-width: 0; }
.claim h1 { margin: 16px 0 14px; }
.teaser-card { margin-top: 28px; background: rgba(21,24,30,.05); border: 1px solid rgba(125,190,255,.3); border-radius: 20px; padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; max-width: 520px; }
.tc-score b { font-size: 3.6rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1; display: block; }
.tc-score span { color: var(--gold-2); font-size: .85rem; }
.tc-rows { display: grid; gap: 8px; font-size: .88rem; color: rgba(21,24,30,.65); }
.tc-rows div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed rgba(21,24,30,.12); padding-bottom: 6px; }
.tc-rows b { color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.blur { filter: blur(9px); user-select: none; }
@media (max-width: 900px) { .claim-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 480px) { .teaser-card { grid-template-columns: 1fr; } }
.auth-card { background: #fff; color: var(--ink); border-radius: 24px; padding: 26px; box-shadow: 0 40px 80px -30px rgba(40,96,160,.25), 0 0 0 1px rgba(125,190,255,.35); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-alt); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.auth-tabs button { border: 0; background: transparent; padding: 10px; border-radius: 9px; font-weight: 700; font-size: .92rem; color: var(--muted); }
.auth-tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.auth-note { font-size: .9rem; background: var(--gold-50); border: 1px solid rgba(125,190,255,.35); border-radius: 10px; padding: 10px 12px; color: var(--ink-2); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .85rem; font-weight: 600; }
.field input { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; outline: none; background: #fff; width: 100%; }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(125,190,255,.18); }
.field input:disabled { background: var(--bg-alt); color: var(--muted); }
.form-err { background: var(--bad-bg); color: var(--bad); border-radius: 10px; padding: 10px 12px; font-size: .88rem; font-weight: 500; }
.demo-banner { background: var(--gold-50); color: var(--gold-3); border-bottom: 1px solid rgba(125,190,255,.35); font-size: .84rem; font-weight: 600; text-align: center; padding: 8px 16px; }
.loading { min-height: 60vh; display: grid; place-items: center; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--navy-100); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sertifikat sahifasi ---------- */
.cert-page { padding: 36px 0 72px; background: radial-gradient(900px 500px at 30% 0%, rgba(125,190,255,.1), transparent 60%), var(--bg-alt); }
.cert-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; margin-top: 18px; align-items: start; }
.cert-layout > * { min-width: 0; }
.cert-side { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 12px; position: sticky; top: 92px; }
.cert-side h2 { font-size: 1.5rem; }
.verified { display: inline-flex; align-items: center; gap: 6px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; width: max-content; }
.cert-side dl, .kv { margin: 0; display: grid; gap: 0; }
.cert-side dl div, .kv div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.cert-side dt, .kv dt { color: var(--muted); }
.cert-side dd, .kv dd { margin: 0; font-weight: 700; text-align: right; }
.link-field { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .8rem; color: var(--muted); background: var(--bg-alt); }
@media (max-width: 900px) { .cert-layout { grid-template-columns: 1fr; } .cert-side { position: static; } }
.verify { display: flex; gap: 12px; flex-wrap: wrap; max-width: 640px; }

/* ---------- Kabinet ---------- */
.cab-head { padding: 40px 0 0; background: radial-gradient(800px 400px at 90% 0%, rgba(125,190,255,.5), transparent 60%), var(--navy-950); }
.cab-user { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cab-user h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 6px 0 4px; }
.cab-user p { margin: 0; color: rgba(21,24,30,.6); font-size: .92rem; }
.cab-badges { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.tgt { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--gold-2); border: 1px solid rgba(125,190,255,.35); padding: 4px 10px; border-radius: 999px; }
.tgt svg { width: 16px; height: 16px; }
.cab-tabs { display: flex; gap: 4px; margin-top: 28px; overflow-x: auto; scrollbar-width: none; }
.cab-tabs a { white-space: nowrap; text-decoration: none; color: rgba(21,24,30,.65); padding: 12px 16px; font-weight: 600; font-size: .92rem; border-radius: 12px 12px 0 0; display: inline-flex; gap: 6px; align-items: center; }
.cab-tabs a:hover { color: var(--ink); }
.cab-tabs a.on { background: var(--bg-alt); color: var(--ink); }
.cab-body { background: var(--bg-alt); min-height: 50vh; }
.cab-body .wrap { display: grid; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpis.six { grid-template-columns: repeat(6, 1fr); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 4px; text-decoration: none; min-width: 0; }
.kpi span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi small { color: var(--gold-3); font-weight: 700; font-size: .78rem; }
.kpi.gold { background: var(--navy-950); color: var(--ink); border-color: var(--ink); }
.kpi.gold b { color: var(--gold-2); font-size: 1.4rem; }
.kpi.gold span { color: rgba(21,24,30,.6); }
.kpi.alert { border-color: var(--blue); background: var(--gold-50); }
@media (max-width: 1100px) { .kpis.six { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .kpis, .kpis.six { grid-template-columns: repeat(2, 1fr); } }
.cab-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.cab-grid > * { min-width: 0; }
@media (max-width: 900px) { .cab-grid { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; min-width: 0; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-h a { color: var(--gold-3); font-weight: 700; text-decoration: none; font-size: .9rem; }
.panel .mock-grid .mock-card { box-shadow: none; }
.spark, .bars { width: 100%; height: auto; display: block; }
.goal-panel { background: var(--navy-950); color: var(--ink); border-color: var(--ink); }
.goal-panel h3 { color: var(--ink); margin: 6px 0 14px; }
.goal-panel .muted { color: rgba(21,24,30,.55); }
.goal-mini { color: var(--sky); margin: -6px -6px 10px; }
.goal-mini .bld { width: 100%; height: auto; }
.gp-bar { height: 12px; background: rgba(21,24,30,.1); border-radius: 99px; position: relative; overflow: visible; }
.gp-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold-grad); border-radius: 99px; }
.gp-bar em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: rgba(21,24,30,.5); }
.gp-legend { display: flex; justify-content: space-between; font-size: .84rem; color: rgba(21,24,30,.7); margin-top: 8px; }
.gp-legend b { color: var(--ink); }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .cert-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cert-grid { grid-template-columns: 1fr; } }
.cert-thumb { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 10px; transition: box-shadow .15s, border-color .15s; }
.cert-thumb:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); }
.cert-thumb .cert-frame { box-shadow: none; border: 1px solid var(--line); }
.ct-meta b { display: block; font-size: .95rem; }
.ct-meta span { font-size: .8rem; color: var(--muted); }
.locked-panel { background: #fff; border: 1px dashed var(--gold); border-radius: 20px; padding: 40px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.locked-panel p { color: var(--ink-2); max-width: 52ch; }
.premium-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--navy-950); color: var(--ink); border-radius: 20px; padding: 22px 24px; border: 1px solid rgba(125,190,255,.35); }
.premium-head.pro { background: linear-gradient(120deg, var(--navy-950) 55%, #CFE6FF); }
.premium-head h3 { color: var(--ink); font-size: 1.5rem; margin: 8px 0 4px; }
.premium-head p { margin: 0; color: rgba(21,24,30,.65); font-size: .9rem; }
.plan-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan-list li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px; background: var(--bg-alt); border-radius: 14px; }
.plan-list b { display: block; font-size: .94rem; }
.plan-list small { color: var(--muted); }
.plan-list a { color: var(--gold-3); font-weight: 700; text-decoration: none; font-size: .86rem; white-space: nowrap; }
.pl-n { width: 36px; height: 36px; border-radius: 10px; background: var(--navy-900); color: var(--blue); display: grid; place-items: center; font-weight: 700; }
.lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .lessons { grid-template-columns: 1fr; } }
.lesson { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: linear-gradient(180deg, var(--gold-50), #fff); }
.lesson .l-day { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-3); }
.lesson b { display: block; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }
.lesson p { margin: 4px 0 0; color: var(--ink-2); font-size: .9rem; }
.cur-plan { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.pay-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.pay-plan { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; display: grid; gap: 2px; position: relative; }
.pay-plan input { position: absolute; opacity: 0; }
.pay-plan b { font-size: 1.05rem; }
.pay-plan span { color: var(--muted); font-size: .9rem; }
.pay-plan:has(input:checked) { border-color: var(--ink); background: var(--navy-50); box-shadow: inset 0 0 0 1px var(--navy-900); }
.pay-plan.pro:has(input:checked) { border-color: var(--blue); background: var(--gold-50); box-shadow: inset 0 0 0 1px var(--gold); }
.pay-steps { display: grid; gap: 14px; margin-bottom: 16px; }
.pay-steps > div { display: flex; gap: 14px; align-items: flex-start; }
.ps-n { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.card-num { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.card-num span { font-size: 1.3rem; font-weight: 700; letter-spacing: .06em; background: var(--navy-950); color: var(--gold-2); padding: 8px 14px; border-radius: 10px; }
.chip-r { display: inline-flex; cursor: pointer; margin-top: 6px; }
.chip-r input { position: absolute; opacity: 0; }
.chip-r span { border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; }
.chip-r input:checked + span { background: var(--navy-900); color: var(--ink); border-color: var(--ink); }
.chip-r input:focus-visible + span { outline: 2px solid var(--gold); }
@media (max-width: 560px) { .pay-plans { grid-template-columns: 1fr; } .card-num span { font-size: 1.05rem; } }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: var(--bg-alt); }
.admin-side { background: var(--navy-950); color: var(--ink); padding: 22px 16px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; border-right: 1px solid rgba(125,190,255,.2); }
.admin-side nav { display: grid; gap: 4px; }
.admin-side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: rgba(21,24,30,.7); text-decoration: none; font-weight: 600; font-size: .92rem; }
.admin-side nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-side nav a:hover { background: rgba(21,24,30,.06); color: var(--ink); }
.admin-side nav a.on { background: rgba(125,190,255,.14); color: var(--gold-2); }
.admin-side nav em { margin-left: auto; font-style: normal; background: var(--gold-grad); color: var(--ink); font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.admin-side .btn { margin-top: auto; }
.admin-main { padding: 26px max(28px, env(safe-area-inset-right, 0px)) 48px 28px; min-width: 0; display: grid; gap: 18px; align-content: start; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.8rem; }
.mode-chip { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--navy-900); color: var(--gold-2); }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(800px 500px at 50% 0%, rgba(125,190,255,.5), transparent 60%), var(--navy-950); }
.admin-login .brand { color: var(--ink); }
.admin-login .brand-text small { opacity: .6; }
.plan-split { display: flex; gap: 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.plan-split b { color: var(--ink); }
.setup { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: .92rem; color: var(--ink-2); }
.setup code, .events pre { font-family: var(--mono); font-size: .82rem; }
.setup code { background: var(--navy-50); padding: 1px 6px; border-radius: 6px; }
.events { display: grid; gap: 10px; max-height: 70vh; overflow: auto; }
.event { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ev-h { display: flex; gap: 10px; align-items: center; font-size: .8rem; flex-wrap: wrap; margin-bottom: 6px; }
.events pre { margin: 0; white-space: pre-wrap; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; padding: 14px 16px; gap: 12px; }
  .admin-side nav { display: flex; overflow-x: auto; }
  .admin-side nav a span { white-space: nowrap; }
  .admin-side .btn { margin-top: 0; align-self: flex-start; }
  .admin-main { padding: 18px 16px 40px; }
}

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(21,24,30,.38); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.modal { background: #fff; width: 100%; max-width: 480px; padding: 30px; position: relative; max-height: 92vh; overflow-y: auto; border-radius: 22px; box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold); }
.modal h3 { font-size: 1.55rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 10px; }
.modal p { color: var(--ink-2); }
.modal .x { position: absolute; top: 14px; right: 14px; background: var(--navy-50); border: 0; font-size: 1.3rem; line-height: 1; width: 36px; height: 36px; border-radius: 50%; z-index: 1; }
.modal.auth-modal { padding-top: 54px; }
.modal .row-btns { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.modal .row-btns .btn { flex: 1; }
.mini-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.mini-plan { border: 1px solid var(--line); padding: 16px; border-radius: 16px; }
.mini-plan.comfort { background: var(--navy-950); color: var(--ink); border-color: var(--ink); }
.mini-plan.comfort ul { color: rgba(21,24,30,.7); }
.mini-plan.pro { border-color: var(--blue); background: var(--gold-50); }
.mini-plan b { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.mini-plan .p { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0; }
.mini-plan .p small { font-size: .78rem; font-weight: 500; }
.mini-plan ul { margin: 0; padding-left: 16px; font-size: .85rem; color: var(--ink-2); }
@media (max-width: 520px) { .mini-plans { grid-template-columns: 1fr; } .modal { padding: 24px 18px; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.toast { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--navy-950); color: var(--ink); padding: 12px 20px; font-size: .9rem; z-index: 200; animation: fade .2s ease; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid rgba(125,190,255,.4); max-width: calc(100vw - 32px); }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
.result-grid .eyebrow { display: flex; }
.admin > *, .admin-side nav { min-width: 0; }

/* ---------- TDYU binosi (hero pastki qismi) ---------- */
.hero-tdyu { position: relative; margin-top: 56px; color: var(--sky); border-top: 1px solid rgba(125,190,255,.18); background: linear-gradient(180deg, transparent, rgba(255,255,255,.4)); }
.tdyu-stage { position: relative; padding-top: 22px; }
.tdyu-stage .bld { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 18px rgba(125,190,255,.18)); }
.tdyu-stage img { position: absolute; inset: 22px 0 0; width: 100%; height: calc(100% - 22px); object-fit: cover; border-radius: 18px 18px 0 0; opacity: .55; mix-blend-mode: luminosity; }
.tdyu-stage img + .bld { opacity: .8; }
.tdyu-cap { display: flex; gap: 10px 18px; align-items: center; flex-wrap: wrap; padding: 16px 0 22px; font-size: .88rem; color: rgba(21,24,30,.62); border-top: 1px solid rgba(125,190,255,.2); }
.tdyu-cap b { color: var(--ink); font-weight: 600; }
.tdyu-cap .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255,201,60,.22); }
.tdyu-goal { margin-left: auto; background: var(--gold-grad); color: var(--ink) !important; font-weight: 700; padding: 5px 12px; border-radius: 999px; font-size: .8rem; }
@media (max-width: 640px) { .tdyu-goal { margin-left: 0; } }
.founder-results { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: -6px 0 22px; font-size: .86rem; color: var(--muted); }
.founder-results b { background: var(--gold-50); color: var(--gold-3); border: 1px solid rgba(125,190,255,.45); padding: 4px 12px; border-radius: 999px; font-weight: 600; }
.founder-phone { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.founder-phone b { color: var(--ink); }
.dark .gold, .result-hero .gold { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--blue); }

/* Asoschi rasmi (Instagram profil surati, 150×150) — doira ko‘rinishida */
.founder-photo img { inset: auto; left: 50%; top: 44%; width: 168px; height: 168px; transform: translate(-50%, -50%); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 5px var(--gold), 0 0 0 14px rgba(125,190,255,.18), 0 30px 60px -20px rgba(40,96,160,.25); }
.founder-photo:has(img) .mono-fallback { opacity: .05; font-size: 13rem; }

/* ---------- Och tema: to‘q ko‘k ishlatilmaydi ---------- */
.gold, .dark .gold, .result-hero .gold { color: var(--ink); background: linear-gradient(transparent 60%, var(--gold) 60%, var(--gold) 92%, transparent 92%); -webkit-background-clip: border-box; background-clip: border-box; }
.hero { background: radial-gradient(900px 520px at 85% 10%, rgba(125,190,255,.5), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(255,201,60,.16), transparent 60%), linear-gradient(180deg, #EEF6FF, #DDEEFF); }
.btn { box-shadow: 0 8px 20px -12px rgba(40,115,200,.6); }
.btn:hover { background: var(--navy-700); border-color: var(--navy-700); }
.brand-mark { color: var(--blue); background: #fff; box-shadow: inset 0 0 0 1.5px var(--navy-700); }
.icon-sq, .rm-n, .law .lnum, .pl-n, .ps-n { background: var(--navy-100); color: var(--blue); box-shadow: none; }
.rm-goal .rm-n, .icon-sq.gold { background: var(--gold-grad); color: var(--ink); }
a.feature:hover .icon-sq { background: var(--gold-grad); color: var(--ink); }
.card-num span { background: var(--navy-100); color: var(--ink); }
.q-head .qno, .opt.sel .l { color: var(--ink); }
.qgrid button.ans { background: var(--navy-700); border-color: var(--navy-700); }
.legend i.a { background: var(--navy-700); border-color: var(--navy-700); }
.chip.on, .chip-r input:checked + span { background: var(--navy-700); border-color: var(--navy-700); color: var(--ink); }
.gchip { background: var(--navy-100); color: var(--ink); }
.grade-table .bar i, .topic-bar .t i { background: linear-gradient(90deg, var(--navy-600), var(--navy-700)); }
.site-header { border-bottom-color: var(--navy-200); }
.page-head, .cab-head, .claim, .result-hero, .cert-promo { background: radial-gradient(800px 400px at 85% 0%, rgba(125,190,255,.45), transparent 60%), linear-gradient(180deg, #EAF4FF, #DCEDFF); }
.cab-tabs a.on { background: var(--bg-alt); }
.mock-card.free, .plan.featured, .kpi.gold, .goal-panel, .premium-head, .rm-goal, .grade-tabs a.on, .mini-plan.comfort { background: linear-gradient(160deg, #D9ECFF, #C3E0FF); border-color: var(--navy-700) !important; }
.mock-card.free .tag { background: var(--gold-grad); color: var(--ink); }
.kpi.gold b { color: var(--blue); }
.goal, .teaser-card { background: rgba(255,255,255,.65); border-color: var(--navy-700); }
.goal-tabs button { background: #fff; border-color: var(--navy-200); }
.goal-tabs button.on { background: var(--gold-grad); border-color: transparent; }
.goal-path { background: rgba(255,255,255,.7); }
.hero-meta, .pill-badge { background: rgba(255,255,255,.7); }
.pill-badge { border-color: var(--navy-700); color: var(--blue); }
.qd-top { background: var(--navy-100); }
.exam-bar { background: #fff; border-bottom: 1px solid var(--navy-200); }
.timer { background: var(--navy-100); }
.admin-side { background: linear-gradient(180deg, #E4F1FF, #D4E9FF); border-right-color: var(--navy-200); }
.admin-side nav a.on { background: #fff; color: var(--blue); }
.site-footer { border-top-color: var(--navy-200); }
.site-footer h4 { color: var(--blue); }
.founder-photo { background: radial-gradient(circle at 50% 40%, #fff, var(--navy-800)); box-shadow: var(--shadow-lg), 0 0 0 1px var(--navy-700); }
.founder-photo .cap { border-color: var(--navy-700); }
.book-cover { background: radial-gradient(circle at 70% 20%, #fff, var(--navy-800)); }
.book-cover .bc-grade, .book-cover .bc-top { color: var(--blue); }
.eyebrow, .dark .eyebrow, .result-hero .eyebrow { color: var(--blue); }
.tdyu-cap .dot { box-shadow: 0 0 0 4px rgba(255,201,60,.35); }
.hero-tdyu { background: linear-gradient(180deg, transparent, rgba(255,255,255,.5)); border-top-color: var(--navy-700); }
.score-ring b { color: var(--ink); }
.modal-bg { background: rgba(21,24,30,.38); }

/* =========================================================
   v4 — ILOVA KO‘RINISHI: oq · ko‘k · qizil
   Pastki tab-panel, kartalar, katta rangli bo‘lim plitkalari.
   ========================================================= */
:root {
  --blue: #1F4E9C; --blue-2: #173C7A; --blue-50: #EEF3FB; --blue-100: #DCE6F5; --blue-200: #C3D8FF;
  --red: #E30A17; --red-2: #B8081A; --red-50: #FFEEF1;
  --blue-grad: linear-gradient(140deg, #3A6FC4 0%, #1F4E9C 52%, #173C7A 100%);
  --red-grad: linear-gradient(140deg, #F0343F 0%, #E30A17 55%, #B8081A 100%);
  --gold: #1F4E9C; --gold-2: #1F4E9C; --gold-3: #1F4E9C; --gold-50: #EEF3FB;
  --gold-grad: var(--blue-grad);
  --navy-990: #E8F0FE; --navy-950: #EEF3FB; --navy-900: #DCE6F5; --navy-850: #E3EDFF; --navy-800: #C8DBFF; --navy-700: #B9D2FF;
  --navy-600: #1F4E9C; --navy-400: #9FB3D1; --navy-200: #D6E4FB; --navy-100: #EEF3FB; --navy-50: #F5F8FE;
  --bg: #F3F6FB; --bg-alt: #F3F6FB; --line: #E3EAF4;
  --title: #1B2233;
  --app: 760px;
}
body { background: var(--bg); }
body::before { background: var(--bg); }
::selection { background: var(--blue-100); color: var(--ink); }

/* Tugmalar — dumaloq «pill» shakl */
.btn { background: var(--blue); border-color: var(--blue); color: #fff; border-radius: 999px; box-shadow: 0 8px 20px -12px rgba(30,111,240,.8); }
.btn:hover { background: var(--blue-2); border-color: var(--blue-2); color: #fff; }
.btn-gold, .btn-gold:hover { background: var(--blue-grad); color: #fff; border-color: transparent; }
.btn-ghost, .btn-line-white, .btn-white { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover, .btn-line-white:hover { background: var(--blue-50); color: var(--blue-2); border-color: var(--blue-200); }
.btn-lg, .btn-sm { border-radius: 999px; }

/* Matn urg‘ulari */
.gold, .dark .gold, .result-hero .gold { color: var(--red); background: none; -webkit-text-fill-color: currentColor; }
.hl, .dark .hl, .page-head .hl { color: var(--blue); background: none; }
.eyebrow::before { background: var(--red); }
.plan-badge.comfort { background: var(--blue-50); color: var(--blue-2); border-color: var(--blue-200); }
.plan-badge.pro { background: var(--red-grad); color: #fff; border-color: transparent; }
.gchip.top { background: var(--red); color: #fff; }
.mock-card.free .tag, .goal-tabs button.on, .rm-goal .rm-n, .icon-sq.gold, a.feature:hover .icon-sq { color: #fff; }
.mock-card.free { background: linear-gradient(160deg, #FFF3F5, #FFE3E8) !important; border-color: #FFB9C5 !important; }
.mock-card.free .tag { background: var(--red); }
.brand-mark { color: #fff; background: var(--blue-grad); box-shadow: none; }

/* ---------- Qobiq ---------- */
.app-col { max-width: var(--app); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(243,246,251,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.topbar .app-col { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.topbar .brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.topbar .brand-text { font-weight: 700; font-size: .98rem; line-height: 1.15; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .brand-text small { display: block; font-weight: 500; font-size: .74rem; color: var(--muted); }
.topbar .user-chip { display: flex; align-items: center; gap: 8px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px 4px 4px; }
.topbar .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-grad); color: #fff; font-weight: 700; }
.app-main { padding: 4px 0 calc(118px + env(safe-area-inset-bottom, 0px)); }
.app-main .wrap { max-width: none; padding: 0; }
.app-main .section, .app-main .section-sm { padding: 10px 0; background: none; }
.app-main :is(.split, .split-60, .split-60.rev, .section-head, .founder, .cab-grid, .cert-layout, .claim-grid, .book, .pricing) { grid-template-columns: 1fr !important; gap: 16px; }
.app-main .mock-grid, .app-main .cert-grid, .app-main .features { grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .app-main .mock-grid, .app-main .cert-grid, .app-main .features { grid-template-columns: 1fr; } }
.app-main .book-side { position: static; display: grid; grid-template-columns: 130px 1fr; gap: 16px; }
.app-main h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; color: var(--title); }
.app-main h3 { color: var(--title); }

/* Pastki tab-panel */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.tabbar-in { pointer-events: auto; max-width: calc(var(--app) - 8px); margin: 0 auto; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding: 6px; background: rgba(255,255,255,.94); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--line); border-radius: 30px; box-shadow: 0 18px 40px -18px rgba(20,50,110,.35), 0 2px 6px rgba(20,50,110,.06); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; border-radius: 24px; text-decoration: none; color: #1F2A3D; font-size: .76rem; font-weight: 600; transition: background .15s, color .15s; }
.tabbar a:hover { background: var(--blue-50); }
.tabbar a.on { background: var(--blue-50); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue-100); }
.tabbar a.on .f { fill: currentColor; fill-opacity: .2; }

/* Sarlavhalar */
.ph { padding: 8px 2px 14px; }
.ph.top { padding-top: 22px; }
.ph h1 { font-size: clamp(2.05rem, 6.4vw, 2.7rem); font-weight: 700; letter-spacing: -.03em; color: var(--title); margin: 10px 0 6px; }
.ph.top h1 { margin-top: 0; }
.ph-lead { color: var(--muted); margin: 0; font-size: 1.02rem; max-width: 62ch; }
.back { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px 7px 9px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .88rem; font-weight: 600; color: var(--ink-2); margin: 10px 0 4px; }
.back:hover { color: var(--blue); border-color: var(--blue-200); }
.hello { display: flex; align-items: baseline; gap: 12px; margin: 18px 2px 16px; }
.hello .hi-mark { font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--red); }
.hello h1 { font-size: clamp(1.95rem, 6vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; color: var(--title); }
.sec-t { font-size: 1.15rem; font-weight: 700; margin: 24px 4px 10px; color: var(--title); }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-row a { color: var(--blue); font-weight: 700; text-decoration: none; font-size: .95rem; }
.eb { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }

/* Kartalar */
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 20px; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(20,50,110,.04); text-decoration: none; color: inherit; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-h .ch-l { display: flex; align-items: center; gap: 14px; }
.ch-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-grad); color: #fff; flex: none; }
.cnt { font-size: 1.2rem; font-weight: 700; color: var(--blue); }
.chip-sm { font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--red-50); color: var(--red-2); white-space: nowrap; }
.li-t { min-width: 0; }
.li-t b { display: block; font-size: 1.06rem; font-weight: 700; color: var(--title); line-height: 1.3; }
.li-t small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; margin-top: 2px; }
.chev { color: #94A3B8; flex: none; }

.hero-card { position: relative; overflow: hidden; display: block; text-decoration: none; color: #fff; background: radial-gradient(420px 240px at 0% 0%, rgba(255,255,255,.22), transparent 60%), var(--blue-grad); border-radius: 30px; padding: 24px 22px 26px; margin-bottom: 14px; box-shadow: 0 26px 44px -24px rgba(21,87,214,.8); }
.hero-card .hc-eb { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.hero-card h2 { color: #fff; font-size: clamp(1.5rem, 4.8vw, 1.95rem); margin: 8px 0 6px; max-width: 20ch; }
.hero-card p { color: rgba(255,255,255,.86); margin: 0 0 20px; }
.hc-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--blue-2); font-weight: 700; padding: 13px 26px; border-radius: 999px; font-size: 1.05rem; box-shadow: 0 10px 22px -12px rgba(0,0,0,.4); }
.hero-card:hover .hc-btn { transform: translateY(-1px); }
.hc-deco { position: absolute; right: -22px; bottom: -34px; opacity: .14; }
.hc-deco svg { width: 190px; height: 190px; }

.row-card { display: grid; grid-template-columns: 56px 1fr 20px; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 24px; margin-bottom: 14px; text-decoration: none; color: inherit; }
.rc-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-grad); color: #fff; }
.rows > * + * { border-top: 1px solid var(--line); }
.row-link, .step-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 14px; align-items: center; padding: 13px 0; text-decoration: none; color: inherit; }
.rl-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.rl-ic.on, .row-link.ok .rl-ic { background: var(--blue); color: #fff; }
.row-link.ok .li-t small { color: var(--blue); font-weight: 600; }
.ok-ic { color: var(--blue); display: grid; }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 18px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; border: 0; white-space: nowrap; line-height: 1.3; }
.pill-btn .chev { color: currentColor; width: 16px; height: 16px; }
.pill-btn:hover { background: var(--blue-2); }
.pill-btn.white { background: #fff; color: var(--blue-2); }
.pill-btn.red { background: var(--red); }
.pill-btn.ghost { background: var(--blue-50); color: var(--blue-2); }
.pill-btn.big { width: 100%; padding: 15px; font-size: 1.08rem; }

.alert-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 54px 1fr 20px; gap: 14px; align-items: center; padding: 18px; border-radius: 26px; background: var(--red-grad); color: #fff; text-decoration: none; margin-bottom: 14px; box-shadow: 0 18px 36px -20px rgba(229,25,59,.85); }
.alert-card .li-t b { color: #fff; font-size: 1.12rem; }
.alert-card .li-t small { color: rgba(255,255,255,.88); }
.alert-card .chev { color: #fff; }
.ac-ic { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.ac-deco { position: absolute; right: -8px; bottom: -22px; opacity: .14; }
.ac-deco svg { width: 96px; height: 96px; }

/* Maqsad kartasi */
.goal-card h2 { font-size: 1.3rem; max-width: 26ch; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--bg); border-radius: 16px; margin: 12px 0 14px; }
.seg button { border: 0; background: transparent; border-radius: 12px; padding: 9px; font-weight: 700; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--title); box-shadow: 0 2px 6px rgba(20,50,110,.1); }
.goal-card .goal-art { position: relative; color: var(--blue); background: linear-gradient(180deg, #F5F9FF, #E6EFFF); border-radius: 18px; padding: 14px 10px 0; overflow: hidden; }
.goal-card .goal-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.goal-card .goal-art img + .bld { opacity: 0; }
.goal-card .goal-art .bld { width: 100%; height: auto; display: block; }
.goal-card .goal-info { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; padding: 14px 2px 4px; }
.goal-card .goal-short { font-size: .74rem; font-weight: 700; letter-spacing: .12em; color: var(--red); }
.goal-card .goal-info h3 { font-size: 1.12rem; margin: 2px 0 2px; }
.goal-city { display: block; color: var(--muted); font-size: .84rem; margin-bottom: 6px; }
.goal-card .goal-info p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.goal-card .goal-score { text-align: right; }
.goal-card .goal-score b { display: block; font-size: 1.9rem; font-weight: 700; color: var(--blue); line-height: 1; }
.goal-card .goal-score span { display: block; font-size: .8rem; color: var(--muted); }
.goal-card .goal-score small { display: block; font-size: .72rem; color: var(--muted); max-width: 22ch; margin-left: auto; }
.goal-card .goal-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding: 10px 12px; background: var(--bg); border-radius: 14px; font-size: .84rem; font-weight: 600; }
.goal-card .goal-path i { width: 14px; height: 2px; background: var(--blue-200); }
.goal-card .goal-path .gold { color: var(--red); }
@media (max-width: 560px) { .goal-card .goal-info { grid-template-columns: 1fr; } .goal-card .goal-score { text-align: left; } .goal-card .goal-score small { margin-left: 0; } }

/* Kunlik savol */
.qd-q { font-size: 1.06rem; font-weight: 600; margin: 6px 0 14px; color: var(--title); }
.qd-opts { display: grid; gap: 8px; }
.qd-opt { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; text-align: left; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; }
.qd-opt span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-2); font-weight: 700; }
.qd-opt:hover { border-color: var(--blue-200); }
.qd-opt.ok { border-color: var(--blue); background: var(--blue-50); }
.qd-opt.ok span { background: var(--blue); color: #fff; }
.qd-opt.bad { border-color: var(--red); background: var(--red-50); }
.qd-opt.bad span { background: var(--red); color: #fff; }
.qd-expl { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-size: .94rem; }
.qd-expl a { color: var(--blue); font-weight: 700; }
.ticks.sm { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.ticks.sm li { display: flex; gap: 8px; align-items: center; }
.ticks.sm svg { color: var(--blue); flex: none; }

.mini-road { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-road li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--bg); border-radius: 16px; }
.mini-road li > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--blue-200); }
.mini-road b { display: block; font-size: .98rem; color: var(--title); }
.mini-road small { color: var(--muted); font-size: .86rem; display: block; line-height: 1.4; }
.mini-road em { font-style: normal; font-size: .76rem; font-weight: 700; color: var(--blue-2); background: var(--blue-50); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.mini-road li.goal { background: var(--red-50); }
.mini-road li.goal > span { background: var(--red); color: #fff; box-shadow: none; }
.mini-road li.goal em { background: var(--red); color: #fff; }

/* Hamjamiyat */
.founder-card { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 18px; border-radius: 26px; background: var(--blue-grad); color: #fff; text-decoration: none; margin-bottom: 12px; box-shadow: 0 20px 40px -24px rgba(21,87,214,.85); }
.fcd-av { position: relative; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(255,255,255,.2); box-shadow: 0 0 0 3px rgba(255,255,255,.55); font-weight: 700; }
.fcd-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.founder-card .li-t b, .fcd-t b { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 1.15rem; font-weight: 700; }
.fcd-t small { display: block; color: rgba(255,255,255,.86); font-size: .9rem; }
.list-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; margin-bottom: 14px; }
.list-card.soft { background: #EEF2F8; border-color: #E2E8F2; }
.list-card > * + * { border-top: 1px solid var(--line); }
.li { display: grid; grid-template-columns: 48px 1fr 20px; gap: 14px; align-items: center; width: 100%; padding: 15px 18px; text-decoration: none; color: inherit; background: none; border: 0; text-align: left; }
a.li:hover, button.li:hover { background: var(--blue-50); }
.li-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.li-ic.red { background: var(--red-50); color: var(--red); }
.li.soon { grid-template-columns: 48px 1fr auto; }
.soon-tag { font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--bg); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.g-badge { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-2); font-weight: 700; font-size: 1rem; }
.g-badge.top { background: var(--red); color: #fff; }
.promo-strip { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 20px; background: var(--red-50); border: 1px solid #FFCCD5; color: var(--title); text-decoration: none; margin-bottom: 14px; }
.promo-strip > svg { color: var(--red); flex: none; }
.promo-strip .pill-btn { margin-left: auto; }

/* Mashq: bo‘lim plitkalari */
.feat-card { display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center; padding: 18px; border-radius: 26px; background: linear-gradient(135deg, #F7F9FC, #E1E9F6); border: 1.5px solid var(--blue-200); text-decoration: none; color: inherit; margin-bottom: 14px; }
.feat-card .li-t b { font-size: 1.25rem; }
.fc-ic { width: 62px; height: 62px; border-radius: 50%; background: var(--blue-grad); color: #fff; display: grid; place-items: center; }
.fc-meta { grid-column: 1 / -1; color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-height: 176px; padding: 20px; border-radius: 28px; text-decoration: none; color: var(--title); background: #fff; border: 1px solid var(--line); transition: transform .15s; }
.tile:hover { transform: translateY(-2px); }
.tile.big { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 190px; gap: 18px; }
.tile .li-t b { font-size: 1.45rem; color: inherit; }
.tile .li-t small { font-size: .95rem; }
.tile.blue { background: radial-gradient(380px 200px at 0% 0%, rgba(255,255,255,.25), transparent 60%), linear-gradient(135deg, #5B86CF, #1F4E9C); color: #fff; border: 0; box-shadow: 0 20px 40px -24px rgba(30,111,240,.9); }
.tile.deep { background: radial-gradient(380px 200px at 0% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #2E64BE, #173C7A); color: #fff; border: 0; box-shadow: 0 20px 40px -24px rgba(21,83,204,.9); }
.tile.red { background: var(--red-grad); color: #fff; border: 0; box-shadow: 0 20px 40px -24px rgba(229,25,59,.9); }
.tile:is(.blue, .deep, .red) .li-t small { color: rgba(255,255,255,.88); }
.tile:is(.blue, .deep, .red) .chev { color: #fff; }
.tile .chev { margin-left: auto; }
.t-ic { width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; }
.tile.white .t-ic { background: var(--blue-grad); color: #fff; width: 54px; height: 54px; }
.tile:not(.big) .t-ic { width: 54px; height: 54px; }
.t-deco { position: absolute; right: -16px; bottom: -22px; opacity: .14; pointer-events: none; }
.t-deco svg { width: 130px; height: 130px; }
.tile.white .t-deco { color: var(--blue); opacity: .08; }
.empty-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; text-align: center; color: var(--muted); margin-bottom: 14px; }
.empty-card a { color: var(--blue); font-weight: 700; }
@media (max-width: 420px) { .tile { padding: 16px; min-height: 160px; } .tile .li-t b { font-size: 1.22rem; } .t-ic { width: 54px; height: 54px; } }

/* Konstitutsiya */
.const-hero { background: radial-gradient(420px 240px at 0% 0%, rgba(255,255,255,.22), transparent 60%), var(--blue-grad); color: #fff; border-radius: 28px; padding: 22px; margin-bottom: 6px; }
.const-hero .eb { color: rgba(255,255,255,.85); }
.const-hero p { color: rgba(255,255,255,.88); font-size: .94rem; }
.ch-num { display: grid; grid-template-columns: repeat(3, 1fr); margin: 10px 0 14px; }
.ch-num div { text-align: center; font-size: .86rem; color: rgba(255,255,255,.85); }
.ch-num div + div { border-left: 1px solid rgba(255,255,255,.25); }
.ch-num b { display: block; font-size: 2rem; font-weight: 700; color: #fff; line-height: 1.1; }
.kp-list { margin: 0; padding: 0; list-style: none; counter-reset: kp; display: grid; gap: 10px; }
.kp-list li { counter-increment: kp; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; font-size: .98rem; }
.kp-list li::before { content: counter(kp); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-2); font-weight: 700; font-size: .9rem; }
.card.topic { border-top: 1px solid var(--line); padding-top: 20px; }
.card.topic .tnum { color: var(--red); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.card.topic h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.card.topic .facts { background: var(--bg); border-radius: 16px; }

/* Imtihon */
.ex-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 78px 1fr 24px; gap: 16px; align-items: center; width: 100%; text-align: left; padding: 34px 20px 26px; border-radius: 32px; color: #fff; text-decoration: none; border: 0; margin-bottom: 14px; font: inherit; transition: transform .15s; }
.ex-card:hover { transform: translateY(-2px); }
.ex-card.red { background: radial-gradient(400px 220px at 0% 0%, rgba(255,255,255,.2), transparent 60%), var(--red-grad); box-shadow: 0 22px 40px -22px rgba(229,25,59,.9); }
.ex-card.blue { background: radial-gradient(400px 220px at 0% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #2E64BE, #173C7A); box-shadow: 0 22px 40px -22px rgba(21,83,204,.9); }
.ex-card .chev { color: #fff; }
.ex-badge { position: absolute; top: 14px; right: 16px; display: inline-flex; align-items: center; gap: 5px; background: #fff; color: var(--red-2); font-weight: 700; font-size: .84rem; padding: 4px 12px; border-radius: 999px; }
.ex-card.blue .ex-badge { color: var(--blue-2); }
.ex-ic { width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.ex-ic svg { width: 36px; height: 36px; }
.ex-t b { display: block; font-size: 1.65rem; font-weight: 700; line-height: 1.15; }
.ex-t small { display: block; color: rgba(255,255,255,.9); margin-top: 2px; }
.ex-t em { display: inline-block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: .85rem; background: rgba(255,255,255,.2); padding: 4px 12px; border-radius: 999px; }
.ex-deco { position: absolute; right: -10px; bottom: -28px; opacity: .15; pointer-events: none; }
.ex-deco svg { width: 140px; height: 140px; }
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.parts div { background: var(--bg); border-radius: 16px; padding: 12px; font-size: .86rem; color: var(--ink-2); }
.parts b { display: block; font-size: 1.15rem; color: var(--blue); }
.cert-card h2 { margin-bottom: 14px; }
.cert-card .cert-frame { margin-bottom: 14px; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 30px -18px rgba(20,50,110,.45); }
.cert-card .btn { margin-top: 16px; }

/* Natijalar */
.stat-card { background: radial-gradient(420px 240px at 0% 0%, rgba(255,255,255,.22), transparent 60%), var(--blue-grad); color: #fff; border-radius: 28px; padding: 20px; margin-bottom: 14px; }
.stat-card .eb { color: rgba(255,255,255,.85); }
.pc-stats { display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; margin-top: 12px; text-align: center; }
.pc-stats div { font-size: .86rem; color: rgba(255,255,255,.86); }
.pc-stats div + div { border-left: 1px solid rgba(255,255,255,.25); }
.pc-stats b { display: block; font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1.2; }
.res-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; }
@media (max-width: 560px) { .res-row { grid-template-columns: 48px 1fr; } .res-row > .row-gap { grid-column: 1 / -1; } }

/* Profil */
.profile-card { background: radial-gradient(420px 240px at 100% 100%, rgba(255,255,255,.14), transparent 60%), var(--blue-grad); color: #fff; border-radius: 30px; padding: 22px; margin-bottom: 14px; box-shadow: 0 24px 44px -24px rgba(21,87,214,.8); }
.pc-top { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.pc-av { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; font-weight: 700; background: rgba(255,255,255,.18); box-shadow: 0 0 0 4px rgba(255,255,255,.35); }
.pc-top h2 { color: #fff; font-size: 1.6rem; }
.pc-top small { display: block; color: rgba(255,255,255,.85); font-size: .9rem; overflow-wrap: anywhere; }
.pc-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 6px; }
.pc-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); padding: 4px 12px 4px 8px; border-radius: 999px; font-weight: 700; font-size: .86rem; }
.pc-chip svg { width: 16px; height: 16px; }
.profile-card .pc-stats { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.22); }
.upsell { position: relative; overflow: hidden; display: block; background: radial-gradient(420px 240px at 0% 0%, rgba(255,255,255,.18), transparent 60%), var(--red-grad); color: #fff; border-radius: 30px; padding: 22px; margin-bottom: 14px; text-decoration: none; box-shadow: 0 22px 40px -24px rgba(229,25,59,.9); }
.upsell .eb { color: #FFD9DF; }
.upsell h2 { color: #fff; margin-bottom: 6px; }
.upsell p { color: rgba(255,255,255,.9); margin: 0; }
.upsell.paid { background: radial-gradient(420px 240px at 0% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #2E64BE, #173C7A); }
.upsell.paid .eb { color: rgba(255,255,255,.85); }
.upsell .pill-btn.big { margin-top: 16px; color: var(--red-2); }
.upsell.paid .pill-btn.big { color: var(--blue-2); }
.lock-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.lock-chips span { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 999px; font-size: .86rem; font-weight: 600; }
.card.daraja { display: grid; grid-template-columns: 96px 1fr 20px; gap: 18px; align-items: center; }
.dr-ring { width: 96px; height: 96px; border-radius: 50%; border: 5px solid var(--blue); display: grid; place-items: center; font-size: 1.7rem; font-weight: 700; color: var(--blue); }
.daraja .li-t b { font-size: 1.3rem; }
.dr-chips { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.dr-chips span { text-align: center; padding: 6px 0; border-radius: 999px; background: var(--blue-50); font-weight: 700; font-size: .86rem; color: var(--ink-2); }
.dr-chips span.on { background: var(--blue); color: #fff; }
.ver { text-align: center; color: var(--muted); font-size: .86rem; margin: 18px 0 0; }

/* Ichki sahifalar ilova ichida */
.app-main .auth-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: none; }
.app-main .result-hero, .app-main .claim, .app-main .cab-head { border-radius: 30px; padding: 24px 22px; margin: 10px 0 14px; }
.app-main .result-hero, .app-main .claim { background: radial-gradient(500px 260px at 100% 0%, rgba(30,111,240,.16), transparent 60%), #fff; border: 1px solid var(--line); }
.app-main .result-grid { gap: 28px; }
.app-main .claim h1, .app-main .result-hero h1 { font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 700; color: var(--title); }
.app-main .cab-head { background: var(--blue-grad); color: #fff; }
.app-main .cab-head :is(h1, p, .eyebrow) { color: #fff; }
.app-main .cab-head h1 { font-size: clamp(1.7rem, 5vw, 2.2rem); font-weight: 700; }
.app-main .cab-head .eyebrow::before { background: #fff; }
.app-main .cab-head .avatar { background: rgba(255,255,255,.2); color: #fff; }
.app-main .cab-head .tgt { color: #fff; }
.app-main .cab-tabs { display: flex; gap: 6px; overflow-x: auto; margin-top: 18px; border: 0; padding-bottom: 2px; }
.app-main .cab-tabs a { flex: none; padding: 8px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.88); background: rgba(255,255,255,.12); border: 0; }
.app-main .cab-tabs a.on { background: #fff; color: var(--blue-2); }
.app-main .demo-banner { border-radius: 16px; margin-bottom: 10px; }
.app-main .founder-photo { max-width: 320px; margin: 0 auto; }
.app-main .founder-sec .founder > div:last-child h2 { font-size: 1.8rem; }
.app-main .mock-card, .app-main .plan, .app-main .law, .app-main .panel, .app-main .kpi, .app-main .grade-tabs a, .app-main .table-wrap, .app-main .faq details, .app-main .review-item, .app-main .topic, .app-main .cert-side { border-radius: 22px; }
.app-main .plan.featured { background: linear-gradient(160deg, #F2F7FF, #DCE8FF) !important; border-color: var(--blue-200) !important; }
.app-main .plan.pro { border-color: #FFC2CC; }
.app-main .grade-tabs a.on { background: var(--blue-grad) !important; color: #fff; border-color: transparent !important; }
.app-main .grade-tabs a.on span { color: rgba(255,255,255,.85); }
.app-main .verify { display: flex; gap: 10px; flex-wrap: wrap; }
.app-main .verify .search { flex: 1; min-width: 220px; }
.app-main .note { border-radius: 18px; }
.app-main .note b { color: var(--title); }
.app-main .cert-page { padding: 0; }

/* Ilova pastki qismi */
.app-foot { margin: 30px 0 0; padding: 18px 4px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; text-align: center; }
.app-foot p { margin: 8px auto 0; max-width: 56ch; }
.af-links { display: flex; justify-content: center; gap: 8px 18px; flex-wrap: wrap; }
.af-links a { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; color: var(--ink-2); font-weight: 600; }

/* Test oynasi va admin: ko‘k + qizil urg‘u */
.timer.warn { background: var(--red-50); color: var(--red); }
.qgrid button.flg { box-shadow: inset 0 0 0 2px var(--red); }
.admin-side { background: #fff; }
.admin-side nav a.on { background: var(--blue-50); color: var(--blue); }
.kpi.alert { border-color: #FFB9C5; background: var(--red-50); }
.kpi.alert b { color: var(--red); }
.fcd-t { min-width: 0; }
.founder-card .fcd-t b { font-size: 1.08rem; flex-wrap: wrap; }
@media (max-width: 420px) { .founder-card { grid-template-columns: 64px 1fr; } .fcd-av { width: 64px; height: 64px; } .founder-card .pill-btn { grid-column: 1 / -1; } }
@media (max-width: 480px) {
  .feat-card { grid-template-columns: 56px 1fr; gap: 10px 14px; }
  .feat-card .fc-ic { width: 56px; height: 56px; }
  .feat-card .li-t b { font-size: 1.15rem; }
  .feat-card .pill-btn { grid-column: 1 / -1; justify-self: stretch; padding: 11px; }
  .feat-card .fc-meta { order: -1; grid-column: 1 / -1; display: none; }
}
.toast { bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important; z-index: 60; }
.app-main .result-counts div { background: var(--bg); border: 0; }

/* ---------- v5: logotip, kunlik bepul mock, tantanali natija ---------- */
.brand-mark { background: #fff !important; box-shadow: inset 0 0 0 1px var(--line) !important; overflow: hidden; padding: 3px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.exam-bar .brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; }
.admin-side .brand-mark { display: grid; place-items: center; }
.hello .hi-mark { width: 44px; height: 44px; flex: none; align-self: center; }
.hello .hi-mark img { width: 100%; height: 100%; object-fit: contain; }
button.hero-card { width: 100%; border: 0; text-align: left; font: inherit; cursor: pointer; }

/* Mashq: sariq belgi va katta sarlavhalar */
.y-badge { display: inline-block; background: #E30A17; color: #1A1A1A; padding: 4px 12px; border-radius: 10px; box-shadow: 0 6px 14px -8px rgba(200,150,0,.8); line-height: 1.25; }
.tile.xl .li-t b { font-size: clamp(1.9rem, 6.4vw, 2.5rem); letter-spacing: -.02em; line-height: 1.1; }
.tile.xl .li-t small { font-size: 1rem; margin-top: 6px; }
.t-num { display: inline-block; background: rgba(255,255,255,.22); padding: 0 10px; border-radius: 12px; margin-right: 4px; }

.parts.two { grid-template-columns: 1fr 1fr; }

/* Tarif oynasi */
.up-modal { max-width: 560px; }
.up-head { text-align: center; }
.up-logo { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -14px rgba(20,50,110,.5); margin-bottom: 10px; }
.up-logo img { width: 52px; height: 52px; object-fit: contain; }
.up-head h3 { font-size: 1.4rem; font-weight: 700; color: var(--title); margin: 2px 0 8px; }
.up-head p { color: var(--ink-2); font-size: .95rem; }
.up-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 10px; }
.up-plan { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 16px; border-radius: 22px; background: #fff; border: 1.5px solid var(--line); font: inherit; cursor: pointer; transition: transform .15s, border-color .15s; }
.up-plan:hover { transform: translateY(-2px); border-color: var(--blue-200); }
.up-plan.comfort { background: linear-gradient(160deg, #F4F8FF, #E1E9F6); border-color: var(--blue-200); }
.up-plan.pro { background: linear-gradient(160deg, #FFF6F7, #FFE6EA); border-color: #FFC2CC; }
.up-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.up-top b { font-size: 1.2rem; color: var(--title); }
.up-top em { font-style: normal; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--blue); color: #fff; }
.up-top em.r { background: var(--red); }
.up-price { font-size: 1.5rem; font-weight: 700; color: var(--title); }
.up-price small { font-size: .8rem; font-weight: 600; color: var(--muted); }
.up-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: .84rem; color: var(--ink-2); flex: 1; }
.up-plan li { display: grid; grid-template-columns: 16px 1fr; gap: 6px; align-items: start; }
.up-plan li svg { color: var(--blue); margin-top: 3px; }
.up-plan .pill-btn.big { padding: 12px; font-size: .95rem; }
@media (max-width: 520px) { .up-plans { grid-template-columns: 1fr; } }

/* Tantanali natija */
.celebrate { position: relative; overflow: hidden; text-align: center; color: #fff; background: radial-gradient(500px 300px at 50% 0%, rgba(255,255,255,.28), transparent 65%), var(--blue-grad); border-radius: 32px; padding: 28px 20px 22px; margin: 14px 0; box-shadow: 0 30px 50px -26px rgba(21,87,214,.9); animation: celIn .6s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes celIn { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.cel-logo { display: inline-grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; background: #fff; box-shadow: 0 12px 26px -12px rgba(0,0,0,.45); margin-bottom: 12px; }
.cel-logo img { width: 60px; height: 60px; object-fit: contain; }
.celebrate .eb { color: rgba(255,255,255,.85); }
.celebrate h1 { color: #fff; font-size: clamp(1.9rem, 6.5vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; margin: 2px 0 8px; }
.cel-score { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.cel-score b { font-size: clamp(4.2rem, 18vw, 6rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cel-score span { font-size: 1.1rem; opacity: .85; }
.cel-grade { display: inline-block; margin: 10px 0 12px; padding: 7px 18px; border-radius: 999px; background: #fff; color: var(--blue-2); font-weight: 700; font-size: 1.05rem; }
.cel-grade.top { background: var(--red); color: #fff; }
.celebrate > p { color: rgba(255,255,255,.9); max-width: 46ch; margin: 0 auto 16px; }
.cel-cert { background: #fff; border-radius: 22px; padding: 14px; text-align: left; position: relative; z-index: 1; }
.cel-cert .eb { color: var(--blue); }
.cel-cert .cert-frame { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 24px -16px rgba(20,50,110,.6); margin: 4px 0 12px; }
.second-cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 58px 1fr 44px; gap: 14px; align-items: center; width: 100%; padding: 18px; margin: 4px 0 14px; border: 0; border-radius: 26px; background: var(--red-grad); color: #fff; text-align: left; font: inherit; cursor: pointer; box-shadow: 0 20px 36px -20px rgba(229,25,59,.9); animation: pulse 2.4s ease-in-out 1.2s infinite; }
.second-cta .li-t b { color: #fff; font-size: 1.3rem; }
.second-cta .li-t small { color: rgba(255,255,255,.88); }
.sc-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); }
.sc-go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--red); }
.sc-go .chev { color: var(--red); }
@keyframes pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.015); } }
@media (prefers-reduced-motion: reduce) { .celebrate, .second-cta { animation: none; } }
.hello .hi-mark { background: #fff; border-radius: 12px; padding: 3px; box-shadow: inset 0 0 0 1px var(--line); }
.ex-card { padding-top: 46px; }

/* v6: Mashq — barcha bo‘limlar bir xil katta formatda */
.tile.light { background: radial-gradient(380px 200px at 0% 0%, rgba(255,255,255,.7), transparent 60%), linear-gradient(135deg, #F7F9FC, #E1E9F6); border: 1.5px solid var(--blue-200); color: var(--title); }
.tile.light .t-ic, .tile.white .t-ic { background: var(--blue-grad); color: #fff; width: 66px; height: 66px; }
.tile.light .t-deco { color: var(--blue); opacity: .1; }
.tile.xl .y-badge { font-size: .78em; padding: 6px 14px; border-radius: 12px; }
.tile.white .li-t small { color: var(--muted); }

/* v6: umumiy reyting */
.lb-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; }
.lb-row.me { background: var(--blue-50); }
.rank { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--bg); color: var(--ink-2); }
.rank.r1 { background: var(--red-grad); color: #fff; box-shadow: 0 8px 16px -8px rgba(229,25,59,.8); }
.rank.r2 { background: var(--blue-grad); color: #fff; }
.rank.r3 { background: var(--blue-100); color: var(--blue-2); }
.lb-ball { display: flex; align-items: center; gap: 8px; }
.lb-ball b { font-size: 1.25rem; font-weight: 700; color: var(--title); font-variant-numeric: tabular-nums; }
.lb-ball small { color: var(--muted); }
.me-tag { font-style: normal; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--blue); color: #fff; vertical-align: middle; }
.lb-row .g-badge { width: 40px; height: 40px; border-radius: 12px; }
.pc-stats.dark div { color: var(--muted); }
.pc-stats.dark div + div { border-left-color: var(--line); }
.pc-stats.dark b { color: var(--title); }
.my-stats { padding: 16px 10px; }
.my-stats .pc-stats { margin: 0; }
@media (max-width: 420px) { .pc-stats b { font-size: 1.3rem; } .pc-stats div { font-size: .76rem; } }

/* ===== v7: Admin — tushum va natijalar ===== */
.adm-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.adm-hero.one { grid-template-columns: 1fr; }
.adm-money, .adm-res { position: relative; border-radius: 22px; padding: 22px 24px; display: grid; gap: 6px; text-decoration: none; color: #fff; overflow: hidden; min-width: 0; }
.adm-money { background: var(--blue-grad); box-shadow: 0 18px 34px -22px rgba(21,87,214,.9); }
.adm-res { background: var(--red-grad); box-shadow: 0 18px 34px -22px rgba(229,25,59,.9); }
.adm-money span, .adm-res span { font-size: .86rem; font-weight: 600; opacity: .85; }
.adm-money b, .adm-res b { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adm-res b i { font-style: normal; font-size: .5em; opacity: .8; }
.adm-money small, .adm-res small { font-size: .85rem; opacity: .85; }
.adm-money em, .adm-res em { position: absolute; right: 20px; top: 20px; font-style: normal; font-size: .8rem; font-weight: 700; background: rgba(255,255,255,.18); padding: 4px 10px; border-radius: 999px; }
.kpi small.up { color: #173C7A; }
.kpi small.down { color: var(--red); }
.kpi small { color: var(--muted); font-weight: 600; }
.rv-plan { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.rv-plan:last-child { border-bottom: 0; }
.rv-plan small { display: block; color: var(--muted); font-size: .8rem; }
.rv-plan .num { text-align: right; }
.rv-bar { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.rv-bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue-grad); }
.rv-plan.pro .rv-bar i { background: var(--red-grad); }
.rv-months { display: grid; gap: 10px; }
.rv-months > div { display: grid; grid-template-columns: 76px 1fr 72px; align-items: center; gap: 12px; font-size: .88rem; }
.rv-months > div span { color: var(--muted); font-weight: 600; }
.rv-months > div b { text-align: right; font-variant-numeric: tabular-nums; }
.adm-sel { padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: .88rem; }
.admin-t .rank { width: 30px; height: 30px; font-size: .82rem; }
.admin-t td .gchip { margin-left: 4px; }
@media (max-width: 700px) {
  .adm-hero { grid-template-columns: 1fr; }
  .rv-plan { grid-template-columns: 1fr auto; }
  .rv-plan .rv-bar { grid-column: 1 / -1; order: 3; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis.six { grid-template-columns: 1fr 1fr; }
}
.panel-h.wrap-h > .row-gap { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; flex: 1 1 420px; justify-content: flex-end; min-width: 0; }
.panel-h.wrap-h .search.sm { flex: 1 1 200px; min-width: 0; }
.panel-h.wrap-h .search input { padding-top: 9px; padding-bottom: 9px; }
@media (max-width: 700px) { .panel-h.wrap-h > .row-gap { flex-wrap: wrap; justify-content: flex-start; } }

/* ===== v8: O‘zlashtirish foizi, Konstitutsiya bo‘limlari va testlari ===== */
.ms-card { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 8px 18px 14px; margin-bottom: 18px; }
.ms-row { display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "ic t p" "ic bar bar"; column-gap: 14px; row-gap: 8px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.ms-row:last-of-type { border-bottom: 0; }
.ms-ic { grid-area: ic; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--blue-grad); }
.ms-row.red .ms-ic { background: var(--red-grad); }
.ms-row.deep .ms-ic { background: linear-gradient(135deg, #2E64BE, #173C7A); }
.ms-ic svg { width: 22px; height: 22px; }
.ms-row .li-t { grid-area: t; min-width: 0; }
.ms-row .li-t small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.ms-pct { grid-area: p; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: var(--title); font-variant-numeric: tabular-nums; }
.ms-row.red .ms-pct { color: var(--red); }
.ms-row.blue .ms-pct, .ms-row.deep .ms-pct { color: var(--blue-2); }
.ms-row .ms-bar { grid-area: bar; }
.ms-bar { display: block; height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.ms-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--blue-grad); transition: width .4s; }
.ms-row.red .ms-bar i { background: var(--red-grad); }
.ms-bar.light { background: rgba(255,255,255,.25); }
.ms-bar.light i { background: #fff; }
.ms-note { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }

.learn-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--blue); color: var(--blue-2); background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; }
.learn-btn svg { width: 18px; height: 18px; }
.learn-btn.on { background: var(--blue); color: #fff; }
.topic .learn-btn { margin-top: 14px; }
.law .src { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.ch-prog { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.25); display: grid; gap: 8px; }
.ch-prog > div { display: flex; justify-content: space-between; align-items: baseline; }
.ch-prog span { font-size: .85rem; opacity: .9; font-weight: 600; }
.ch-prog b { font-size: 1.8rem; letter-spacing: -0.03em; }
.ch-prog small { font-size: .78rem; opacity: .85; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #fff; border: 1px solid var(--line); padding: 6px; border-radius: 20px; margin: 16px 0; position: sticky; top: 70px; z-index: 5; }
.seg3 a { text-decoration: none; color: var(--ink-2); text-align: center; padding: 10px 6px; border-radius: 15px; display: grid; gap: 2px; }
.seg3 a b { font-size: .92rem; }
.seg3 a small { font-size: .72rem; color: var(--muted); }
.seg3 a.on { background: var(--blue-grad); color: #fff; }
.seg3 a.on small { color: rgba(255,255,255,.85); }

details.kb { padding: 0; overflow: hidden; }
details.kb summary { list-style: none; display: grid; grid-template-columns: 40px 1fr 24px; gap: 14px; align-items: center; padding: 18px 20px; cursor: pointer; }
details.kb summary::-webkit-details-marker { display: none; }
details.kb summary small { display: block; color: var(--muted); font-size: .8rem; margin-top: 3px; }
.kb-n { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; background: var(--blue-50); color: var(--blue-2); }
.kb-ok { color: var(--line); }
.kb-ok svg { width: 24px; height: 24px; }
details.kb.done .kb-ok { color: var(--blue); }
details.kb.done .kb-n { background: var(--blue-grad); color: #fff; }
.kb-list { margin: 0; padding: 0 20px 0 74px; display: grid; gap: 9px; font-size: .92rem; line-height: 1.5; }
.kb-act { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 20px 20px 74px; }
@media (max-width: 520px) { .kb-list { padding-left: 38px; } .kb-act { padding-left: 20px; } }

.kq-lead { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-bottom: 18px; }
.kv-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 12px; text-decoration: none; color: inherit; display: grid; gap: 2px; text-align: center; }
.kv-card span { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kv-card b { font-size: 1.7rem; color: var(--title); letter-spacing: -0.03em; }
.kv-card em { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--blue-2); }
.kv-card.done { border-color: var(--blue-100); background: var(--blue-50); }
.kv-card.good { background: var(--blue-grad); border-color: transparent; }
.kv-card.good span, .kv-card.good b, .kv-card.good em { color: #fff; }
.kq-best { color: var(--blue-2); margin-right: 6px; }

.kq-bar { position: sticky; top: 70px; z-index: 5; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px 10px 16px; margin-bottom: 14px; box-shadow: 0 10px 24px -18px rgba(20,50,110,.5); }
.kq-bar > span:first-child { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .9rem; }
.kq-time { font-family: "IBM Plex Mono", monospace; font-weight: 600; color: var(--blue-2); }
.kq-time.low { color: var(--red); }
.kq h3 { font-size: 1.02rem; line-height: 1.45; margin: 6px 0 14px; }
.kq .tnum em { font-style: normal; margin-left: 6px; }
.kq.ok .tnum em { color: #173C7A; } .kq.bad .tnum em { color: var(--red); } .kq.skip .tnum em { color: var(--muted); }
.kq-opts { display: grid; gap: 8px; }
.kq-o { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; text-align: left; width: 100%; background: var(--bg); border: 1.5px solid transparent; border-radius: 14px; padding: 11px 12px; font: inherit; font-size: .93rem; color: inherit; cursor: pointer; }
button.kq-o:hover:not(:disabled) { border-color: var(--blue-100); }
.kq-o span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #fff; font-weight: 700; font-size: .85rem; color: var(--blue-2); }
.kq-o.sel { border-color: var(--blue); background: var(--blue-50); }
.kq-o.sel span { background: var(--blue); color: #fff; }
.kq-o.right { border-color: #173C7A; background: #EEF3FB; }
.kq-o.right span { background: #173C7A; color: #fff; }
.kq-o.wrong { border-color: var(--red); background: #FDECEF; }
.kq-o.wrong span { background: var(--red); color: #fff; }
.kq-o:disabled { cursor: default; color: inherit; opacity: 1; }
.kq-e { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--blue-50); font-size: .88rem; line-height: 1.5; }
.kq-res { border-radius: 28px; padding: 26px 22px; color: #fff; display: grid; gap: 6px; text-align: center; background: var(--blue-grad); margin-bottom: 14px; }
.kq-res.low { background: var(--red-grad); }
.kq-res b { font-size: 3.4rem; letter-spacing: -0.04em; line-height: 1; }
.kq-res span { font-weight: 600; }
.kq-res small { opacity: .9; }
.kq-secs { display: grid; gap: 12px; }
.kq-secs a { display: grid; grid-template-columns: 1fr 90px 44px; gap: 12px; align-items: center; text-decoration: none; color: inherit; font-size: .86rem; }
.kq-secs a b { text-align: right; font-variant-numeric: tabular-nums; }
.kq-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; }
@media (max-width: 520px) { .kq-secs a { grid-template-columns: 1fr 60px 40px; } .kq-bar { gap: 8px; padding-left: 12px; } }

/* ===== v9: 35 ta qonunchilik hujjati ===== */
.const-hero.law-hero { background: radial-gradient(420px 240px at 0% 0%, rgba(255,255,255,.2), transparent 60%), linear-gradient(135deg, #2E64BE, #173C7A); }
.const-hero.red-hero { background: radial-gradient(420px 240px at 0% 0%, rgba(255,255,255,.2), transparent 60%), var(--red-grad); }
.law-hero .ch-num { grid-template-columns: repeat(4, 1fr); }
.const-hero .ch-num div { min-width: 0; }
.seg3.two { grid-template-columns: 1fr 1fr; }
.row-card + .seg3 { margin-top: 12px; }
.law-docs .li { align-items: center; }
.law-docs .li-t .ms-bar { margin-top: 8px; height: 6px; }
.law-docs .kb-n { flex-shrink: 0; font-size: .9rem; }
.law-docs .kb-n.on { background: var(--blue-grad); color: #fff; }
.law-docs .kq-best { font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }
.law-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.law-tools .search { flex: 1 1 240px; min-width: 0; }
.law-intro p, .art-b p { margin: 0 0 8px; font-size: .92rem; line-height: 1.6; }
.art-g { margin: 18px 4px 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-2); }
details.art { padding: 0; margin-bottom: 8px; border-radius: 18px; }
details.art summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; padding: 14px 16px; }
details.art summary::-webkit-details-marker { display: none; }
details.art summary b { font-size: .95rem; line-height: 1.4; font-weight: 600; }
details.art[open] summary b { color: var(--blue-2); }
.art-n { font-size: .74rem; font-weight: 700; color: var(--blue-2); background: var(--blue-50); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.art-b { padding: 0 16px 14px; border-top: 1px dashed var(--line); padding-top: 12px; margin: 0 16px; padding-left: 0; padding-right: 0; }
@media (max-width: 520px) { .law-hero .ch-num b { font-size: 1.6rem; } .law-hero .ch-num { font-size: .78rem; } }
.law-docs .li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; }
.law-docs .li > svg { width: 18px; height: 18px; color: var(--muted); }
.law-docs .li-t b { display: block; }

/* ===== v10: Asosiy — lex.uz qidiruv va yangiliklar ===== */
.lex-search { display: grid; gap: 12px; }
.lex-h { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.lex-h .li-t b { font-size: 1.05rem; }
.lex-h .li-t small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.lex-h > svg { width: 18px; height: 18px; color: var(--muted); }
.lex-h .ch-ic svg { width: 20px; height: 20px; }
.lex-row { display: flex; gap: 8px; }
.lex-row input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; font: inherit; background: var(--bg); outline: none; }
.lex-row input:focus { border-color: var(--blue); background: #fff; }
.lex-news .row-link > svg:last-child { width: 16px; height: 16px; color: var(--muted); }

/* ===== v11: OTM suratlari ===== */
.goal-card .goal-art.has-photo { aspect-ratio: 16 / 10; padding: 0; }
.goal-card .goal-art.has-photo .bld { display: none; }
.goal-card .goal-art.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,87,214,0) 55%, rgba(14,27,51,.55)); pointer-events: none; }
.goal-art .ga-tag { display: none; }
.goal-art.has-photo .ga-tag { display: inline-block; position: absolute; left: 14px; bottom: 12px; z-index: 1; background: var(--red-grad); color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; box-shadow: 0 8px 18px -10px rgba(229,25,59,.9); }

/* ===== v12: daraja, darvozalar ===== */
.daraja .li-t small + b + small, .daraja .li-t b + small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; font-weight: 500; }
.dr-ring.none { border-color: var(--line); color: var(--muted); }
.gate.locked { opacity: .55; filter: grayscale(.4); }
.gate .lock-i, .pill-btn.gate svg { width: 13px; height: 13px; }
.pill-btn.gate:not(.locked) svg { display: none; }
.kv-card.gate.locked em::before { content: "🔒 "; }
.li.gate.locked .li-t small::after { content: " · 🔒 avval bo‘limni o‘rganing"; }
.gate-note { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: center; background: #FFF4F6; border: 1px solid #FFD0D9; color: var(--title); border-radius: 18px; padding: 14px 16px; margin-bottom: 14px; font-size: .9rem; }
.gate-note > svg { width: 18px; height: 18px; color: var(--red); }
.gate-note .learn-btn { grid-column: 1 / -1; justify-self: start; }
.kb-all { display: grid; gap: 8px; margin-bottom: 14px; }
.kb-all small { color: var(--muted); font-size: .82rem; }
.learn-btn.big { padding: 12px 20px; font-size: .95rem; }

/* ===== v13: hujjat qo‘llanmasi ===== */
.law-guide { border: 1.5px solid var(--blue-100); background: linear-gradient(180deg, #F7F9FC, #fff); }
.lg-h { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; margin-bottom: 8px; }
.lg-h h3 { margin: 2px 0 0; font-size: 1.1rem; }
.lg-about { color: var(--muted); font-size: .9rem; margin: 6px 0 10px; }
.lg-list { margin: 0; padding-left: 22px; display: grid; gap: 9px; font-size: .93rem; line-height: 1.55; }
.lg-list li::marker { color: var(--blue); font-weight: 700; }
.lg-src { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; font-weight: 700; font-size: .86rem; color: var(--blue-2); text-decoration: none; }

/* ===== Turk tili: o‘qish matni, tinglash, lug‘at kartalari ===== */
.passage { background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; font-size: .97rem; line-height: 1.6; color: var(--ink); }
.passage b { display: block; margin-bottom: 4px; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.listen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--navy-50); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; }
.listen small { flex: 1 1 220px; color: var(--muted); font-size: .84rem; }
.listen .btn svg { margin-right: 4px; }
.say-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--blue); cursor: pointer; flex: none; vertical-align: middle; padding: 0; }
.say-btn svg { width: 14px; height: 14px; }
.say-btn.sm { width: 26px; height: 26px; margin-left: 6px; }
.say-btn:hover { background: var(--navy-50); }
.card.art.word { padding: 12px 14px; }
.w-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.w-tr { font-size: 1.08rem; color: var(--ink); }
.w-uz { color: var(--ink-2); margin-left: auto; text-align: right; }
.w-ex { margin: 8px 0 0; color: var(--ink-2); font-size: .93rem; display: flex; align-items: center; flex-wrap: wrap; }
.transcript { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg-alt); font-size: .9rem; color: var(--ink-2); }
.parts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seg3.lv-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 560px) { .seg3.lv-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kb-list li i { color: var(--ink-2); }
.topic .facts a { color: var(--blue); font-weight: 600; }
.seg3.lv-tabs.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grade-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grade-tabs a.on b { color: #fff; }
.grade-tabs a.on span { color: rgba(255,255,255,.85); }
@media (max-width: 700px) { .grade-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .grade-tabs a { padding: 12px; } }
.tabbar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 420px) { .tabbar { padding-left: 6px; padding-right: 6px; } .tabbar a { font-size: .64rem; padding: 7px 0 6px; } .tabbar a svg { width: 23px; height: 23px; } }
.soon-card { border: 1px dashed var(--line-dark); }
.vid-ic { color: var(--red); }
.book-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 14px 0; }
.book-card { display: flex; gap: 14px; padding: 14px; align-items: stretch; }
.bk-cover { flex: none; width: 96px; border-radius: 12px; padding: 10px 8px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #E30A17, #9E0712); box-shadow: inset -6px 0 0 rgba(0,0,0,.15); }
.bk-cover span { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.bk-cover b { font-size: 2rem; line-height: 1; }
.bk-cover small { font-size: .7rem; opacity: .9; }
.bk-cover.lv-A2 { background: linear-gradient(160deg, #E30A17, #B8081A); }
.bk-cover.lv-B1 { background: linear-gradient(160deg, #1F4E9C, #0B3A8C); }
.bk-cover.lv-B2 { background: linear-gradient(160deg, #1F4E9C, #173C7A); }
.bk-cover.lv-C1 { background: linear-gradient(160deg, #1F4E9C, #0F2A57); }
.bk-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bk-body h3 { margin: 0; }
.bk-body p { margin: 0; font-size: .86rem; }
.bk-links { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-body .soon-tag { align-self: flex-start; }
.bk-links .pill-btn { font-size: .78rem; padding: 6px 12px; min-height: 0; }
/* ===== Multilevel: kalkulyator, yozish, gapirish ===== */
.calc { display: grid; gap: 14px; }
.calc-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 64px 82px; gap: 10px; align-items: center; }
.calc-row label { display: grid; } .calc-row label small { color: var(--muted); font-size: .78rem; }
.calc-row input[type=range] { width: 100%; accent-color: var(--blue); }
.calc-n { width: 64px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; font: inherit; text-align: center; }
.calc-b { text-align: right; font-variant-numeric: tabular-nums; }
.calc-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.calc-res div { display: grid; justify-items: center; gap: 2px; } .calc-res span { font-size: .8rem; color: var(--muted); } .calc-res b { font-size: 1.6rem; }
@media (max-width: 560px) { .calc-row { grid-template-columns: 1fr 64px 74px; } .calc-row input[type=range] { grid-column: 1 / -1; order: 3; } }
.seg3.lv-tabs.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .seg3.lv-tabs.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.w-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.w-ctx { margin: 6px 0 0; line-height: 1.55; } .w-head > div:first-child { flex: 1 1 260px; }
.w-timer { display: grid; justify-items: center; gap: 6px; } .w-timer b { font-size: 1.8rem; font-variant-numeric: tabular-nums; } .w-timer b.warn { color: var(--red); }
.w-th { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .w-th .li-t { flex: 1; }
.w-cnt { font-size: .85rem; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); white-space: nowrap; }
.w-cnt.ok { background: #EEF3FB; color: #173C7A; } .w-cnt.low { background: #FDECEC; color: #B8081A; } .w-cnt.high { background: #FDECEC; color: #E30A17; }
.w-prompt { margin: 0 0 10px; line-height: 1.55; }
.w-area { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: inherit; line-height: 1.55; resize: vertical; background: var(--bg); color: var(--ink); }
.w-area:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.w-tips { margin-top: 8px; } .w-tips summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: .88rem; }
.sp-q { line-height: 1.55; } .sp-q ul { margin: 6px 0 0; padding-left: 20px; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; } .pc > div { background: var(--bg-alt); border-radius: 12px; padding: 10px 12px; } .pc span { font-size: .8rem; font-weight: 700; color: var(--muted); }
@media (max-width: 560px) { .pc { grid-template-columns: 1fr; } }
.sp-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sp-act .rec { background: var(--red); border-color: var(--red); color: #fff; }
.sp-t { font-size: .85rem; color: var(--red); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-audio { width: 100%; margin-top: 10px; } .sp-tr { margin: 8px 0 0; font-size: .9rem; font-style: italic; }
/* ===== Landing (bosh sahifa) ===== */
.lp-hero { padding: 18px 0 8px; }
.lp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--navy-50); color: var(--blue); font-weight: 600; font-size: .84rem; }
.lp-badge svg { background: var(--blue); color: #fff; border-radius: 50%; padding: 2px; }
.lp-title { display: grid; margin: 16px 0 12px; font-size: clamp(2.6rem, 9vw, 4.4rem); line-height: .95; letter-spacing: -0.04em; font-weight: 800; }
.lp-accent { color: var(--blue); }
.lp-lead { color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; max-width: 620px; margin: 0 0 18px; }
.lp-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.lp-screen { border: 8px solid #141A2B; border-radius: 22px; background: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
.lp-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.lp-bar i { width: 9px; height: 9px; border-radius: 50%; background: #E30A17; opacity: .75; } .lp-bar i:nth-child(2) { background: #E30A17; } .lp-bar i:nth-child(3) { background: #1F4E9C; } .lp-bar span { margin-left: 6px; }
.lp-res { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 18px; background: linear-gradient(135deg, #173C7A, #1F4E9C); color: #fff; }
.lp-res > div { display: grid; gap: 4px; } .lp-res small { opacity: .8; font-size: .72rem; } .lp-res > div > b { font-size: 2.6rem; line-height: 1; } .lp-res em { font-size: 1rem; font-style: normal; opacity: .75; }
.lp-res ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lp-res li { display: grid; grid-template-columns: 82px 1fr 40px; gap: 8px; align-items: center; font-size: .8rem; }
.lp-res li i { height: 7px; border-radius: 4px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; } .lp-res li i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: #fff; border-radius: 4px; }
.lp-next { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 14px 0 0; font-size: .88rem; color: var(--ink-2); }
.lp-marquee { overflow: hidden; margin: 14px -4px 18px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lp-track { display: flex; gap: 10px; width: max-content; animation: lpscroll 40s linear infinite; }
.lp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .84rem; white-space: nowrap; }
.lp-chip em { font-style: normal; }
@keyframes lpscroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lp-track { animation: none; } }
.lp-sec { margin: 34px 0; }
.lp-h { font-size: clamp(1.5rem, 4.5vw, 2rem); margin: 6px 0 8px; letter-spacing: -0.02em; }
.lp-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 16px 0; }
.lp-feat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 4px; align-content: start; }
.lp-feat small { color: var(--blue); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.lp-feat p { margin: 0; color: var(--ink-2); font-size: .88rem; line-height: 1.5; }
.lp-fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-50); color: var(--blue); margin-bottom: 4px; }
.lp-books { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.lp-books .bk-cover { width: auto; aspect-ratio: 3 / 4.2; text-decoration: none; }
@media (max-width: 560px) { .lp-books { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-price { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: .88rem; }
.lp-price th, .lp-price td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.lp-price th:first-child, .lp-price td:first-child { text-align: left; padding-left: 14px; }
.lp-price th { vertical-align: bottom; font-size: .82rem; color: var(--blue); }
.lp-price th b { display: block; font-size: 1.2rem; color: var(--ink); } .lp-price th small { display: block; color: var(--muted); font-weight: 500; }
.lp-price th em { display: block; font-style: normal; font-size: .68rem; background: var(--blue); color: #fff; border-radius: 6px; padding: 2px 0; margin: -4px 0 6px; }
.lp-price .feat { background: #101A33; color: #fff; } .lp-price th.feat b { color: #fff; } .lp-price th.feat { color: #9CC3FF; }
.lp-price tfoot td { border-bottom: 0; }
.lp-y { color: #1F4E9C; } .lp-price .feat .lp-y { color: #C3D3EC; } .lp-n { color: var(--muted); }
.lp-pay { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .82rem; color: var(--ink-2); margin: 12px 0 0; }
.lp-pay svg { width: 16px; height: 16px; vertical-align: -3px; }
.lp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .lp-two { grid-template-columns: 1fr; } }
.lp-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.lp-box h3 { margin: 0; } .lp-box p { margin: 0; } .lp-box .btn { justify-self: start; }
.lp-form { display: grid; gap: 10px; }
.lp-form input, .lp-form textarea { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font: inherit; background: var(--bg); color: var(--ink); }
.lp-form .btn { justify-self: start; }
@media (max-width: 480px) { .lp-res { grid-template-columns: 1fr; } }
.lp-res .gchip { justify-self: start; }
@media (max-width: 480px) { .tabbar a { font-size: .58rem; } .tabbar a svg { width: 21px; height: 21px; } .tabbar-in { padding: 4px; } }
.soon-tile { cursor: default; }
.soon-tile .soon-tag { margin-left: auto; }
/* ===== Shaxsiy kabinet ===== */
.goal-lv .glv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 14px; }
a.topic-bar { text-decoration: none; color: inherit; }
.topic-bar span small { color: var(--muted); font-weight: 400; }
.xd-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.xd-head > div:first-child { flex: 1 1 260px; } .xd-head h3 { margin: 0 0 4px; } .xd-head p { margin: 0; }
.xd-stats { display: flex; gap: 18px; } .xd-stats div { display: grid; justify-items: center; } .xd-stats b { font-size: 1.6rem; } .xd-stats span { font-size: .78rem; color: var(--muted); }
.xd-item { display: grid; gap: 10px; }
.xd-q { line-height: 1.55; }
.xd-item .ra { display: grid; gap: 6px; }
.xd-item .ra .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--bg-alt); font-size: .9rem; }
.xd-item .ra .row span:first-child { color: var(--muted); flex: none; }
.xd-item .ra .row.bad span:last-child { color: #E30A17; font-weight: 600; text-align: right; }
.xd-item .ra .row.ok span:last-child { color: #173C7A; font-weight: 600; text-align: right; }
.xd-e { margin: 0; font-size: .88rem; color: var(--ink-2); }
.xd-item .btn { justify-self: start; }

/* =========================================================
   İZNIK PALITRASI — kobalt ko‘k (asosiy), bayroq qizili (urg‘u),
   firuza (muvaffaqiyat), iliq oq fon. Oxirida turgani uchun yuqoridagilardan ustun.
   ========================================================= */
:root {
  --blue: #1F4E9C; --blue-2: #173C7A; --blue-50: #EEF3FB; --blue-100: #DCE6F5; --blue-200: #C3D3EC;
  --red: #E30A17; --red-2: #B8081A; --red-50: #FDECEC;
  --teal: #1F4E9C; --teal-2: #173C7A; --teal-50: #EEF3FB;
  --blue-grad: linear-gradient(140deg, #3A6FC4 0%, #1F4E9C 55%, #173C7A 100%);
  --red-grad: linear-gradient(140deg, #F0343F 0%, #E30A17 55%, #B8081A 100%);
  --gold: #1F4E9C; --gold-2: #1F4E9C; --gold-3: #1F4E9C; --gold-50: #EEF3FB; --gold-grad: var(--blue-grad);
  --sky: #3A6FC4;
  --navy-990: #E6ECF6; --navy-950: #EEF3FB; --navy-900: #DCE6F5; --navy-850: #E3EAF6; --navy-800: #C7D5EC; --navy-700: #B3C6E4;
  --navy-600: #1F4E9C; --navy-400: #9AAACB; --navy-200: #D5DFEF; --navy-100: #EEF3FB; --navy-50: #F4F6FB;
  --bg: #FBF8F3; --bg-alt: #F4EFE6; --line: #E8E1D5; --line-dark: rgba(27,34,51,.1);
  --ink: #1B2233; --ink-2: #444B5C; --muted: #6E7484; --title: #1B2233;
  --ok: #173C7A; --ok-bg: #EEF3FB;
  --bad: #E30A17; --bad-bg: #FDECEC;
}
body { background: var(--bg); }
.tabbar-in { background: rgba(255,253,249,.94); }
.lp-accent { color: var(--blue); }
.lp-badge svg { background: var(--teal); }
.lp-res { background: linear-gradient(135deg, #173C7A, #1F4E9C); }
.lp-y, .lp-price .feat .lp-y { color: var(--teal); }
.lp-price .feat { background: #1B2233; }
.vid-ic { color: var(--red); }
.w-cnt.ok { background: var(--teal-50); color: var(--teal-2); }
.w-cnt.high { background: #FDECEC; color: #E30A17; }
.xd-item .ra .row.ok span:last-child { color: var(--teal-2); }
.xd-item .ra .row.bad span:last-child { color: #E30A17; }
.sp-act .rec { background: var(--red); border-color: var(--red); }
.ms-bar i, .progress i, .gp-bar i { background: linear-gradient(90deg, var(--teal), var(--teal-2)); }
.lp-marquee .lp-chip, .lp-feat, .lp-box, .lp-price { background: #fff; }
.topbar { background: rgba(251,248,243,.88); border-bottom: 1px solid rgba(232,225,213,.7); }
.demo-banner { background: var(--blue-50); color: var(--blue-2); }
/* İznik: katta yuzalarda qizil o‘rniga firuza — qizil faqat urg‘u uchun */
:root { --teal-grad: linear-gradient(140deg, #3A6FC4 0%, #1F4E9C 50%, #173C7A 100%); }
.tile.red { background: var(--teal-grad); box-shadow: 0 20px 40px -24px rgba(14,124,117,.85); }
.ex-card.red { background: radial-gradient(400px 220px at 0% 0%, rgba(255,255,255,.2), transparent 60%), var(--teal-grad); box-shadow: 0 20px 40px -24px rgba(14,124,117,.85); }
.const-hero.red-hero { background: radial-gradient(420px 240px at 0% 0%, rgba(255,255,255,.2), transparent 60%), var(--teal-grad); }
.ms-row.red .ms-ic, .ms-row.red .ms-bar i { background: var(--teal-grad); }
.kq-res.low { background: linear-gradient(140deg, #F0343F 0%, #E30A17 55%, #E30A17 100%); }
.alert-card { background: var(--red-grad); }

/* =========================================================
   FAQAT IKKI RANG: bayroq qizili + kobalt ko‘k (oq/kulrang — neytral)
   ========================================================= */
:root {
  --teal: #1F4E9C; --teal-2: #173C7A; --teal-50: #EEF3FB; --teal-grad: var(--blue-grad);
  --bg: #F6F7FA; --bg-alt: #EFF2F7; --line: #E2E7F0; --line-dark: rgba(27,34,51,.1);
  --ok: #1F4E9C; --ok-bg: #EEF3FB;
  --bad: #E30A17; --bad-bg: #FDECEC;
}
.topbar { background: rgba(246,247,250,.9); border-bottom-color: rgba(226,231,240,.8); }
.tabbar-in { background: rgba(255,255,255,.94); }
.tile.red { background: var(--red-grad); box-shadow: 0 20px 40px -24px rgba(227,10,23,.75); }
.ex-card.red { background: radial-gradient(400px 220px at 0% 0%, rgba(255,255,255,.2), transparent 60%), var(--red-grad); box-shadow: 0 20px 40px -24px rgba(227,10,23,.75); }
.const-hero.red-hero { background: radial-gradient(420px 240px at 0% 0%, rgba(255,255,255,.2), transparent 60%), var(--red-grad); }
.ms-row.red .ms-ic, .ms-row.red .ms-bar i { background: var(--red-grad); }
.kq-res.low { background: var(--red-grad); }
.lp-res { background: var(--blue-grad); }
.lp-badge svg { background: var(--blue); }
.lp-y, .lp-price .feat .lp-y { color: var(--blue); } .lp-price .feat .lp-y { color: #fff; }
.lp-price .feat { background: var(--blue-2); }
.ms-bar i, .progress i, .gp-bar i { background: var(--blue-grad); }
.w-cnt.ok { background: var(--blue-50); color: var(--blue); }
.w-cnt.low, .w-cnt.high { background: var(--red-50); color: var(--red-2); }
.xd-item .ra .row.ok span:last-child { color: var(--blue); }
.xd-item .ra .row.bad span:last-child { color: var(--red); }
.bk-cover, .bk-cover.lv-B1 { background: var(--red-grad); }
.bk-cover.lv-A2, .bk-cover.lv-B2 { background: var(--blue-grad); }
.bk-cover.lv-C1 { background: linear-gradient(160deg, #173C7A, #0F2A57); }
.bk-cover.lv-B1 { background: linear-gradient(160deg, #B8081A, #7E0612); }
.lp-bar i, .lp-bar i:nth-child(3) { background: var(--blue); } .lp-bar i:first-child { background: var(--red); } .lp-bar i:nth-child(2) { background: #C3D3EC; }
.qd-opt.ok span { color: #fff; }

/* =========================================================
   MUVAFFAQIYAT RANGI — och ko‘k (to‘g‘ri javob, bajarildi, progress)
   ========================================================= */
:root {
  --ok: #0A7BC2; --ok-bg: #E4F3FC;
  --sky: #2FA4E7; --sky-2: #0A7BC2; --sky-50: #E4F3FC;
  --sky-grad: linear-gradient(140deg, #5CBDF2 0%, #2FA4E7 55%, #0A7BC2 100%);
}
.qd-opt.ok, .kq-o.right { border-color: var(--sky); background: var(--sky-50); }
.qd-opt.ok span, .kq-o.right span { background: var(--sky-2); color: #fff; }
.st.ok { background: var(--sky-50); color: var(--sky-2); }
.rl-ic.on, .row-link.ok .rl-ic { background: var(--sky); color: #fff; }
.row-link.ok .li-t small, .ok-ic { color: var(--sky-2); }
.learn-btn.on { background: var(--sky); color: #fff; border-color: var(--sky); }
details.kb.done .kb-ok { color: var(--sky-2); }
details.kb.done .kb-n { background: var(--sky-grad); color: #fff; }
.kv-card.good { background: var(--sky-grad); }
.ms-bar i, .progress i, .gp-bar i, .lp-res li i::after { background: var(--sky-grad); }
.w-cnt.ok { background: var(--sky-50); color: var(--sky-2); }
.xd-item .ra .row.ok span:last-child { color: var(--sky-2); }
.lp-y, .lp-price .feat .lp-y { color: var(--sky); }
@media (max-width: 480px) { .tabbar { padding-left: 4px; padding-right: 4px; } .tabbar-in { gap: 0; padding: 4px 2px; } .tabbar a { font-size: .54rem; padding: 6px 0 5px; letter-spacing: -0.01em; } .tabbar a svg { width: 20px; height: 20px; } }
.lp-slogan { margin: -4px 0 12px; font-size: clamp(1.1rem, 3.6vw, 1.45rem); font-weight: 700; color: var(--red); letter-spacing: -0.01em; }

/* =========================================================
   «BOĞAZİÇİ» RANG TIZIMI (yakuniy)
   Asosiy — kobalt ko‘k #1F4E9C (tugmalar, menyu, katta kartalar)
   Urg‘u — bayroq qizili #E30A17 (logotip, «IM», muhim belgilar, xato)
   To‘g‘ri / bajarildi / progress — och ko‘k #2FA4E7 · Fon — #F6F7FA
   ========================================================= */
:root {
  --blue: #1F4E9C; --blue-2: #173C7A; --blue-50: #EEF3FB;
  --red: #E30A17; --red-2: #B8081A; --red-50: #FDECEC;
  --ok: #0A7BC2; --ok-bg: #E4F3FC; --bad: #E30A17; --bad-bg: #FDECEC;
  --bg: #F6F7FA; --bg-alt: #EFF2F7;
  --deep-grad: linear-gradient(140deg, #24539F 0%, #173C7A 55%, #0F2A57 100%);
}
/* Katta yuzalar: qizil o‘rniga ikki xil ko‘k (qizil faqat urg‘u uchun) */
.tile.red { background: var(--deep-grad); box-shadow: 0 20px 40px -24px rgba(15,42,87,.8); }
.ex-card.red { background: radial-gradient(400px 220px at 0% 0%, rgba(255,255,255,.18), transparent 60%), var(--deep-grad); box-shadow: 0 20px 40px -24px rgba(15,42,87,.8); }
.const-hero.red-hero { background: radial-gradient(420px 240px at 0% 0%, rgba(255,255,255,.18), transparent 60%), var(--deep-grad); }
.ms-row.red .ms-ic { background: var(--deep-grad); }
.bk-cover.lv-A1 { background: linear-gradient(160deg, #E30A17, #B8081A); }
.bk-cover.lv-A2, .bk-cover.lv-B2 { background: var(--blue-grad); }
.bk-cover.lv-B1, .bk-cover.lv-C1 { background: var(--deep-grad); }
.plan-badge.pro { background: var(--deep-grad); }
.rank.r1 { background: var(--red-grad); }

/* =========================================================
   TIPOGRAFIYA — Manrope (turkcha ğ ş ı İ ç ö ü uchun to‘liq qo‘llab-quvvatlash)
   Shkala: 12 · 14 · 16 · 18 · 22 · 28 · 36 · 48+ px
   ========================================================= */
:root {
  --sans: "Manrope", "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.375rem; --fs-2xl: 1.75rem; --fs-3xl: 2.25rem;
}
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; font-feature-settings: "kern", "liga"; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--sans); color: var(--title); }
h1 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
h3 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
h4 { font-weight: 700; }
.ph h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.ph-lead, .lp-lead, .muted { line-height: 1.6; }
.card h2, .panel h3, .lp-h { letter-spacing: -0.025em; }
.lp-title { font-weight: 800; letter-spacing: -0.045em; }
.lp-slogan { font-weight: 700; letter-spacing: -0.015em; }
.brand-text { font-weight: 800 !important; letter-spacing: -0.02em; }
.brand-text small { font-weight: 500; letter-spacing: 0; }
.eb, .eyebrow, .hc-eb { font-weight: 700; letter-spacing: .09em; font-size: var(--fs-xs); }
.btn, .pill-btn { font-weight: 700; letter-spacing: -0.005em; }
.li-t b, .row-link b, .tile b { font-weight: 700; letter-spacing: -0.01em; }
.li-t small { font-size: var(--fs-sm); line-height: 1.45; }
.tabbar a { font-weight: 700; }
/* Raqamlar: ball, taymer, statistika — teng kenglikdagi raqamlar */
.num, .kpi b, .lb-ball b, .calc-b, .calc-res b, .ch-num b, .pc-stats b, .timer, .kq-time, .w-timer b, .sp-t, .lp-res b { font-variant-numeric: tabular-nums; }
.kpi b, .ch-num b, .pc-stats b, .calc-res b { font-weight: 800; letter-spacing: -0.03em; }
/* Turkcha matn: savollar, o‘qish matnlari, misollar — qulay o‘qish uchun */
.q-text, .kq h3, .passage, .xd-q, .w-prompt, .sp-q { font-size: 1.05rem; line-height: 1.65; }
.passage { font-size: 1rem; }
.kq h3 { font-weight: 600; letter-spacing: -0.01em; }
.w-tr { font-weight: 800; letter-spacing: -0.01em; }
.w-ex i, .transcript i { font-style: italic; }
/* Uzun matn satri ~70 belgidan oshmasin */
.ph-lead, .lp-lead, .passage, .topic p { max-width: 68ch; }

/* ===== Turkim logotip-yozuvi ===== */
.wm { display: inline-flex; align-items: baseline; font-family: var(--sans); font-weight: 800; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.wm-a { color: var(--blue); }
.wm-b { color: var(--red); display: inline-flex; align-items: baseline; }
.wm-i { position: relative; display: inline-block; }
.wm-star { position: absolute; left: 50%; top: -0.2em; width: .36em; height: .36em; transform: translateX(-50%); color: var(--red); display: block; }
.wm-star svg { width: 100%; height: 100%; display: block; }
.wm.sm { font-size: 1.22rem; }
.wm.xl { font-size: clamp(3.4rem, 13vw, 5.4rem); }
.wm.xl .wm-star { top: -0.16em; width: .3em; height: .3em; }
.brand-text { display: grid !important; gap: 2px; }
.lp-title { display: block; margin: 18px 0 10px; }
.brand-mark img { border-radius: 10px; }
.wm-star { top: 0.02em; width: .3em; height: .3em; }
.wm.xl .wm-star { top: 0.04em; width: .26em; height: .26em; }

/* =========================================================
   TURK MILLIY NAQSHLARI — Saljuqiy yulduz (fon), kilim (chegara), lola (bezak)
   ========================================================= */
:root {
  /* Saljuqiy sakkiz qirrali yulduzlar to‘ri */
  --pat-seljuk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%231F4E9C' stroke-width='1.2'%3E%3Crect x='18' y='18' width='20' height='20'/%3E%3Crect x='18' y='18' width='20' height='20' transform='rotate(45 28 28)'/%3E%3Cpath d='M28 0v13.9M28 42.1V56M0 28h13.9M42.1 28H56'/%3E%3Cpath d='M0 0l8 8M56 0l-8 8M0 56l8-8M56 56l-8-8'/%3E%3C/g%3E%3Ccircle cx='28' cy='28' r='2.2' fill='%23E30A17'/%3E%3C/svg%3E");
  /* Oq chiziqli variant (ko‘k yuzalar uchun) */
  --pat-seljuk-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2'%3E%3Crect x='18' y='18' width='20' height='20'/%3E%3Crect x='18' y='18' width='20' height='20' transform='rotate(45 28 28)'/%3E%3Cpath d='M28 0v13.9M28 42.1V56M0 28h13.9M42.1 28H56'/%3E%3Cpath d='M0 0l8 8M56 0l-8 8M0 56l8-8M56 56l-8-8'/%3E%3C/g%3E%3C/svg%3E");
  /* Kilim: qizil va ko‘k uchburchaklar, o‘rtada romb */
  --pat-kilim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='14' viewBox='0 0 32 14'%3E%3Cpath d='M0 14 8 2l8 12z' fill='%23E30A17'/%3E%3Cpath d='M16 14l8-12 8 12z' fill='%231F4E9C'/%3E%3Cpath d='M8 8.5l2 3-2 2.5-2-2.5z' fill='%23ffffff'/%3E%3Cpath d='M24 8.5l2 3-2 2.5-2-2.5z' fill='%23ffffff'/%3E%3C/svg%3E");
}

/* Hero: naqshli fon, chetlari so‘nib boradi */
.h-hero { position: relative; isolation: isolate; text-align: center; padding: 34px 18px 26px; margin: 8px 0 0; border-radius: 28px 28px 0 0; background: #fff; border: 1px solid var(--line); border-bottom: 0; overflow: hidden; }
.h-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pat-seljuk) center / 56px 56px; opacity: .13;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, transparent 30%, #000 85%); mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, transparent 30%, #000 85%); }
.h-hero .lp-title { margin: 14px 0 6px; }
.h-hero .lp-slogan { margin: 0 0 20px; }
.h-hero .lp-cta { justify-content: center; margin-bottom: 22px; }
.h-stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 520px; margin: 0 auto; border-top: 1px solid var(--line); padding-top: 16px; }
.h-stats div { display: grid; gap: 2px; font-size: .78rem; color: var(--muted); }
.h-stats b { font-size: 1.45rem; font-weight: 800; color: var(--blue); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kilim { height: 14px; background: var(--pat-kilim) left center / 32px 14px repeat-x; border-radius: 0 0 4px 4px; margin-bottom: 14px; }
.h-exam { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--blue-50); color: var(--blue-2); text-decoration: none; font-size: .92rem; margin-bottom: 16px; }
.h-exam span { flex: 1; } .h-exam svg { flex: none; }

/* Bo‘lim sarlavhasi: Saljuqiy yulduz belgisi bilan */
.h-sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.h-sec .eb { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); }
.h-sec h2 { font-size: clamp(1.35rem, 4.6vw, 1.8rem); margin-top: 6px; }
.seljuk { width: 16px; height: 16px; color: var(--blue); flex: none; }
.h-link { display: inline-flex; align-items: center; gap: 2px; color: var(--blue); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }

/* Lola bezagi — bo‘limlar orasida */
.orn { display: flex; align-items: center; gap: 14px; margin: 34px 0 6px; color: var(--blue); }
.orn i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 20%, var(--blue-200, #C3D3EC) 50%, var(--line) 80%, transparent); }
.orn .lale { width: 26px; height: 34px; flex: none; }

/* Imkoniyatlar: naqshli kvadrat ikonlar */
.h-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.h-feat { position: relative; overflow: hidden; display: grid; gap: 4px; justify-items: start; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.h-feat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.h-feat b { font-size: 1.02rem; } .h-feat small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.h-fi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 6px; background: var(--pat-seljuk-w) center / 28px 28px, var(--blue-grad); }
.h-feat:nth-child(3n+2) .h-fi { background: var(--pat-seljuk-w) center / 28px 28px, var(--deep-grad); }
@media (max-width: 560px) { .h-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sertifikat nima beradi */
.h-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.h-why div { display: grid; gap: 4px; padding: 16px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); }
.h-why div:first-child { border-top-color: var(--red); }
.h-why b { font-size: 1.6rem; font-weight: 800; color: var(--blue); letter-spacing: -0.03em; } .h-why div:first-child b { color: var(--red); }
.h-why span { font-size: .82rem; color: var(--ink-2); line-height: 1.4; }

/* Kitob muqovalariga naqsh */
.lp-books .bk-cover { position: relative; overflow: hidden; }
.lp-books .bk-cover::after { content: ""; position: absolute; inset: 0; background: var(--pat-seljuk-w) center / 34px 34px; opacity: .14; pointer-events: none; }

/* Ustozlar uchun — naqshli ko‘k tasma */
.h-band { margin: 30px 0 16px; border-radius: 24px; padding: 26px 20px; color: #fff; text-align: center; background: var(--pat-seljuk-w) center / 56px 56px, var(--deep-grad); background-blend-mode: soft-light, normal; position: relative; overflow: hidden; }
.h-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--pat-kilim) left center / 23px 10px repeat-x; }
.h-band .eb { color: #C3D3EC; } .h-band h2 { color: #fff; margin: 6px 0 16px; font-size: clamp(1.35rem, 4.6vw, 1.8rem); }
.h-contact { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 520px; margin: 0 auto 8px; }
.h-contact input { flex: 1 1 150px; border: 0; border-radius: 12px; padding: 12px 14px; font: inherit; }
.h-contact .btn-gold { background: var(--red); border-color: var(--red); color: #fff; }

.h-today { margin-top: 4px; }
.home-page .hello, .home-page .hero-card { display: none; }
.h-fi { position: relative; overflow: hidden; background: var(--blue-grad); }
.h-feat:nth-child(3n+2) .h-fi { background: var(--deep-grad); }
.h-fi::before { content: ""; position: absolute; inset: 0; background: var(--pat-seljuk-w) center / 44px 44px; opacity: .16; }
.h-fi svg { position: relative; }
.lp-price .feat .btn { background: #fff; color: var(--blue-2); border-color: #fff; }
.lp-price .feat small { color: #C3D3EC; }
.lp-price .feat em { background: var(--red); }
.h-band { background: var(--deep-grad); isolation: isolate; }
.h-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pat-seljuk-w) center / 56px 56px; opacity: .1; }
.h-band::after { height: 12px; background-size: 27px 12px; }
@media (max-width: 560px) { .h-hero { padding: 26px 14px 20px; } .h-hero .lp-cta { flex-wrap: nowrap; gap: 8px; } .h-hero .lp-cta .btn-lg { padding: 13px 16px; font-size: .95rem; white-space: nowrap; } .h-stats b { font-size: 1.25rem; } .h-stats div { font-size: .7rem; } .h-why b { font-size: 1.3rem; } .h-why span { font-size: .75rem; } }

/* ===== Bosh sahifa: sarlavhalar va animatsiyalar ===== */
.h-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
.h-sec h2 .seljuk { width: 22px; height: 22px; }
.h-feat { justify-items: center; text-align: center; padding: 18px 10px; }
.h-feat .h-fi { margin-bottom: 4px; }
.wm-star { width: .42em; height: .42em; top: -0.04em; left: 52%; }
.wm.xl .wm-star { width: .34em; height: .34em; top: -0.02em; }

@keyframes hUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ayIn { 0% { opacity: 0; transform: translateX(-50%) translateY(-60%) rotate(-50deg) scale(.3); } 70% { opacity: 1; transform: translateX(-50%) rotate(8deg) scale(1.12); } 100% { opacity: 1; transform: translateX(-50%) rotate(0) scale(1); } }
@keyframes aySway { 0%, 100% { transform: translateX(-50%) rotate(0); } 50% { transform: translateX(-50%) rotate(-8deg); } }
@keyframes patDrift { to { background-position: 56px 56px; } }
@keyframes kilimMove { to { background-position: 320px center; } }
@keyframes laleSway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes seljukSpin { to { transform: rotate(360deg); } }
@keyframes wmIn { from { opacity: 0; letter-spacing: .02em; filter: blur(6px); } to { opacity: 1; letter-spacing: -0.045em; filter: none; } }

.h-hero .lp-badge { animation: hUp .6s .05s both; }
.h-hero .lp-title .wm { animation: wmIn .9s .15s both; }
.h-hero .lp-slogan { animation: hUp .7s .45s both; }
.h-hero .lp-cta { animation: hUp .7s .6s both; }
.h-hero .h-stats { animation: hUp .7s .75s both; }
.wm.xl .wm-star { animation: ayIn 1s .7s both, aySway 6s 2s ease-in-out infinite; transform-origin: 50% 60%; }
.h-hero::before { animation: patDrift 70s linear infinite; }
.kilim, .h-band::after { animation: kilimMove 30s linear infinite; }
.orn .lale { transform-origin: 50% 100%; animation: laleSway 4.5s ease-in-out infinite; }
.h-sec h2 .seljuk { animation: seljukSpin 24s linear infinite; }
.h-feat:hover .h-fi { transform: rotate(-6deg) scale(1.06); }
.h-fi { transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.btn { transition: transform .15s, box-shadow .2s, background .2s; }
.lp-cta .btn:hover { transform: translateY(-2px); }

.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .h-hero *, .h-hero::before, .kilim, .h-band::after, .orn .lale, .h-sec h2 .seljuk, .wm-star { animation: none !important; }
  .rv { opacity: 1; transform: none; transition: none; }
}
.wm-star { left: 42%; }
.wm.xl .wm-star { width: .4em; height: .4em; top: -0.06em; }
@media (max-width: 400px) {
  .h-hero .lp-cta { flex-wrap: wrap; }
  .h-hero .lp-cta .btn-lg { flex: 1 1 100%; justify-content: center; }
  .brand-text small { display: none; }
  .topbar .app-col { gap: 8px; }
}
@media (max-width: 400px) { .topbar .brand .brand-text small { display: none !important; } .topbar .brand { min-width: 0; flex: 1 1 auto; } }
.lex-row { display: flex; gap: 8px; min-width: 0; } .lex-row input { flex: 1 1 auto; min-width: 0; width: auto; } .lex-row .btn { flex: none; }

/* ===== O‘rganish: ikki panel, mavzu va lug‘at sahifalari ===== */
.learn-panels { display: grid; gap: 14px; margin-top: 6px; }
.learn-panel { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 64px 1fr; gap: 6px 16px; align-items: center; padding: 26px 22px; border-radius: 26px; color: #fff; text-decoration: none; background: var(--blue-grad); box-shadow: 0 22px 44px -26px rgba(15,42,87,.9); transition: transform .2s; }
.learn-panel.lp-voc { background: var(--deep-grad); }
.learn-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pat-seljuk-w) center / 56px 56px; opacity: .1; }
.learn-panel:hover { transform: translateY(-3px); }
.lpn-ic { grid-row: span 2; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.lpn-ic svg { width: 32px; height: 32px; }
.lpn-t b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; }
.lpn-t small { color: rgba(255,255,255,.82); font-size: .9rem; }
.lpn-prog { grid-column: 2; height: 6px; border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden; margin-top: 8px; }
.lpn-prog i { display: block; height: 100%; background: #fff; border-radius: 4px; }
.learn-panel em { grid-column: 2; font-style: normal; font-size: .8rem; color: rgba(255,255,255,.8); }
.lg-unit { padding: 16px; }
.lg-unit.done { border-color: var(--sky); }
.lg-uh { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .lg-uh .li-t { flex: 1; }
.lg-code { font-size: .8rem; color: var(--blue); }
.lt-theory, .lt-ex, .lt-q { display: grid; gap: 10px; }
.lt-theory .eb, .lt-ex .eb, .lt-q .eb { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); }
.lt-theory p { margin: 0; font-size: 1.08rem; line-height: 1.7; }
.lt-ex ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lt-ex li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--blue-50); font-size: 1.05rem; font-weight: 600; color: var(--blue-2); }
.lt-qi { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.lt-qi summary { cursor: pointer; line-height: 1.5; }
.lt-ans { margin-top: 10px; display: grid; gap: 6px; } .lt-ans p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.lt-ok { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--sky-2, #0A7BC2); }
.lt-act { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.lt-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.lt-nav a { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; min-width: 0; }
.lt-nav a span { display: grid; min-width: 0; } .lt-nav a small { color: var(--muted); font-weight: 500; font-size: .75rem; }
.lt-nav a.nx { justify-content: flex-end; text-align: right; }
.lw-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.lw-guide { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); }
.lw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 12px 0; }
.lw-card { display: grid; gap: 6px; padding: 14px; }
.lw-h { display: flex; align-items: center; gap: 8px; } .lw-h .w-tr { flex: 1; font-size: 1.15rem; }
.lw-uz { font-weight: 600; color: var(--blue); }
.lw-grid.flash .lw-card { cursor: pointer; }
.lw-grid.flash .lw-card:not(.rev) .lw-uz, .lw-grid.flash .lw-card:not(.rev) .w-ex { filter: blur(6px); opacity: .5; }
.lw-grid.flash .lw-card:not(.rev)::after { content: "Bosib ma’nosini ko‘ring"; font-size: .75rem; color: var(--muted); }
.lt-theory p { margin: 0 0 4px; }
.lt-table { display: grid; gap: 10px; } .lt-table .eb, .lt-note .eb { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); }
.lt-tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lt-tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.lt-tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lt-tbl td:first-child { font-weight: 700; color: var(--blue-2); white-space: nowrap; }
.lt-tbl tr:nth-child(even) td { background: var(--bg); }
.lt-ex li span { display: grid; gap: 2px; } .lt-ex li span small { font-weight: 500; color: var(--ink-2); font-size: .88rem; }
.lt-note { border-left: 4px solid var(--red); display: grid; gap: 6px; } .lt-note .eb { color: var(--red); } .lt-note p { margin: 0; line-height: 1.6; }

/* ===== Kitoblar: ikki ustun (grammatik · badiiy) + yuklab olish ===== */
.seg3.kb-tabs { grid-template-columns: repeat(3, 1fr); }
.kb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.kb-h { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; margin: 4px 0 12px; }
.kb-h .seljuk { width: 20px; height: 20px; }
.kb-list { display: grid; gap: 12px; }
.kb-book { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); align-items: start; }
.kb-cov { position: relative; display: block; aspect-ratio: 400 / 580; border-radius: 10px; overflow: hidden; background: var(--bg-alt); }
.kb-cov img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); }
.kb-lv { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .02em; }
.kb-info { display: grid; gap: 4px; min-width: 0; } .kb-info b { line-height: 1.25; } .kb-info small { color: var(--muted); font-size: .8rem; }
.kb-info p { margin: 4px 0 0; font-size: .85rem; color: var(--ink-2); line-height: 1.45; }
.kb-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.kb-links .pill-btn { font-size: .76rem; padding: 5px 10px; min-height: 0; }
.kb-art { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 10px 8px; color: #fff; isolation: isolate; }
.kb-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pat-seljuk-w) center / 30px 30px; opacity: .14; }
.kb-art.h1 { background: var(--blue-grad); } .kb-art.h2 { background: var(--deep-grad); } .kb-art.h3 { background: linear-gradient(160deg, #E30A17, #8E0611); }
.kb-art b { font-size: .72rem; line-height: 1.2; } .kb-art small { font-size: .58rem; opacity: .85; }
.kb-down { margin-top: 26px; }
.kb-dls { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.kb-dl { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); cursor: pointer; font: inherit; text-align: left; }
.kb-dl:hover { border-color: var(--blue); }
.kb-dl svg { flex: none; width: 22px; height: 22px; color: var(--blue); }
.kb-dl span { display: grid; } .kb-dl small { color: var(--muted); font-size: .78rem; }
@media (min-width: 641px) { .kb-tabs { display: none !important; } }
@media (max-width: 640px) {
  .kb-cols { grid-template-columns: 1fr; }
  .kb-cols.gram .kb-c-badiiy, .kb-cols.badiiy .kb-c-gram, .kb-cols.yuklab .kb-col { display: none; }
  .kb-down:not(.on) { display: none; }
  .kb-down.on { margin-top: 4px; }
}

/* Kitoblar: faqat 2 yorliq, har kitobda «Yuklab olish» */
.seg3.kb-tabs { grid-template-columns: repeat(2, 1fr); }
.kb-get { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font: inherit; border: 0; }
.kb-get svg { width: 14px; height: 14px; }
.kb-links .kb-get { font-size: .76rem; padding: 5px 10px; min-height: 0; }

/* Mashqlar: qizil · ko‘k · qizil (bayroq ranglari) */
.tile.mq-red { background: radial-gradient(380px 200px at 0% 0%, rgba(255,255,255,.2), transparent 60%), var(--red-grad); box-shadow: 0 22px 40px -24px rgba(227,10,23,.8); }
.tile.mq-blue { background: radial-gradient(380px 200px at 0% 0%, rgba(255,255,255,.2), transparent 60%), var(--blue-grad); box-shadow: 0 22px 40px -24px rgba(31,78,156,.85); }
.tile.mq-red .t-ic, .tile.mq-blue .t-ic { background: rgba(255,255,255,.2); color: #fff; }
.tile.mq-blue .li-t small .t-num { font-size: 1.05em; padding: 2px 10px; margin-right: 4px; border-radius: 10px; background: rgba(255,255,255,.22); font-weight: 800; color: #fff; }

/* MOCK: format tanlash (CEFR · TYS) va ko‘k · qizil · ko‘k kartalar */
.seg3.fmt-tabs { grid-template-columns: repeat(2, 1fr); margin-bottom: 6px; }
.ex-card.mx-blue { background: radial-gradient(400px 220px at 0% 0%, rgba(255,255,255,.18), transparent 60%), var(--blue-grad); box-shadow: 0 22px 40px -22px rgba(31,78,156,.85); }
.ex-card.mx-red { background: radial-gradient(400px 220px at 0% 0%, rgba(255,255,255,.2), transparent 60%), var(--red-grad); box-shadow: 0 22px 40px -22px rgba(227,10,23,.75); }
.ex-card.mx-blue .ex-badge { color: var(--blue); }
.ex-card.mx-red .ex-badge { color: var(--red); }
.tys-line { margin: 4px 0 12px; padding: 8px 14px; border-radius: 12px; background: rgba(31,78,156,.08); display: inline-block; }
.tys-line small { color: var(--muted); }

/* ===== Asosiy sahifa: yaxshilashlar ===== */
.h-hero .lp-cta { flex-wrap: nowrap; }
.h-hero .lp-cta .btn { flex: 1 1 0; min-width: 0; }
.h-hero .lp-cta .btn-ghost { flex: 0 0 auto; }
.h-stats > div:nth-child(odd) b { color: var(--blue); }
.h-stats > div:nth-child(even) b { color: var(--red); }
.h-days { margin-left: auto; font-style: normal; font-weight: 800; font-size: .8rem; color: #fff; background: var(--red); padding: 3px 10px; border-radius: 999px; }
.h-exam .h-days + .chev { margin-left: 6px; }
.h-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.h-step { display: grid; gap: 2px; padding: 14px 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--title); position: relative; overflow: hidden; transition: transform .15s; }
.h-step:hover { transform: translateY(-2px); }
.h-step i { font-style: normal; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; background: var(--blue-grad); margin-bottom: 6px; }
.h-step:nth-child(2) i { background: var(--red-grad); }
.h-step b { font-size: .95rem; line-height: 1.2; }
.h-step small { color: var(--muted); font-size: .74rem; line-height: 1.3; }
.h-feats .h-feat:nth-child(odd) .h-fi { background: var(--blue-grad); color: #fff; }
.h-feats .h-feat:nth-child(even) .h-fi { background: var(--red-grad); color: #fff; }
.h-covers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 14px 0 18px; }
.h-cov { position: relative; display: block; aspect-ratio: 400 / 580; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 24px -14px rgba(15,42,87,.55); transition: transform .2s; }
.h-cov:hover { transform: translateY(-3px) rotate(-1deg); }
.h-cov img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); display: block; }
.h-cov span { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 800; }
@media (max-width: 560px) {
  .h-covers { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 34%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .h-cov { scroll-snap-align: start; }
  .h-step { padding: 12px 10px; } .h-step b { font-size: .86rem; }
}

/* ===== O‘rganish: daraja testi (qizil), ko‘nikmalar; ranglar navbatma-navbat ===== */
.learn-panel.lp-test { background: var(--red-grad); box-shadow: 0 22px 44px -26px rgba(227,10,23,.85); }
.learn-panel.lp-gram { background: var(--blue-grad); }
.learn-panel.lp-voc { background: var(--red-grad); box-shadow: 0 22px 44px -26px rgba(227,10,23,.85); }
.learn-panel.lp-skill { background: var(--blue-grad); }
.learn-panel.lp-skill .lpn-t b { font-size: 1.35rem; line-height: 1.2; }
.lpn-cta { grid-column: 2; font-style: normal; font-weight: 800; font-size: .9rem; background: #fff; color: var(--red); justify-self: start; padding: 6px 14px; border-radius: 999px; margin-top: 8px; }
.lpn-lv { background: #fff; color: var(--red); padding: 1px 8px; border-radius: 8px; font-weight: 800; }
.lp-skills { margin-top: 12px; }
.lvt { padding: 22px; }
.lvt-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .9rem; }
.lvt-lv { background: var(--blue); color: #fff; font-weight: 800; font-size: .75rem; padding: 3px 10px; border-radius: 999px; }
.lvt-bar { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 10px 0 18px; }
.lvt-bar i { display: block; height: 100%; background: var(--red-grad); transition: width .25s; }
.lvt-q { font-size: 1.2rem; line-height: 1.4; margin: 0 0 16px; }
.lvt-opts { display: grid; gap: 10px; }
.lvt-o { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--title); cursor: pointer; transition: border-color .15s, background .15s; }
.lvt-o:hover { border-color: var(--blue); background: rgba(31,78,156,.05); }
.lvt-o b { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(31,78,156,.1); color: var(--blue); }
.lvt-o.idk { justify-content: center; color: var(--muted); border-style: dashed; }
.lvt-res { text-align: center; display: grid; gap: 10px; justify-items: center; }
.lvt-big { font-size: 3.6rem; font-weight: 800; line-height: 1; background: var(--red-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lvt-per { display: grid; gap: 8px; width: 100%; max-width: 380px; margin: 6px 0; }
.lvt-per > div { display: grid; grid-template-columns: 34px 1fr 34px; gap: 10px; align-items: center; text-align: left; }
.lvt-per .lpn-prog { background: var(--line); margin: 0; grid-column: auto; }
.lvt-per .lpn-prog i { background: var(--muted); display: block; height: 100%; }
.lvt-per .ok .lpn-prog i { background: var(--blue-grad); }
.lvt-act { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.lvt-note { font-size: .82rem; margin: 4px 0 0; }

/* ===== Kitoblar: grammatik va badiiy orasida chegara ===== */
@media (min-width: 641px) {
  .kb-cols { gap: 0; }
  .kb-col { padding: 0 20px; }
  .kb-c-gram { padding-left: 0; border-right: 2px solid transparent; border-image: linear-gradient(180deg, var(--blue), var(--red)) 1; }
  .kb-c-badiiy { padding-right: 0; }
}
.kb-h { padding-bottom: 10px; border-bottom: 3px solid var(--blue); }
.kb-c-badiiy .kb-h { border-bottom-color: var(--red); }
.lvt-big.sm { font-size: 2.2rem; }
.learn-panel em.lpn-cta { color: var(--red); opacity: 1; font-size: .9rem; }

/* ===== Asosiy: daraja testi va maqsad ===== */
.h-lvt { margin-bottom: 14px; }
.h-goal .card-h h2 { display: flex; align-items: center; gap: 8px; }
.h-goal .card-h h2 svg { color: var(--red); }
.hg-q { margin: 4px 0 10px; font-size: .9rem; }
.hg-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hg-pick button { display: grid; gap: 2px; padding: 12px 6px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--title); cursor: pointer; transition: all .15s; }
.hg-pick button b { font-size: 1.35rem; }
.hg-pick button small { color: var(--muted); font-size: .74rem; }
.hg-pick button:hover { border-color: var(--blue); }
.hg-pick button.on { background: var(--blue-grad); border-color: transparent; color: #fff; }
.hg-pick button.on small { color: rgba(255,255,255,.85); }
.hg-pick button:nth-child(2).on { background: var(--red-grad); }
.hg-track { margin-top: 14px; display: grid; gap: 8px; }
.hg-row { display: flex; justify-content: space-between; font-size: .92rem; }
.hg-row span { color: var(--muted); }
.hg-row a { color: var(--red); text-decoration: none; }
.h-goal .gp-bar { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.h-goal .gp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--red)); }
.hg-note { margin: 2px 0 0; font-size: .88rem; }
.km-res { display: inline-block; margin-top: 8px; font-style: normal; font-weight: 700; font-size: .82rem; background: rgba(255,255,255,.2); padding: 3px 10px; border-radius: 999px; }

/* ===== O‘rganish: video-darslar ===== */
.learn-panel.lp-video { background: var(--red-grad); box-shadow: 0 22px 44px -26px rgba(227,10,23,.85); }
.vid-card { padding: 12px; }
.vid-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0F2A57; }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 6px 4px; }
.vid-foot .pill-btn { background: var(--red); }
.vid-foot .pill-btn svg { width: 16px; height: 16px; }

/* ===== Milliy mock ===== */
.ml-old { margin: 6px 0 16px; }
.ml-old > summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 12px 4px; list-style: none; }
.ml-old > summary::before { content: "▸ "; } .ml-old[open] > summary::before { content: "▾ "; }
.ml-secs { display: grid; gap: 10px; margin-bottom: 14px; }
.ml-sec { display: grid; grid-template-columns: 52px 1fr 20px; gap: 14px; align-items: center; padding: 16px; border-radius: 22px; color: #fff; text-decoration: none; background: var(--blue-grad); box-shadow: 0 18px 36px -24px rgba(15,42,87,.8); }
.ml-sec.okuma { background: var(--red-grad); box-shadow: 0 18px 36px -24px rgba(227,10,23,.75); }
.ml-sec .li-t b { color: #fff; font-size: 1.15rem; } .ml-sec .li-t b small { font-weight: 500; opacity: .85; font-size: .85rem; }
.ml-sec .li-t small { color: rgba(255,255,255,.85); }
.ml-si { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.ml-st { display: inline-block; margin-top: 6px; font-style: normal; font-weight: 700; font-size: .78rem; background: rgba(255,255,255,.2); padding: 3px 10px; border-radius: 999px; }
.ml-sec .chev { color: #fff; }
.ml-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 4px; margin: -4px 0 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.ml-bar .back { margin: 0; }
.ml-bt { display: grid; flex: 1; min-width: 0; } .ml-bt small { color: var(--muted); font-size: .8rem; }
.ml-prog { font-weight: 700; color: var(--muted); font-size: .85rem; }
.ml-time { font-family: var(--mono, monospace); font-weight: 700; background: var(--blue); color: #fff; padding: 6px 12px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.ml-time.low { background: var(--red); }
.ml-part { padding: 18px; }
.ml-ph { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ml-pno { font-weight: 800; font-size: 1.1rem; color: var(--title); } .ml-ph small { color: var(--muted); }
.ml-instr { font-style: italic; color: var(--ink-2); margin: 6px 0 10px; line-height: 1.5; }
.ml-play { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 0; background: var(--blue); color: #fff; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; margin: 4px 0 10px; }
.ml-play svg { width: 16px; height: 16px; } .ml-play.playing { background: var(--red); } .ml-play.off { background: var(--line); color: var(--muted); cursor: default; }
.ml-map { width: 100%; max-width: 520px; display: block; margin: 6px auto 12px; }
.ml-text { background: #FBFCFE; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; line-height: 1.7; margin-bottom: 12px; font-size: .95rem; }
.ml-text p { margin: 0 0 10px; } .ml-text p:last-child { margin: 0; }
.ml-legend { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: rgba(31,78,156,.06); margin-bottom: 12px; font-size: .92rem; }
.ml-group { margin: 14px 0 4px; padding-top: 10px; border-top: 1px dashed var(--line); }
.ml-group b { display: block; margin-bottom: 4px; }
.ml-qs { display: grid; gap: 10px; }
.ml-qs.grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ml-q { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ml-q:last-child { border-bottom: 0; }
.ml-n { font-weight: 800; color: var(--blue); padding-top: 4px; }
.ml-qt { margin: 2px 0 8px; font-weight: 600; line-height: 1.45; }
.ml-card { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: .92rem; line-height: 1.5; background: #fff; }
.ml-ch { display: grid; gap: 6px; }
.ml-ch.compact { display: flex; flex-wrap: wrap; gap: 6px; }
.ml-o { text-align: left; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: .92rem; color: var(--title); cursor: pointer; line-height: 1.4; }
.ml-ch.compact .ml-o { min-width: 40px; text-align: center; padding: 8px 10px; }
.ml-o:hover:not([disabled]) { border-color: var(--blue); }
.ml-o.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.ml-o.ok { background: rgba(22,163,74,.12); border-color: #16A34A; }
.ml-o.bad { background: rgba(227,10,23,.1); border-color: var(--red); }
.ml-mail { background: #FBFCFE; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 14px; padding: 12px 14px; margin: 10px 0 14px; line-height: 1.6; }
.ml-mail p { margin: 6px 0 0; }
.ml-w { margin-bottom: 14px; } .ml-w p { margin: 4px 0 8px; line-height: 1.5; }
.ml-w textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; font: inherit; font-size: .95rem; line-height: 1.6; resize: vertical; }
.ml-w textarea:focus { outline: none; border-color: var(--blue); }
.ml-wc { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; } .ml-wc.ok { color: #16A34A; font-weight: 700; } .ml-wc.over { color: var(--red); font-weight: 700; }
.ml-finish { margin: 6px 0 20px; }
.ml-ress { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.ml-res { display: grid; gap: 2px; padding: 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.ml-res span { color: var(--muted); font-weight: 600; font-size: .85rem; } .ml-res b { font-size: 2.2rem; line-height: 1.1; color: var(--blue); } .ml-res small { color: var(--muted); }
.ml-res.big { grid-column: 1 / -1; background: var(--red-grad); border: 0; color: #fff; } .ml-res.big span, .ml-res.big small, .ml-res.big b { color: #fff; }
.ml-res.na b { color: var(--muted); } .ml-res a { color: var(--red); font-weight: 700; text-decoration: none; }
.ml-wout { padding: 10px 0; border-bottom: 1px solid var(--line); } .ml-wout small { color: var(--muted); margin-left: 8px; } .ml-wout p { margin: 6px 0 0; line-height: 1.6; white-space: normal; }
.ml-rev { margin-top: 12px; } .ml-rev > summary { cursor: pointer; font-weight: 700; padding: 12px 4px; color: var(--blue); }
.ml-q.r-bad .ml-n { color: var(--red); }
.ml-script summary { cursor: pointer; color: var(--blue); font-size: .85rem; font-weight: 600; } .ml-script p { font-size: .88rem; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 560px) { .ml-q { grid-template-columns: 34px 1fr; } .ml-part { padding: 14px; } }

/* ===== Video-darslar: muqovali dars kartochkalari ===== */
.vl-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin: 4px 0 14px; font-size: .92rem; color: var(--muted); }
.vl-head b { color: var(--title); }
.vl-head .lpn-prog { background: var(--line); margin: 0; height: 6px; grid-column: auto; }
.vl-head .lpn-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--red)); }
.vl-all { background: var(--red); font-size: .82rem; padding: 7px 14px; }
.vl-all svg { width: 14px; height: 14px; }
.vl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.vl-card { display: grid; gap: 8px; text-decoration: none; color: var(--title); background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.vl-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(15,42,87,.5); }
.vl-cov { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--deep-grad); overflow: hidden; }
.vl-cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vl-no { position: absolute; left: 8px; top: 8px; background: var(--blue); color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.vl-dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.78); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.vl-play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(227,10,23,.92); color: #fff; opacity: 0; transform: scale(.8); transition: all .15s; }
.vl-play svg { width: 20px; height: 20px; }
.vl-card:hover .vl-play { opacity: 1; transform: scale(1); }
.vl-ok { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; background: #16A34A; color: #fff; font-size: .7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.vl-ok svg { width: 12px; height: 12px; }
.vl-card.seen .vl-cov img { opacity: .75; }
.vl-t { display: grid; gap: 2px; padding: 0 12px 12px; } .vl-t b { font-size: .95rem; line-height: 1.3; } .vl-t small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
@media (max-width: 560px) { .vl-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .vl-t b { font-size: .85rem; } .vl-t small { display: none; } .vl-head { grid-template-columns: 1fr auto; } .vl-head .lpn-prog { grid-column: 1 / -1; grid-row: 2; } }
.fmt-tabs .fmt-soon { display: grid; place-items: center; gap: 2px; padding: 10px; border-radius: 14px; color: var(--muted); cursor: not-allowed; opacity: .7; }
.fmt-tabs .fmt-soon b { display: inline-flex; align-items: center; gap: 5px; } .fmt-tabs .fmt-soon svg { width: 14px; height: 14px; }

/* ===== Mehmon cheklovi ===== */
.tabbar-in.guest { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 320px; }
.gate { text-align: center; padding: 26px 20px; }
.gate-ic { width: 60px; height: 60px; border-radius: 20px; display: inline-grid; place-items: center; background: var(--red-grad); color: #fff; margin-bottom: 10px; }
.gate-ic svg { width: 26px; height: 26px; }
.gate h1 { font-size: 1.35rem; margin: 0 0 6px; }
.gate .auth-card { text-align: left; margin-top: 16px; }

/* ===== Tun/kun tugmasi ===== */
.theme-btn { margin-left: auto; margin-right: 8px; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface, #fff); color: var(--title); font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; }
.topbar .app-col { display: flex; align-items: center; }

/* ===== Kalendar ===== */
.cal { background: var(--surface, #fff); border-radius: 22px; padding: 14px 14px 12px; border: 1px solid var(--line); }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-h b { color: var(--red); letter-spacing: .04em; font-size: .95rem; }
.cal-nav { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--title); font-size: 1.2rem; cursor: pointer; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-g i { font-style: normal; font-weight: 800; font-size: .74rem; color: var(--title); padding: 2px 0; }
.cal-g i.we { color: var(--muted); }
.cal-g > span, .cal-g > button { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-weight: 700; font-size: .9rem; color: var(--title); border: 0; background: none; font-family: inherit; }
.cal-g > button { cursor: pointer; } .cal-g > button:hover { background: rgba(31,78,156,.1); }
.cal-g .we { color: var(--muted); }
.cal-g .past { opacity: .35; }
.cal-g .today { box-shadow: inset 0 0 0 2px var(--blue); }
.cal-g .sel { background: var(--red) !important; color: #fff !important; opacity: 1; }

/* ===== So‘rovnoma ===== */
.ob-head { margin: 8px 0 14px; } .ob-head h1 { margin: 6px 0 2px; }
.ob-step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.ob-step h2 { font-size: 1.05rem; margin: 4px 0 10px; }
.ob-n { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-grad); color: #fff; font-weight: 800; }
.ob-step:nth-child(odd) .ob-n { background: var(--red-grad); }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chips button { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface, #fff); color: var(--title); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.ob-chips button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.ob-hint { font-size: .85rem; color: var(--muted); margin: 8px 0 0; } .ob-hint a { color: var(--red); }
.ob-cal { max-width: 340px; margin-top: 12px; }
.ob-off { margin-top: 10px; }
.ob-sel { margin: 10px 0 0; font-size: .92rem; }

/* ===== Reja (Shaxsiy) ===== */
.plan-wrap { display: grid; gap: 12px; margin-bottom: 16px; }
.plan-top { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 12px; }
.plan-sum { border-radius: 22px; padding: 16px; background: var(--deep-grad); color: #fff; display: grid; gap: 6px; align-content: start; }
.plan-sum .eb { color: rgba(255,255,255,.8); }
.plan-left { display: flex; align-items: baseline; gap: 8px; } .plan-left b { font-size: 3rem; line-height: 1; } .plan-left span { font-weight: 700; opacity: .85; }
.plan-sum p { margin: 0; color: rgba(255,255,255,.9); }
.plan-tags { display: flex; flex-wrap: wrap; gap: 6px; } .plan-tags span { background: rgba(255,255,255,.16); padding: 4px 10px; border-radius: 999px; font-size: .82rem; }
.plan-weak { font-size: .85rem; }
.plan-edit { color: #fff; font-weight: 700; font-size: .85rem; justify-self: start; }
.plan-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.plan-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; }
.plan-list a { display: grid; grid-template-columns: 38px 1fr 18px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; color: var(--title); }
.pl-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(31,78,156,.1); color: var(--blue); }
.pl-ic svg { width: 18px; height: 18px; }
.pl-chk { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface, #fff); color: var(--muted); font-weight: 800; cursor: pointer; display: grid; place-items: center; font-family: inherit; }
.pl-chk svg { width: 16px; height: 16px; }
.plan-list li.ok .pl-chk { background: #16A34A; border-color: #16A34A; color: #fff; }
.plan-list li.ok a { opacity: .6; } .plan-list li.ok b { text-decoration: line-through; }
.plan-week { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pw-day { padding: 10px; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--line); display: grid; gap: 2px; }
.pw-day b { font-size: .82rem; color: var(--title); } .pw-day small { font-size: .72rem; color: var(--muted); line-height: 1.35; }
.plan-cta { margin-bottom: 14px; }
@media (max-width: 640px) { .plan-top { grid-template-columns: 1fr; } .plan-week { grid-template-columns: repeat(3, 1fr); } }

/* ===== O‘yinlar ===== */
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.g-card { position: relative; display: grid; gap: 6px; padding: 18px; border-radius: 22px; color: #fff; text-decoration: none; background: var(--blue-grad); box-shadow: 0 18px 36px -24px rgba(15,42,87,.8); }
.g-card.r { background: var(--red-grad); }
.g-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.18); }
.g-card b { font-size: 1.2rem; } .g-card small { opacity: .88; } .g-card em { font-style: normal; font-size: .78rem; font-weight: 700; background: rgba(255,255,255,.2); padding: 2px 10px; border-radius: 999px; justify-self: start; }
.g-go { font-weight: 800; font-size: .88rem; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; }
.g-lv button { border: 0; background: none; font: inherit; cursor: pointer; color: inherit; padding: 10px 4px; border-radius: 14px; }
.g-lv button.on { background: var(--blue-grad); color: #fff; }
.g-box { padding: 20px; min-height: 260px; }
.g-bar { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.g-t { font-weight: 800; color: var(--red); }
.g-word { font-size: 2rem; font-weight: 800; text-align: center; margin: 18px 0; color: var(--title); display: flex; justify-content: center; align-items: center; gap: 8px; }
.g-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.g-opts button, .g-pairs button, .g-bank button { padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface, #fff); color: var(--title); font: inherit; font-weight: 600; cursor: pointer; }
.g-opts .ok, .g-pairs .ok { background: #16A34A; border-color: #16A34A; color: #fff; }
.g-opts .bad, .g-pairs .bad { background: var(--red); border-color: var(--red); color: #fff; }
.g-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .g-pairs > div { display: grid; gap: 8px; }
.g-pairs .sel { border-color: var(--blue); background: rgba(31,78,156,.1); }
.g-pairs button:disabled { cursor: default; }
.g-mean { font-size: 1.2rem; text-align: center; font-weight: 700; margin: 10px 0; }
.g-mask { font-family: var(--mono, monospace); font-size: 1.8rem; text-align: center; letter-spacing: .15em; margin: 10px 0 16px; color: var(--blue); }
.g-in { display: flex; gap: 8px; margin-bottom: 10px; } .g-in input { flex: 1; min-width: 0; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); font: inherit; background: var(--surface, #fff); color: var(--title); }
.g-line { min-height: 54px; padding: 12px; border-radius: 14px; border: 1.5px dashed var(--line); margin-bottom: 12px; font-size: 1.05rem; display: flex; flex-wrap: wrap; gap: 6px; }
.g-line span { background: var(--blue); color: #fff; padding: 4px 10px; border-radius: 10px; } .g-line i { color: var(--muted); }
.g-bank { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.g-end { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 20px 0; }
.g-score { font-size: 4rem; font-weight: 800; line-height: 1; background: var(--red-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Ustozlar fikri (slayder) ===== */
.sample-tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px dashed var(--muted); padding: 2px 8px; border-radius: 999px; }
.xp-wrap { margin: 6px 0 18px; }
.xp-track { position: relative; }
.xp-card { display: none; padding: 22px; border-radius: 24px; background: var(--surface, #fff); border: 1px solid var(--line); animation: xpIn .5s ease; }
.xp-card.on { display: block; }
@keyframes xpIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.xp-q { font-size: 2.2rem; line-height: 1; color: var(--red); font-family: Georgia, serif; }
.xp-card p { font-style: italic; font-size: 1.05rem; line-height: 1.6; margin: 4px 0 16px; color: var(--title); }
.xp-who { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.xp-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-grad); color: #fff; font-weight: 800; }
.xp-who a { display: inline-flex; align-items: center; gap: 4px; color: var(--title); font-weight: 600; font-size: .85rem; }
.xp-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.xp-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: var(--line); cursor: pointer; transition: width .2s; }
.xp-dots button.on { width: 28px; background: var(--blue); }

/* ===== O‘quvchilar fikri (harakatlanuvchi) ===== */
.rv-wrap { margin: 6px 0 18px; overflow: hidden; }
.rv-row { overflow: hidden; margin-bottom: 12px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rv-move { display: flex; gap: 12px; width: max-content; animation: rvMove 45s linear infinite; }
.rv-row.rev .rv-move { animation-direction: reverse; animation-duration: 52s; }
.rv-row:hover .rv-move { animation-play-state: paused; }
@keyframes rvMove { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
.rv-card { width: 280px; flex: none; padding: 16px; border-radius: 20px; background: var(--surface, #fff); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.rv-top { display: flex; justify-content: space-between; align-items: center; } .rv-top .xp-q { font-size: 1.6rem; }
.rv-lv { font-size: .78rem; font-weight: 800; color: #B7791F; background: rgba(245,183,49,.15); padding: 2px 8px; border-radius: 999px; }
.rv-card p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--title); }
.rv-who { border-top: 1px solid var(--line); padding-top: 8px; display: grid; } .rv-who small { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .rv-move { animation: none; } }

/* ===== TUN REJIMI ===== */
html[data-theme="dark"] {
  --bg: #0E1525; --bg-alt: #131C30; --surface: #172238; --line: #27344D; --line-dark: rgba(255,255,255,.1);
  --ink: #E4E9F3; --ink-2: #B9C2D3; --muted: #8E98AC; --title: #F2F5FB;
  color-scheme: dark;
}
html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .topbar { background: rgba(14,21,37,.88); border-bottom-color: var(--line); }
html[data-theme="dark"] .tabbar-in { background: rgba(23,34,56,.95); border-color: var(--line); }
html[data-theme="dark"] .tabbar a { color: #C9D2E2; }
html[data-theme="dark"] :is(.card, .list-card, .tile:not(.blue):not(.red):not(.deep):not(.mq-red):not(.mq-blue), .empty-card, .kpi, .panel, .modal, .auth-card, .seg3, .h-hero, .h-feat, .h-why div, .h-step, .lp-price, .table-wrap, .kb-book, .kb-dl, .ml-card, .ml-o, .ml-res:not(.big), .vl-card, .lvt-o, .hg-pick button, .lt-nav a, .ms-card, .faq details, .field input, .field select, .back, .btn-ghost, .row-card, .feature, .plan, .topbar .user-chip, .lp-chip, .lp-box, .exam-bar, .kv-card, .chip, .search input, .review-item, .side-box, .q-panel, .opt, .qgrid button, .ml-text, .lex-row input, .ml-w textarea) { background-color: var(--surface) !important; color: var(--ink); border-color: var(--line) !important; }
html[data-theme="dark"] :is(h1, h2, h3, h4, b, strong, .li-t b, .sec-t, .ph h1) { color: var(--title); }
html[data-theme="dark"] :is(.tile.blue, .tile.red, .mq-red, .mq-blue, .learn-panel, .ex-card, .g-card, .plan-sum, .ml-sec, .hero-card, .alert-card) :is(b, h1, h2, h3, .li-t b) { color: #fff; }
html[data-theme="dark"] .h-hero { background-image: none !important; }
html[data-theme="dark"] .muted, html[data-theme="dark"] small { color: var(--muted); }
html[data-theme="dark"] .ml-text, html[data-theme="dark"] .ml-legend, html[data-theme="dark"] .ml-mail { background: #131C30 !important; }
html[data-theme="dark"] .kilim { opacity: .5; }
html[data-theme="dark"] img.cover, html[data-theme="dark"] .kb-cov img { filter: brightness(.92); }
html[data-theme="dark"] .wm-a { color: #8FB4F0 !important; }
html[data-theme="dark"] .h-exam { background: var(--surface) !important; color: var(--ink); border-color: var(--line) !important; }
html[data-theme="dark"] .h-exam b { color: var(--title); }
html[data-theme="dark"] :is(.cal, .pw-day, .plan-list a, .pl-chk, .ob-chips button, .g-opts button, .g-pairs button, .g-bank button, .g-in input, .theme-btn) { background-color: var(--surface); color: var(--ink); }
html[data-theme="dark"] .tabbar a.on { background: rgba(143,180,240,.18) !important; color: #fff; }

/* ===== Tun rejimi: qolgan och bloklar ===== */
html[data-theme="dark"] {
  --blue-50: rgba(143,180,240,.10); --blue-100: rgba(143,180,240,.22); --navy-50: rgba(143,180,240,.08); --navy-100: rgba(143,180,240,.16);
  --gold-50: rgba(143,180,240,.08); --red-50: rgba(240,80,90,.14); --sky-50: rgba(143,180,240,.10); --teal-50: rgba(143,180,240,.10);
}
html[data-theme="dark"] :is(.note, .demo-banner, .empty, .pc-stats, .pc-stats div, .formula, .card .li, .seg button.on, .cab-tabs a.on, .cert-frame, .lp-badge, .learn-btn, .pill-btn.ghost, .kb-links .pill-btn.ghost, .gchip) { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; }
html[data-theme="dark"] :is(.kb-n, .li-ic, .rl-ic, .art-n) { background: rgba(143,180,240,.14) !important; color: #CFE0FB !important; }
html[data-theme="dark"] .pc-stats b, html[data-theme="dark"] .note b, html[data-theme="dark"] .demo-banner b { color: var(--title) !important; }
html[data-theme="dark"] .pc-stats div + div { border-left-color: var(--line) !important; }
html[data-theme="dark"] .tabbar a { color: #AEB9CC; }
html[data-theme="dark"] .tabbar a.on { background: rgba(143,180,240,.2) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(143,180,240,.35) !important; }
html[data-theme="dark"] .empty a, html[data-theme="dark"] .note a { color: #8FB4F0; }
html[data-theme="dark"] :is(.stat-card, .profile-card) :is(.pc-stats, .pc-stats div) { background: transparent !important; color: rgba(255,255,255,.86) !important; border-color: rgba(255,255,255,.25) !important; }
html[data-theme="dark"] :is(.stat-card, .profile-card) .pc-stats b { color: #fff !important; }
html[data-theme="dark"] :is(.feat-card, .plan.featured, .plan.pro) { background: var(--surface) !important; background-image: none !important; color: var(--ink) !important; border-color: var(--line) !important; } html[data-theme="dark"] :is(.feat-card, .plan) :is(b, h3, .price) { color: var(--title) !important; } html[data-theme="dark"] .feat-card small { color: var(--muted) !important; }

/* ===== Mashqlar: 2×2 kvadrat kartochkalar ===== */
.tile.mq-sq { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 230px; padding: 20px; border-radius: 30px; overflow: hidden; }
.tile.mq-sq .t-ic { width: 62px; height: 62px; }
.tile.mq-sq .t-ic svg { width: 28px; height: 28px; }
.tile.mq-sq .chev { position: absolute; top: 22px; right: 20px; margin: 0; width: 22px; height: 22px; }
.tile.mq-sq .li-t { margin-top: auto; position: relative; z-index: 1; }
.tile.mq-sq .li-t b { display: block; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.01em; color: #fff; }
.tile.mq-sq .li-t small { display: block; margin-top: 6px; font-size: .92rem; line-height: 1.4; color: rgba(255,255,255,.88); }
.tile.mq-sq .t-num { display: inline-block; font-size: .95em; padding: 2px 12px; margin-bottom: 4px; border-radius: 12px; background: rgba(255,255,255,.22); font-weight: 800; }
.tile.mq-sq .t-deco { right: -14px; bottom: -18px; opacity: .16; }
.tile.mq-sq .t-deco svg { width: 120px; height: 120px; }
@media (max-width: 420px) { .tile.mq-sq { min-height: 200px; padding: 16px; } .tile.mq-sq .li-t b { font-size: 1.2rem; } .tile.mq-sq .li-t small { font-size: .82rem; } .tile.mq-sq .t-ic { width: 54px; height: 54px; } }

/* ===== Tariflar: kartochkalar ===== */
.tf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 10px; align-items: stretch; }
.tf-card { position: relative; display: flex; flex-direction: column; padding: 24px 22px 22px; border-radius: 22px; background: var(--surface, #fff); border: 1.5px solid var(--line); }
.tf-card.feat { border-color: var(--red); box-shadow: 0 22px 44px -28px rgba(227,10,23,.55); }
.tf-card.cur { border-color: var(--blue); }
.tf-tag { position: absolute; top: -13px; left: 24px; background: var(--red); color: #fff; font-weight: 800; font-size: .8rem; padding: 3px 12px; border-radius: 999px; }
.tf-card h3 { margin: 0 0 22px; font-size: 1.15rem; color: var(--title); }
.tf-price { display: flex; align-items: baseline; gap: 6px; }
.tf-price b { font-size: 2.4rem; line-height: 1; letter-spacing: -.02em; color: var(--title); font-variant-numeric: tabular-nums; }
.tf-price span { font-size: 1.1rem; font-weight: 700; color: var(--title); }
.tf-per { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.tf-save { margin: 6px 0 0; min-height: 1.2em; color: #15803D; font-weight: 700; font-size: .86rem; }
.tf-rows { list-style: none; margin: 18px 0 20px; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; flex: 1; }
.tf-rows li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tf-rows li span { display: grid; gap: 1px; } .tf-rows b { font-weight: 600; font-size: .95rem; color: var(--title); } .tf-rows small { color: var(--muted); font-size: .8rem; }
.tf-rows em { font-style: normal; font-weight: 800; font-size: 1rem; color: var(--title); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tf-rows em.no { color: var(--muted); font-weight: 600; }
.tf-inf { font-size: 1.35rem; line-height: 1; }
.tf-btn { display: block; width: 100%; text-align: center; padding: 14px; border-radius: 999px; border: 1.5px solid var(--red); background: transparent; color: var(--red); font: inherit; font-weight: 800; font-size: 1.02rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.tf-btn:hover { background: rgba(227,10,23,.06); }
.tf-btn.fill { background: var(--red); color: #fff; } .tf-btn.fill:hover { background: #C8091A; }
.tf-foot { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; margin: 6px 0 18px; }
.tf-foot svg { color: #16A34A; width: 18px; height: 18px; flex: none; }
@media (max-width: 860px) { .tf-grid { grid-template-columns: 1fr; gap: 22px; } .tf-card h3 { margin-bottom: 14px; } }
html[data-theme="dark"] .tf-card { background: var(--surface) !important; border-color: var(--line); }
html[data-theme="dark"] .tf-card.feat { border-color: var(--red); }
html[data-theme="dark"] .tf-save { color: #4ADE80; }
@media (min-width: 900px) {
  .tf-grid, .tf-foot { width: min(1060px, calc(100vw - 48px)); position: relative; left: 50%; transform: translateX(-50%); }
  .tf-foot { justify-content: flex-start; }
}
@media (min-width: 640px) and (max-width: 899px) { .tf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .tf-card { padding: 20px 14px 16px; } .tf-price b { font-size: 1.8rem; } .tf-rows small { display: none; } }
.tile.mq-sq .t-lab { display: inline-block; margin-bottom: 6px; padding: 3px 12px; border-radius: 12px; background: rgba(255,255,255,.22); color: #fff; font-weight: 700; font-size: .9rem; }

/* ===== O‘rganish: darajalar bo‘yicha «batareya» progress ===== */
.bat-wrap { margin-top: 18px; }
.bat-card { display: grid; gap: 16px; padding: 18px; }
.bat-row { display: grid; grid-template-columns: 42px 1fr; gap: 6px 12px; align-items: center; }
.bat-lv { grid-row: span 2; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--blue-grad); }
.bat-row:nth-child(odd) .bat-lv { background: var(--red-grad); }
.bat { display: flex; align-items: center; gap: 3px; }
.bat-body { position: relative; flex: 1; height: 30px; border-radius: 10px; border: 2.5px solid var(--title); padding: 3px; box-sizing: border-box; overflow: hidden; }
.bat-body i { display: block; height: 100%; min-width: 0; border-radius: 6px; background: linear-gradient(90deg, #E30A17, #F0343F); transition: width .6s ease; }
.bat-body i.mid { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.bat-body i.full { background: linear-gradient(90deg, #16A34A, #22C55E); }
.bat-body span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--title); }
.bat-cap { width: 5px; height: 12px; border-radius: 0 3px 3px 0; background: var(--title); }
.bat-parts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .8rem; color: var(--muted); }
.bat-parts a { color: var(--muted); text-decoration: none; } .bat-parts a:hover { color: var(--blue); } .bat-parts b { color: var(--title); }
.bat-parts .na { opacity: .7; }

/* ===== Bitta video-dars sahifasi ===== */
.vd-cov { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--deep-grad); box-shadow: 0 22px 44px -26px rgba(15,42,87,.7); }
.vd-cov img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(227,10,23,.92); color: #fff; transition: transform .15s; }
.vd-play svg { width: 30px; height: 30px; }
.vd-cov:hover .vd-play { transform: scale(1.08); }
.vd-cov .vl-dur { font-size: .85rem; right: 12px; bottom: 12px; }
.vd-cov .vl-ok { left: 12px; bottom: 12px; font-size: .8rem; }
.vd-meta { margin: 12px 2px 14px; color: var(--muted); font-size: .88rem; }
.vd-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.vd-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: filter .15s, transform .1s; }
.vd-btn:active { transform: scale(.98); }
.vd-btn.ghost { background: transparent; color: var(--title); border-color: var(--line); }
.vd-btn.ghost.off { opacity: .4; cursor: default; }
.vd-btn.ok { background: rgba(22,163,74,.12); color: #15803D; border-color: rgba(22,163,74,.45); }
.vd-btn.ok.on, .vd-btn.ok:hover { background: #4ADE80; background: linear-gradient(135deg, #5FD38D, #3CB371); color: #fff; border-color: transparent; }
.vd-btn.next { background: linear-gradient(135deg, #7FA6F0, #5B86E5); color: #fff; }
.vd-btn.next:hover, .vd-btn.ghost:not(.off):hover { filter: brightness(1.06); }
@media (max-width: 420px) { .vd-btn { flex: 1 1 auto; padding: 13px 16px; font-size: .92rem; } }
html[data-theme="dark"] .vd-btn.ok:not(.on) { color: #6EE7A0; }

/* ===== Kitoblar: ustun sarlavhalari kartochka ko‘rinishida ===== */
.kb-hcard { position: relative; overflow: hidden; padding: 20px 22px; border-radius: 26px; margin-bottom: 14px; color: #fff; background: var(--red-grad); box-shadow: 0 20px 40px -24px rgba(227,10,23,.75); }
.kb-hcard.blue { background: var(--blue-grad); box-shadow: 0 20px 40px -24px rgba(15,42,87,.75); }
.kb-hcard .t-lab { display: inline-block; padding: 3px 12px; border-radius: 12px; background: rgba(255,255,255,.22); font-weight: 700; font-size: .88rem; }
.kb-hcard h2 { margin: 8px 0 2px; font-size: 1.5rem; line-height: 1.15; color: #fff; }
.kb-hcard small { color: rgba(255,255,255,.88); font-size: .92rem; }
.kb-hcard .t-deco { position: absolute; right: -8px; bottom: -14px; opacity: .16; }
.kb-hcard .t-deco svg { width: 110px; height: 110px; }
html[data-theme="dark"] .kb-hcard h2 { color: #fff; }
.ch-num, .law-hero .ch-num, .const-hero .ch-num { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }

/* ===== Natijalar: huquqsertifikat.uz uslubi =====
 */
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #3DDC84; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 3px rgba(61,220,132,.28); animation: livep 1.8s infinite; }
@keyframes livep { 50% { box-shadow: 0 0 0 6px rgba(61,220,132,0); } }
.stat-card .st-sub { margin: 12px 0 0; font-size: .84rem; color: rgba(255,255,255,.85); text-align: center; }
.stat-card .st-sub b { color: #fff; }
