/* =========================================================
   Huquq Full — dizayn tizimi
   ========================================================= */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f0f2f9;
  --surface-3: #e7eaf4;
  --ink: #121831;
  --ink-2: #444d6e;
  --muted: #858ca6;
  --line: #e3e6f0;
  --primary: #3d4fd6;
  --primary-2: #5a6bf0;
  --primary-soft: #eaedff;
  --primary-ink: #ffffff;
  --gold: #e8a317;
  --gold-2: #f8c34a;
  --gold-soft: #fff5dc;
  --gold-ink: #8a5a00;
  --success: #15a05a;
  --success-soft: #e3f7ec;
  --danger: #e0454b;
  --danger-soft: #fde8e9;
  --warning: #d97a06;
  --warning-soft: #fff1de;
  --shadow-sm: 0 1px 2px rgba(18, 24, 49, .06);
  --shadow: 0 4px 18px rgba(18, 24, 49, .07);
  --shadow-lg: 0 18px 50px rgba(18, 24, 49, .16);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 264px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0e1c;
  --surface: #141933;
  --surface-2: #1b2140;
  --surface-3: #252c50;
  --ink: #eef0fa;
  --ink-2: #b4bad3;
  --muted: #7c84a3;
  --line: #262d4f;
  --primary: #7280ff;
  --primary-2: #8f9bff;
  --primary-soft: #232a57;
  --primary-ink: #0b0e1c;
  --gold: #f6b93b;
  --gold-2: #ffd36e;
  --gold-soft: #33290f;
  --gold-ink: #ffd36e;
  --success: #3ccf86;
  --success-soft: #133325;
  --danger: #ff6b70;
  --danger-soft: #3a1a20;
  --warning: #ffab45;
  --warning-soft: #3a2a12;
  --shadow-sm: none;
  --shadow: 0 4px 18px rgba(0, 0, 0, .35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
svg.i .i-duo { fill: currentColor; stroke: none; opacity: .16; transition: opacity .25s; }
/* Matn ichidagi ikonalar (emoji o'rnida) — matn o'lchamida, qatorga tekis */
svg.i { vertical-align: -.22em; }
.small svg.i, .xs svg.i, small svg.i, .chip svg.i, .badge svg.i, .toast svg.i, td svg.i, label svg.i, .law-tag svg.i, .muted svg.i { width: 1.2em; height: 1.2em; }
h1 svg.i, h2 svg.i, h3 svg.i, h4 svg.i { width: 1em; height: 1em; vertical-align: -.14em; }
.btn svg.i { width: 18px; height: 18px; }
.btn-sm svg.i { width: 16px; height: 16px; }
.big svg.i { width: 46px; height: 46px; stroke-width: 1.5; color: var(--primary); }
.topic-ic svg.i, .course-ic svg.i, .co-ic svg.i { width: 24px; height: 24px; }
.course-ic.big svg.i { width: 32px; height: 32px; }
.t-ic { display: inline-flex; }
.medal-gold, .medal-silver, .medal-bronze { display: inline-flex; }
.medal-gold { color: #d99a06; } .medal-silver { color: #8a94a8; } .medal-bronze { color: #c0703a; }
.medal-gold svg.i .i-duo, .medal-silver svg.i .i-duo, .medal-bronze svg.i .i-duo { opacity: .35; }
.streak-pill svg.i { width: 18px; height: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 22px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; font-weight: 800; font-size: 19px; }
.brand-mark svg.i { width: 22px; height: 22px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #7b5cff); color: #fff; font-size: 19px;
}
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px;
  color: var(--ink-2); font-weight: 600; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--primary-soft); color: var(--primary); }
.nav a .badge-dot { margin-left: auto; }
/* «Yana» — qo'shimcha bo'limlar (yopiladigan) */
.nav-more { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.nav-more summary { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-weight: 600; cursor: pointer; list-style: none; user-select: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: '▾'; margin-left: auto; font-size: 12px; transition: transform .2s; }
.nav-more[open] summary::after { transform: rotate(180deg); }
.nav-more summary:hover { background: var(--surface-2); color: var(--ink); }
.nav-more a { font-size: 14px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.user-chip .meta { min-width: 0; flex: 1; }
.user-chip .name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .role { font-size: 12px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 14px 32px; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent;
}
.topbar h1 { font-size: 20px; font-weight: 800; }
.topbar .sub { color: var(--muted); font-size: 13px; }
.topbar .spacer { flex: 1; }
.content { padding: 8px 32px 48px; max-width: 1240px; width: 100%; }
.topbar .mobile-brand { display: none; }
.bottom-nav { display: none; }

/* ---------- Primitives ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 20px;
}
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-h h3 { font-size: 16px; font-weight: 800; }
.card-h .link { font-size: 13px; font-weight: 700; }
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.ink2 { color: var(--ink-2); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 700; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 28px; }
.tnum { font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: transform .08s, background .15s, box-shadow .15s, opacity .15s;
  background: var(--surface-2); color: var(--ink);
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn-primary:hover { background: var(--primary-2); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #3d2700; }
.btn-gold:hover { filter: brightness(1.05); background: linear-gradient(135deg, var(--gold), var(--gold-2)); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; color: var(--ink-2);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.hint { font-size: 12px; color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2);
}
.chip.primary { background: var(--primary-soft); color: var(--primary); }
.chip.success { background: var(--success-soft); color: var(--success); }
.chip.danger { background: var(--danger-soft); color: var(--danger); }
.chip.warning { background: var(--warning-soft); color: var(--warning); }
.chip.gold { background: var(--gold-soft); color: var(--gold-ink); }

.coin-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 8px;
  border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 800;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); cursor: pointer;
}
.coin {
  width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffe28a, var(--gold) 70%); color: #6b4300;
  font-size: 12px; font-weight: 900; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15);
}
.coin.sm { width: 18px; height: 18px; font-size: 10px; }
.coin.lg { width: 44px; height: 44px; font-size: 20px; }
.xp-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.streak-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--warning-soft); color: var(--warning); font-weight: 800; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface-3); font-size: 20px; position: relative;
}
.avatar.lg { width: 84px; height: 84px; font-size: 42px; }
.avatar.md { width: 52px; height: 52px; font-size: 26px; }
.avatar.sm { width: 32px; height: 32px; font-size: 16px; }
.avatar.frame-gold { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--gold); }
.avatar.frame-violet { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px #8b5cf6; }
.avatar.frame-emerald { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px #10b981; }
.avatar.frame-fire { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px #f97316, 0 0 16px 2px rgba(249,115,22,.45); }

.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--primary); transition: width .5s ease; }
.progress.gold > span { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.progress.success > span { background: var(--success); }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 6px; }

.table-wrap { overflow-x: auto; margin: 0 -20px; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--surface-2); }

.tabs { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); gap: 2px; }
.tabs button { border: 0; background: transparent; height: 34px; padding: 0 14px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.tabs button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Dashboard ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 28px;
  background: linear-gradient(125deg, #2f3fc4 0%, #5b4bea 55%, #8b5cf6 100%); color: #fff;
}
.hero::after {
  content: "⚖"; position: absolute; right: -10px; bottom: -50px; font-size: 220px; opacity: .09; line-height: 1;
}
.hero h2 { font-size: 26px; font-weight: 800; }
.hero p { opacity: .85; margin-top: 6px; max-width: 520px; }
.hero .btn { background: #fff; color: #2f3fc4; }
.hero .btn.ghost { background: rgba(255,255,255,.14); color: #fff; }
.hero-stats { display: flex; gap: 26px; margin-top: 22px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-stats .v { font-size: 22px; font-weight: 800; }
.hero-stats .l { font-size: 12px; opacity: .75; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .l { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.stat .d { font-size: 12px; color: var(--muted); }
.stat-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; }
.stat-ic.p { background: var(--primary-soft); color: var(--primary); }
.stat-ic.g { background: var(--gold-soft); color: var(--gold-ink); }
.stat-ic.s { background: var(--success-soft); color: var(--success); }
.stat-ic.w { background: var(--warning-soft); color: var(--warning); }

.level-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--surface-3) 0); }
.level-ring > div { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 18px; }

.goal-days { display: flex; gap: 8px; }
.goal-days .d { flex: 1; text-align: center; }
.goal-days .dot { height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-size: 15px; }
.goal-days .dot.on { background: var(--warning-soft); }
.goal-days .dot.today { outline: 2px solid var(--warning); }
.goal-days .lab { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 600; }

.announce { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--primary-soft); color: var(--ink); }
.announce .ic { color: var(--primary); }

/* ---------- Test cards ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.search .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.search .input { padding-left: 40px; }
.topic-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.topic-chips button { border: 1px solid var(--line); background: var(--surface); height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.topic-chips button.active { background: var(--ink); border-color: var(--ink); color: var(--surface); }

.test-card { display: flex; flex-direction: column; gap: 14px; transition: transform .15s, box-shadow .15s, border-color .15s; cursor: pointer; }
.test-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.test-card .top { display: flex; align-items: flex-start; gap: 12px; }
.topic-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; flex: none; }
.test-card h4 { font-size: 16px; font-weight: 800; }
.test-card .meta { display: flex; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.test-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.test-card .meta .i { width: 15px; height: 15px; }
.test-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.best { font-size: 13px; font-weight: 700; }
.mock-card { background: linear-gradient(135deg, var(--gold-soft), var(--surface)); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }

/* ---------- Test runner ---------- */
.runner { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.runner-top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px;
  padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.runner-top .title { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.timer.warn { background: var(--danger-soft); color: var(--danger); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .65; } }
.runner-progress { height: 4px; background: var(--surface-3); }
.runner-progress span { display: block; height: 100%; background: var(--primary); transition: width .3s; }
.runner-body { flex: 1; align-content: start; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding: 28px 24px; max-width: 1180px; width: 100%; margin: 0 auto; }
.q-card { padding: 30px; align-self: start; }
.q-num { font-size: 13px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; }
.q-text { font-size: 20px; font-weight: 700; margin-top: 10px; line-height: 1.45; }
.options { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px;
  border-radius: 14px; border: 2px solid var(--line); background: var(--surface); cursor: pointer;
  font-size: 15.5px; font-weight: 600; transition: border-color .12s, background .12s, transform .08s;
}
.opt:hover:not(:disabled) { border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); background: var(--surface-2); }
.opt:active:not(:disabled) { transform: scale(.995); }
.opt .key { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface-2); font-weight: 800; color: var(--ink-2); }
.opt.selected { border-color: var(--primary); background: var(--primary-soft); }
.opt.selected .key { background: var(--primary); color: var(--primary-ink); }
.opt.hidden-opt { opacity: .28; text-decoration: line-through; pointer-events: none; }
.opt.correct { border-color: var(--success); background: var(--success-soft); }
.opt.correct .key { background: var(--success); color: #fff; }
.opt.wrong { border-color: var(--danger); background: var(--danger-soft); }
.opt.wrong .key { background: var(--danger); color: #fff; }
.q-actions { display: flex; align-items: center; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.q-actions .spacer { flex: 1; }
.powerups { display: flex; gap: 8px; flex-wrap: wrap; }
.pu { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 11px; border: 1px dashed color-mix(in srgb, var(--gold) 60%, var(--line)); background: var(--gold-soft); color: var(--gold-ink); font-weight: 800; font-size: 13px; cursor: pointer; }
.pu:disabled { opacity: .45; cursor: not-allowed; }
.pu .cnt { background: var(--surface); border-radius: 6px; padding: 0 6px; }
.navigator { position: sticky; top: 90px; align-self: start; }
.nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.nav-grid button { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; font-size: 13px; cursor: pointer; color: var(--ink-2); position: relative; }
.nav-grid button.answered { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.nav-grid button.current { outline: 2px solid var(--primary); outline-offset: 1px; }
.nav-grid button.flagged::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }
.legend { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.9; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
kbd { font-family: inherit; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); }

/* ---------- Result ---------- */
.result-hero { text-align: center; padding: 36px 24px; }
.score-ring { --p: 0; --c: var(--primary); width: 170px; height: 170px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-3) 0); }
.score-ring > div { width: 142px; height: 142px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; align-content: center; }
.score-ring .pc { font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.score-ring .lb { font-size: 13px; color: var(--muted); font-weight: 600; }
.reward-row { display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.reward { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: var(--surface-2); font-weight: 800; }
.reward.gold { background: var(--gold-soft); color: var(--gold-ink); }
.reward.xp { background: var(--primary-soft); color: var(--primary); }
.review-item { border-left: 4px solid var(--line); }
.review-item.ok { border-left-color: var(--success); }
.review-item.bad { border-left-color: var(--danger); }
.review-item.skip { border-left-color: var(--muted); }
.explain { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; color: var(--ink-2); }
.explain b { color: var(--ink); }
.review-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.review-opts .opt { cursor: default; padding: 10px 12px; font-size: 14px; }
.review-opts .opt .key { width: 28px; height: 28px; }

/* ---------- Leaderboard ---------- */
.podium { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: 14px; margin-bottom: 18px; }
.pod { min-width: 0; text-align: center; padding: 20px 12px 0; border-radius: 18px 18px 0 0; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; }
.pod .avatar { margin: 0 auto 8px; }
.pod .nm { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod .pts { color: var(--muted); font-size: 13px; font-weight: 700; }
.pod .block { margin-top: 14px; border-radius: 14px 14px 0 0; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #fff; }
.pod.p1 .block { height: 120px; background: linear-gradient(180deg, #f6c445, #e39b0b); }
.pod.p2 .block { height: 90px; background: linear-gradient(180deg, #b8c1d6, #8b95ad); }
.pod.p3 .block { height: 70px; background: linear-gradient(180deg, #e2a16f, #b86b35); }
.lb-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; }
.lb-row:hover { background: var(--surface-2); }
.lb-row.me { background: var(--primary-soft); position: sticky; bottom: 0; }
.lb-row .rk { width: 32px; text-align: center; font-weight: 800; color: var(--muted); }
.lb-row .nm { flex: 1; min-width: 0; }
.lb-row .nm b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row .pts { font-weight: 800; }

/* ---------- Shop ---------- */
.shop-item { display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; }
.shop-item .art { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; font-size: 42px; background: var(--surface-2); }
.shop-item h4 { font-size: 15px; font-weight: 800; }
.shop-item .desc { font-size: 13px; color: var(--muted); min-height: 38px; }
.price { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.shop-balance { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 20px; background: linear-gradient(135deg, #2b2410, #4a3a10); color: #fff; }
:root:not([data-theme="dark"]) .shop-balance { background: linear-gradient(135deg, #fff1cc, #ffe3a1); color: #4a3200; }
.shop-balance .v { font-size: 30px; font-weight: 800; }

/* ---------- Achievements ---------- */
.ach { display: flex; gap: 14px; align-items: center; }
.ach .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--gold-soft); flex: none; }
.ach.locked .ic { background: var(--surface-2); filter: grayscale(1); opacity: .5; }
.ach.locked h4 { color: var(--muted); }
.ach h4 { font-size: 15px; font-weight: 800; }

/* ---------- Bar list (single-series) ---------- */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 48px; gap: 12px; align-items: center; font-size: 14px; }
.bar-row .lab { font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .track { height: 10px; border-radius: 0 4px 4px 0; background: var(--surface-2); position: relative; }
.bar-row .fill { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--primary); }
.bar-row .val { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.bar-row[data-tip] { cursor: default; }

/* ---------- Admin editor ---------- */
.q-edit { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface); }
.q-edit + .q-edit { margin-top: 12px; }
.opt-edit { display: grid; grid-template-columns: 36px 1fr; gap: 8px; align-items: center; }
.opt-edit input[type="radio"] { width: 20px; height: 20px; accent-color: var(--success); justify-self: center; cursor: pointer; }
.toggle { position: relative; width: 42px; height: 24px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); cursor: pointer; transition: background .15s; }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: var(--shadow-sm); }
.toggle input:checked + span { background: var(--success); }
.toggle input:checked + span::after { transform: translateX(18px); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art {
  position: relative; overflow: hidden; padding: 48px; color: #fff; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at -10% -10%, #6d5cff 0%, transparent 60%), linear-gradient(150deg, #1d2580, #2f3fc4 45%, #5b3fd6);
}
.auth-art h1 { font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; max-width: 520px; margin-top: auto; }
.auth-art p { opacity: .82; font-size: 17px; max-width: 460px; margin-top: 16px; }
.auth-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; max-width: 560px; }
.auth-feats div { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.1); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; }
.auth-feats b { display: block; font-size: 22px; margin-bottom: 4px; }
.auth-art .bigicon { position: absolute; right: -40px; top: 60px; font-size: 300px; opacity: .08; line-height: 1; }
.auth-form-wrap { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.auth-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.auth-form h2 { font-size: 28px; font-weight: 800; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-switch button { padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; font-weight: 700; }
.role-switch button.active { border-color: var(--primary); background: var(--primary-soft); }
.role-switch .e { font-size: 22px; display: block; margin-bottom: 4px; }
.demo-box { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--ink-2); }
.demo-box code { font-weight: 800; color: var(--ink); }

/* ---------- Modal & toast ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(8, 10, 25, .5); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 26px; animation: pop .2s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { max-width: 720px; }
.modal h3 { font-size: 20px; font-weight: 800; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } }
#toasts { position: fixed; z-index: 200; right: 124px; bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--surface); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); animation: pop .2s; max-width: 360px; }
.toast.gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #3d2700; }

.celebrate { text-align: center; }
.celebrate .big { font-size: 64px; animation: bounce .8s ease; }
@keyframes bounce { 0% { transform: scale(.3); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

.fade-in { animation: fade .25s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr); }
  .runner-body { grid-template-columns: 1fr; }
  .navigator { position: static; order: -1; }
  .nav-grid { grid-template-columns: repeat(10, 1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar .mobile-brand { display: flex; }
  .topbar { padding: 12px 16px; }
  .topbar .titles { display: none; }
  .content { padding: 8px 16px 96px; }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 700; color: var(--muted); border-radius: 10px; }
  .bottom-nav a.active { color: var(--primary); }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 20px; min-height: 0; }
  .auth-art h1 { font-size: 30px; margin-top: 24px; }
  .auth-feats { display: none; }
  .page-title-m { display: block !important; }
}
@media (max-width: 640px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .g-4.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 22px; }
  .hero h2 { font-size: 22px; }
  .q-card { padding: 20px; }
  .q-text { font-size: 17px; }
  .runner-top { padding: 10px 16px; }
  .runner-body { padding: 16px; }
  .nav-grid { grid-template-columns: repeat(6, 1fr); }
  .bar-row { grid-template-columns: 110px 1fr 42px; }
  .stat .v { font-size: 24px; }
  .xp-pill, .streak-pill { display: none; }
  .podium { gap: 8px; }
  .pod .avatar.md { width: 42px; height: 42px; font-size: 22px; }
  .hide-sm { display: none !important; }
  #toasts { left: 16px; right: 92px; bottom: 84px; }
}
.page-title-m { display: none; margin-bottom: 14px; }

/* ---------- Mehmonlar uchun bosh sahifa ---------- */
.landing main { display: block; }
.land-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.land-wrap.narrow { max-width: 780px; }
.pub-nav { display: flex; gap: 6px; margin-right: auto; margin-left: 18px; }
.pub-nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.pub-nav a:hover, .pub-nav a.on { background: var(--surface-2); color: var(--ink); }
.land-hero { color: #fff; padding: 72px 0 64px; background: radial-gradient(900px 500px at 85% -10%, rgba(255,255,255,.18), transparent 60%), linear-gradient(140deg, #1d2580, #3d4fd6 50%, #7b5cff); position: relative; overflow: hidden; }
.land-hero::after { content: "⚖"; position: absolute; right: 4%; bottom: -70px; font-size: 320px; opacity: .07; line-height: 1; }
.land-kicker { display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.15); font-weight: 700; font-size: 13px; }
.land-hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; max-width: 760px; margin-top: 18px; }
.land-hero h1 span { color: #ffd36e; }
.land-hero p { max-width: 640px; margin-top: 16px; font-size: 17px; opacity: .9; }
.land-cta { background: #fff; color: #2f3fc4; }
.land-cta:hover { background: #f1f2ff; }
.land-ghost { background: rgba(255,255,255,.14); color: #fff; }
.land-ghost:hover { background: rgba(255,255,255,.24); }
.land-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 40px; max-width: 720px; position: relative; z-index: 1; }
.land-stats div { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.12); }
.land-stats b { display: block; font-size: 28px; font-weight: 800; }
.land-stats span { font-size: 13px; opacity: .8; }
.land-sec { padding: 64px 0; }
.land-sec.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.land-sec h2, .land-final h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; text-align: center; margin-bottom: 30px; letter-spacing: -.02em; }
.land-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.land-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.land-card h3 { font-size: 17px; font-weight: 800; }
.land-card p { color: var(--ink-2); font-size: 14px; }
.land-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--primary-soft); }
.land-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.land-topic { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); transition: transform .15s, box-shadow .15s; }
.land-topic:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.land-topic span { font-size: 28px; }
.land-topic small { color: var(--muted); }
.land-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.land-steps > div { padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.land-steps b { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 18px; margin-bottom: 12px; }
.land-steps h3 { font-size: 17px; font-weight: 800; }
.land-steps p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.land-people { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.land-person { width: 190px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.land-person img, .land-ini { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--primary-soft); }
.land-ini { display: grid; place-items: center; font-size: 36px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #5b4bea, #8b5cf6); }
.land-person small { color: var(--muted); }
.land-faq { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: var(--surface); }
.land-faq + .land-faq { margin-top: 10px; }
.land-faq summary { cursor: pointer; font-weight: 700; }
.land-faq p { margin-top: 8px; color: var(--ink-2); }
.land-final { padding: 56px 0; text-align: center; color: #fff; background: linear-gradient(135deg, #3d4fd6, #7b5cff); }
.land-final h2 { margin-bottom: 8px; }
.land-final p { opacity: .9; margin-bottom: 22px; }
.pub-foot { max-width: 1120px; margin: 0 auto; padding: 28px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.pub-foot a { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.pub-h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.pub-h2 { font-size: 21px; font-weight: 800; margin-bottom: 14px; }
.test-cat { min-height: 170px; }
.serp { padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid #dadce0; font-family: Arial, sans-serif; }
.serp-url { font-size: 13px; color: #202124; }
.serp-title { font-size: 20px; color: #1a0dab; margin: 4px 0 3px; line-height: 1.3; }
.serp-desc { font-size: 14px; color: #4d5156; line-height: 1.5; }
@media (max-width: 900px) {
  .land-grid, .land-steps { grid-template-columns: 1fr 1fr; }
  .land-topics { grid-template-columns: 1fr 1fr; }
  .pub-nav { display: none; }
}
@media (max-width: 640px) {
  .land-hero { padding: 44px 0 40px; }
  .land-grid, .land-steps { grid-template-columns: 1fr; }
  .land-stats { grid-template-columns: 1fr 1fr; }
  .land-sec { padding: 44px 0; }
  .land-person { width: 140px; }
}

/* ---------- Bilimlar bazasi ---------- */
.kb-wrap { max-width: 1120px; }
.kb-hero .pub-h1 { margin-bottom: 6px; }
.kb-search { position: relative; margin-top: 16px; }
.kb-search .i { left: 15px; width: 20px; height: 20px; }
.kb-search .input { padding-left: 42px; height: 50px; font-size: 16px; }
.kb-results { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; max-width: 720px; }
.kb-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.kb-crumbs a { color: var(--ink-2); font-weight: 600; }
.kb-article { max-width: 760px; }
.kb-meta { color: var(--muted); font-size: 14px; margin: 6px 0 24px; }
.md { font-size: 17px; line-height: 1.75; color: var(--ink); }
.md h2 { font-size: 24px; font-weight: 800; margin: 30px 0 10px; letter-spacing: -.01em; }
.md h3 { font-size: 19px; font-weight: 800; margin: 22px 0 8px; }
.md p { margin: 0 0 14px; }
.md ul, .md ol { margin: 0 0 16px; padding-left: 26px; }
.md li { margin: 4px 0; }
.md a { text-decoration: underline; }
.md-note { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; background: var(--gold-soft); font-size: 16px; }
.md-note b:first-child { display: block; margin-bottom: 4px; font-size: 14px; }
.md-table { overflow-x: auto; margin: 16px 0; }
.md-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.md-table th { background: var(--surface-2); font-weight: 800; }
.kb-qlist { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.kb-qlink { display: block; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 15px; }
.kb-qlink:hover { border-color: var(--primary); background: var(--primary-soft); }
.kb-art { color: var(--ink); transition: transform .15s, box-shadow .15s; }
.kb-art:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kb-check, .kb-question { padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 12px; max-width: 760px; }
.kb-opts { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.kb-opts li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); }
.kb-opts.big li { font-size: 17px; padding: 14px 16px; }
.kb-opts span { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); font-weight: 800; flex: none; }
.kb-check details summary, .kb-reveal summary { cursor: pointer; font-weight: 800; color: var(--primary); padding: 6px 0; }
.kb-reveal summary { display: inline-flex; padding: 12px 20px; border-radius: 12px; background: var(--primary); color: #fff; list-style: none; }
.kb-reveal summary::-webkit-details-marker { display: none; }
.kb-reveal[open] summary { background: var(--surface-2); color: var(--ink-2); }
.kb-ans { margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: var(--success-soft); }
.kb-artlink { display: block; padding: 14px 18px; border-radius: 14px; background: var(--primary-soft); color: var(--ink); max-width: 760px; margin-top: 12px; }
.kb-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 22px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #3d4fd6, #7b5cff); max-width: 760px; }
.kb-cta .btn { background: #fff; color: #2f3fc4; }

/* ---------- BMBA dasturi ---------- */
.prog-code { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 24px; padding: 0 7px; border-radius: 8px; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--primary); background: var(--primary-soft); flex: none; }
.land-sub { text-align: center; max-width: 720px; margin: -6px auto 22px; color: var(--muted); }
.prog-sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.prog-sec-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: inherit; transition: transform .15s, box-shadow .15s; }
.prog-sec-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -16px rgba(30, 40, 90, .35); }
.prog-sec-card small { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }
.prog-sec-card b { font-size: 16px; line-height: 1.3; }
.prog-sec-ic { font-size: 28px; margin-bottom: 4px; }
.prog-books { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.prog-books span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.pub-h3 { font-size: 17px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prog-sec-h { padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.prog-format { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin-top: 18px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); max-width: 860px; }
.prog-format-main { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 10px 16px; border-radius: 14px; background: var(--primary-soft); }
.prog-format-main b { font-size: 30px; line-height: 1; color: var(--primary); }
.prog-format-main span { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.prog-format-list { flex: 1; min-width: 240px; display: flex; flex-direction: column; justify-content: center; gap: 6px; font-size: 14px; }
.prog-sec { scroll-margin-top: 90px; }
.prog-topic { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-top: 10px; max-width: 860px; }
.prog-topic-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prog-topic-h h3 { margin: 0; font-size: 16.5px; flex: 1; min-width: 180px; }
.prog-topic p { margin: 8px 0 0; }
.prog-laws { margin-top: 8px; font-size: 13px; color: var(--ink2, inherit); line-height: 1.6; }
.prog-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 13.5px; font-weight: 600; }
.prog-books-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; max-width: 860px; }
.prog-book { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.prog-book > b { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: #fff; background: linear-gradient(135deg, #3d4fd6, #7b5cff); }
.prog-law-list { max-width: 860px; padding-left: 22px; line-height: 1.9; font-size: 14.5px; }
.prog-edit-sec { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 16px 0 6px; }
.prog-edit-sec:first-child { margin-top: 0; }
.prog-edit-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prog-edit-row:last-child { border-bottom: 0; }
.xs-input { height: 36px; font-size: 13px; }
.grade-pick { display: flex; gap: 4px; }
.grade-pick label { cursor: pointer; }
.grade-pick input { display: none; }
.grade-pick span { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 8px; font-size: 13px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); }
.grade-pick input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.q-meta-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 700px) { .q-meta-edit { grid-template-columns: 1fr; } }
.q-source { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Milliy sertifikat: savol turlari va sahifa ---------- */
.q-context { margin: 14px 0 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border-left: 4px solid var(--primary); line-height: 1.6; white-space: pre-line; }
.q-context .xs { color: var(--primary); margin-bottom: 4px; }
.open-ans { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.open-ans .input { font-size: 18px; height: 54px; }
.open-ans .input.ok { border-color: var(--success); background: rgba(21, 160, 90, .06); }
.open-ans .input.bad { border-color: var(--danger); background: rgba(224, 69, 75, .06); }
.q-type { width: fit-content; }
.q-ctx-edit summary { cursor: pointer; padding: 4px 0; }
.cert-hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 32px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .18), transparent 40%), linear-gradient(135deg, #312e81, #4f46e5 55%, #7c3aed); }
.cert-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 38px); margin: 12px 0 8px; line-height: 1.15; }
.cert-hero p { opacity: .92; max-width: 640px; }
.cert-count { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 150px; padding: 18px 22px; border-radius: 20px; background: rgba(255, 255, 255, .14); text-align: center; }
.cert-count b { font-size: 52px; line-height: 1; }
.cert-count span { font-weight: 700; margin-top: 4px; }
.cert-count small { opacity: .85; margin-top: 6px; font-size: 12.5px; }
.cert-format { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.cert-format div { display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: 12px 16px; border-radius: 14px; background: var(--primary-soft); }
.cert-format b { font-size: 28px; color: var(--primary); line-height: 1; }
.cert-format span { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.cert-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cert-type { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.cert-type b { display: block; margin: 8px 0 4px; }
.cert-type p { margin: 0; font-size: 14px; color: var(--ink2, inherit); line-height: 1.55; }
.cert-grade, .cert-badge { display: inline-grid; place-items: center; font-weight: 900; border-radius: 10px; color: #fff; }
.cert-grade { min-width: 40px; height: 30px; padding: 0 8px; }
.cert-badge { width: 72px; height: 72px; font-size: 28px; border-radius: 20px; flex: none; }
.g-Ap { background: linear-gradient(135deg, #15a05a, #0d7a43); } .g-A { background: #15a05a; }
.g-Bp { background: #2563eb; } .g-B { background: #3b82f6; }
.g-Cp { background: #d97a06; } .g-C { background: #f59e0b; } .g-none { background: #94a3b8; }
.cert-est { border: 2px solid var(--primary-soft); }
.cert-banner { display: flex; align-items: center; gap: 14px; color: #fff; border: 0; background: linear-gradient(135deg, #4338ca, #7c3aed); }
.cert-banner:hover { color: #fff; filter: brightness(1.05); }
.cert-banner .small { opacity: .9; }
.cert-banner-n { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 16px; background: rgba(255, 255, 255, .16); flex: none; }
.cert-banner-n b { font-size: 22px; line-height: 1; } .cert-banner-n small { font-size: 11px; opacity: .85; }
.cert-banner-go { font-size: 22px; opacity: .8; }
@media (max-width: 640px) { .cert-hero { padding: 22px; } .cert-count { width: 100%; } }

/* ---------- Qo'llab-quvvatlash: nur sochadigan moviy yurakcha ---------- */
@keyframes heartBreath { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(.98); } 36% { transform: scale(1.06); } 50% { transform: scale(1); } }
@keyframes heartGlow { 0%, 100% { filter: drop-shadow(0 0 3px rgba(56, 189, 248, .55)) drop-shadow(0 0 8px rgba(37, 99, 235, .25)); } 50% { filter: drop-shadow(0 0 7px rgba(56, 189, 248, .9)) drop-shadow(0 0 16px rgba(37, 99, 235, .45)); } }
@keyframes heartFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes heartFly { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); opacity: 0; } }
@keyframes heartPop { 0% { transform: scale(1); } 40% { transform: scale(.86); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }
.don-nav { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-right: 4px; transition: background .2s; }
.don-nav:hover, .don-nav.on { background: rgba(56, 189, 248, .12); }
.don-nav svg { width: 24px; height: 24px; animation: heartBreath 2.8s ease-in-out infinite, heartGlow 2.8s ease-in-out infinite; }
.don-ttl svg { width: 20px; height: 20px; vertical-align: -4px; animation: heartGlow 2.8s ease-in-out infinite; }
.don-wrap { padding-top: 24px; padding-bottom: 48px; max-width: 980px; }
.don-hero { text-align: center; padding: 20px 0 8px; }
.don-big { position: relative; width: 150px; height: 150px; border: 0; background: radial-gradient(circle, rgba(56, 189, 248, .18), transparent 65%); border-radius: 50%; cursor: pointer; display: inline-grid; place-items: center; animation: heartFloat 4s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.don-big-svg { width: 104px; height: 104px; animation: heartBreath 2.8s ease-in-out infinite, heartGlow 2.8s ease-in-out infinite; transition: transform .2s; }
.don-big:hover .don-big-svg { transform: scale(1.06); }
.don-big.pop .don-big-svg { animation: heartPop .45s ease, heartGlow 2.8s ease-in-out infinite; }
.don-big:focus-visible { outline: 3px solid #38bdf8; outline-offset: 4px; }
.don-burst { position: absolute; inset: 0; pointer-events: none; }
.don-burst i { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; animation: heartFly 1.05s ease-out forwards; }
.don-burst svg { width: 100%; height: 100%; filter: drop-shadow(0 0 4px rgba(56, 189, 248, .8)); }
.don-count { margin-top: 6px; font-size: 14px; }
.don-count b { font-size: 18px; color: #0284c7; }
.don-hero h1 { margin-top: 14px; }
.don-lead { max-width: 640px; margin: 8px auto 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.don-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; align-items: start; }
.don-card-wrap { display: flex; flex-direction: column; gap: 12px; }
.don-card { position: relative; overflow: hidden; aspect-ratio: 1.586; border-radius: 20px; padding: 22px 24px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(circle at 85% 15%, rgba(125, 211, 252, .45), transparent 45%), linear-gradient(135deg, #0c4a6e, #1d4ed8 60%, #0ea5e9); box-shadow: 0 24px 48px -24px rgba(29, 78, 216, .7); }
.don-card::after { content: ''; position: absolute; inset: -40% -20%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .16) 50%, transparent 60%); transform: translateX(-60%); transition: transform 1.2s; }
.don-card:hover::after { transform: translateX(60%); }
.don-chip { width: 44px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #fde68a, #d4a017); opacity: .9; }
.don-brand { font-weight: 900; letter-spacing: .12em; font-size: 18px; opacity: .95; }
.don-num { font-size: clamp(19px, 3.2vw, 25px); letter-spacing: .08em; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.don-holder { font-size: 13px; letter-spacing: .1em; opacity: .85; }
.don-mini { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(186, 230, 253, .9)); }
.don-copy { background: linear-gradient(135deg, #38bdf8, #2563eb); color: #fff; border: 0; justify-content: center; }
.don-copy:hover { color: #fff; filter: brightness(1.06); }
.don-copy.done { background: linear-gradient(135deg, #34d399, #059669); }
.don-goal { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.don-bar { height: 12px; border-radius: 999px; background: var(--surface-2); margin: 10px 0 6px; overflow: hidden; }
.don-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7dd3fc, #38bdf8, #2563eb); background-size: 200px 100%; animation: shimmer 2.4s linear infinite; }
.don-uses { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; font-size: 14px; }
.don-uses div { display: flex; gap: 10px; align-items: center; }
.don-uses span { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(56, 189, 248, .12); }
.don-thanks { margin-top: 32px; text-align: center; }
.don-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.don-names span { padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .3); }
.don-note { text-align: center; font-size: 13px; color: var(--muted); max-width: 620px; margin: 28px auto 0; }
@media (max-width: 760px) { .don-grid { grid-template-columns: 1fr; } .don-big { width: 128px; height: 128px; } .don-big-svg { width: 88px; height: 88px; } }
@media (prefers-reduced-motion: reduce) { .don-nav svg, .don-big, .don-big-svg, .don-ttl svg, .don-bar span { animation: none !important; } }

/* ---------- Telegram kanal ---------- */
.tg-nav { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 12px; color: #229ED9; font-weight: 700; font-size: 14px; background: rgba(34, 158, 217, .1); margin-right: 4px; transition: background .15s; }
.tg-nav:hover { background: rgba(34, 158, 217, .18); }
.tg-btn { background: #229ED9; color: #fff; border: 0; display: inline-flex; align-items: center; gap: 8px; }
.tg-btn:hover { background: #1c8cc2; color: #fff; }
.tg-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: rgba(34, 158, 217, .08); border: 1px solid rgba(34, 158, 217, .25); max-width: 760px; }
.tg-ic { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #229ED9; }
.tg-ic svg { width: 22px; height: 22px; }
.tg-txt { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.tg-txt span { font-size: 13.5px; color: var(--muted); }
.tg-hero { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #2AABEE, #1c7fb8); box-shadow: 0 20px 40px -20px rgba(28, 127, 184, .6); }
.tg-hero h2 { color: #fff; margin: 0 0 6px; text-align: left; }
.tg-hero p { opacity: .92; margin: 0; }
.tg-hero-ic { width: 72px; height: 72px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.tg-hero-ic svg { width: 38px; height: 38px; }
.tg-hero .tg-btn { background: #fff; color: #1c7fb8; font-size: 17px; }
.tg-hero .tg-btn:hover { background: #eef8fd; color: #1c7fb8; }
.tg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tg-chips span { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.tg-card { background: linear-gradient(135deg, #2AABEE, #1c7fb8); color: #fff; border: 0; }
.tg-card-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.tg-card-ic svg { width: 22px; height: 22px; }
.stat-mini { padding: 14px; border-radius: 14px; background: var(--surface-2, rgba(127, 127, 127, .08)); display: flex; flex-direction: column; gap: 2px; }
.stat-mini b { font-size: 24px; }
.stat-mini span { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .tg-hero { padding: 22px; } .tg-hero .tg-btn { width: 100%; justify-content: center; } }
.md-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); align-items: center; }
.md-toolbar .spacer { flex: 1; }
.md-tabs { display: none; }
.md-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.md-input { border: 0; border-radius: 0; min-height: 480px; resize: vertical; font-size: 15px; line-height: 1.7; padding: 16px; border-right: 1px solid var(--line); }
.md-input:focus { box-shadow: none; }
.md-preview { padding: 16px 20px; overflow: auto; max-height: 75vh; background: var(--bg); }
.md-preview .md { font-size: 15px; }
@media (max-width: 900px) {
  .md-tabs { display: inline-flex; }
  .md-split { grid-template-columns: 1fr; }
  .md-split .md-preview { display: none; }
  .md-split.show-preview .md-preview { display: block; }
  .md-split.show-preview .md-input { display: none; }
  .md { font-size: 16px; }
}

/* ---------- Kirish / xavfsizlik ---------- */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 6px; width: 34px; height: 32px; border: 0; background: transparent; cursor: pointer; font-size: 16px; border-radius: 8px; }
.pw-eye:hover { background: var(--surface-2); }
.pw-meter { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: -6px; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .25s, background .25s; background: var(--danger); }
.pw-meter[data-s="2"] span { background: var(--warning); }
.pw-meter[data-s="3"] span, .pw-meter[data-s="4"] span { background: var(--success); }
.input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.fe:empty { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); cursor: pointer; line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.code-input { font-size: 26px; letter-spacing: .5em; text-align: center; font-weight: 800; height: 58px; }
.sec-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.reg-opt { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.reg-opt input { accent-color: var(--primary); }
.reg-opt.on { border-color: var(--primary); background: var(--primary-soft); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; vertical-align: middle; }
.invite-box { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.invite-box .btn { background: rgba(255,255,255,.18); color: #fff; }
.invite-code { font-size: 20px; letter-spacing: .12em; padding: 4px 10px; border-radius: 10px; background: rgba(255,255,255,.18); font-family: ui-monospace, Consolas, monospace; }

/* ---------- Huquqbek — suzib turuvchi yordamchi ---------- */
.asst { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.asst > * { pointer-events: auto; }
.asst[hidden] { display: none; }
.asst-btn { width: 84px; height: 84px; border: 0; padding: 0; background: transparent; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; }
.asst-btn .owl { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 16px rgba(61, 79, 214, .28)); }
.owl-body { animation: asst-float 3.2s ease-in-out infinite; transform-box: fill-box; }
.owl-shadow { fill: rgba(18, 24, 49, .18); animation: asst-shadow 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.owl .lids { transform-box: fill-box; transform-origin: top; transform: scaleY(0); animation: asst-blink 4.6s infinite; }
.owl .pupils { animation: asst-look 7s ease-in-out infinite; }
.owl .wing { transform-box: fill-box; }
.owl .wr { transform-origin: 10% 10%; }
.owl .wl { transform-origin: 90% 10%; }
.owl .cap { transform-box: fill-box; transform-origin: center bottom; }
.asst-btn:hover .wr, .asst-btn:focus-visible .wr { animation: asst-wave .9s ease-in-out 2; }
.asst-btn:hover .cap { animation: asst-tip 1s ease-in-out; }
.asst-btn.hop .owl-body { animation: asst-hop .7s cubic-bezier(.3, 1.6, .5, 1), asst-float 3.2s ease-in-out .7s infinite; }
.asst.open .asst-btn .owl-body { animation-duration: 1.8s; }
.asst-badge { position: absolute; top: 4px; right: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); animation: asst-pulse 2s infinite; }
.asst-badge[hidden] { display: none; }
@keyframes asst-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes asst-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.75); opacity: .55; } }
@keyframes asst-blink { 0%, 90%, 100% { transform: scaleY(0); } 93%, 96% { transform: scaleY(1); } }
@keyframes asst-look { 0%, 40%, 100% { transform: translateX(0); } 50%, 60% { transform: translateX(2.5px); } 75%, 85% { transform: translateX(-2.5px); } }
@keyframes asst-wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-35deg); } 75% { transform: rotate(-15deg); } }
@keyframes asst-tip { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-8deg); } }
@keyframes asst-hop { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-22px) scale(1.06, .96); } 70% { transform: translateY(0) scale(1.04, .94); } 100% { transform: translateY(0) scale(1); } }
@keyframes asst-pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 3px rgba(224, 69, 75, .5); } 50% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 9px rgba(224, 69, 75, 0); } }
.asst-bubble { max-width: 290px; padding: 12px 34px 12px 14px; border-radius: 16px 16px 4px 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: 14px; cursor: pointer; position: relative; animation: pop .25s cubic-bezier(.2, .9, .3, 1.3); margin-right: 30px; }
.asst-bubble[hidden] { display: none; }
.asst-bubble:hover { border-color: var(--primary); }
.asst-bt { display: flex; gap: 8px; align-items: flex-start; }
.asst-bx { position: absolute; top: 6px; right: 8px; border: 0; background: transparent; font-size: 18px; color: var(--muted); cursor: pointer; line-height: 1; }
.asst-panel { width: 380px; max-width: calc(100vw - 32px); height: min(560px, calc(100vh - 140px)); display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); animation: asst-open .25s cubic-bezier(.2, .9, .3, 1.15); transform-origin: bottom right; }
.asst-panel[hidden] { display: none; }
@keyframes asst-open { from { opacity: 0; transform: scale(.85) translateY(20px); } }
.asst-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: #fff; background: linear-gradient(135deg, #2f3fc4, #6d5cff); }
.asst-mini { width: 44px; height: 44px; flex: none; }
.asst-mini .owl { width: 100%; height: 100%; }
.asst-mini .owl-shadow { display: none; }
.asst-close { border: 0; background: rgba(255,255,255,.16); color: #fff; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.asst-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.asst-tabs button { flex: 1; border: 0; background: transparent; padding: 8px 4px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.asst-tabs button.active { background: var(--primary-soft); color: var(--primary); }
.asst-cbadge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; padding: 0 5px; }
.asst-cbadge[hidden] { display: none; }
.asst-body { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.asst-hi { font-weight: 700; }
.asst-tip { display: flex; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.asst-ti { font-size: 22px; line-height: 1; }
.asst-fact { padding: 12px; border-radius: 14px; background: var(--gold-soft); }
.asst-q { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.asst-q + .asst-q { margin-top: 8px; }
.asst-q summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.asst-q[open] summary { margin-bottom: 6px; color: var(--primary); }
.asst-chat { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; word-wrap: break-word; }
.msg.me { align-self: flex-end; background: var(--primary); color: var(--primary-ink); border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg-t { font-size: 11px; opacity: .65; margin-top: 3px; text-align: right; }
.asst-send { display: flex; gap: 8px; align-items: flex-end; }
.asst-send .textarea { min-height: 44px; height: 44px; max-height: 130px; resize: none; padding: 11px 14px; line-height: 20px; scrollbar-width: none; }
.asst-send .textarea::-webkit-scrollbar { display: none; }
.asst-send .btn { height: 44px; width: 48px; padding: 0; flex: none; }
/* O'qituvchi: murojaatlar */
.support-wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - 150px); min-height: 460px; overflow: hidden; }
.support-list { border-right: 1px solid var(--line); overflow: auto; }
.support-lh { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.sthread { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.sthread:hover { background: var(--surface-2); }
.sthread.on { background: var(--primary-soft); }
.sthread .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sthread .nm span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.support-chat { display: flex; flex-direction: column; padding: 0 16px 16px; gap: 12px; min-width: 0; }
.support-ch { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.support-back { display: none; }
.support-msgs { padding: 4px 2px; }
@media (max-width: 900px) {
  .asst { right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); }
  .asst-btn { width: 70px; height: 70px; }
  .asst.open .asst-btn { display: none; }
  .asst-panel { position: fixed; left: 8px; right: 8px; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; max-width: none; height: min(70vh, 560px); }
  .support-wrap { grid-template-columns: 1fr; height: calc(100vh - 210px); }
  .support-chat { display: none; }
  .support-wrap.chat-open .support-list { display: none; }
  .support-wrap.chat-open .support-chat { display: flex; }
  .support-back { display: inline-grid; }
}
@media (prefers-reduced-motion: reduce) {
  .owl-body, .owl-shadow, .owl .lids, .owl .pupils, .asst-badge, .asst-btn.hop .owl-body { animation: none !important; }
}

/* ---------- Xatolar ustida ishlash ---------- */
.practice-hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 28px; border-radius: 22px; color: #fff;
  background: radial-gradient(700px 300px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #0f766e, #14b8a6 60%, #22c55e); }
.practice-hero .kicker { font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.practice-hero h2 { font-size: 26px; font-weight: 800; margin-top: 6px; }
.practice-hero p { opacity: .92; margin-top: 8px; max-width: 560px; }
.practice-ring { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: rgba(255,255,255,.16); border: 4px solid rgba(255,255,255,.35); }
.practice-ring b { font-size: 36px; font-weight: 800; line-height: 1; }
.practice-ring span { font-size: 12px; opacity: .85; }
.pdots { display: inline-flex; gap: 4px; vertical-align: middle; }
.pdots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); display: inline-block; }
.pdots i.on { background: var(--success); }
.practice-card { max-width: 820px; margin: 0 auto; width: 100%; }
.explain.ok { background: var(--success-soft); }
.explain.bad { background: var(--danger-soft); }
.mistakes-card { border-color: color-mix(in srgb, #14b8a6 40%, var(--line)); transition: transform .15s, box-shadow .15s; }
.mistakes-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mk-num { min-width: 48px; height: 48px; padding: 0 8px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(135deg, #0f766e, #14b8a6); }

/* ---------- Guruhlar va vazifalar ---------- */
.group-card { border-top: 5px solid var(--gc); }
.group-head { padding: 22px 26px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--gc), color-mix(in srgb, var(--gc) 55%, #000)); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.group-head h2 { font-size: 26px; font-weight: 800; }
.group-head span { opacity: .85; }
.color-dot { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.color-dot.on { box-shadow: 0 0 0 3px var(--ink); }
.check-box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; background: var(--surface); }
.opp.on .check-box { background: var(--primary); border-color: var(--primary); color: #fff; }
.check-box svg.i { width: 14px; height: 14px; stroke-width: 3; }
.assign-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; flex-wrap: wrap; }
.assign-row + .assign-row { border-top: 1px solid var(--line); }
.assign-row .nm { flex: 1; min-width: 220px; display: flex; flex-direction: column; }
.assign-card { border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }

/* ---------- Fayldan import ---------- */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; border: 2px dashed var(--line); border-radius: 16px;
  background: var(--surface-2); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--primary); background: var(--primary-soft); }
.import-sum { padding: 14px 16px; border-radius: 14px; }
.import-sum.ok { background: var(--success-soft); }
.import-sum.warn { background: var(--warning-soft); }
.import-sum.err { background: var(--danger-soft); color: var(--danger); }
.import-preview { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.import-preview .ok-opt { color: var(--success); font-weight: 700; }
.q-edit.review { border-color: var(--warning); background: color-mix(in srgb, var(--warning-soft) 60%, var(--surface)); box-shadow: 0 0 0 3px var(--warning-soft); }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; padding: 1px 5px; border-radius: 5px; background: var(--surface-3); }

/* ---------- Bellashuv ---------- */
.duel-hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 28px; border-radius: 22px; color: #fff;
  background: radial-gradient(700px 300px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #b4231b, #e0454b 50%, #f97316); }
.duel-hero .kicker { font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.duel-hero h2 { font-size: 26px; font-weight: 800; margin-top: 6px; }
.duel-hero p { opacity: .9; margin-top: 8px; max-width: 560px; }
.duel-stats { display: flex; gap: 10px; }
.duel-stats > div { min-width: 86px; padding: 14px 12px; border-radius: 16px; background: rgba(255,255,255,.15); text-align: center; }
.duel-stats b { display: block; font-size: 26px; font-weight: 800; }
.duel-stats span { font-size: 12px; opacity: .85; }
.duel-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; }
.duel-row + .duel-row { border-top: 1px solid var(--line); border-radius: 0; }
.duel-row .nm { flex: 1; min-width: 0; }
.duel-row.incoming { background: var(--warning-soft); border-radius: 14px; }
.opp-list { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.opp { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; text-align: left; width: 100%; }
.opp:hover { background: var(--surface-2); }
.opp.on { background: var(--primary-soft); color: var(--primary); }
.opp .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tour-card.live { border: 2px solid color-mix(in srgb, var(--danger) 45%, var(--line)); box-shadow: 0 10px 30px color-mix(in srgb, var(--danger) 12%, transparent); }
.tour-card.finished { opacity: .92; }
.prize-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.prize-row span { padding: 8px 12px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-ink); font-size: 13px; }
@media (max-width: 640px) {
  .duel-hero { padding: 22px; }
  .duel-hero h2 { font-size: 21px; }
  .duel-stats { width: 100%; }
  .duel-stats > div { flex: 1; min-width: 0; }
  .duel-row { flex-wrap: wrap; }
  .duel-row > .row { width: 100%; }
}

/* ---------- Biz haqimizda (ustozlar) ---------- */
.about-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 36px; color: #fff;
  background: radial-gradient(900px 400px at 110% -20%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #1d2580, #3d4fd6 55%, #7b5cff); }
.about-hero .kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.about-hero h2 { font-size: 30px; font-weight: 800; margin-top: 10px; max-width: 720px; letter-spacing: -.02em; }
.about-hero p { opacity: .86; margin-top: 10px; max-width: 640px; font-size: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 26px; }
.about-stats > div { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.12); }
.about-stats .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.about-stats .l { font-size: 13px; opacity: .8; }
.founder { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 32px; align-items: start; }
.founder h2 { font-size: 28px; font-weight: 800; margin-top: 10px; }
.founder blockquote { margin: 18px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--gold-soft); display: flex; gap: 12px; font-weight: 600; font-style: italic; }
.founder blockquote svg { color: var(--gold); }
.person-photo { border-radius: 50%; object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; background: var(--surface-3); }
.person-photo.xl { width: 100% !important; height: auto !important; aspect-ratio: 1; border-radius: 24px; max-width: 260px; }
.bio { margin-top: 16px; color: var(--ink-2); display: flex; flex-direction: column; gap: 10px; line-height: 1.65; }
.ach-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ach-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.ach-list svg { color: var(--success); width: 18px; height: 18px; margin-top: 2px; }
.contact.tg { background: #229ED9; color: #fff; }
.contact.tg:hover { background: #1c8bc0; }
.contact.ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); color: #fff; }
.section-title { font-size: 20px; font-weight: 800; }
.teacher { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.teacher:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.teacher .person-photo { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--primary-soft); margin-bottom: 6px; }
.teacher h4 { font-size: 17px; font-weight: 800; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.about-edit { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; }
.photo-edit { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.about-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 16px; border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; align-self: flex-start; position: relative; z-index: 1; }
.about-link:hover { background: rgba(255,255,255,.22); }
.public-page { min-height: 100vh; background: var(--bg); }
.public-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.public-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 28px; }
.more-list { display: flex; flex-direction: column; gap: 4px; }
.more-list a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--ink); font-weight: 700; }
.more-list a:hover { background: var(--surface-2); }
@media (max-width: 760px) {
  .founder { grid-template-columns: 1fr; padding: 22px; gap: 18px; }
  .person-photo.xl { max-width: 200px; margin: 0 auto; }
  .about-hero { padding: 24px; }
  .about-hero h2 { font-size: 23px; }
  .about-edit { grid-template-columns: 1fr; }
  .public-top { padding: 10px 16px; }
}
.page-title-m h1 { font-size: 22px; font-weight: 800; }

/* =========================================================
   Onlayn kurslar (tanishtirish + Telegram orqali yozilish)
   ========================================================= */
.course-card { position: relative; overflow: hidden; }
.course-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--cc, var(--primary)); }
.course-card h3 a { color: inherit; }
.course-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; flex: none;
  background: color-mix(in srgb, var(--cc, var(--primary)) 14%, transparent); }
.course-ic.big { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; margin-bottom: 12px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.course-meta span { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); padding: 4px 10px; border-radius: 999px; }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.course-price { display: flex; flex-direction: column; line-height: 1.2; }
.course-price s { font-size: 12px; color: var(--muted); }
.course-price b { font-size: 18px; font-weight: 800; }
.course-price.big b { font-size: 28px; letter-spacing: -.02em; }
.course-price small { font-size: 12px; color: var(--muted); }
.course-hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; padding: 26px; border-radius: 22px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cc, var(--primary)) 12%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.course-sub { font-size: 17px; color: var(--ink-2); margin-bottom: 14px; }
.course-buy { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tg-enroll { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #229ed9; border-color: #229ed9; color: #fff; }
.tg-enroll:hover { background: #1b8cc2; border-color: #1b8cc2; }
.kb-cta .tg-enroll { background: #fff; color: #1b8cc2; border-color: #fff; }
.course-feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.course-feats li { padding: 12px 14px 12px 40px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); position: relative; font-size: 14px; }
.course-feats li::before { content: "✓"; position: absolute; left: 14px; top: 11px; color: var(--success); font-weight: 800; }
.course-lessons { margin: 0; padding: 0; list-style: none; counter-reset: ls; display: flex; flex-direction: column; gap: 6px; }
.course-lessons li { counter-increment: ls; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.course-lessons li::before { content: counter(ls); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); font-size: 13px; font-weight: 800; flex: none; }
.course-lessons .nm { flex: 1; min-width: 0; }
.course-steps > div { background: var(--surface); }
@media (max-width: 900px) { .course-hero { grid-template-columns: 1fr; padding: 20px; } }
@media (max-width: 640px) { .course-feats { grid-template-columns: 1fr; } }

/* ---------- Til tugmasi (O'zb | Рус) ---------- */
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.lang-switch button { border: 0; background: transparent; height: 28px; padding: 0 10px; border-radius: 7px; font-size: 12px; font-weight: 800; color: var(--muted); cursor: pointer; }
.lang-switch button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
/* Kirish sahifasidagi til tugmasi. Klass nomi «auth-lang» — «.auth» (butun sahifa: min-height 100vh) bilan to'qnashmasin */
.lang-switch.auth-lang { position: absolute; top: 18px; right: 18px; z-index: 2; }
/* Telefonda: forma sarlavhasini to'smasin — forma tepasida, o'ng burchakda alohida qator */
@media (max-width: 900px) {
  .auth-form-wrap { display: flex; flex-direction: column; align-items: center; padding-top: 16px; }
  .auth-form-wrap > .lang-switch.auth-lang { position: static; align-self: flex-end; margin-bottom: 8px; }
}
.lang-switch.wide button { height: 36px; padding: 0 18px; font-size: 14px; }
.auth-form-wrap { position: relative; }
@media (max-width: 640px) { .lang-switch.top button { padding: 0 7px; } }

/* ---------- O'rganish: Konstitutsiya va qonunlar ---------- */
.learn-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 22px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #2b4ea2, #4f7cf0); }
.learn-hero h2 { margin: 4px 0 6px; font-size: 22px; color: #fff; }
.learn-hero p { margin: 0; opacity: .92; font-size: 14px; line-height: 1.5; }
.learn-ring { --p: 0; width: 96px; height: 96px; border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, #345bc0 79%, transparent 80% 100%), conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.25) 0); }
.learn-ring b { font-size: 20px; } .learn-ring span { font-size: 10px; opacity: .85; }
.learn-sec { font-size: 15px; margin: 6px 0 10px; color: var(--ink-2); }
.learn-card { display: block; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.learn-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.learn-konst { display: flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; border: 2px solid var(--primary); }
.learn-konst-ic { width: 52px; height: 52px; flex: none; border-radius: 15px; display: grid; place-items: center; color: var(--primary);
  background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--primary) 6%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent); }
.learn-konst-ic svg.i { width: 28px; height: 28px; }
.li-row { display: flex; align-items: center; gap: 6px; }
.li-row svg.i { width: 14px; height: 14px; }
.law-new.li-row { display: inline-flex; }
.law-sec { font-size: 14px; letter-spacing: .02em; color: var(--primary); margin: 18px 0 8px; }
.law-ch { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 8px; overflow: hidden; }
.law-ch > summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 600; }
.law-ch > summary::-webkit-details-marker { display: none; }
.law-ch-t { flex: 1; min-width: 0; }
.law-ch-ok { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; flex: none; border: 1.5px solid var(--line); color: #fff; }
.law-ch.done .law-ch-ok { background: var(--success); border-color: var(--success); }
.law-ch.done > summary { color: var(--muted); }
.law-ch-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.law-art { padding: 12px 0; border-bottom: 1px dashed var(--line); transition: background .4s; }
.law-art:last-of-type { border-bottom: 0; }
.law-art.flash { background: color-mix(in srgb, var(--primary) 14%, transparent); }
.law-art h4 { margin: 0 0 6px; font-size: 15px; line-height: 1.45; }
.law-num { color: var(--primary); }
.law-body { white-space: pre-line; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.law-hit { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.law-hit:hover { border-color: var(--primary); }
.law-has { color: var(--success); }

/* ---------- Tayyorlik xaritasi ---------- */
.ready-map h3 { font-size: 18px; }
.rm-sum { text-align: right; } .rm-sum b { font-size: 26px; display: block; line-height: 1.1; } .rm-sum span { font-size: 12px; color: var(--muted); }
.rm-sec { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 16px 0 8px; }
.rm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.rm-cell { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 8px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: transform .15s; }
.rm-cell:hover { transform: translateY(-1px); }
.rm-code { font-weight: 800; font-size: 12px; opacity: .8; }
.rm-name { font-size: 12.5px; line-height: 1.3; grid-row: span 2; }
.rm-acc { font-weight: 800; font-size: 15px; }
.rm-good { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.rm-mid { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 35%, transparent); }
.rm-weak { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.rm-none { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
.rm-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.rm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rm-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.rm-dot.rm-good { background: var(--success); } .rm-dot.rm-mid { background: var(--warning); } .rm-dot.rm-weak { background: var(--danger); } .rm-dot.rm-none { background: var(--line); }
.rm-focus { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); display: grid; gap: 4px; }
.rm-bar { display: flex; gap: 4px; } .rm-bar .rm-dot { flex: 1; height: 10px; width: auto; }
/* ---------- Modda trenajyori ---------- */
.tr-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 22px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #c2410c, #f97316); }
.tr-hero h2 { margin: 4px 0 6px; font-size: 22px; color: #fff; } .tr-hero p { margin: 0; opacity: .94; font-size: 14px; line-height: 1.5; }
.tr-stat { text-align: center; min-width: 110px; } .tr-stat b { font-size: 28px; display: block; } .tr-stat span { font-size: 12px; opacity: .9; }
.tr-blank { display: inline-block; min-width: 54px; border-bottom: 2.5px solid var(--primary); color: var(--primary); text-align: center; font-weight: 800; }
.tr-nums { display: grid; gap: 10px; }
.tr-num-row { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.tr-num { flex: none; min-width: 74px; text-align: center; padding: 6px 8px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 800; font-size: 16px; }
.tr-num small { display: block; font-size: 10px; font-weight: 600; }

/* ---------- Telefon: tugmalar ekrandan chiqib ketmasin ---------- */
@media (max-width: 640px) {
  .btn { white-space: normal; max-width: 100%; text-align: center; line-height: 1.25; }
  .btn-lg { height: auto; min-height: 50px; padding: 12px 20px; }
  .cert-hero .btn, .land-cta { width: 100%; }
  /* Yordamchi (boyo'g'li) kichikroq — matnni kamroq to'sadi */
  .asst-btn { width: 58px; height: 58px; }
  .asst { right: 8px; }
}

/* ---------- AI test yaratish ---------- */
.ai-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 22px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #1e1b4b, #4338ca 60%, #7c3aed); }
.ai-hero h2 { margin: 4px 0 6px; font-size: 22px; color: #fff; } .ai-hero p { margin: 0; opacity: .92; font-size: 14px; line-height: 1.5; max-width: 620px; }
.ai-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.ai-stats > div { background: rgba(255,255,255,.14); border-radius: 14px; padding: 10px 14px; min-width: 92px; text-align: center; }
.ai-stats b { display: block; font-size: 20px; } .ai-stats span { font-size: 11px; opacity: .85; }
.ai-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ai-counts label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.ai-chs { display: grid; gap: 4px; max-height: 220px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.ai-chs label { display: flex; gap: 8px; align-items: center; font-size: 13px; } .ai-chs label span { flex: 1; min-width: 0; }
.ai-job { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.ai-job.error { background: var(--danger-soft); }
.ai-sample { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.ai-draft { border-left: 4px solid var(--line); }
.ai-draft.on { border-left-color: var(--primary); background: color-mix(in srgb, var(--primary) 4%, var(--surface)); }
.ai-check { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.ai-check input { width: 18px; height: 18px; }
.ai-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ai-flags span { font-size: 12px; padding: 3px 8px; border-radius: 8px; background: var(--warning-soft); color: var(--warning); font-weight: 600; }
.ai-opts { display: grid; gap: 4px; margin-top: 8px; font-size: 14px; }
.ai-opts > div { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.ai-opts > div.ok { background: var(--success-soft); color: var(--success); font-weight: 600; }
.ai-art { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--gold-soft); display: grid; gap: 10px; }
.ai-bar { position: sticky; bottom: 12px; display: none; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.ai-bar.show { display: flex; }
@media (max-width: 640px) { .ai-counts { grid-template-columns: 1fr; } }

/* ---------- Shaxsiy reja ---------- */
.plan-card { border: 2px solid color-mix(in srgb, var(--primary) 30%, var(--line)); }
.plan-card.plan-empty { background: linear-gradient(135deg, var(--primary-soft), var(--surface)); }
.plan-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.plan-head h3 { margin: 2px 0 4px; font-size: 18px; }
.plan-side { display: flex; gap: 8px; align-items: center; }
.plan-streak { font-weight: 800; padding: 6px 10px; border-radius: 10px; background: var(--warning-soft); color: var(--warning); }
.plan-prog { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-top: 12px; }
.plan-prog span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--success)); transition: width .4s; }
.plan-list { display: grid; gap: 8px; }
.plan-task { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; text-align: left; font: inherit; cursor: pointer; width: 100%; transition: border-color .15s, transform .15s; }
.plan-task:hover { border-color: var(--primary); transform: translateY(-1px); }
.plan-task.done { opacity: .6; background: var(--success-soft); border-color: transparent; }
.plan-task.done b { text-decoration: line-through; }
.plan-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--surface-2); }
.plan-task.done .plan-ic { background: var(--success); color: #fff; font-weight: 800; }
.plan-txt { flex: 1; min-width: 0; display: grid; gap: 2px; } .plan-txt b { font-size: 14px; } .plan-txt small { color: var(--muted); font-size: 12px; }
.plan-min { font-size: 12px; color: var(--muted); font-weight: 700; flex: none; }
.plan-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.plan-chips button { display: grid; gap: 2px; padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.plan-chips button b { font-size: 16px; } .plan-chips button small { font-size: 11px; color: var(--muted); }
.plan-chips button.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
/* ---------- Qonun o'zgarishlari ---------- */
.law-new { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: var(--warning-soft); color: var(--warning); }
.law-change-box { padding: 14px 16px; border-radius: 14px; background: var(--warning-soft); border: 1px solid color-mix(in srgb, var(--warning) 35%, transparent); }
.law-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--warning-soft); color: var(--warning); vertical-align: middle; }
.law-art.law-changed { border-left: 3px solid var(--warning); padding-left: 12px; }
.law-prev { margin-top: 8px; font-size: 13px; } .law-prev summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.law-prev .law-body { opacity: .75; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--danger) 40%, transparent); }

/* ---------- Bosh sahifa: «Faqat Huquq Full'da» ---------- */
.uf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.uf-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; }
.uf-card h3 { font-size: 16px; margin: 14px 0 6px; } .uf-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.uf-demo { border-radius: 14px; background: var(--surface-2); padding: 14px; min-height: 120px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.uf-cap { font-size: 12px; color: var(--muted); }
.uf-map { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.uf-map i { aspect-ratio: 1; border-radius: 5px; }
.uf-g { background: var(--success); } .uf-m { background: var(--warning); } .uf-w { background: var(--danger); } .uf-n { background: var(--line); }
.uf-rev { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.uf-rev span { font-size: 11px; font-weight: 700; padding: 5px 7px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.uf-rev span.on { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.uf-rev span.ok { background: var(--success); color: #fff; border-color: transparent; }
.uf-rev i { flex: 1; min-width: 4px; height: 2px; background: var(--line); }
.uf-plan { display: grid; gap: 5px; font-size: 12.5px; }
.uf-plan div { padding: 6px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.uf-plan div.done { background: var(--success-soft); color: var(--success); border-color: transparent; text-decoration: line-through; }
.uf-law { font-size: 13px; display: grid; gap: 4px; }
.uf-law s { color: var(--danger); opacity: .8; } .uf-law .new { color: var(--success); font-weight: 700; }
.uf-tag { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--warning-soft); color: var(--warning); }
.uf-tr { font-size: 13.5px; line-height: 1.6; }
.uf-blank { display: inline-block; min-width: 40px; text-align: center; border-bottom: 2.5px solid var(--primary); color: var(--primary); font-weight: 800; }
.uf-cert { display: flex; gap: 12px; align-items: center; }
.uf-cert > b { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; color: #fff; background: linear-gradient(135deg, #16a34a, #22c55e); flex: none; }
.uf-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.uf-more > div { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.uf-more span { font-size: 20px; } .uf-more b { font-size: 13.5px; display: block; } .uf-more small { font-size: 12px; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
@media (max-width: 960px) { .uf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .uf-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .uf-grid, .uf-more { grid-template-columns: 1fr; } }
.plan-now { padding: 10px 12px; border-radius: 12px; background: var(--primary-soft); font-size: 13.5px; }
.plan-empty .plan-task .btn { flex: none; }

/* ---------- Kontent holati ---------- */
.ai-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
.ai-topic { display: grid; grid-template-columns: 30px minmax(0, 1fr) 90px 26px 32px; align-items: center; gap: 8px; font-size: 13px; min-height: 32px; }
.ai-tcode { font-weight: 800; color: var(--muted); font-size: 12px; }
.ai-tname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-tbar { height: 8px; border-radius: 5px; background: var(--surface-2); overflow: hidden; } .ai-tbar i { display: block; height: 100%; background: var(--success); }
.ai-topic.zero .ai-tbar { background: var(--danger-soft); } .ai-topic.zero b { color: var(--danger); }
.ai-topic.low .ai-tbar i { background: var(--danger); } .ai-topic.mid .ai-tbar i { background: var(--warning); }
.ai-topic b { text-align: right; } .ai-tok { color: var(--success); font-weight: 800; text-align: center; }
.ai-fix { border-left: 4px solid var(--primary); }
.flash { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 40%, transparent); transition: box-shadow .3s; }
@media (max-width: 760px) { .ai-topics { grid-template-columns: 1fr; } }
.law-link { display: inline-flex; margin-top: 8px; padding: 7px 12px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 13px; text-decoration: none; }
.law-link:hover { filter: brightness(.97); }

/* ---------- Almashtirgich (switch) ---------- */
.switch { position: relative; width: 46px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 13px; background: var(--line); transition: background .2s; pointer-events: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 35%, transparent); }
.install-card .row { flex-wrap: wrap; }
.install-card .row > div { min-width: 150px; }
.install-card [data-install] { order: 3; flex: 1 1 100%; }
.install-card [data-install-x] { align-self: flex-start; }

/* ---------- Pro obuna va kurs taklifi ---------- */
.pro-hero { display: flex; flex-wrap: wrap; gap: 18px; padding: 24px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #78350f, #d97706 60%, #f59e0b); }
.pro-hero h2 { margin: 4px 0 6px; font-size: 22px; color: #fff; } .pro-hero p { margin: 0; opacity: .94; font-size: 14px; line-height: 1.5; max-width: 640px; }
.pro-ben { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.pro-ben > span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--success-soft); color: var(--success); font-weight: 800; font-size: 12px; }
.pro-plan { position: relative; }
.pro-plan.hot { border: 2px solid var(--gold); }
.pro-badge { position: absolute; top: -10px; right: 14px; padding: 2px 10px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 800; }
.pro-price { margin-top: 4px; } .pro-price b { font-size: 26px; }
.pro-pay { padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); font-size: 14px; line-height: 1.6; }
.pro-lead { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); flex-wrap: wrap; }
.pro-lead.done, .pro-lead.rejected { opacity: .6; }
.pro-pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 800; font-size: 13px; text-decoration: none; }
.course-offer { display: flex; gap: 14px; align-items: center; text-decoration: none; border: 1px dashed color-mix(in srgb, var(--primary) 40%, var(--line)); }
.co-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex: none; }

/* ---------- Telefon: tuzatishlar (2026-12) ---------- */
@media (max-width: 640px) {
  /* Reja «2 qadam»: tugma matn ostiga tushadi — matn siqilmaydi */
  .plan-empty .plan-task { flex-wrap: wrap; }
  .plan-empty .plan-task .btn { flex: 1 1 100%; margin-left: 50px; }
  .plan-task { padding: 10px; gap: 10px; }
  .plan-ic { width: 34px; height: 34px; }
  /* Tayyorlik xaritasi: ikki ustun */
  .rm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .rm-cell { padding: 8px 10px; grid-template-columns: auto minmax(0, 1fr); }
  .rm-name { font-size: 11.5px; }
  /* AI sahifasi: uchta statistika bir qatorda */
  .ai-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; }
  .ai-stats > div { min-width: 0; padding: 8px 6px; }
  .ai-stats b { font-size: 17px; }
  /* Kontent holati: nomga ko'proq joy */
  .ai-topic { grid-template-columns: 26px minmax(0, 1fr) 48px 22px 30px; gap: 6px; }
  .rm-sum { text-align: left; }
}
.pro-ta { min-height: 120px; height: auto; resize: vertical; line-height: 1.5; padding-top: 10px; }
@media (max-width: 640px) {
  /* Sahifa oxirini boyo'g'li va pastki menyu to'smasin */
  .content { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
}

/* =========================================================
   Sarlavhalar, muhr va belgilar — ranglar platformaning o'zida qoladi
   ========================================================= */
h1, h2, .titles h1, .page-title-m h1, .card-h h3, .plan-head h3, .plan-title,
.uf-card h3, .rm-sec, .ready-map h3 { font-weight: 700; letter-spacing: -.02em; }
/* Muhr: maqsad/daraja — yumaloq muhr (A+ va A — oltin) */
.seal { --c: var(--primary); position: relative; width: 66px; height: 66px; flex: none; border-radius: 50%; display: grid; place-items: center;
  color: var(--c); border: 2.5px solid var(--c); transform: rotate(-9deg); }
.seal::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed var(--c); opacity: .7; }
.seal b { font-size: 24px; font-weight: 700; line-height: 1; }
.seal small { position: absolute; bottom: 9px; font-size: 7.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.seal.gold { --c: var(--gold); }
.plan-head { align-items: center; }
/* Emoji o'rniga bir rangli chiziqli belgi */
.plan-ic svg.i { width: 18px; height: 18px; }
.plan-ic { color: var(--ink-2); }

/* =========================================================
   Harakat: kartalar sichqonchaga javob beradi, sahifa yumshoq ochiladi
   ========================================================= */
.nav a.active svg.i .i-duo { opacity: .3; }
.nav a svg.i, .plan-ic svg.i, .card-h svg.i { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) and (pointer: fine) {
  .content .card { transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s, border-color .28s, background-color .28s; }
  .content .card:hover:not(:focus-within) {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px -16px rgba(30, 40, 110, .28), 0 2px 6px rgba(18, 24, 49, .05);
    border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
  }
  .content .card[data-spot="1"]:hover {
    background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0), color-mix(in srgb, var(--primary) 7%, transparent), transparent 65%);
  }
  .content .card .card { transition: none; }
  .content .card .card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .card:hover svg.i .i-duo, .nav a:hover svg.i .i-duo { opacity: .3; }
  .nav a:hover svg.i { transform: translateX(2px) scale(1.08); }
  .card:hover .card-h svg.i, .plan-task:hover .plan-ic svg.i { transform: scale(1.12) rotate(-4deg); }
  .plan-task:hover { transform: translateX(3px); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
  .btn-primary:hover { box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 70%, transparent); transform: translateY(-1px); }
}
/* Sahifa ochilganda: kartalar pastdan ketma-ket ko'tariladi */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.content.enter > * { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.content.enter > *:nth-child(2) { animation-delay: .05s; }
.content.enter > *:nth-child(3) { animation-delay: .1s; }
.content.enter > *:nth-child(4) { animation-delay: .15s; }
.content.enter > *:nth-child(n+5) { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  .content.enter > * { animation: none; }
  .content .card, .content .card:hover, .nav a svg.i, .plan-task:hover { transform: none !important; transition: none; }
}

/* =========================================================
   PREMIUM QATLAM: bir xil sarlavha bloklari, kam ramka, skeleton,
   jonli raqamlar, telefon uchun sayqal
   ========================================================= */
/* 1. Bo'lim sarlavha bloklari — bitta chuqur siyohrang sirt, bo'lim rangi faqat yengil nurda */
.practice-hero, .duel-hero, .about-hero, .learn-hero, .tr-hero, .ai-hero, .pro-hero, .cert-hero {
  --hx: #7b5cff; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(640px 320px at 100% 0%, color-mix(in srgb, var(--hx) 42%, transparent), transparent 65%), linear-gradient(160deg, #151a40, #1e2566) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 22px 44px -30px rgba(20, 26, 70, .7);
}
.practice-hero::before, .duel-hero::before, .about-hero::before, .learn-hero::before, .tr-hero::before, .ai-hero::before, .pro-hero::before, .cert-hero::before, .hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at 85% 0%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 85% 0%, #000 10%, transparent 70%);
}
.hero { isolation: isolate; }
.practice-hero { --hx: #14b8a6; } .tr-hero { --hx: #f97316; } .pro-hero { --hx: #f59e0b; } .duel-hero { --hx: #ef4444; }
.ai-hero { --hx: #8b5cf6; } .learn-hero { --hx: #4f7cf0; } .cert-hero { --hx: #7c3aed; } .about-hero { --hx: #6d5cff; }
.learn-ring { background: radial-gradient(closest-side, #1a2052 79%, transparent 80% 100%), conic-gradient(#fff calc(var(--p) * 1%), rgba(255, 255, 255, .2) 0); }
.practice-ring { background: rgba(255, 255, 255, .08); border-color: color-mix(in srgb, var(--hx) 60%, rgba(255,255,255,.3)); }

/* 2. Kam ramka: kartalar yengil, urg'u — faqat kerakli joyda */
.plan-card { border: 1px solid var(--line); box-shadow: var(--shadow-sm), inset 0 3px 0 color-mix(in srgb, var(--primary) 70%, transparent); }
.learn-konst { border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--line)); }
.cert-banner { color: var(--ink); background: var(--surface); border: 1px solid var(--line) !important; }
.cert-banner:hover { color: var(--ink); filter: none; }
.cert-banner .small { color: var(--muted); opacity: 1; }
.cert-banner-n { background: var(--primary); color: #fff; box-shadow: 0 10px 20px -10px var(--primary); }
.cert-banner-go { color: var(--primary); opacity: 1; }
.topbar .xp-pill { display: none; }
.coin-pill, .streak-pill { height: 36px; }

/* 3. Bo'sh holatlar — ikona yumshoq plitkada */
.empty .big { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; font-size: 34px;
  background: var(--primary-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 14%, transparent); }
.empty .big svg.i { width: 34px; height: 34px; }

/* 4. Skeleton (yuklanish) */
@keyframes skel { 0% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
.skel { border-radius: 16px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 45%, var(--surface-2) 65%); background-size: 200% 100%; animation: skel 1.3s ease-in-out infinite; }
.skel-hero { height: 128px; border-radius: 20px; }
.skel-card { height: 120px; }
.skel-line { height: 14px; border-radius: 7px; }
.skel-wrap { display: flex; flex-direction: column; gap: 16px; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot i { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, #3d4fd6, #7b5cff); animation: bootp 1.2s ease-in-out infinite; }
@keyframes bootp { 50% { transform: scale(.86); opacity: .6; } }

/* 5. Sahifa ochilganda progress chiziqlari to'lib boradi */
@keyframes grow { from { transform: scaleX(0); } }
.content.enter .progress > span, .content.enter .plan-prog span, .content.enter .rm-bar .rm-dot { transform-origin: left; animation: grow .9s cubic-bezier(.2, .8, .2, 1) .15s both; }

/* 6. Telefon */
@media (max-width: 640px) {
  .hero-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
  .hero-stats .v { font-size: 19px; }
  .hero-stats .l { font-size: 10.5px; line-height: 1.25; }
  .bottom-nav { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .bottom-nav a svg.i { padding: 4px 16px; border-radius: 999px; box-sizing: content-box; transition: background .2s; }
  .bottom-nav a.active svg.i { background: var(--primary-soft); }
  .bottom-nav a.active svg.i .i-duo { opacity: .32; }
  .asst-btn { width: 54px; height: 54px; }
  .asst { right: 10px; transition: opacity .3s, transform .3s; }
  .asst.dim:not(.open) { opacity: .45; transform: scale(.88); transform-origin: bottom right; }
}
@media (prefers-reduced-motion: reduce) {
  .skel, .boot i { animation: none; }
  .content.enter .progress > span, .content.enter .plan-prog span, .content.enter .rm-bar .rm-dot { animation: none; }
}
/* Filtr/teg tugmalari ichidagi ikona — matn o'lchamida */
button:not(.btn):not(.icon-btn) svg.i { width: 1.15em; height: 1.15em; }

/* =========================================================
   IKONALAR: ma'noga mos rang, plitka va ikki tonli to'ldirish
   ========================================================= */
/* Ikki ton: chiziq — matn rangida, ichki to'ldirish — ikonaning o'z rangida */
svg.i .i-duo { fill: var(--tone, currentColor); opacity: .3; }
.card:hover svg.i .i-duo, .nav a:hover svg.i .i-duo { opacity: .42; }
/* Rangli fonlar va tugmalar ichida — bir rangli (aralash ranglar chiqmasin) */
.btn svg.i .i-duo, .nav svg.i .i-duo, .bottom-nav svg.i .i-duo, .hero svg.i .i-duo, [class*="-hero"] svg.i .i-duo, .land-hero svg.i .i-duo,
.chip svg.i .i-duo, .toast svg.i .i-duo, .topbar svg.i .i-duo, .icon-btn svg.i .i-duo { fill: currentColor; opacity: .2; }
.nav a.active svg.i .i-duo, .bottom-nav a.active svg.i .i-duo { opacity: .32; }
/* Barcha ikonalar — platformaning asosiy ko'k rangida (ma'noga mos ranglar o'chirilgan) */
/* Ikona rangi — to'q ko'k (tungi rejimda o'qilishi uchun ochroq ko'k) */
:root { --icon-ink: #1e3a8a; }
:root[data-theme="dark"] { --icon-ink: #ffffff; }
/* Sichqoncha karta ustida: soya va chegara — to'q ko'k (tungi rejimda — oq yorug'lik) */
:root { --hover-ink: #1e3a8a; }
:root[data-theme="dark"] { --hover-ink: #ffffff; }
@media (hover: hover) and (pointer: fine) {
  .content .card:hover:not(:focus-within), .test-card:hover, .learn-card:hover {
    box-shadow: 0 18px 38px -16px color-mix(in srgb, var(--hover-ink) 45%, transparent), 0 2px 8px color-mix(in srgb, var(--hover-ink) 12%, transparent);
    border-color: color-mix(in srgb, var(--hover-ink) 40%, var(--line));
  }
  .content .card[data-spot="1"]:hover {
    background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0), color-mix(in srgb, var(--hover-ink) 7%, transparent), transparent 65%);
  }
  .plan-task:hover { border-color: color-mix(in srgb, var(--hover-ink) 40%, var(--line)); box-shadow: 0 8px 20px -12px color-mix(in srgb, var(--hover-ink) 45%, transparent); }
  .content .card .card:hover { box-shadow: var(--shadow-sm); }
}
svg.i { --tone: var(--icon-ink) !important; }
/* Mavzu ikonalari va ularning plitkalari ham — to'q ko'k (mavzu rangi ishlatilmaydi) */
.t-ic { color: var(--icon-ink) !important; }
.topic-ic { background: color-mix(in srgb, var(--icon-ink) 11%, transparent) !important; color: var(--icon-ink); }
/* Statistika plitkalari — hammasi to'q ko'k */
.stat-ic.p, .stat-ic.g, .stat-ic.s, .stat-ic.w { background: color-mix(in srgb, var(--icon-ink) 11%, transparent); color: var(--icon-ink); }
/* Medallar (oltin/kumush/bronza) — o'rin belgisi sifatida o'z rangida qoladi */
.t-ic svg.i, [class^="medal-"] svg.i { --tone: currentColor !important; }
.t-ic svg.i .i-duo { opacity: .28; }

/* Rangli plitka: alohida turgan ikonalar */
.plan-ic svg.i, .uf-more > div > span svg.i, .announce > svg.i, .card-h h3 > svg.i, .ready-map h3 svg.i, .ready-mini .bold > svg.i,
.learn-konst-ic svg.i, .don-uses span svg.i, .prog-sec-ic svg.i, .empty .big svg.i, .rm-focus .bold > svg.i {
  color: var(--tone, var(--primary)); box-sizing: content-box; padding: 8px; border-radius: 11px;
  background: color-mix(in srgb, var(--tone, var(--primary)) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--primary)) 18%, transparent);
}
.plan-ic svg.i, .uf-more > div > span svg.i, .announce > svg.i, .don-uses span svg.i { width: 18px; height: 18px; }
.card-h h3 > svg.i, .ready-map h3 svg.i, .ready-mini .bold > svg.i, .rm-focus .bold > svg.i { width: 16px; height: 16px; padding: 6px; border-radius: 9px; vertical-align: middle; }
.prog-sec-ic svg.i { width: 24px; height: 24px; padding: 10px; border-radius: 14px; }
.plan-ic svg.i .i-duo, .uf-more span svg.i .i-duo, .announce > svg.i .i-duo, .card-h h3 > svg.i .i-duo, .ready-map h3 svg.i .i-duo,
.ready-mini .bold > svg.i .i-duo, .learn-konst-ic svg.i .i-duo, .prog-sec-ic svg.i .i-duo, .empty .big svg.i .i-duo, .rm-focus .bold > svg.i .i-duo { opacity: .35; }
/* Plitka o'zi rangli bo'lgani uchun idish foni olib tashlanadi */
.plan-ic:has(> svg.i), .don-uses span:has(> svg.i), .learn-konst-ic:has(> svg.i), .empty .big:has(> svg.i) { background: none !important; box-shadow: none !important; }
.empty .big svg.i { width: 30px; height: 30px; padding: 16px; border-radius: 20px; }
.learn-konst-ic svg.i { width: 28px; height: 28px; padding: 12px; border-radius: 15px; }
.plan-task:hover .plan-ic svg.i { transform: scale(1.08) rotate(-4deg); }
.uf-more > div { align-items: center; }
/* Ikonalar ichidagi rangli soya (ikki tonli to'ldirish) va plitka halqasi olib tashlandi — toza chiziqli ikona */
svg.i .i-duo { display: none !important; }
.plan-ic svg.i, .uf-more > div > span svg.i, .announce > svg.i, .card-h h3 > svg.i, .ready-map h3 svg.i, .ready-mini .bold > svg.i,
.learn-konst-ic svg.i, .don-uses span svg.i, .prog-sec-ic svg.i, .empty .big svg.i, .rm-focus .bold > svg.i { box-shadow: none !important; }
/* Pastki qism: rangli yurak va asl Telegram logotipi */
.foot-link { display: inline-flex; align-items: center; gap: 6px; }
.foot-ic { width: 18px; height: 18px; flex: none; }
.tg-logo.nav-ic { width: 22px; height: 22px; flex: none; }

/* =========================================================
   Telegram orqali kirish
   ========================================================= */
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn.tg-login { background: #2AABEE; color: #fff; border: 0; gap: 10px; }
.btn.tg-login:hover { background: #1f9bdc; color: #fff; }
.tg-btn-ic { width: 24px; height: 24px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }
.tg-h-ic { width: 30px; height: 30px; flex: none; }
.tg-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.tg-steps li.on { color: var(--ink); font-weight: 700; }
.tg-steps li.done { color: var(--success); text-decoration: line-through; }
.tg-wait { display: flex; align-items: center; justify-content: center; gap: 10px; }
.tg-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: #2AABEE; animation: tgspin .8s linear infinite; }
@keyframes tgspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tg-spin { animation-duration: 2.4s; } }

/* =========================================================
   Faollik kalendari va tezkor kirish
   ========================================================= */
.ac-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ac-nav b { font-size: 15px; }
.ac-nav .icon-btn { width: 32px; height: 32px; }
.ac-nav .icon-btn:disabled { opacity: .3; cursor: default; }
.ac-chips { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 12px; }
.ac-chip { display: flex; align-items: baseline; justify-content: center; gap: 5px; padding: 7px 6px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ac-chip b { font-size: 16px; }
.ac-chip.ok { background: var(--success-soft); color: var(--success); }
.ac-chip.part { background: var(--warning-soft); color: var(--warning); }
.ac-chip.miss { background: var(--danger-soft); color: var(--danger); }
.ac-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.ac-wd { font-size: 11px; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.ac-wd.we { opacity: .6; }
.ac-d { display: grid; place-items: center; height: 38px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ac-d.blank { visibility: hidden; }
.ac-d.future { color: var(--muted); opacity: .5; }
.ac-d.done { background: var(--success-soft); color: var(--success); font-weight: 800; }
.ac-d.part { background: var(--warning-soft); color: var(--warning); }
.ac-d.miss { background: var(--danger-soft); color: var(--danger); }
.ac-d.today { box-shadow: inset 0 0 0 2px var(--icon-ink, var(--primary)); }
.ac-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.ac-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ac-legend i { width: 10px; height: 10px; border-radius: 50%; }
.ac-legend i.ok { background: var(--success); } .ac-legend i.part { background: var(--warning); } .ac-legend i.miss { background: var(--danger); }
.ac-legend i.today { box-shadow: inset 0 0 0 2px var(--icon-ink, var(--primary)); }
/* Tezkor kirish — faqat telefonda (kompyuterda chap menyu bor) */
.qnav { display: none; }
@media (max-width: 900px) {
  .qnav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .qnav-i { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 16px; background: var(--surface);
    border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.2; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: transform .12s, border-color .2s; }
  .qnav-i:active { transform: scale(.96); border-color: color-mix(in srgb, var(--icon-ink, var(--primary)) 40%, var(--line)); }
  .qnav-ic { position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--icon-ink, var(--primary));
    background: color-mix(in srgb, var(--icon-ink, var(--primary)) 11%, transparent); }
  .qnav-ic svg.i { width: 22px; height: 22px; }
  .qnav-ic em { position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--danger); color: #fff;
    font-size: 11px; font-style: normal; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
}
/* Kompyuterda kalendar kartasi ikki qismli: chapda xulosa, o'ngda oy jadvali */
@media (min-width: 1100px) {
  .activity-cal { display: grid; grid-template-columns: 230px minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .activity-cal > * { grid-column: 1; }
  .activity-cal > .ac-grid { grid-column: 2; grid-row: 1 / span 6; align-self: center; }
  .activity-cal .ac-chips { grid-auto-flow: row; }
  .activity-cal .ac-chip { justify-content: flex-start; padding: 8px 12px; }
  .activity-cal .ac-d { height: 40px; }
}

/* Yangi testlar: kartadagi «Yangi» yorlig'i va pastki menyudagi son */
.tc-chips { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.chip.new-chip { background: var(--icon-ink, var(--primary)); color: #fff; font-weight: 800; }
:root[data-theme="dark"] .chip.new-chip { color: #0b1020; }
.test-card.is-new { border-color: color-mix(in srgb, var(--icon-ink, var(--primary)) 35%, var(--line)); }
.bottom-nav a { position: relative; }
.bn-badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff;
  font-size: 10.5px; font-style: normal; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }

/* =========================================================
   PREMIUM MENYU: ikonalar plitkada, faol bo'lim — to'liq bo'yalgan plitka va urg'u chizig'i
   ========================================================= */
.sidebar { overflow-y: auto; scrollbar-width: thin; }
.nav a, .nav-more summary { gap: 12px; padding: 7px 10px; position: relative; }
.nav a > svg.i, .nav-more summary > svg.i, .more-list a > svg.i {
  box-sizing: content-box; width: 18px; height: 18px; padding: 8px; border-radius: 11px; flex: none;
  color: var(--icon-ink, var(--primary)); background: color-mix(in srgb, var(--icon-ink, var(--primary)) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--icon-ink, var(--primary)) 10%, transparent);
  transition: background .25s, color .25s, box-shadow .25s, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.nav a:hover > svg.i, .nav-more summary:hover > svg.i { background: color-mix(in srgb, var(--icon-ink, var(--primary)) 15%, transparent); transform: translateY(-1px) rotate(-5deg); }
.nav a.active { background: color-mix(in srgb, var(--icon-ink, var(--primary)) 7%, transparent); color: var(--icon-ink, var(--primary)); font-weight: 700; }
.nav a.active::before { content: ''; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--icon-ink, var(--primary)); }
.nav a.active > svg.i { color: #fff; background: linear-gradient(145deg, var(--icon-ink, var(--primary)), var(--primary));
  box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--icon-ink, var(--primary)) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25); }
:root[data-theme="dark"] .nav a.active > svg.i { color: #0b1020; background: #fff; box-shadow: 0 6px 16px -6px rgba(255, 255, 255, .35); }
.nav-more summary > svg.i { color: var(--muted); background: var(--surface-2); box-shadow: none; }
.more-list a { gap: 12px; }
@media (prefers-reduced-motion: reduce) { .nav a:hover > svg.i, .nav-more summary:hover > svg.i { transform: none; } }

/* «Bugungi yo'l» — chap menyu pastida */
.side-today { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--icon-ink, var(--primary)) 8%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--icon-ink, var(--primary)) 16%, var(--line)); }
.st-head { display: flex; align-items: center; gap: 12px; }
.st-head b { font-size: 14px; }
.st-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.st-meta span { display: inline-flex; align-items: center; gap: 4px; }
.st-meta svg.i { width: 14px; height: 14px; }
.st-ringwrap { position: relative; width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.st-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.st-ring circle { fill: none; stroke-width: 3.5; }
.st-ring .bg { stroke: color-mix(in srgb, var(--icon-ink, var(--primary)) 14%, transparent); }
.st-ring .fg { stroke: var(--icon-ink, var(--primary)); stroke-linecap: round; transition: stroke-dasharray .8s cubic-bezier(.2, .8, .2, 1); }
.all-done .st-ring .fg { stroke: var(--success); }
.st-num { font-size: 12px; font-weight: 800; color: var(--icon-ink, var(--primary)); font-variant-numeric: tabular-nums; }
.st-ic { border-radius: 14px; color: var(--icon-ink, var(--primary)); background: color-mix(in srgb, var(--icon-ink, var(--primary)) 10%, transparent); }
.st-msg { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.st-next { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  background: var(--icon-ink, var(--primary)); color: #fff; box-shadow: 0 8px 18px -10px var(--icon-ink, var(--primary)); transition: transform .15s, filter .15s; }
.st-next:hover { color: #fff; filter: brightness(1.15); transform: translateY(-1px); }
.st-next-ic { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.st-next-ic svg.i { width: 16px; height: 16px; }
.st-next-t { flex: 1; min-width: 0; display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-next-t small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .72; }
.st-next > svg.i:last-child { width: 16px; height: 16px; opacity: .8; flex: none; }
:root[data-theme="dark"] .st-next { background: #fff; color: #0b1020; }
:root[data-theme="dark"] .st-next-ic { background: rgba(11, 16, 32, .08); }
.st-done { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 700; background: var(--success-soft); color: var(--success); }
/* Menyu ixchamroq (plitkalar bilan ham ekranga sig'sin) va «Keyingi qadam» matni 2 qatorgacha */
.nav { gap: 2px; }
.nav a, .nav-more summary { padding: 5px 10px; }
.nav a > svg.i, .nav-more summary > svg.i { padding: 7px; border-radius: 10px; }
.nav a.active::before { top: 8px; bottom: 8px; }
.brand { padding-bottom: 16px; }
.st-next-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.3; }
@media (max-height: 820px) { .nav-more a { font-size: 13.5px; } .side-today { padding: 12px; gap: 10px; } }
/* «Keyingi qadam» joriy sahifadagi tugmani ko'rsatganda — ikki marta yumshoq porlaydi */
@keyframes sideFlash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30%, 70% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--icon-ink, var(--primary)) 35%, transparent); } }
.side-flash { animation: sideFlash 1s ease-in-out 2; border-radius: 14px; }