/* ==========================================================================
   UniMentor — uslublar
   Ko'rinish g'oyasi (UniMentor belgisidan): tong osmoni, yulduzga olib boradigan yo'l.
   Ko'k asosiy harakatlar uchun, oltin rang faqat yutuq va yulduz uchun ishlatiladi.
   ========================================================================== */

:root {
  color-scheme: light;
  /* Yorug' rejim */
  --bg: #eaf1ff;
  --ink: #0b1b5c;
  --muted: #4a5a85;
  --accent: #1553d4;
  --accent-ink: #ffffff;
  --teal: #1553d4;
  --glass: rgba(255, 255, 255, .60);
  --glass-2: rgba(255, 255, 255, .86);
  --edge: rgba(255, 255, 255, .92);
  --hair: rgba(11, 27, 92, .13);
  --field: rgba(255, 255, 255, .9);
  --glow-1: rgba(255, 190, 80, .46);
  --glow-2: rgba(60, 120, 255, .30);
  --glow-3: rgba(130, 110, 255, .20);
  --good: #0a7a52;
  --good-bg: rgba(10, 122, 82, .12);
  --warn: #99560a;
  --warn-bg: rgba(255, 196, 110, .32);
  --bad: #b3261e;
  --shadow: 0 18px 44px -26px rgba(11, 40, 120, .45), inset 0 1px 0 rgba(255, 255, 255, .7);
  --f-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --f-body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --gold: #f5b014;
  --gold-ink: #3a2600;
  --bar: rgba(255, 255, 255, .93);
  --r: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #070c22;
    --ink: #eaf0ff;
    --muted: #a3b2d9;
    --accent: #8fb0ff;
    --accent-ink: #06102e;
    --teal: #9db8ff;
    --glass: rgba(255, 255, 255, .07);
    --glass-2: rgba(255, 255, 255, .13);
    --edge: rgba(255, 255, 255, .17);
    --hair: rgba(255, 255, 255, .15);
    --field: rgba(255, 255, 255, .08);
    --glow-1: rgba(255, 180, 70, .15);
    --glow-2: rgba(50, 90, 255, .34);
    --glow-3: rgba(120, 90, 255, .22);
    --good: #5fe0a8;
    --good-bg: rgba(95, 224, 168, .14);
    --warn: #ffd08a;
    --warn-bg: rgba(255, 176, 87, .16);
    --bad: #ff9a8f;
    --gold: #ffc94d;
    --gold-ink: #2b1c00;
    --bar: rgba(16, 24, 58, .94);
    --shadow: 0 22px 50px -28px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .10);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070c22;
  --ink: #eaf0ff;
  --muted: #a3b2d9;
  --accent: #8fb0ff;
  --accent-ink: #06102e;
  --teal: #9db8ff;
  --glass: rgba(255, 255, 255, .07);
  --glass-2: rgba(255, 255, 255, .13);
  --edge: rgba(255, 255, 255, .17);
  --hair: rgba(255, 255, 255, .15);
  --field: rgba(255, 255, 255, .08);
  --glow-1: rgba(255, 180, 70, .15);
  --glow-2: rgba(50, 90, 255, .34);
  --glow-3: rgba(120, 90, 255, .22);
  --good: #5fe0a8;
  --good-bg: rgba(95, 224, 168, .14);
  --warn: #ffd08a;
  --warn-bg: rgba(255, 176, 87, .16);
  --bad: #ff9a8f;
  --gold: #ffc94d;
  --gold-ink: #2b1c00;
  --bar: rgba(16, 24, 58, .94);
  --shadow: 0 22px 50px -28px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .10);
}

/* ---------- Asos ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--bg); min-height: 100%;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px 420px at 88% -4%, var(--glow-1), transparent 70%),
    radial-gradient(620px 480px at 4% 8%, var(--glow-2), transparent 70%),
    radial-gradient(560px 460px at 60% 104%, var(--glow-3), transparent 70%);
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 18px; }
h1, h2, h3 { text-wrap: balance; }
h1, h2, .brand, .num, .big { font-family: var(--f-display); letter-spacing: -.02em; }
h2 { font-size: clamp(22px, 3.2vw, 28px); line-height: 1.2; }
h3 { font-size: 17px; line-height: 1.3; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}

.glass {
  background: var(--glass); border: 1px solid var(--edge); border-radius: var(--r);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow);
}
.stack { display: flex; flex-direction: column; gap: 22px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); }
.lead { color: var(--muted); max-width: 64ch; }
.hint { font-size: 13.5px; color: var(--muted); max-width: 70ch; }
.head { display: flex; flex-direction: column; gap: 6px; }
.sec { font-size: 20px; margin-bottom: 12px; }
.sec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.link { background: none; border: 0; color: var(--teal); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; }

/* ---------- Navigatsiya ---------- */
.site-head { position: sticky; top: 0; z-index: 40; padding: 10px 0; }
.nav { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-radius: 18px; }
.brand { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font-size: 18px; font-weight: 700; white-space: nowrap; margin-right: auto; }
/* UniMentor belgisi: ranglar yorug' va qorong'i rejimga moslashadi */
.brand { --lg-a: #1257d6; --lg-b: #0c1f7c; --lg-c: #2f74e6; --lg-d: #ffffff; color: #0f1f7a; font-size: 21px; gap: 9px; }
.brand .logo { flex: none; }
.lg-a { fill: var(--lg-a); } .lg-b { fill: var(--lg-b); } .lg-c { fill: var(--lg-c); } .lg-d { fill: var(--lg-d); opacity: .9; } .lg-star { fill: #f6b313; }
:root[data-theme="dark"] .brand { --lg-a: #6f9bff; --lg-b: #3a5fe0; --lg-c: #9db8ff; --lg-d: #0a1320; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand { --lg-a: #6f9bff; --lg-b: #3a5fe0; --lg-c: #9db8ff; --lg-d: #0a1320; color: var(--ink); } }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: none; padding: 9px 13px; border-radius: 11px; font-weight: 600; font-size: 14.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab:hover { background: var(--glass-2); color: var(--ink); }
.tab.on { background: var(--ink); color: var(--bg); }
.theme { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--hair); background: var(--glass-2); cursor: pointer; }
.theme svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme .i-sun { display: none; }
.is-dark .theme .i-sun { display: block; }
.is-dark .theme .i-moon { display: none; }
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; padding: 10px 12px; }
  .tabs { order: 3; width: 100%; }
}

/* ---------- Sahifalar ---------- */
.page { display: none; padding: 18px 0 90px; }
.page.on { display: block; }

/* ---------- Tugmalar, chip, segment ---------- */
.btn { border: 1px solid transparent; cursor: pointer; font-weight: 700; font-size: 15.5px; padding: 13px 22px; border-radius: 14px; transition: transform .12s, background .12s; }
.btn:active { transform: scale(.98); }
.btn.pri { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -12px var(--accent); }
.btn.pri:hover { filter: brightness(1.07); }
.btn.ghost { background: var(--glass-2); border-color: var(--hair); }
.btn.ghost:hover { border-color: var(--accent); }
.btn.sm { padding: 9px 14px; font-size: 14px; border-radius: 11px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--hair); background: var(--glass-2); padding: 8px 14px; border-radius: 99px; font-weight: 600; font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
span.chip { cursor: default; }
span.chip:hover { border-color: var(--hair); }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 13px; background: var(--field); border: 1px solid var(--hair); }
.seg button { border: 0; background: none; padding: 8px 13px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: var(--bg); }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--hair); white-space: nowrap; }
.badge.good { color: var(--good); background: var(--good-bg); border-color: transparent; }
.badge.warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.badge.acc { color: var(--accent-ink); background: var(--accent); border-color: transparent; }

.notice { padding: 12px 16px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); font-size: 14px; font-weight: 600; }

/* ---------- Bosh sahifa ---------- */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero-main { padding: 34px 30px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.hero-main h1 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.1; }
.hero-main h1 em { font-style: normal; color: var(--accent); }
.hero-side { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.hero-side .cap { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 16px 18px; }
.stat .big { font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; display: block; }
.stat span:last-child { font-size: 13.5px; color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
.step { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.step .num { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: var(--bg); font-weight: 700; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Muddatlar ---------- */
.dl-list { display: flex; flex-direction: column; gap: 10px; }
.dl { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; }
.dl .date { font-family: var(--f-display); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dl .date small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 12.5px; color: var(--muted); }
.dl h3 { font-size: 15.5px; }
.dl p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.dl .meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.dl .left { font-weight: 700; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl.soon .left { color: var(--accent); }
@media (max-width: 640px) {
  .dl { grid-template-columns: 76px 1fr; }
  .dl .meta { grid-column: 1 / -1; flex-direction: row; align-items: center; }
}

/* ---------- Test ---------- */
.quiz { max-width: 720px; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.progress { height: 8px; border-radius: 99px; background: var(--hair); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--accent)); transition: width .3s; }
.q-meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.q-text { font-size: clamp(18px, 2.8vw, 22px); font-weight: 600; line-height: 1.35; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--hair); background: var(--glass-2); cursor: pointer; font-weight: 500; }
.opt:hover { border-color: var(--accent); }
.opt .k { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--hair); font-weight: 700; font-size: 13px; }
.opt.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.opt.on .k { background: var(--accent); color: var(--accent-ink); }
.q-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .field > .lbl { font-weight: 600; font-size: 14.5px; }
.field input[type="text"] { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--hair); background: var(--field); max-width: 340px; }
.err { color: var(--bad); font-size: 13.5px; font-weight: 600; }
.filters input[type="search"], .filters select { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--hair); background: var(--field); flex: 1 1 180px; min-width: 0; }
select option { color: #13243a; background: #fff; }
.filters { padding: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.count { font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- Natija ---------- */
.res-head { padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.res-head h2 span { color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.pane { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.radar { width: 100%; height: auto; display: block; }
.radar .rg { fill: none; stroke: var(--hair); stroke-width: 1; }
.radar .ax { stroke: var(--hair); stroke-width: 1; }
.radar .ru { fill: var(--accent); fill-opacity: .22; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.radar .rd { fill: var(--accent); stroke: var(--bg); stroke-width: 1.5; }
.radar .rc { fill: none; stroke: var(--teal); stroke-width: 2; stroke-dasharray: 5 5; stroke-linejoin: round; }
.radar text { fill: var(--ink); font-family: var(--f-body); font-size: 12.5px; font-weight: 600; }
.radar text .v { fill: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--accent); vertical-align: middle; margin-right: 6px; }
.legend i.d { border-top: 2px dashed var(--teal); }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row .lbl { display: flex; justify-content: space-between; font-weight: 600; font-size: 14.5px; }
.bar-row .lbl span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-row small { color: var(--muted); font-size: 12.5px; }
.bar { height: 8px; border-radius: 99px; background: var(--hair); overflow: hidden; margin: 5px 0 3px; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--teal); }
.bar-row.top .bar i { background: var(--accent); }

.top3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .top3 { grid-template-columns: 1fr; } }
.pick { padding: 20px; display: flex; flex-direction: column; gap: 10px; text-align: left; cursor: pointer; }
.pick:hover { background: var(--glass-2); }
.pick.on { box-shadow: 0 0 0 2px var(--accent) inset, var(--shadow); }
.pick .rank { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pick .pct { font-family: var(--f-display); font-size: 40px; font-weight: 700; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.pick .pct small { font-size: 14px; font-family: var(--f-body); color: var(--muted); font-weight: 600; }
.pick p { font-size: 13.5px; color: var(--muted); }
.pick .go { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--teal); }

/* ---------- Kasb tafsiloti va simulyator ---------- */
.detail { scroll-margin-top: 96px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.detail h3.t { font-family: var(--f-display); font-size: 23px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; }
.sub { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sim { border: 1px solid var(--hair); border-radius: 16px; padding: 20px; background: var(--glass-2); display: flex; flex-direction: column; gap: 14px; }
.sim .sit { font-size: 16.5px; font-weight: 600; line-height: 1.45; }
.sim .opt.best { border-color: var(--good); box-shadow: 0 0 0 2px var(--good) inset; }
.sim .opt.miss { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad) inset; }
.sim .opt[disabled] { cursor: default; opacity: 1; }
.fb { padding: 12px 14px; border-radius: 12px; font-size: 14.5px; background: var(--good-bg); color: var(--ink); border-left: 4px solid var(--good); }
.fb.mid { background: var(--warn-bg); border-left-color: var(--warn); }
.fb.low { background: rgba(179, 38, 30, .10); border-left-color: var(--bad); }
.fb b { display: block; margin-bottom: 2px; }
.score { font-family: var(--f-display); font-size: 46px; font-weight: 700; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.score small { font-family: var(--f-body); font-size: 15px; color: var(--muted); font-weight: 600; }
.steps-dots { display: flex; gap: 6px; }
.steps-dots i { width: 28px; height: 6px; border-radius: 99px; background: var(--hair); }
.steps-dots i.done { background: var(--teal); }
.steps-dots i.cur { background: var(--accent); }

/* ---------- Kartalar ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cards.wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.cards.mini { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 400px) { .cards, .cards.wide, .cards.mini { grid-template-columns: 1fr; } }
.card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card.flat { background: var(--glass-2); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--hair); }
.card .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.card p { font-size: 14px; color: var(--muted); }
.card .where { font-size: 13.5px; color: var(--muted); }
.card .foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding-top: 8px; }
.card .facts { font-size: 13.5px; gap: 5px 12px; }
.card .facts dd { font-weight: 500; }
.empty { padding: 34px 24px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty p { color: var(--muted); max-width: 52ch; }
.src { padding: 14px 18px; }
.src summary { font-weight: 600; cursor: pointer; }
.src ul { margin: 10px 0 0 18px; font-size: 14px; display: grid; gap: 4px; }

footer { padding: 0 0 36px; color: var(--muted); font-size: 13.5px; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--hair); padding-top: 18px; }

/* ==========================================================================
   6–14-modullar uchun uslublar
   ========================================================================== */

/* ---------- Ichki navigatsiya va bosh sahifadagi vositalar ---------- */
.subnav { display: flex; }
.subnav .seg { max-width: 100%; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .tools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tools { grid-template-columns: 1fr; } }
.tool { padding: 20px; display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; }
.tool:hover { background: var(--glass-2); }
.tool p { font-size: 14px; color: var(--muted); }
.tool .go { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; color: var(--teal); }

/* ---------- Umumiy forma elementlari ---------- */
.inp, textarea.inp, select.inp { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--hair); background: var(--field); color: var(--ink); font: inherit; }
textarea.inp { min-height: 150px; resize: vertical; line-height: 1.5; }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.form { display: grid; gap: 14px; }
.form .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form .two-col { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 11px; cursor: pointer; font-size: 15px; }
.check:hover { background: var(--glass-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.check input:checked + span { color: var(--muted); }
.check.done input:checked + span { text-decoration: line-through; }
.status-line { font-size: 14px; font-weight: 600; min-height: 20px; }
.status-line.ok { color: var(--good); }
.status-line.bad { color: var(--bad); }

/* ---------- 6. Grant kalkulyatori ---------- */
.sliders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .sliders { grid-template-columns: 1fr; } }
.slider label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 14.5px; }
.slider output { font-family: var(--f-display); font-size: 26px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.slider input[type="range"] { width: 100%; accent-color: var(--accent); margin: 8px 0 2px; }
.slider small { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sum div { padding: 14px 16px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--hair); border-top: 4px solid var(--hair); }
.sum b { font-family: var(--f-display); font-size: 28px; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.sum span { font-size: 13px; color: var(--muted); }
.sum .yashil { border-top-color: var(--good); } .sum .sariq { border-top-color: var(--warn); } .sum .qizil { border-top-color: var(--bad); }
.st-list { display: flex; flex-direction: column; gap: 10px; }
.st { display: grid; grid-template-columns: 1.1fr 1.6fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-left: 5px solid var(--hair); }
.st h3 { font-size: 15.5px; }
.st .where, .st p { font-size: 13.5px; color: var(--muted); }
.st p b { color: var(--ink); }
.st-yashil { border-left-color: var(--good); } .st-sariq { border-left-color: var(--warn); } .st-qizil { border-left-color: var(--bad); }
.badge.bad { color: var(--bad); background: rgba(179, 38, 30, .10); border-color: transparent; }
@media (max-width: 760px) { .st { grid-template-columns: 1fr; gap: 6px; } .st .badge { justify-self: start; } }

/* ---------- 7. Sertifikat hisoblagichi ---------- */
.big-num { font-family: var(--f-display); font-size: clamp(44px, 8vw, 64px); font-weight: 700; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.big-num small { font-family: var(--f-body); font-size: 17px; color: var(--muted); font-weight: 600; }
.segbar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--hair); }
.segbar i { display: block; height: 100%; }
.segbar .s1 { background: var(--accent); } .segbar .s2 { background: var(--teal); } .segbar .s3 { background: var(--muted); }
.brk { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.brk span:first-child { color: var(--muted); }
.brk i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.rules { margin-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }

/* ---------- 8. Duel jadvali ---------- */
.tbl-wrap { overflow-x: auto; padding: 6px; }
table.tbl { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.tbl thead th { font-family: var(--f-display); font-size: 16px; }
.tbl thead th small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 12.5px; color: var(--muted); }
.tbl tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; width: 150px; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }

/* ---------- 9. Yo'l xaritasi ---------- */
.road { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 26px; }
.road::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--hair); }
.stage { position: relative; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.stage::before { content: ""; position: absolute; left: -25px; top: 24px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 3px solid var(--muted); }
.stage.cur::before { border-color: var(--accent); background: var(--accent); }
.stage.full::before { border-color: var(--good); background: var(--good); }
.stage .when { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); }
.stage .hd { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.stage .cnt { font-size: 13.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 10. Teskari sanoq ---------- */
.cd { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 520px; }
.cd-grid div { padding: 14px 8px; border-radius: 14px; background: var(--ink); color: var(--bg); text-align: center; }
.cd-grid b { display: block; font-family: var(--f-display); font-size: clamp(26px, 6vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.cd-grid span { font-size: 12.5px; opacity: .8; }

/* ---------- 11. ID-karta ---------- */
.idwrap { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .idwrap { grid-template-columns: 1fr; } }
.idcard { position: relative; overflow: hidden; border-radius: 24px; padding: 26px; color: #f3f8fb;
  background: radial-gradient(420px 300px at 100% 0%, rgba(255, 176, 87, .38), transparent 70%), linear-gradient(140deg, #10233f 0%, #0d3b4a 55%, #0b6b63 100%);
  box-shadow: 0 30px 60px -30px rgba(10, 30, 60, .7); display: flex; flex-direction: column; gap: 16px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.idcard .id-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.idcard .id-name { font-family: var(--f-display); font-size: clamp(26px, 5vw, 36px); font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.idcard .id-sub { font-size: 14px; opacity: .85; }
.idcard .id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .idcard .id-grid { grid-template-columns: 1fr; } }
.idcard .id-lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 3px; }
.idcard .id-val { font-weight: 700; font-size: 16px; line-height: 1.3; }
.idcard .id-val b { color: #ffc27a; }
.idcard .id-bars { display: grid; gap: 8px; }
.idcard .id-bar { display: grid; grid-template-columns: 110px 1fr 30px; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.idcard .id-bar i { display: block; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.idcard .id-bar i u { display: block; height: 100%; background: #ffc27a; border-radius: 99px; }
.idcard .id-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; opacity: .8; border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 12px; font-variant-numeric: tabular-nums; }
.share-text { white-space: pre-wrap; font-family: var(--f-body); font-size: 14px; padding: 14px; border-radius: 12px; background: var(--field); border: 1px solid var(--hair); overflow-wrap: anywhere; }

/* ---------- 12. Insho tahlili ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 640px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
.metric { padding: 12px 14px; border-radius: 13px; background: var(--glass-2); border: 1px solid var(--hair); }
.metric b { display: block; font-family: var(--f-display); font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric span { font-size: 12.5px; color: var(--muted); }
.advice { display: grid; gap: 8px; }
.advice div { padding: 10px 14px; border-radius: 12px; font-size: 14.5px; border-left: 4px solid var(--warn); background: var(--warn-bg); }
.advice div.ok { border-left-color: var(--good); background: var(--good-bg); }

/* ---------- 13. Ariza oynasi ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 16, 28, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.overlay[hidden] { display: none; }
.modal { width: 100%; max-width: 560px; max-height: 92%; overflow: auto; padding: 24px; border-radius: 22px; background: var(--bg); border: 1px solid var(--edge); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8); display: flex; flex-direction: column; gap: 14px; }
.modal h3 { font-family: var(--f-display); font-size: 21px; }

/* ---------- 14. Admin ---------- */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.lead-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.lead-row:last-child { border-bottom: 0; }
.lead-row small { color: var(--muted); }
textarea.json { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; min-height: 240px; white-space: pre; }

/* ---------- Chop etish: faqat ID-karta ---------- */
@media print {
  body { background: #fff; }
  body::before, .no-print { display: none !important; }
  html:not(.print-cv) .page:not(#v-karta), html.print-cv .page:not(#v-rezyume) { display: none !important; }
  html.print-cv #v-rezyume .subnav, html.print-cv #v-rezyume .head, html.print-cv .cv-form, html.print-cv .cv-actions { display: none !important; }
  html.print-cv .cv-wrap { display: block; } html.print-cv .cv-paper { box-shadow: none; border: 0; padding: 0; color: #000; background: #fff; }
  .page { padding: 0; }
  .idwrap { grid-template-columns: 1fr; }
  .idcard { box-shadow: none; max-width: 560px; }
}
a.btn { display: inline-block; text-decoration: none; color: var(--ink); }
label.chip { display: inline-flex; align-items: center; }
.field input.inp { max-width: none; }

/* ---------- Joylash bosqichida qo'shilganlar: ariza oynasi, maxfiylik, pastki havolalar ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.noscript { margin: 16px; padding: 14px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--ink); }
details.more { border: 1px solid var(--hair); border-radius: 12px; padding: 0 12px; }
details.more > summary { cursor: pointer; padding: 10px 0; font-weight: 600; font-size: 14px; color: var(--muted); }
details.more[open] > summary { color: var(--ink); }
details.more .share-text { margin: 0 0 12px; }
.check.consent { align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.check.consent input { margin-top: 3px; flex: none; }
.foot-links { display: inline-flex; gap: 18px; }
.prose { display: grid; gap: 10px; max-width: 760px; }
.prose h3 { font-family: var(--f-display); font-size: 19px; margin-top: 14px; }
.prose h3:first-child { margin-top: 0; }
.prose p { line-height: 1.6; max-width: 68ch; }
.prose a { color: var(--accent); }

/* ==========================================================================
   UniMentor ko'rinishi (2026-11): belgi ranglari, yo'l xaritasi, telefon uchun pastki menyu
   ========================================================================== */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--teal); }
.hero-side .cap, .cap { letter-spacing: 0; text-transform: none; font-size: 14px; }
.hero-main { padding: 38px 34px; }
.hero-main h1 { font-size: clamp(30px, 4.8vw, 50px); line-height: 1.06; }
.btn.pri { box-shadow: 0 12px 26px -14px var(--accent); }
.btn { min-height: 44px; }
.btn.sm { min-height: 38px; }

/* Sarlavha paneli: shisha fon alohida qatlamda (pastki menyu ekranga yopishishi uchun) */
.nav { position: relative; isolation: isolate; }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--glass); border: 1px solid var(--edge); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
}
.tab .ti { display: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab .t-short { display: none; }

/* Bosh sahifadagi ko'rsatkichlar: to'rtta alohida karta o'rniga bitta tasma */
.stats { gap: 0; padding: 4px 6px; }
.stat { padding: 14px 18px; border-left: 1px solid var(--hair); }
.stat:first-child { border-left: 0; }
.stat .big { font-size: 26px; }

/* ---------- Yo'l xaritasi: bosh sahifadagi asosiy tasvir ---------- */
.road-card { position: relative; overflow: hidden; padding: 18px 18px 16px; gap: 4px; }
.road-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52'%3E%3Cg fill='none' stroke='%235b84ff' stroke-width='1.2'%3E%3Crect x='15' y='15' width='22' height='22'/%3E%3Crect x='15' y='15' width='22' height='22' transform='rotate(45 26 26)'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 62%); mask-image: linear-gradient(200deg, #000, transparent 62%);
}
.road-card > * { position: relative; z-index: 1; }
.roadmap { position: relative; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 360 / 440; }
.roadmap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rd-s1 { stop-color: var(--accent); } .rd-s2 { stop-color: var(--rd-top, #0b1b5c); }
.rd-body { fill: none; stroke: url(#rd-g); stroke-width: 30; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: rd-draw 1.3s cubic-bezier(.3, .7, .2, 1) forwards; }
.rd-dash { fill: none; stroke: #fff; stroke-width: 2.4; stroke-dasharray: 9 12; stroke-linecap: round; opacity: 0; animation: rd-in .5s 1s forwards; }
.rd-star { fill: var(--gold); transform-origin: 300px 40px; animation: rd-star .7s 1.15s cubic-bezier(.3, 1.6, .5, 1) backwards; }
.rd-glow { fill: var(--gold); opacity: .22; }
.rd-goal { font-family: var(--f-display); font-weight: 700; font-size: 17px; fill: var(--ink); }
@keyframes rd-draw { to { stroke-dashoffset: 0; } }
@keyframes rd-in { to { opacity: .85; } }
@keyframes rd-star { from { transform: scale(0) rotate(-40deg); } }
:root[data-theme="dark"] .roadmap { --rd-top: #3a5fe0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .roadmap { --rd-top: #3a5fe0; } }

.roadmap ol { list-style: none; }
.rs { position: absolute; width: 0; height: 0; }
.rs button { position: absolute; top: 0; transform: translateY(-50%); display: flex; align-items: center; gap: 9px; background: none; border: 0; cursor: pointer; text-align: left; padding: 4px 0; }
.rs.r button { left: -18px; }
.rs.l button { right: -18px; flex-direction: row-reverse; text-align: right; }
.rs .dot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 16px; background: #fff; color: #0b1b5c; border: 3px solid var(--accent); box-shadow: 0 6px 14px -6px rgba(8, 20, 70, .6); }
.rs .tx { display: grid; width: max-content; max-width: 150px; line-height: 1.25; }
.rs .tx b { font-size: 15px; }
.rs .tx small { font-size: 12.5px; color: var(--muted); }
.rs button:hover .tx b { text-decoration: underline; text-underline-offset: 3px; }
.rs.done .dot { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.rs.next .dot { background: var(--accent); color: var(--accent-ink); border-color: #fff; animation: rs-pulse 1.8s ease-out infinite; }
@keyframes rs-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.road-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
@media (prefers-reduced-motion: reduce) {
  .rd-body, .rd-dash, .rd-star, .rs.next .dot { animation: none !important; }
  .rd-body { stroke-dashoffset: 0; } .rd-dash { opacity: .85; }
}

/* ---------- Telefon va planshet: bo'limlar ekran pastidagi menyuda ---------- */
@media (max-width: 860px) {
  .nav { flex-wrap: nowrap; padding: 8px 10px 8px 14px; }
  .tabs {
    position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 45; order: 0; width: auto;
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; padding: 6px; overflow: visible;
    border-radius: 22px; background: var(--bar); border: 1px solid var(--edge);
    -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 16px 36px -14px rgba(8, 20, 70, .6);
  }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; padding: 7px 2px 6px; border-radius: 16px; font-size: 11px; }
  .tab .ti { display: block; }
  .tab .t-long { display: none; }
  .tab .t-short { display: block; }
  .tab.on { background: var(--accent); color: var(--accent-ink); }
  .page { padding-bottom: 120px; }
  footer { padding-bottom: 104px; }
  .hero-main { padding: 26px 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 380px) { .rs .tx { max-width: 128px; } .rs .tx b { font-size: 14px; } }
@media print { .tabs { display: none !important; } }
/* Birinchi qadam yozuvi yo'l ustiga chiqmasligi uchun nuqtadan pastga qarab joylashadi */
.rs:first-child button { transform: translateY(-22px); align-items: flex-start; }
.rs:first-child .tx { max-width: 210px; padding-top: 2px; }
.roadmap { margin-bottom: 18px; }

/* ==========================================================================
   Banner, yo'llanma va yangi bo'limlar (2026-11-15)
   ========================================================================== */
/* ---------- Bosh sahifa banneri: ochilishda yaqinlashib tiniqlashadi, so'ng sekin "nafas oladi" ---------- */
.banner { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 2 / 1; border-radius: 26px; background: #9fc0ff; box-shadow: 0 30px 60px -34px rgba(8, 20, 70, .7); animation: bn-frame 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.banner img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 53% 56%; animation: bn-in 1.5s cubic-bezier(.2, .7, .2, 1) both, bn-drift 22s ease-in-out 1.5s infinite alternate; }
.bn-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .6) 50%, transparent 62%); transform: translateX(-120%); animation: bn-sheen 1.3s ease-out .9s both; }
.bn-sun { position: absolute; left: 53.3%; top: 56%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 236, 170, .95), rgba(255, 190, 80, .45) 38%, transparent 68%); animation: bn-sun 5s ease-in-out 1.4s infinite alternate both; }
.bn-star { position: absolute; left: 40.1%; top: 7%; width: 5.2%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, #fff 0 14%, rgba(255, 220, 110, .9) 20%, transparent 62%); animation: bn-twinkle 2.6s ease-in-out 1.6s infinite both; }
.bn-sp { position: absolute; width: 1.1%; aspect-ratio: 1; pointer-events: none; opacity: 0; background: #ffe9a8; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: bn-spark 4.5s ease-in-out infinite; }
.bn-sp.s1 { left: 22%; top: 16%; animation-delay: 1.8s; } .bn-sp.s2 { left: 78%; top: 12%; animation-delay: 2.9s; width: .9%; }
.bn-sp.s3 { left: 61%; top: 30%; animation-delay: 3.6s; width: .8%; } .bn-sp.s4 { left: 9%; top: 33%; animation-delay: 4.4s; }
@keyframes bn-frame { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes bn-in { from { transform: scale(1.14); filter: blur(12px) saturate(.6) brightness(1.15); } to { transform: scale(1.02); filter: none; } }
@keyframes bn-drift { from { transform: scale(1.02); } to { transform: scale(1.07); } }
@keyframes bn-sheen { to { transform: translateX(120%); } }
@keyframes bn-sun { from { opacity: .35; transform: translate(-50%, -50%) scale(.9); } to { opacity: .85; transform: translate(-50%, -50%) scale(1.12); } }
@keyframes bn-twinkle { 0%, 100% { opacity: .25; transform: translate(-50%, -50%) scale(.7) rotate(0deg); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.25) rotate(45deg); } }
@keyframes bn-spark { 0%, 100% { opacity: 0; transform: scale(.4) translateY(0); } 40% { opacity: .95; transform: scale(1) translateY(-40%); } 70% { opacity: 0; transform: scale(.6) translateY(-90%); } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 20px 24px; margin-top: -8px; animation: bn-frame .9s .5s cubic-bezier(.2, .8, .2, 1) both; }
.hero-cta > div:first-child { flex: 1 1 380px; min-width: 0; }
.hero-cta > .row { flex: 0 1 auto; }
.hero-cta h1 { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.12; }
.hero-cta .hint { margin-top: 6px; }
@media (min-width: 861px) { .hero { grid-template-columns: 1fr 1.05fr; } }
.guide { justify-content: flex-start; gap: 12px; padding: 26px 24px; }
.guide-list { list-style: none; display: grid; gap: 4px; }
.guide-list button { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; width: 100%; padding: 11px 10px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.guide-list button:hover { background: var(--glass-2); }
.guide-list .gn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; background: var(--accent); color: var(--accent-ink); }
.guide-list b { display: block; font-size: 16.5px; }
.guide-list small { color: var(--muted); font-size: 14px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .banner, .banner img, .bn-sheen, .bn-sun, .bn-star, .bn-sp, .hero-cta { animation: none !important; } .bn-sheen, .bn-sp { display: none; } }

/* ---------- Umumiy bo'laklar ---------- */
.row.tight { gap: 6px; }
.grow { flex: 1; min-width: 0; }
.btn.save.on { background: var(--gold); color: var(--gold-ink); border-color: transparent; }
.btn.danger { color: var(--bad); }
.rows { display: grid; gap: 8px; }
.rowcard { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 14px 18px; }
.rowcard > div:first-child { display: grid; gap: 2px; min-width: 0; flex: 1 1 240px; }
.rowcard small { color: var(--muted); font-size: 13.5px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; }
.filters .inp { flex: 1 1 220px; max-width: 360px; }
.steps-list { padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }
.sub2 { font-weight: 700; font-size: 14.5px; margin-top: 6px; }
textarea.inp { width: 100%; resize: vertical; font: inherit; line-height: 1.45; }

/* ---------- 12 oylik reja ---------- */
.plan-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.plan-m { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.plan-m h3 { font-family: var(--f-display); font-size: 19px; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.plan-m.now { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.plan-m .check { align-items: flex-start; font-size: 14.5px; line-height: 1.4; }
.plan-m .check input { margin-top: 3px; flex: none; }
.plan-m .check input:checked + span { color: var(--muted); text-decoration: line-through; }
.plan-dl { list-style: none; display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); font-size: 13.5px; }

/* ---------- Farq tahlili ---------- */
.gap { display: grid; gap: 14px; }
.gap-row .lbl { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 14.5px; }
.gap-row .lbl span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); }
.gap-row .bar i.ok { background: var(--good); } .gap-row .bar i.low { background: var(--gold); }
.gap-row small { color: var(--muted); font-size: 13.5px; }

/* ---------- Maslahatchi ---------- */
.chat-log { display: flex; flex-direction: column; gap: 10px; max-height: 440px; overflow-y: auto; padding: 4px 2px; }
.msg { max-width: 86%; padding: 12px 14px; border-radius: 16px; display: grid; gap: 8px; line-height: 1.5; }
.msg.m { align-self: flex-start; background: var(--glass-2); border: 1px solid var(--hair); border-bottom-left-radius: 6px; }
.msg.siz { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.chat-form { display: flex; gap: 8px; }
.chat-form .inp { flex: 1; }

/* ---------- Rezyume ---------- */
.cv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
.cv-side { position: sticky; top: 84px; display: grid; gap: 12px; }
.cv-paper { background: #fff; color: #10193a; border-radius: 14px; padding: 30px 32px; min-height: 420px; box-shadow: 0 20px 44px -26px rgba(8, 20, 70, .6); display: grid; gap: 6px; align-content: start; overflow-wrap: anywhere; }
.cv-paper h3 { font-family: var(--f-display); font-size: 26px; line-height: 1.1; }
.cv-paper h4 { margin-top: 12px; padding-bottom: 4px; border-bottom: 2px solid #1553d4; font-size: 14px; color: #1553d4; }
.cv-paper p, .cv-paper li { font-size: 14.5px; line-height: 1.5; }
.cv-paper ul { padding-left: 18px; }
.cv-paper .cv-contact, .cv-paper .hint { color: #4a5a85; }

/* ---------- Ota-ona va maktab ---------- */
.rep-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.rep-row:last-child { border-bottom: 0; }
.rep-row > div { display: grid; gap: 2px; }
.rep-row small { color: var(--muted); font-size: 13.5px; }

@media (max-width: 860px) {
  .banner { border-radius: 20px; }
  .hero-cta { padding: 18px; }
  .cv-wrap { grid-template-columns: 1fr; }
  .cv-side { position: static; }
  .cv-paper { padding: 22px 20px; }
  .msg { max-width: 94%; }
  .subnav .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .subnav .seg button { white-space: nowrap; }
}

/* ==========================================================================
   Akkaunt kabineti (hisob.js)
   ========================================================================== */
.hs-form { max-width: 620px; }
.hs-bar { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px 18px; }
.hs-bar > div:first-child { display: grid; gap: 2px; }
.hs-bar small { color: var(--muted); font-size: 13.5px; }
.hs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hs-kod { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 6vw, 44px); letter-spacing: .08em; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.hs-kod.sm { font-size: 20px; padding: 4px 12px; border-radius: 10px; background: var(--glass-2); border: 1px dashed var(--accent); }
.hs-inline .inp { flex: 1 1 180px; max-width: 280px; text-transform: uppercase; }
.hs-inline #hs-sinf-nom { text-transform: none; }
.hs-under { justify-content: space-between; margin-top: -10px; padding: 0 6px; }
@media (max-width: 860px) { .hs-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Effektlar (fx.js yoqadi: <html class="fx">). "Harakatni kamaytirish" yoqilgan
   qurilmalarda bu sinf qo'yilmaydi, shuning uchun quyidagilarning hech biri ishlamaydi.
   ========================================================================== */
/* Osmon: sekin suzuvchi nur dog'lari va miltillovchi yulduzlar */
.fx body::before { inset: -8%; animation: glow-drift 30s ease-in-out infinite alternate; }
@keyframes glow-drift { from { transform: translate(-1.5%, -1%) scale(1); } to { transform: translate(2%, 1.5%) scale(1.1); } }
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; --star: rgba(21, 83, 212, .34); }
:root[data-theme="dark"] .sky { --star: rgba(255, 226, 150, .8); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sky { --star: rgba(255, 226, 150, .8); } }
.sky i { position: absolute; inset: -20%; background-size: 560px 560px; animation: sky-tw 5s ease-in-out infinite alternate, sky-move 120s linear infinite;
  background-image: radial-gradient(1.6px 1.6px at 12% 18%, var(--star), transparent), radial-gradient(1.2px 1.2px at 34% 62%, var(--star), transparent), radial-gradient(2px 2px at 58% 27%, var(--star), transparent),
    radial-gradient(1.2px 1.2px at 77% 71%, var(--star), transparent), radial-gradient(1.6px 1.6px at 91% 39%, var(--star), transparent), radial-gradient(1.1px 1.1px at 46% 88%, var(--star), transparent); }
.sky i + i { background-size: 380px 380px; background-position: 140px 90px; animation-duration: 7s, 180s; animation-delay: -3s, 0s; opacity: .7; }
@keyframes sky-tw { from { opacity: .25; } to { opacity: 1; } }
@keyframes sky-move { to { transform: translate(-560px, 280px); } }

/* Sahifa va bloklarning chiqishi */
.fx .page.on { animation: pg-in .32s ease both; }
@keyframes pg-in { from { opacity: 0; } }
.fx .fx-pre { opacity: 0; transform: translateY(24px) scale(.98); }
.fx .fx-pre.fx-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.fx .fx-fresh .bar i, .fx .fx-fresh .progress i { animation: bar-in 1s cubic-bezier(.2, .8, .2, 1) .15s both; }
@keyframes bar-in { from { width: 0; } }

/* Banner: sichqonga qarab og'adi, ustida nur yuradi, atrofida yog'du nafas oladi */
.fx .banner { --rx: 0deg; --ry: 0deg; transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s cubic-bezier(.2, .8, .2, 1);
  animation: bn-frame 1.1s cubic-bezier(.2, .8, .2, 1) backwards, bn-glow 6s ease-in-out 1.2s infinite alternate; }
.fx .banner.tilt { transition: transform .09s linear; }
.fx .banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; mix-blend-mode: soft-light;
  background: radial-gradient(460px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .75), transparent 62%); }
.fx .banner.tilt::after { opacity: 1; }
@keyframes bn-glow { from { box-shadow: 0 30px 60px -34px rgba(8, 20, 70, .7), 0 0 0 0 rgba(245, 176, 20, 0); } to { box-shadow: 0 36px 80px -30px rgba(21, 83, 212, .75), 0 0 46px -6px rgba(245, 176, 20, .55); } }
.fx .hero-cta h1 { background: linear-gradient(100deg, var(--ink) 20%, var(--accent) 50%, var(--ink) 80%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: txt-shine 7s linear infinite; }
@keyframes txt-shine { from { background-position: 110% 0; } to { background-position: -110% 0; } }

/* Kartalar: ko'tarilish va sichqon ortidan yuruvchi nur */
.fx :is(.card, .tool, .plan-m, .rowcard, .guide, .road-card, .adm-stat) { position: relative; isolation: isolate; }
.fx :is(.card, .tool, .plan-m, .rowcard, .guide, .road-card, .adm-stat)::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%); }
.fx :is(.card, .tool, .plan-m, .rowcard, .guide, .road-card, .adm-stat):hover::before { opacity: 1; }
.fx :is(.card, .tool, .plan-m):not(.fx-pre) { transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s; }
.fx :is(.card, .tool, .plan-m):not(.fx-pre):hover { transform: translateY(-5px); box-shadow: 0 28px 54px -28px rgba(11, 40, 120, .65), inset 0 1px 0 rgba(255, 255, 255, .5); }

/* Tugmalar: to'lqin va yaltirash */
.fx :is(.btn, .tab, .chip) { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .28; transform: scale(0); pointer-events: none; animation: ripple .62s ease-out forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.fx .btn.pri::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; transform: skewX(-20deg); pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); transition: left .65s ease; }
.fx .btn.pri:hover::after { left: 125%; }
.fx .btn.pri:hover { transform: translateY(-2px); }
.fx .chip, .fx .seg button, .fx .tab { transition: background .2s, color .2s, border-color .2s, transform .15s; }
.fx .tab.on .ti { animation: pop .42s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes pop { from { transform: scale(.6); } }
.fx .guide-list .gn { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.fx .guide-list button:hover .gn { transform: scale(1.12) rotate(-6deg); }
.fx .guide-list button { transition: background .2s, transform .2s; }
.fx .guide-list button:hover { transform: translateX(4px); }

/* Yulduzlar: logo va yo'l oxiridagi yulduz sekin yonib-o'chadi */
.fx .lg-star { transform-box: fill-box; transform-origin: center; animation: star-tw 3.2s ease-in-out infinite; }
.fx .rd-star { animation: rd-star .7s 1.15s cubic-bezier(.3, 1.6, .5, 1) backwards, star-tw 2.6s ease-in-out 2s infinite; }
.fx .rd-glow { transform-box: fill-box; transform-origin: center; animation: star-tw 2.6s ease-in-out 2s infinite; }
@keyframes star-tw { 50% { transform: scale(1.22) rotate(18deg); filter: brightness(1.25); } }
.confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
