/* ═══ manaAI platforma — sahifalar ═══ */

/* ── Umumiy ── */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.soon-note { position: relative; padding-left: 24px; margin: 16px 0; font-size: var(--t-sm); color: var(--muted); }
.soon-note .ic { position: absolute; left: 0; top: 2px; width: 16px; height: 16px; }
.soon-note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sec-label { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; padding: 0; }
.side-note { font-size: var(--t-sm); color: var(--muted); margin-top: 10px; }
.field label .help { font-weight: 400; }
.help .ic { width: 14px; height: 14px; vertical-align: -2px; }

.sumbar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 0 0 24px; }
.sumbar > div { background: var(--surface); padding: 16px 18px; }
.sumbar-3 { grid-template-columns: repeat(3, 1fr); }
.sumbar dt { font-size: var(--t-sm); color: var(--muted); }
.sumbar dd { margin: 6px 0 0; font-size: var(--t-xl); font-weight: 650; letter-spacing: -0.01em; }
.sumbar dd small { font-size: var(--t-sm); color: var(--faint); font-weight: 500; margin-left: 2px; }
@media (min-width: 700px) { .sumbar { grid-template-columns: repeat(4, 1fr); } .sumbar-3 { grid-template-columns: repeat(3, 1fr); } }

/* Qorong'i "orol" bloklar (davom ettirish, qulf, referral, reyting) */
.cont, .paywall, .ref-card, .me-rank { background: var(--sb-bg); color: var(--sb-ink); }
.cont .eyebrow, .paywall .eyebrow, .ref-card .eyebrow { color: var(--sb-faint); }
.cont .bar, .me-rank .bar { background: var(--sb-line); }
.cont .bar span, .me-rank .bar span { background: var(--lime); }
.paywall .btn-primary { background: var(--lime); color: var(--lime-ink); }
:root[data-theme="dark"] .cont, :root[data-theme="dark"] .paywall, :root[data-theme="dark"] .ref-card, :root[data-theme="dark"] .me-rank { border: 1px solid var(--sb-line); }

/* ── Kirish ekrani ── */
.gate { min-height: 100dvh; display: grid; grid-template-columns: 1fr; background: var(--bg); }
.gate-side { background: var(--sb-bg); color: var(--sb-ink); padding: calc(24px + var(--safe-t)) 24px 28px; display: flex; flex-direction: column; gap: 28px; }
.gate-pitch .eyebrow { color: var(--sb-faint); }
.gate-pitch h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 16px; }
.gate-pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--sb-muted); font-size: var(--t-sm); }
.gate-pitch b { color: var(--lime); font-weight: 650; }
.gate-main { display: grid; place-items: center; padding: 32px 20px calc(40px + var(--safe-b)); }
.gate-box { width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; }
.gate-box h1 { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -0.02em; }
.gate-sub { color: var(--muted); margin-top: -6px; margin-bottom: 6px; }
.gate-or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: var(--t-sm); }
.gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gate-form { display: flex; flex-direction: column; gap: 12px; }
.gate-alt { font-size: var(--t-sm); color: var(--muted); text-align: center; margin-top: 6px; }
.gate-alt a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gate-demo { color: var(--muted); margin-top: 4px; }
.gate-tg { display: flex; flex-direction: column; gap: 10px; }
.gate-tg-btn { min-height: 54px; font-size: var(--t-base); gap: 10px; }
.gate-tg-btn .ic { width: 18px; height: 18px; }
.gate-tg-btn.is-loading .ic { display: none; }
.gate-note { font-size: var(--t-sm); color: var(--muted); text-align: center; text-wrap: pretty; }
.gate-note b { color: var(--ink-2); font-weight: 600; }
.gate-err { justify-content: center; text-align: center; }
.gate-rest { display: flex; flex-direction: column; gap: 14px; }
.gate-wait { display: flex; flex-direction: column; gap: 18px; padding: 22px 20px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); animation: pop-in .3s var(--ease); }
.gate-wait-h { display: flex; align-items: center; gap: 12px; font-size: var(--t-lg); font-weight: 650; letter-spacing: -0.01em; }
.gate-pulse { position: relative; width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: var(--green); }
.gate-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: gate-ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes gate-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
.gate-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.gate-steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 12px; font-size: var(--t-md); color: var(--ink-2); }
.gate-steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface-2); color: var(--ink); font-size: var(--t-sm); font-weight: 650; font-variant-numeric: tabular-nums; }
.gate-steps b { color: var(--ink); font-weight: 650; }
.gate-wait .gate-note { text-align: left; text-wrap: wrap; }
.gate-wait-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.gate-wait-actions .btn { flex: 1 1 auto; }
@media (prefers-reduced-motion: reduce) { .gate-pulse::after { animation: none; } .gate-wait { animation: none; } }
/* Yopiq rejim: "Kurs tayyorlanmoqda" */
.gate-soon-eb { display: inline-flex; align-items: center; gap: 10px; color: var(--green-ink); margin-bottom: -4px; }
.gate-done { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.gate-done-ic { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); }
.gate-done-ic .ic { width: 18px; height: 18px; }
.gate-done h2 { font-size: var(--t-md); font-weight: 650; }
.gate-done p { margin-top: 2px; font-size: var(--t-sm); color: var(--muted); }
.gate-home { display: block; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.gate-home:hover { color: var(--ink); }
@media (min-width: 900px) {
  .gate { grid-template-columns: minmax(360px, 0.85fr) 1.15fr; }
  .gate-side { padding: 40px; justify-content: space-between; }
  .gate-pitch h2 { font-size: var(--t-3xl); }
  .gate-pitch ul { font-size: var(--t-md); gap: 12px; }
}

/* ── Bosh sahifa ── */
.cont { display: grid; gap: 24px; border-radius: var(--r-xl); padding: 24px; margin-bottom: 36px; }
.cont h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 8px; max-width: 24ch; }
.cont-meta { color: var(--sb-muted); font-size: var(--t-sm); }
.cont-progress { display: flex; align-items: center; gap: 12px; margin-top: 22px; max-width: 420px; }
.cont-progress .bar { flex: 1; }
.cont-progress .tnum { font-weight: 650; font-size: var(--t-sm); }
.cont-count { color: var(--sb-faint); font-size: var(--t-xs); margin-top: 6px; }
.cont-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cont-side { background: var(--sb-panel); border: 1px solid var(--sb-line); border-radius: var(--r-lg); padding: 16px; align-self: start; }
.cont-side-h { font-size: var(--t-sm); font-weight: 600; margin-bottom: 8px; padding-inline: 4px; }
.cont-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cl { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: var(--r-sm); font-size: var(--t-sm); color: var(--sb-muted); }
.cl .ic { width: 16px; height: 16px; }
.cl span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl.done .ic { color: var(--lime); }
.cl.locked { color: var(--sb-faint); }
.cl.is-cur { background: var(--sb-hover); color: var(--sb-ink); font-weight: 600; }
.cl em { font-style: normal; font-family: var(--mono); font-size: 0.6875rem; color: var(--lime); }
@media (min-width: 1100px) {
  .cont { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); padding: 36px; gap: 40px; }
  .cont h2 { font-size: 2rem; }
}

.home-grid { display: grid; gap: 36px; }
@media (min-width: 1100px) { .home-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; } }
.mod-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.mod-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 16px 8px; border-bottom: 1px solid var(--line); transition: background .15s; }
.mod-row:hover { background: var(--surface-2); }
.mod-no { font-size: var(--t-sm); color: var(--faint); }
.mod-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mod-name { font-weight: 600; }
.mod-body .bar { max-width: 320px; height: 4px; }
.mod-count { font-size: var(--t-sm); color: var(--muted); }
.mod-status { grid-column: 2 / -1; }
.mod-status:empty { display: none; }
@media (min-width: 700px) {
  .mod-row { grid-template-columns: 40px minmax(0, 1fr) 56px 160px; }
  .mod-status { grid-column: auto; justify-self: end; }
  .mod-status:empty { display: block; }
}
.home-side { display: flex; flex-direction: column; gap: 32px; }
.side-block .section-h { margin-bottom: 12px; }
.streak-n { display: inline-flex; gap: 6px; align-items: center; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.streak-n .ic { width: 16px; height: 16px; color: var(--green-ink); }
.week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.week .wd { font-size: var(--t-xs); color: var(--muted); }
.week .dot { width: 100%; max-width: 38px; aspect-ratio: 1; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; }
.week .dot .ic { width: 14px; height: 14px; stroke-width: 2.5; }
.week li.on .dot { background: var(--green); border-color: var(--green); color: oklch(0.99 0.01 140); }
.week li.today .dot { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.week li.future .dot { background: transparent; border-style: dashed; }
.task-next { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .15s; }
.task-next:hover { border-color: var(--line-2); }
.task-next > span:nth-child(2) { flex: 1; min-width: 0; }
.task-next b, .next-row b, .upsell b, .materials b { display: block; font-weight: 600; }
.task-next small, .next-row small, .upsell small, .materials small { display: block; font-size: var(--t-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.task-next > .ic { color: var(--faint); }
.task-next-ic, .upsell-ic, .mat-ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.side-block.trial { padding: 18px; border-radius: var(--r-lg); background: var(--green-soft); }
.side-block.trial h2 { font-size: var(--t-lg); font-weight: 650; }
.side-block.trial p { color: var(--ink-2); font-size: var(--t-sm); margin: 6px 0 14px; }

/* ── Mening kurslarim ── */
.course { display: grid; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.cover { position: relative; min-height: 168px; background: var(--sb-bg); color: var(--sb-ink); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.cover-word { font-family: var(--brand-font); font-weight: 800; font-size: 2.25rem; line-height: 0.92; letter-spacing: -0.03em; text-transform: uppercase; }
.cover-cmd { font-size: var(--t-sm); color: var(--lime); display: inline-flex; align-items: center; gap: 6px; }
.cover-cmd i { width: 8px; height: 16px; background: var(--lime); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.course-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.course-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.course h2 { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.02em; }
.course-meta { color: var(--muted); font-size: var(--t-sm); }
.course-progress { display: flex; align-items: center; gap: 12px; max-width: 460px; }
.course-progress .bar { flex: 1; }
.course-progress .tnum { font-size: var(--t-sm); color: var(--muted); white-space: nowrap; }
.next-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); max-width: 520px; transition: background .15s; }
.next-row:hover { background: var(--line); }
.next-row > span:nth-child(2) { flex: 1; min-width: 0; }
.next-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: var(--surface); display: grid; place-items: center; flex-shrink: 0; }
.next-ic .ic { width: 14px; height: 14px; }
.course-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
@media (min-width: 900px) {
  .course { grid-template-columns: 280px minmax(0, 1fr); }
  .cover { padding: 26px; }
  .cover-word { font-size: 2.75rem; }
  .course-body { padding: 28px; }
  .course h2 { font-size: var(--t-2xl); }
}
.upsell { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color .15s; }
.upsell:hover { border-color: var(--line-2); }
.upsell > span:nth-child(2) { flex: 1; min-width: 0; }
.upsell-go { font-size: var(--t-sm); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* ── Kurs dasturi ── */
.prog-head { margin-bottom: 28px; max-width: 720px; }
.prog-head h2 { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -0.02em; margin: 8px 0; }
.prog-lead { color: var(--muted); margin-bottom: 16px; max-width: 62ch; }
.prog-grid { display: grid; gap: 24px; }
@media (min-width: 1100px) { .prog-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; } }
.prog-mods { display: flex; flex-direction: column; gap: 10px; }
.pm { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; scroll-margin-top: calc(var(--top-h) + 16px); }
.pm summary { list-style: none; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; transition: background .15s; }
.pm summary::-webkit-details-marker { display: none; }
.pm summary:hover { background: var(--surface-2); }
.pm-no { font-size: var(--t-sm); color: var(--faint); }
.pm-name { font-weight: 600; }
.pm-count { font-size: var(--t-sm); color: var(--muted); }
.pm-chev { transition: transform .2s var(--ease); color: var(--muted); }
.pm[open] .pm-chev { transform: rotate(180deg); }
.lr-list { list-style: none; margin: 0; padding: 6px 8px 8px; border-top: 1px solid var(--line); }
.lr { display: grid; grid-template-columns: 22px 26px minmax(0, 1fr); align-items: center; gap: 4px 10px; padding: 11px 10px; border-radius: var(--r-sm); }
.lr:hover { background: var(--surface-2); }
.lr-ic { display: grid; }
.lr-ic .ic { width: 18px; height: 18px; }
.lr.done .lr-ic { color: var(--green); }
.lr.open .lr-ic { color: var(--ink-2); }
.lr.locked { color: var(--muted); }
.lr.locked .lr-ic { color: var(--faint); }
.lr.is-cur { background: var(--surface-2); font-weight: 600; }
.lr-no { font-size: var(--t-xs); color: var(--faint); }
.lr-tags { grid-column: 3; display: flex; flex-wrap: wrap; gap: 6px; }
.lr-tags:empty { display: none; }
@media (min-width: 700px) {
  .lr { grid-template-columns: 22px 26px minmax(0, 1fr) auto; }
  .lr-tags { grid-column: auto; }
}
.plan-card { padding: 20px; position: sticky; top: calc(var(--top-h) + 20px); }
.plan-card h3 { font-size: var(--t-xl); font-weight: 700; margin: 6px 0 8px; }
.plan-card > p { color: var(--muted); font-size: var(--t-sm); margin-bottom: 14px; }
.facts { margin: 18px 0 0; border-top: 1px solid var(--line); }
.facts div, .kv div, .pd-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.facts dt, .kv dt, .pd-facts dt { color: var(--muted); }
.facts dd, .kv dd, .pd-facts dd { margin: 0; font-weight: 550; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ── Dars ── */
.lesson-grid { display: grid; gap: 40px; }
@media (min-width: 1200px) { .lesson-grid { grid-template-columns: minmax(0, 760px) 280px; justify-content: space-between; gap: 48px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--t-sm); color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lesson-h { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.025em; margin: 6px 0 22px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--sb-bg); margin-bottom: 32px; }
.video video { width: 100%; height: 100%; object-fit: contain; background: oklch(0.12 0.005 150); }
.video-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--sb-muted); text-align: center; padding: 20px; font-size: var(--t-sm); }
.video-empty b { display: block; color: var(--sb-ink); font-size: var(--t-base); margin-bottom: 4px; }
.ve-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--sb-panel); border: 1px solid var(--sb-line); display: grid; place-items: center; color: var(--lime); }
.ve-ic .ic { width: 24px; height: 24px; }

.lesson-body { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); max-width: 68ch; }
.lesson-body > * + * { margin-top: 1em; }
.lesson-body h2 { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 2.6em; }
.lesson-body h3 { font-size: var(--t-lg); font-weight: 650; color: var(--ink); margin-top: 1.8em; }
.lesson-body strong { color: var(--ink); font-weight: 650; }
.lesson-body em { color: var(--muted); }
.lesson-body ul, .lesson-body ol { padding-left: 1.3em; }
.lesson-body li + li { margin-top: 0.4em; }
.lesson-body code { font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.lesson-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.lesson-body a { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; }
.codeblock { font-family: var(--mono); font-size: 0.875rem; line-height: 1.65; white-space: pre-wrap; background: var(--sb-bg); color: var(--sb-ink); border-radius: var(--r); padding: 16px 18px; overflow-x: auto; }
.tip, .warn, .check, .tom { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); font-size: 0.9375rem; line-height: 1.6; background: var(--surface-2); color: var(--ink-2); }
.tip { background: var(--green-soft); color: var(--ink); }
.warn { background: oklch(0.96 0.045 85); color: oklch(0.34 0.07 65); }
:root[data-theme="dark"] .warn { background: oklch(0.29 0.05 80); color: oklch(0.92 0.05 88); }
.tip em, .warn em, .check em, .tom em { font-style: normal; flex-shrink: 0; color: inherit; }
.tip strong, .warn strong, .check strong, .tom strong { color: inherit; }
.terminal-win { background: oklch(0.13 0.005 150); border-radius: var(--r); overflow: hidden; border: 1px solid oklch(0.25 0.006 150); }
.terminal-bar { display: flex; gap: 6px; padding: 10px 14px; background: oklch(0.18 0.006 150); }
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-dot.r { background: #ff5f57; } .t-dot.y { background: #febc2e; } .t-dot.g { background: #28c840; }
.terminal-body { display: grid; place-items: center; padding: 40px 16px; }
.claude-code-art { font-family: var(--mono); font-weight: 800; font-size: clamp(2rem, 7vw, 3.25rem); color: var(--lime); text-align: center; line-height: 1.1; letter-spacing: 0.08em; }

.lesson-sec { margin-top: 44px; }
.materials { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.materials a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .15s; }
.materials a:hover { border-color: var(--line-2); }
.materials a > span:nth-child(2) { flex: 1; min-width: 0; }
.materials a > .ic { color: var(--faint); }
.quiz { display: flex; flex-direction: column; gap: 14px; }
.q { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; margin: 0; background: var(--surface); }
.q legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 600; }
.q legend .mono { color: var(--faint); }
.opt { clear: both; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; font-size: 0.9375rem; color: var(--ink-2); }
.opt:hover { background: var(--surface-2); }
.opt input { margin-top: 4px; accent-color: var(--green); width: 16px; height: 16px; flex-shrink: 0; }
.q.ok { border-color: var(--green); }
.q.bad { border-color: var(--red); }
.opt.is-right { background: var(--green-soft); color: var(--ink); }
.q-res { clear: both; font-size: var(--t-sm); font-weight: 600; }
.q-res:empty { display: none; }
.q.ok .q-res { color: var(--green-ink); }
.q.bad .q-res { color: var(--red); }
.quiz-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.quiz-score { font-size: var(--t-sm); color: var(--muted); }
.lesson-task { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; margin-top: 44px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.lesson-task > .btn { grid-column: 2; justify-self: start; }
.lt-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--ink); color: var(--surface); display: grid; place-items: center; }
.lesson-task h2 { font-size: var(--t-lg); font-weight: 650; margin: 4px 0 6px; }
.lesson-task p:not(.eyebrow) { color: var(--ink-2); font-size: var(--t-md); }
.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.lesson-nav > :nth-child(2) { grid-column: 1 / -1; order: -1; width: 100%; justify-content: center; }
.lesson-nav > :first-child { justify-self: start; }
.lesson-nav > :last-child { justify-self: end; }
.done-tag { height: 44px; padding: 0 16px; font-size: var(--t-sm); }
@media (min-width: 700px) {
  .lesson-h { font-size: 2rem; }
  .lesson-nav { grid-template-columns: 1fr auto 1fr; }
  .lesson-nav > :nth-child(2) { grid-column: auto; order: 0; width: auto; }
}
.lesson-side h2 { font-size: var(--t-lg); font-weight: 650; margin: 4px 0 12px; }
.side-lessons { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.side-lessons a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: var(--r-sm); font-size: var(--t-sm); color: var(--ink-2); }
.side-lessons a .ic { width: 16px; height: 16px; margin-top: 2px; }
.side-lessons a:hover { background: var(--surface-2); }
.side-lessons a.is-cur { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.side-lessons a.done .ic { color: var(--green); }
.side-lessons a.locked { color: var(--muted); }
.side-all { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: var(--t-sm); color: var(--muted); }
.side-all:hover { color: var(--ink); }
@media (min-width: 1200px) { .lesson-side { position: sticky; top: calc(var(--top-h) + 24px); align-self: start; } }

/* ── Vazifalar ── */
.tlist-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.thead { display: none; }
.tlist { list-style: none; margin: 0; padding: 0; }
.trow + .trow { border-top: 1px solid var(--line); }
.trow.is-open { background: var(--surface-2); }
.trow-main { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-areas: "no title act" "no st st"; gap: 8px 12px; align-items: center; padding: 14px 16px; scroll-margin-top: calc(var(--top-h) + 16px); }
.trow-no { grid-area: no; align-self: start; padding-top: 2px; font-size: var(--t-sm); color: var(--faint); }
.trow-title { grid-area: title; min-width: 0; }
.trow-title b { display: block; font-weight: 600; }
.trow-title small { display: block; font-size: var(--t-sm); color: var(--muted); margin-top: 2px; }
.trow-st { grid-area: st; }
.trow-grade { display: none; }
.trow-act { grid-area: act; justify-self: end; }
.tform { padding: 0 16px 18px 56px; display: flex; flex-direction: column; gap: 14px; }
.tform-task { font-size: var(--t-md); color: var(--ink-2); max-width: 70ch; }
.tform-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 599px) { .tform { padding-left: 16px; } }
@media (min-width: 900px) {
  .thead, .trow-main { grid-template-columns: 44px minmax(0, 1fr) 180px 56px 140px; grid-template-areas: none; }
  .thead { display: grid; gap: 12px; padding: 12px 18px; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); background: var(--surface-2); border-bottom: 1px solid var(--line); }
  .trow-main { padding: 14px 18px; }
  .trow-no, .trow-title, .trow-st, .trow-act { grid-area: auto; }
  .trow-grade { display: block; color: var(--muted); }
  .tform { padding-left: 74px; }
}

/* ── To'lov ── */
.pay-lesson { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r); background: var(--surface-2); margin-bottom: 20px; font-size: var(--t-sm); color: var(--ink-2); }
.pay-lesson b { color: var(--ink); }
.pay-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .pay-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; } }
.pay-plans { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.plan-opt { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.plan-opt:hover { border-color: var(--line-2); }
.plan-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.plan-opt:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 3px; }
.plan-top { display: flex; align-items: center; gap: 14px; }
.plan-top > span:nth-child(2) { flex: 1; min-width: 0; }
.plan-top b { display: block; font-size: var(--t-lg); font-weight: 650; }
.plan-top small { display: block; font-size: var(--t-sm); color: var(--muted); }
.plan-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }
.plan-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; }
.plan-price { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.03em; margin-top: 6px; }
.plan-price small { font-size: var(--t-base); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-terms { font-size: var(--t-sm); color: var(--muted); }
.plan-inc { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: var(--t-sm); color: var(--ink-2); }
.plan-inc li { display: flex; gap: 8px; align-items: flex-start; }
.plan-inc .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--green-ink); }
.plan-opt.is-on { background: var(--sb-bg); border-color: var(--sb-bg); color: var(--sb-ink); }
:root[data-theme="dark"] .plan-opt.is-on { border-color: var(--lime); }
.plan-opt.is-on .plan-ic { background: var(--sb-panel); color: var(--lime); }
.plan-opt.is-on small, .plan-opt.is-on .plan-terms { color: var(--sb-muted); }
.plan-opt.is-on .plan-radio { border-color: var(--lime); box-shadow: inset 0 0 0 4px var(--sb-bg); background: var(--lime); }
.plan-opt.is-on .plan-inc { border-color: var(--sb-line); color: var(--sb-muted); }
.plan-opt.is-on .plan-inc .ic { color: var(--lime); }
@media (min-width: 700px) { .plan-price { font-size: 2.25rem; } }

.pay-form { padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.pay-trial { padding: 14px 16px; border-radius: var(--r); background: var(--green-soft); }
.pay-trial .eyebrow { color: var(--green-ink); }
.pay-trial p:not(.eyebrow) { color: var(--ink-2); font-size: var(--t-sm); margin-top: 4px; }
.phone-in { display: flex; }
.phone-in span { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--line-2); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--surface-2); font-weight: 600; color: var(--ink-2); }
.phone-in .input { border-radius: 0 var(--r) var(--r) 0; }
.methods { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.methods legend { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.method { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border-radius: var(--r-lg); border: 1px solid var(--line-2); cursor: pointer; transition: border-color .15s, background .15s; }
.method input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.method:hover { border-color: var(--ink-2); }
.method:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.method:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.method-sub { flex: 1; min-width: 0; font-size: var(--t-sm); color: var(--muted); }
.method-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; }
.method:has(input:checked) .method-radio { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 4px var(--surface-2); }
.pm-logo { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 88px; height: 34px; padding: 0 12px; border-radius: 8px; font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.02em; flex-shrink: 0; }
.pm-logo.payme { background: oklch(0.82 0.11 195); color: oklch(0.22 0.04 220); font-style: italic; }
.pm-logo.click { background: oklch(0.22 0.05 262); color: oklch(0.98 0.005 262); }
.pm-logo.click i { width: 14px; height: 14px; border-radius: 50%; border: 4px solid oklch(0.62 0.19 262); }
.pm-logo.cards { gap: 4px; padding: 0; min-width: 0; }
.pm-logo.cards em { font-style: normal; font-family: var(--mono); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.02em; padding: 4px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--ink-2); }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); }
.pay-total span { color: var(--muted); }
.pay-total b { font-size: var(--t-xl); font-weight: 700; }
.pay-fine { display: flex; gap: 8px; font-size: var(--t-sm); color: var(--muted); }
.pay-fine .ic { width: 15px; height: 15px; margin-top: 3px; }
@media (max-width: 420px) { .method-sub { display: none; } }

.pay-done { padding: 28px; max-width: 640px; }
.pd-ic { width: 52px; height: 52px; border-radius: 15px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; margin-bottom: 16px; }
.pd-ic .ic { width: 26px; height: 26px; }
.pay-done h2 { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -0.02em; }
.pay-done > p { color: var(--ink-2); margin: 10px 0 20px; max-width: 58ch; }
.pd-facts { margin: 0 0 24px; border-top: 1px solid var(--line); }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Mentor / Jadval ── */
.paywall { max-width: 580px; padding: 32px 28px; border-radius: var(--r-xl); }
.paywall-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--sb-panel); border: 1px solid var(--sb-line); display: grid; place-items: center; color: var(--lime); margin-bottom: 18px; }
.paywall-ic .ic { width: 22px; height: 22px; }
.paywall h2 { font-size: var(--t-2xl); font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 18px; }
.paywall-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; color: var(--sb-muted); }
.paywall-list li { display: flex; gap: 10px; align-items: flex-start; }
.paywall-list .ic { color: var(--lime); margin-top: 3px; width: 16px; height: 16px; }
.paywall-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.paywall-cta span { color: var(--sb-muted); font-size: var(--t-sm); }
.mentor-grid { display: grid; gap: 16px; }
@media (min-width: 1000px) { .mentor-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.mentor-main { padding: 28px; }
.panel .paywall-ic { background: var(--surface-2); border-color: var(--line); color: var(--green-ink); }
.mentor-main h2 { font-size: var(--t-xl); font-weight: 700; margin-bottom: 8px; }
.mentor-main p { color: var(--muted); margin-bottom: 18px; max-width: 54ch; }
.mentor-tips { padding: 22px; }
.mentor-tips h3 { font-size: var(--t-base); font-weight: 650; margin-bottom: 12px; }
.mentor-tips ol { padding-left: 1.2em; margin: 0; display: grid; gap: 10px; color: var(--ink-2); font-size: var(--t-sm); }
.sched { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.sched-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.sched-row + .sched-row { border-top: 1px solid var(--line); }
.sched-date { width: 56px; text-align: center; display: flex; flex-direction: column; font-size: var(--t-xs); color: var(--muted); }
.sched-date b { font-size: var(--t-xl); color: var(--ink); line-height: 1.1; }
.sched-body { flex: 1; min-width: 0; }
.sched-body b { display: block; font-weight: 600; }
.sched-body small { color: var(--muted); font-size: var(--t-sm); }

/* ── Reyting ── */
.me-rank { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--r-xl); margin-bottom: 20px; flex-wrap: wrap; }
.me-rank .av { background: var(--lime); color: var(--lime-ink); }
.me-rank .eyebrow { color: var(--lime); }
.mr-main { flex: 1; min-width: 180px; }
.mr-main h2 { font-size: var(--t-xl); font-weight: 700; margin: 4px 0 10px; }
.mr-main .help { color: var(--sb-muted); }
.mr-next { display: flex; align-items: center; gap: 12px; max-width: 380px; }
.mr-next .bar { flex: 1; }
.mr-next span { color: var(--sb-muted); font-size: var(--t-sm); white-space: nowrap; }
.mr-points { text-align: right; }
.mr-points b { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.mr-points span { color: var(--sb-muted); font-size: var(--t-sm); }
.lb { overflow: hidden; }
.lb-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 64px; align-items: center; gap: 12px; padding: 14px 16px; font-size: var(--t-sm); }
.lb-row > :nth-child(3) { display: none; }
.lb-head { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.lb-row.is-me { background: var(--green-soft); }
.lb-user { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.lb-user .av { width: 30px; height: 30px; font-size: 0.6875rem; }
.lb-row > :last-child { text-align: right; font-weight: 650; }
.lb-empty { display: flex; gap: 10px; align-items: flex-start; padding: 18px; color: var(--muted); font-size: var(--t-sm); border-top: 1px solid var(--line); }
@media (min-width: 600px) {
  .lb-row { grid-template-columns: 56px minmax(0, 1fr) 120px 72px; padding: 14px 18px; }
  .lb-row > :nth-child(3) { display: block; }
}

/* ── Statistika ── */
.stat-sec { padding: 22px; margin-bottom: 16px; }
.stat-grid { display: grid; gap: 16px; }
.stat-grid .stat-sec { margin-bottom: 0; }
@media (min-width: 1000px) { .stat-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
/* Faollik skyline (js/skyline.js): 2D xarita <-> 3D minoralar, canvas */
.sk { position: relative; color: var(--ink); background: var(--surface); --sk-ease: cubic-bezier(0.65, 0, 0.35, 1); }
.sk-panel { padding: 22px 22px 14px; }
.sk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; margin-bottom: 14px; }
.sk-title h2 { font-size: var(--t-lg); font-weight: 650; letter-spacing: -0.01em; }
.sk-sum { margin-top: 2px; font-size: var(--t-sm); color: var(--muted); }
.sk-sum b { color: var(--ink); font-weight: 650; }
.sk-toggle { position: relative; display: inline-flex; flex-shrink: 0; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.sk-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 36px; border-radius: 5px; background: var(--ink); transition: transform 500ms var(--sk-ease); }
.sk[data-view="3d"] .sk-thumb { transform: translateX(100%); }
.sk-toggle button { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 30px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; transition: color 300ms; }
.sk-toggle button[aria-pressed="true"] { color: var(--surface); }
.sk-toggle button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.sk-body { position: relative; }
.sk-stage { position: relative; width: 100%; height: 150px; overflow: hidden; border-radius: var(--r-sm); }
.sk-stage canvas { position: absolute; top: 0; left: 0; display: block; outline: none; max-width: none; }
.sk-stage:has(canvas:focus-visible) { outline: 2px solid var(--green); outline-offset: 4px; }

.sk-corner { pointer-events: none; position: absolute; display: flex; flex-direction: column; gap: 18px; opacity: 0; transition: opacity 300ms var(--sk-ease), transform 300ms var(--sk-ease); }
/* Tepada ikki raqam yonma-yon: oxirgi haftalarning baland ustunlari o'ng tomonda tepaga o'sadi */
.sk-corner-top { top: 4px; right: 4px; flex-direction: row; gap: 32px; align-items: flex-start; transform: translateY(-10px); }
.sk-corner-bottom { bottom: 4px; left: 4px; align-items: flex-start; transform: translateY(10px); }
.sk.has-corners[data-view="3d"] .sk-corner { opacity: 1; transform: none; transition-duration: 600ms; }
.sk.has-corners[data-view="3d"] .sk-corner-top { transition-delay: calc(var(--sk-dur) * 0.55); }
.sk.has-corners[data-view="3d"] .sk-corner-bottom { transition-delay: calc(var(--sk-dur) * 0.65); }
.sk:not(.has-corners) .sk-corner { display: none; }

.sk-stat { display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 8px; }
.sk-stat-l { grid-column: 1 / -1; font-size: var(--t-sm); color: var(--muted); line-height: 1.3; }
.sk-stat.is-end .sk-stat-l { text-align: right; }
.sk-stat-v { font-size: var(--sk-big, 40px); font-weight: 650; line-height: 0.95; letter-spacing: -0.03em; color: var(--sk-accent); transition: color 500ms; }
.sk-stat-us { display: flex; flex-direction: column; padding-bottom: 0.15em; line-height: 1.25; }
.sk-stat-u { font-size: var(--t-md); }
.sk-stat-s { font-size: var(--t-sm); color: var(--muted); white-space: nowrap; }
/* Pastki qator: raqam + birlik bir qatorda, sana oralig'i alohida qatorda (tor ekranda sig'ishi uchun) */
.sk-stat.is-stack { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "l l" "v u" "s s"; align-items: baseline; justify-items: start; column-gap: 6px; min-width: 0; }
.sk-stat.is-stack .sk-stat-l { grid-area: l; }
.sk-stat.is-stack .sk-stat-v { grid-area: v; font-size: 1.75rem; margin-top: 4px; }
.sk-stat.is-stack .sk-stat-us { display: contents; }
.sk-stat.is-stack .sk-stat-u { grid-area: u; }
.sk-stat.is-stack .sk-stat-s { grid-area: s; max-width: 100%; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }

.sk-row { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--sk-dur) var(--sk-ease), opacity var(--sk-dur) var(--sk-ease); }
.sk-row.is-open { grid-template-rows: 1fr; opacity: 1; }
.sk-row > div { min-height: 0; overflow: hidden; }
.sk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; padding: 16px 0 4px; }

.sk-tip { pointer-events: none; position: absolute; top: 0; left: 0; z-index: 5; white-space: nowrap; padding: 7px 10px; border-radius: var(--r-sm); background: var(--ink); color: var(--surface); font-size: var(--t-xs); line-height: 1; box-shadow: 0 10px 24px -8px oklch(0.2 0.02 150 / 0.35); opacity: 0; transition: opacity 150ms; }
.sk-tip.is-on { opacity: 1; }
.sk-tip strong { font-weight: 650; }
.sk-tip span { opacity: 0.75; }
.sk-tip i { position: absolute; top: 100%; left: var(--arrow, 50%); margin-left: -5px; border: 5px solid transparent; border-top-color: var(--ink); border-bottom: 0; }

.sk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--muted); }
.sk-hint { flex: 1 1 220px; }
.sk-legend { display: flex; align-items: center; gap: 5px; }
.sk-legend span:first-child { margin-right: 2px; }
.sk-legend span:last-child { margin-left: 2px; }
.sk-legend button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 3px; cursor: pointer; box-shadow: inset 0 0 0 1px oklch(0.5 0 0 / 0.12); transition: background-color 500ms, transform 300ms var(--ease); }
.sk-legend button[aria-pressed="true"], .sk-legend button:hover { transform: scale(1.3); }
.sk .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .sk-thumb, .sk-row, .sk-corner, .sk-legend button { transition: none; } }
.mod-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.mod-bars li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 44px; align-items: center; gap: 6px 10px; font-size: var(--t-sm); }
.mod-bars .mono { color: var(--faint); }
.mod-bars .mb-name { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-bars .tnum { text-align: right; color: var(--muted); }
.mod-bars .bar { grid-column: 2 / -1; grid-row: 2; height: 5px; }
.quiz-list { list-style: none; padding: 0; margin: 0; }
.quiz-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.quiz-list a { color: var(--ink-2); }
.quiz-list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.stat-plan { margin-top: 14px; }

/* ── Sertifikat ── */
.cert-page { display: flex; flex-direction: column; gap: 24px; max-width: 900px; }
.cert-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cert-head h2 { font-size: var(--t-xl); font-weight: 650; margin-bottom: 10px; }
.cert-head .course-progress { min-width: min(320px, 100%); }
.cert { --c-ink: oklch(0.2 0.012 150); --c-green: oklch(0.47 0.13 148); position: relative; margin: 0; aspect-ratio: 1.414; background: oklch(0.99 0.004 150); color: var(--c-ink); border-radius: var(--r-lg); padding: clamp(10px, 2.2vw, 20px); box-shadow: var(--shadow); border: 1px solid var(--line); container-type: inline-size; }
.cert-in { height: 100%; border: 1.5px solid var(--c-ink); border-radius: 10px; outline: 1px solid oklch(0.2 0.012 150 / 0.22); outline-offset: -7px; padding: 5cqi 6cqi; display: flex; flex-direction: column; }
.cert-top { display: flex; justify-content: space-between; align-items: center; }
.cert .cert-brand { color: var(--c-ink); font-size: 2.8cqi; }
.cert .cert-brand b { color: var(--c-green); }
.cert .brand-mark { background: var(--c-green); width: 1cqi; height: 2.6cqi; }
.cert-id { font-size: 1.5cqi; color: oklch(0.5 0.01 150); }
.cert-eyebrow { margin-top: auto; font-size: 1.8cqi; letter-spacing: 0.32em; text-transform: uppercase; color: var(--c-green); }
.cert-small { font-size: 2cqi; color: oklch(0.42 0.012 150); }
.cert-name { font-family: var(--brand-font); font-size: 6.6cqi; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 1.4cqi 0; }
.cert-foot { margin-top: auto; display: flex; align-items: flex-end; gap: 6cqi; padding-top: 3cqi; border-top: 1px solid oklch(0.86 0.006 150); }
.cert-foot div span { display: block; font-size: 1.45cqi; color: oklch(0.5 0.01 150); }
.cert-foot b { font-size: 1.95cqi; font-weight: 650; }
.cert-seal { margin-left: auto; width: 9cqi; height: 9cqi; border-radius: 50%; background: var(--c-green); color: oklch(0.98 0.03 130); display: grid; place-items: center; }
.cert-seal .ic { width: 50%; height: 50%; }
.cert.is-locked .cert-in { opacity: 0.32; filter: grayscale(1); }
.cert-lock { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 18px; background: var(--ink); color: var(--surface); display: grid; place-items: center; }
.cert-lock .ic { width: 26px; height: 26px; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff; }
  body * { visibility: hidden; }
  .cert, .cert * { visibility: visible; }
  .cert { position: fixed; inset: 0; margin: auto; width: 100%; box-shadow: none; border: 0; }
}

/* ── Referral ── */
.ref-card { padding: 24px; border-radius: var(--r-xl); margin-bottom: 20px; display: grid; gap: 20px; }
.ref-code { font-size: 2rem; font-weight: 700; letter-spacing: 0.06em; margin: 6px 0 16px; color: var(--lime); }
.ref-link .input { background: var(--sb-panel); border-color: var(--sb-line); color: var(--sb-muted); font-size: var(--t-sm); max-width: 540px; }
.ref-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ref-terms { color: var(--sb-muted); font-size: var(--t-sm); padding-top: 16px; border-top: 1px solid var(--sb-line); }
.ref-terms b { color: var(--sb-ink); }
@media (min-width: 700px) { .ref-card { padding: 32px; } .ref-code { font-size: 2.75rem; } }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 4px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); font-size: var(--t-md); color: var(--ink-2); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: var(--t-sm); color: var(--faint); padding-top: 2px; }
.steps b { color: var(--ink); font-weight: 600; }

/* ── Sozlamalar ── */
.set-grid { display: grid; gap: 16px; }
@media (min-width: 1000px) { .set-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.set-col { display: flex; flex-direction: column; gap: 16px; }
.set-sec { padding: 22px; }
.set-sec h3 { display: flex; align-items: center; gap: 8px; font-size: var(--t-base); font-weight: 650; margin-bottom: 14px; }
.set-me { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.set-me h2 { font-size: var(--t-lg); font-weight: 650; }
.set-form { display: flex; flex-direction: column; gap: 16px; }
.set-form .btn { align-self: flex-start; }
.toggles { list-style: none; padding: 0; margin: 0 0 12px; }
.toggles li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggles li:last-child { border-bottom: 0; }
.toggles label { cursor: pointer; }
.toggles label b { display: block; font-weight: 600; }
.toggles label small { display: block; font-size: var(--t-sm); color: var(--muted); }
.kv { margin: 0 0 16px; border-top: 1px solid var(--line); }
.set-sec.dev { border-style: dashed; }
.set-sec.dev .seg { margin: 12px 0; }

/* ── Skillar ── */
.skl-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.skl-card { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.skl-card:hover { border-color: var(--green); transform: translateY(-2px); }
.skl-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.skl-card h3 { margin: 6px 0 0; font-size: 17px; }
.skl-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; flex: 1; }
.skl-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r); background: var(--green-soft); color: var(--green-ink); }
.skl-ic .ic { width: 20px; height: 20px; }
.skl-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--green-ink); }
.skl-more .ic { width: 16px; height: 16px; }
.skl-all { margin-top: 20px; display: inline-flex; align-items: center; gap: 4px; }
.skl-all .ic { width: 16px; height: 16px; }
