/* =========================================================
   Tez-oz — dizayn tizimi
   Layout: telefon — bitta ustun + pastki menyu; kompyuter — chap
   yon panel + 2 ustunli panel; kirish — qahramon sahnasi + forma.
   Mavzu: neytral (ko'kat yashil) → erkak (Rishton kobalt + firuza)
   → ayol (anor + o'rik). Barcha sirtlar brend rangidan hosil bo'ladi.
   ========================================================= */
@property --brand { syntax: '<color>'; inherits: true; initial-value: #129E5A; }
@property --brand2 { syntax: '<color>'; inherits: true; initial-value: #0E8A7A; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #F5A524; }

:root {
  --brand: #129E5A;
  --brand2: #0E8A7A;
  --accent: #F5A524;
  --bg: color-mix(in oklab, var(--brand) 7%, #F7F9F8);
  --surface: #FFFFFF;
  --surface-2: color-mix(in oklab, var(--brand) 6%, #FFFFFF);
  --surface-3: color-mix(in oklab, var(--brand) 12%, #FFFFFF);
  --ink: color-mix(in oklab, var(--brand) 20%, #0D1311);
  --ink-2: color-mix(in oklab, var(--brand) 14%, #3A4340);
  --muted: color-mix(in oklab, var(--brand) 10%, #56605C);
  --line: color-mix(in oklab, var(--brand) 14%, #E3E7E5);
  --brand-ink: color-mix(in oklab, var(--brand) 80%, #000);
  --brand-soft: color-mix(in oklab, var(--brand) 13%, #FFFFFF);
  --on-brand: #FFFFFF;
  --brand-solid: color-mix(in oklab, var(--brand) 78%, #000);
  --lagan-bg: color-mix(in oklab, var(--brand) 7%, #FFFFFF);
  --good: #1E9A55;
  --warn: #D98200;
  --bad: #E0464C;
  --good-soft: color-mix(in oklab, var(--good) 14%, #FFFFFF);
  --warn-soft: color-mix(in oklab, var(--warn) 15%, #FFFFFF);
  --bad-soft: color-mix(in oklab, var(--bad) 13%, #FFFFFF);
  --gold: #E9A92B;
  --shadow-sm: 0 1px 2px color-mix(in oklab, var(--ink) 9%, transparent);
  --shadow: 0 1px 2px color-mix(in oklab, var(--ink) 6%, transparent), 0 12px 32px -16px color-mix(in oklab, var(--brand) 45%, transparent);
  --shadow-lg: 0 30px 70px -24px color-mix(in oklab, var(--brand) 55%, transparent);
  --f-display: 'Unbounded', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --f-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --tabbar-h: 70px;
  transition: --brand .9s var(--ease), --brand2 .9s var(--ease), --accent .9s var(--ease);
}
:root[data-g="m"] { --brand: #2350D8; --brand2: #11A39D; --accent: #F5A524; }
:root[data-g="f"] { --brand: #D2386C; --brand2: #FF8A5E; --accent: #F2B33D; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: color-mix(in oklab, var(--brand) 11%, #090C0B);
    --surface: color-mix(in oklab, var(--brand) 7%, #121615);
    --surface-2: color-mix(in oklab, var(--brand) 12%, #151A18);
    --surface-3: color-mix(in oklab, var(--brand) 20%, #18201D);
    --ink: color-mix(in oklab, var(--brand) 5%, #EEF2F0);
    --ink-2: color-mix(in oklab, var(--brand) 8%, #C6CECA);
    --muted: color-mix(in oklab, var(--brand) 12%, #A2ACA7);
    --line: color-mix(in oklab, var(--brand) 18%, #252B29);
    --brand-ink: color-mix(in oklab, var(--brand) 58%, #FFFFFF);
    --brand-soft: color-mix(in oklab, var(--brand) 22%, #121615);
    --lagan-bg: color-mix(in oklab, var(--brand) 15%, #121615);
    --good-soft: color-mix(in oklab, var(--good) 22%, #121615);
    --warn-soft: color-mix(in oklab, var(--warn) 22%, #121615);
    --bad-soft: color-mix(in oklab, var(--bad) 22%, #121615);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -18px rgba(0, 0, 0, .7);
    --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: color-mix(in oklab, var(--brand) 11%, #090C0B);
  --surface: color-mix(in oklab, var(--brand) 7%, #121615);
  --surface-2: color-mix(in oklab, var(--brand) 12%, #151A18);
  --surface-3: color-mix(in oklab, var(--brand) 20%, #18201D);
  --ink: color-mix(in oklab, var(--brand) 5%, #EEF2F0);
  --ink-2: color-mix(in oklab, var(--brand) 8%, #C6CECA);
  --muted: color-mix(in oklab, var(--brand) 12%, #A2ACA7);
  --line: color-mix(in oklab, var(--brand) 18%, #252B29);
  --brand-ink: color-mix(in oklab, var(--brand) 58%, #FFFFFF);
  --brand-soft: color-mix(in oklab, var(--brand) 22%, #121615);
  --lagan-bg: color-mix(in oklab, var(--brand) 15%, #121615);
  --good-soft: color-mix(in oklab, var(--good) 22%, #121615);
  --warn-soft: color-mix(in oklab, var(--warn) 22%, #121615);
  --bad-soft: color-mix(in oklab, var(--bad) 22%, #121615);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -18px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------------- Asos ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 10px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; line-height: 1.15; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.display { font-family: var(--f-display); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.row-flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 18px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ic { flex: none; display: block; }

#app { min-height: 100%; }

/* Ikat naqshli dekor qatlam */
.ikat {
  position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-color: var(--brand);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='128' viewBox='0 0 64 128'%3E%3Cpath d='M32 4 C44 22 46 30 32 60 C18 30 20 22 32 4Z M32 68 C44 86 46 94 32 124 C18 94 20 86 32 68Z' fill='black'/%3E%3Cpath d='M0 36 C8 48 9 54 0 74 M64 36 C56 48 55 54 64 74' fill='black'/%3E%3Cpath d='M32 22 l4 8 -4 8 -4 -8Z M32 86 l4 8 -4 8 -4 -8Z' fill='white'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='128' viewBox='0 0 64 128'%3E%3Cpath d='M32 4 C44 22 46 30 32 60 C18 30 20 22 32 4Z M32 68 C44 86 46 94 32 124 C18 94 20 86 32 68Z' fill='black'/%3E%3Cpath d='M0 36 C8 48 9 54 0 74 M64 36 C56 48 55 54 64 74' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 64px 128px; mask-size: 64px 128px;
}

/* ---------------- Tugmalar ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--surface-3); color: var(--ink);
  transition: transform .18s var(--ease), background .2s, box-shadow .2s, opacity .2s;
  user-select: none; white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand-solid); color: var(--on-brand); box-shadow: 0 10px 24px -12px var(--brand); }
.btn-primary:hover { background: color-mix(in oklab, var(--brand) 72%, #000); }
.btn-accent { background: var(--accent); color: #2A1B00; box-shadow: 0 10px 24px -12px var(--accent); }
.btn-ghost { background: transparent; color: var(--brand-ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn-line { background: transparent; border: 1.5px solid var(--line); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-lg { min-height: 56px; font-size: 16px; padding: 0 26px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
/* To'liq enli tugma: matn sig'masa (ruscha uzun yozuvlar) ekrandan chiqmaydi — ikki qatorga tushadi */
.btn-block { width: 100%; min-width: 0; white-space: normal; text-align: center; text-wrap: balance; line-height: 1.2; padding-block: 8px; }
.btn > svg { flex: none; }
/* Ikki qatorga tushishi mumkin bo'lgan tugma: ikonka matn bilan birga oqadi (chetda yolg'iz qolmaydi) */
.btn-in { display: block; min-width: 0; }
.btn-in > .ic { display: inline-block; vertical-align: -0.24em; margin-right: 6px; }
.btn[disabled], .btn.is-loading { opacity: .5; pointer-events: none; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
.btn-icon.sm { width: 36px; min-height: 36px; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--brand-ink); font-weight: 600; text-decoration: none; }

/* ---------------- Inputlar ---------------- */
.field { display: grid; gap: 7px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--line); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 16%, transparent); }
.input::placeholder { color: color-mix(in oklab, var(--muted) 70%, transparent); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .prefix { position: absolute; left: 16px; font-weight: 600; color: var(--ink-2); font-size: 17px; pointer-events: none; }
.input-wrap .input { padding-left: 64px; font-size: 18px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.input-err { color: var(--bad); font-size: 13px; font-weight: 500; min-height: 18px; }

.otp { display: flex; gap: 10px; justify-content: flex-start; }
.otp input {
  width: 54px; height: 62px; text-align: center; font-size: 26px; font-weight: 700; font-family: var(--f-display);
  border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); font-variant-numeric: tabular-nums;
  transition: border-color .2s, transform .2s var(--spring), box-shadow .2s;
}
.otp input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 16%, transparent); transform: translateY(-2px); }
.otp input.filled { border-color: color-mix(in oklab, var(--brand) 50%, var(--line)); }
.otp.shake { animation: shake .45s; }
.otp.ok input { border-color: var(--good); background: var(--good-soft); }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* Range (slayder) */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; touch-action: none; overscroll-behavior: contain; }
.range::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--p, 50%), var(--surface-3) var(--p, 50%)); }
.range::-moz-range-track { height: 10px; border-radius: 99px; background: var(--surface-3); }
.range::-moz-range-progress { height: 10px; border-radius: 99px; background: var(--brand); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); box-shadow: 0 6px 16px -6px var(--brand); transition: transform .15s; }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.big-val { font-family: var(--f-display); font-size: clamp(44px, 11vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.big-val small { font-size: .38em; font-weight: 600; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper > .center { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.stepper .big-val { display: inline-flex; align-items: baseline; justify-content: center; min-width: 4.2ch; }
.stepper .btn-icon { background: var(--surface-3); }
.ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: -4px; font-variant-numeric: tabular-nums; }

/* Tanlov kartalari */
.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line);
  transition: border-color .2s, background .2s, transform .2s var(--spring), box-shadow .2s;
}
.opt:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); }
.opt:active { transform: scale(.985); }
.opt.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 14%, transparent); }
.opt .o-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--brand-ink); flex: none; transition: background .2s, color .2s; }
.opt.on .o-ic { background: var(--brand-solid); color: var(--on-brand); }
.opt .o-t { font-weight: 650; font-size: 15.5px; }
.opt .o-d { font-size: 13px; color: var(--muted); margin-top: 1px; }
.opt .o-check { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; transition: all .2s; }
.opt.on .o-check { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt .o-tag { position: absolute; top: -9px; right: 14px; background: var(--accent); color: #2A1B00; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.opt.compact { padding: 12px 14px; }
.opt { min-width: 0; }
/* Sur'at kartalari: haftalar ≈ oylar, sana, ovqat/harakat ulushi; yopiq karta — qulf va sabab */
.pace-list { display: grid; gap: 12px; }
.pace-card { position: relative; display: flex; align-items: flex-start; gap: 12px; text-align: left; width: 100%; min-width: 0;
  padding: 14px 14px 14px 16px; border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line); color: var(--ink);
  transition: border-color .2s, background .2s, transform .2s var(--spring), box-shadow .2s; }
button.pace-card:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); }
button.pace-card:active { transform: scale(.99); }
.pace-card.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 14%, transparent); }
.pace-card.ultra:not(.on) { border-color: color-mix(in oklab, var(--bad) 30%, var(--line)); }
.pace-card.ultra.on { border-color: var(--bad); background: color-mix(in oklab, var(--bad) 8%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in oklab, var(--bad) 14%, transparent); }
.pace-card.locked { background: var(--surface-2); align-items: center; }
.pace-card .o-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--brand-ink); flex: none; }
.pace-card.on .o-ic { background: var(--brand-solid); color: var(--on-brand); }
.pace-card.ultra .o-ic { color: var(--bad); }
.pace-card.ultra.on .o-ic { background: var(--bad); color: #fff; }
.pace-card.locked .o-ic { color: var(--muted); }
.pace-card .o-check { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; margin-top: 9px; }
.pace-card.on .o-check { background: var(--brand); border-color: var(--brand); color: #fff; }
.pace-card.ultra.on .o-check { background: var(--bad); border-color: var(--bad); }
.pace-card .o-tag { position: absolute; top: -9px; right: 14px; background: var(--accent); color: #2A1B00; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.pace-card .o-tag + .o-tag { right: auto; left: 64px; }
.o-tag.hot { background: var(--bad); color: #fff; }
.pc-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.pc-name { font-weight: 700; font-size: 16px; }
.pc-weeks { font-weight: 650; font-size: 14px; color: var(--brand-ink); }
.pace-card.ultra .pc-weeks { color: var(--bad); }
.pc-line, .pc-split, .pc-desc, .pc-same, .pc-lock { display: block; font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }
.pc-split { color: var(--muted); }
.pc-start { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; padding: 3px 10px; border-radius: 99px; font-size: 13px; color: color-mix(in oklab, var(--warn) 70%, #000); background: color-mix(in oklab, var(--warn) 16%, var(--surface)); }
.pc-start > svg { flex: none; color: var(--warn); }
.pc-desc { color: var(--muted); }
.pc-same, .pc-lock { display: flex; gap: 6px; align-items: flex-start; color: var(--ink); }
.pc-same > svg, .pc-lock > svg { flex: none; margin-top: 2px; color: var(--warn); }
.pc-why { flex: none; align-self: center; }
.pace-notes { display: grid; gap: 6px; padding-bottom: 12px; }
.ob-body { padding-bottom: 16px; }
.nowrap { white-space: nowrap; }
.note.bad { background: var(--bad-soft); }
.note.bad > svg { color: var(--bad); }
.consent-sheet .consent { font-weight: 600; }
.opts.two .opt { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
.opts.two .opt .o-check { position: absolute; top: 12px; right: 12px; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 99px;
  background: var(--surface); border: 1.5px solid var(--line); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: all .2s;
}
.chip.on { background: var(--brand-solid); border-color: var(--brand); color: var(--on-brand); }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: -2px; padding-inline: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }

.seg { display: flex; padding: 4px; border-radius: 99px; background: var(--surface-3); gap: 4px; }
.seg button { flex: 1; min-height: 38px; border-radius: 99px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: all .25s var(--ease); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.toggle { position: relative; width: 50px; height: 30px; border-radius: 99px; background: var(--surface-3); transition: background .25s; flex: none; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .3s var(--spring); }
.toggle.on { background: var(--brand); }
.toggle.on::after { transform: translateX(20px); }

/* ---------------- Kirish (onboarding) ---------------- */
.ob { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; position: relative; }
.ob-stage {
  position: relative; overflow: hidden; flex: none;
  height: clamp(250px, 40vh, 360px);
  background: radial-gradient(120% 90% at 30% 100%, var(--surface-3), var(--bg) 70%);
}
.ob-stage .lagan { position: absolute; width: min(86vw, 330px); left: 31%; bottom: -38%; transform: translateX(-50%); }
.ob-stage .hero-slot { position: absolute; z-index: 2; left: 31%; bottom: 26px; transform: translateX(-50%); height: calc(100% - 62px); width: auto; aspect-ratio: 2/3; }
.ob-stage .bubble { position: absolute; z-index: 3; top: 66px; right: max(16px, env(safe-area-inset-right, 0px)); left: auto; width: min(47%, 240px); margin: 0; text-align: left; }
.ob-stage .bubble::after { left: -7px; top: 22px; bottom: auto; transform: rotate(135deg); }
.ob-stage.duo-mode .lagan { left: 50%; }
.ob-stage.duo-mode .duo { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); height: calc(100% - 132px); display: flex; align-items: flex-end; }
.ob-stage.duo-mode .duo .hero-slot { position: relative; left: auto; bottom: auto; transform: none; height: 100%; }
.ob-stage.duo-mode .duo .hero-slot + .hero-slot { margin-left: -16px; }
.ob-stage.duo-mode .bubble { top: 58px; left: 50%; right: auto; transform: translateX(-50%); width: min(86%, 340px); text-align: center; }
.ob-stage.duo-mode .bubble::after { left: 50%; top: auto; bottom: -7px; transform: translateX(-50%) rotate(45deg); }
.ob-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding-top: max(12px, env(safe-area-inset-top, 0px)); padding-bottom: 8px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.ob-top .btn-icon { background: color-mix(in oklab, var(--surface) 80%, transparent); backdrop-filter: blur(8px); }
.progress { flex: 1; height: 6px; border-radius: 99px; background: color-mix(in oklab, var(--surface-3) 85%, transparent); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--brand); transition: width .6s var(--ease); }
.ob-step-n { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.ob-panel {
  flex: 1; display: flex; flex-direction: column; gap: 20px; background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0; margin-top: -24px; position: relative; z-index: 4;
  padding-top: 26px; padding-bottom: 0;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
  box-shadow: 0 -20px 40px -30px color-mix(in oklab, var(--brand) 40%, transparent);
}
.ob-panel .ob-body { display: grid; gap: 20px; flex: 1; align-content: start; animation: stepIn .5s var(--ease) both; }
.ob-panel h1 { font-size: clamp(23px, 6vw, 30px); }
.ob-panel .lead { color: var(--ink-2); font-size: 15.5px; margin-top: -10px; max-width: 46ch; }
.ob-foot { display: grid; gap: 10px; position: sticky; bottom: 0; padding-top: 8px; padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--surface) 70%, transparent); }
.ob-panel:has(> .ob-foot[hidden]) { padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); }
.bmi-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
@keyframes stepIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.ob.back .ob-body { animation-name: stepBack; }
@keyframes stepBack { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* Splash / xush kelibsiz */
.welcome { min-height: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--bg); }
.welcome .w-stage { flex: 1; position: relative; display: grid; place-items: center; min-height: 380px; padding-top: max(20px, env(safe-area-inset-top, 0px)); }
.welcome .lagan { position: absolute; width: min(120vw, 560px); top: 50%; left: 50%; transform: translate(-50%, -46%); }
.welcome .duo { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 0; margin-top: 30px; }
.welcome .duo .hero-slot { width: clamp(120px, 32vw, 180px); aspect-ratio: 2/3; }
.welcome .duo .hero-slot:first-child { transform: translateX(14px); animation: duoIn .9s var(--spring) .2s both; }
.welcome .duo .hero-slot:last-child { transform: translateX(-14px); animation: duoIn .9s var(--spring) .35s both; }
@keyframes duoIn { from { opacity: 0; transform: translateY(40px) scale(.9); } }
.welcome .w-panel {
  position: relative; z-index: 3; display: grid; gap: 16px;
  padding-top: 8px; padding-bottom: max(22px, env(safe-area-inset-bottom, 0px));
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
  max-width: 520px; width: 100%; margin: 0 auto;
}
.logo { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.04em; line-height: 1; display: inline-flex; align-items: center; color: var(--ink); }
.logo .dash { display: inline-block; width: .5em; height: .16em; border-radius: 99px; background: var(--accent); margin: 0 .06em; transform: translateY(.06em); }
.logo .l-oz { color: var(--brand); }
.welcome .logo { font-size: clamp(54px, 16vw, 84px); }
.welcome .logo span { display: inline-block; animation: letterIn .7s var(--spring) both; animation-delay: calc(var(--i) * 70ms + .4s); }
@keyframes letterIn { from { opacity: 0; transform: translateY(30px) rotate(-8deg); } }
.welcome .tag { font-size: 17px; color: var(--ink-2); max-width: 34ch; animation: stepIn .6s var(--ease) .9s both; }
.welcome .w-actions { display: grid; gap: 10px; animation: stepIn .6s var(--ease) 1.05s both; }
.welcome .w-legal { font-size: 12px; color: var(--muted); text-align: center; }
.welcome .w-lang { display: flex; gap: 4px; justify-content: center; padding: 3px; border-radius: 99px; background: var(--surface-2); justify-self: center; }
.welcome .w-lang button { border: 0; background: transparent; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.welcome .w-lang button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.12)); }
.welcome .w-feats { display: flex; gap: 8px; flex-wrap: wrap; animation: stepIn .6s var(--ease) 1s both; }
.welcome .w-feats span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }

/* Jins tanlash */
.gender { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gender button {
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 14px 10px 16px; border-radius: var(--r-lg);
  border: 2px solid var(--line); background: var(--surface); overflow: hidden; transition: all .3s var(--ease);
}
.gender button .g-hero { width: 88px; aspect-ratio: 2/3; }
.gender button .g-name { font-family: var(--f-display); font-size: 16px; font-weight: 700; }
.gender button[data-v="m"] { --brand: #2350D8; --brand2: #11A39D; --accent: #F5A524; }
.gender button[data-v="f"] { --brand: #D2386C; --brand2: #FF8A5E; --accent: #F2B33D; }
.gender button::before { content: ''; position: absolute; inset: auto -20% -60% -20%; height: 90%; border-radius: 50%; background: color-mix(in oklab, var(--brand) 12%, transparent); transition: transform .4s var(--ease); }
.gender button.on { border-color: var(--brand); box-shadow: 0 14px 30px -16px var(--brand); transform: translateY(-3px); }
.gender button.on::before { transform: scale(1.3); }
.gender button > * { position: relative; }

/* Tema almashinuv to'lqini */
.theme-wave { position: fixed; z-index: 90; pointer-events: none; border-radius: 50%; width: 20px; height: 20px; transform: translate(-50%, -50%) scale(0); background: var(--wave, var(--brand)); opacity: .9; animation: wave 1s var(--ease) forwards; }
@keyframes wave { 60% { opacity: .5; } to { transform: translate(-50%, -50%) scale(160); opacity: 0; } }

/* BMI ko'rsatkich */
.bmi-meter { position: relative; height: 12px; border-radius: 99px; background: linear-gradient(90deg, #6DB7F2 0 18%, var(--good) 18% 42%, var(--warn) 42% 66%, var(--bad) 66% 100%); }
.bmi-meter i { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 4px solid var(--ink); transform: translate(-50%, -50%); transition: left .4s var(--ease); }
.bmi-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.pill.good { background: var(--good-soft); color: color-mix(in oklab, var(--good) 70%, var(--ink)); }
.pill.warn { background: var(--warn-soft); color: color-mix(in oklab, var(--warn) 68%, var(--ink)); }
.pill.bad { background: var(--bad-soft); color: color-mix(in oklab, var(--bad) 75%, var(--ink)); }
.pill.brand { background: var(--brand-soft); color: var(--brand-ink); }
.pill.gold { background: color-mix(in oklab, var(--gold) 18%, var(--surface)); color: color-mix(in oklab, var(--gold) 70%, #000); }

.duo-compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 6px; }
.duo-compare .hero-slot { aspect-ratio: 2/3; width: 100%; max-width: 130px; justify-self: center; }
.duo-compare .goal-ghost { filter: saturate(1.1); }
.duo-compare .cap { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; }
.duo-compare .cap b { display: block; font-family: var(--f-display); font-size: 20px; color: var(--ink); }
.duo-compare .arrow { color: var(--brand); padding-bottom: 60px; }

/* Tahlil ekrani */
.analysis { min-height: 100%; display: grid; place-items: center; padding: 30px 20px; text-align: center; position: relative; overflow: hidden; }
.analysis .an-ring { position: relative; width: 250px; height: 250px; margin: 0 auto; }
.analysis .an-ring svg.ring-svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.analysis .an-ring .hero-slot { position: absolute; left: 50%; top: 50%; width: 120px; aspect-ratio: 2/3; transform: translate(-50%, -48%); }
.analysis h2 { font-size: 22px; margin-top: 18px; }
.an-pct { font-family: var(--f-display); font-size: 40px; font-weight: 800; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.an-list { display: grid; gap: 10px; margin: 18px auto 0; max-width: 360px; text-align: left; }
.an-item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); opacity: .45; transition: all .4s; }
.an-item .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: transparent; transition: all .3s; }
.an-item.doing { opacity: 1; color: var(--ink); }
.an-item.doing .dot { border-color: var(--brand); border-right-color: transparent; animation: spin .8s linear infinite; }
.an-item.done { opacity: 1; color: var(--ink); }
.an-item.done .dot { background: var(--good); border-color: var(--good); color: #fff; }

/* Natija */
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.kpi .k-l { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi { min-width: 0; }
.kpi .k-v { font-family: var(--f-display); font-size: clamp(18px, 5.6vw, 22px); font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi .k-v small { font-size: 12px; color: var(--muted); font-family: var(--f-body); font-weight: 600; margin-left: 3px; }
.kpi .k-v.stack small { display: block; margin: 3px 0 0; line-height: 1.25; }
/* Kataklar: uzun so'zli katak (ruscha "Сбалансированный") o'zi to'liq qatorga chiqadi — so'z o'rtasidan sinmaydi */
.result-grid { display: flex; flex-wrap: wrap; }
.result-grid > .kpi { flex: 1 1 calc(50% - 6px); min-width: auto; max-width: 100%; }
.result-grid > .kpi .k-v { overflow-wrap: break-word; }
.kpi.hl { background: var(--brand-solid); color: var(--on-brand); border-color: transparent; }
.kpi.hl .k-l, .kpi.hl .k-v small { color: color-mix(in oklab, var(--on-brand) 78%, transparent); }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--warn-soft); color: var(--ink); font-size: 13.5px; }
.note .ic { color: var(--warn); margin-top: 1px; }
.note.info { background: var(--brand-soft); }
.note.info .ic { color: var(--brand-ink); }

/* ---------------- Ilova qobig'i ---------------- */
.shell { min-height: 100%; }
.sidebar { display: none; }
.main { min-width: 0; padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom, 0px)); }
.page {
  max-width: 1160px; margin: 0 auto; display: grid; gap: 16px;
  padding-top: max(16px, env(safe-area-inset-top, 0px)); padding-bottom: 16px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  animation: pageIn .45s var(--ease) both;
  grid-template-columns: minmax(0, 1fr);   /* tor ekranda (360px) uzun matn sahifani kengaytirmasin */
}
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }
.page-head { display: flex; align-items: center; gap: 12px; }
.page-head h1 { font-size: 24px; }
.page-head .sub { color: var(--muted); font-size: 13.5px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: max(6px, env(safe-area-inset-left, 0px)); padding-right: max(6px, env(safe-area-inset-right, 0px));
  background: color-mix(in oklab, var(--surface) 88%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid var(--line);
}
.tab { flex: 1; display: grid; place-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); position: relative; transition: color .2s; }
.tab .ic { transition: transform .3s var(--spring); }
.tab.on { color: var(--brand-ink); }
.tab.on .ic { transform: translateY(-2px) scale(1.08); }
.tab.on::before { content: ''; position: absolute; top: 6px; width: 46px; height: 32px; border-radius: 99px; background: var(--brand-soft); z-index: -1; animation: pop .35s var(--spring); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 252px 1fr; }
  .sidebar {
    display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh;
    padding: 24px 16px; border-right: 1px solid var(--line); background: var(--surface);
  }
  .sidebar .logo { font-size: 30px; padding: 4px 12px 22px; }
  .nav-item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 14px; font-weight: 600; color: var(--ink-2); transition: all .2s; text-align: left; }
  .nav-item:hover { background: var(--surface-2); }
  .nav-item.on { background: var(--brand-soft); color: var(--brand-ink); }
  .sidebar .side-pro { margin-top: auto; }
  .main { padding-bottom: 32px; }
  .tabbar { display: none; }
  .page { padding-top: 28px; gap: 20px; }
  .page-head h1 { font-size: 28px; }
}

/* ---------------- Kartalar ---------------- */
.card { background: var(--surface); border-radius: var(--r-lg); padding: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h3 { font-size: 16px; }
.card-head .more { margin-left: auto; }
.card-title-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.card.tinted { background: var(--brand-soft); border-color: transparent; }

.grid-2 { display: grid; gap: 16px; }
.grid-3 { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 3 ustunli ko‘rsatkichlar: uzun yorliq («Упражнения») tor ustunga sig‘ishi uchun */
.grid-3 > .kpi { padding-left: 12px; padding-right: 10px; }
.grid-3 > .kpi .k-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 350px) {
  .grid-3 { gap: 8px; }
  .grid-3 > .kpi { padding-left: 9px; padding-right: 7px; }
  .grid-3 > .kpi .k-l { font-size: 11.5px; letter-spacing: -.02em; }
}
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.home-grid { display: grid; gap: 16px; }
.home-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 1060px) { .home-grid { grid-template-columns: 370px 1fr; } }

/* Salom qismi */
.greet { display: flex; align-items: center; gap: 12px; }
.greet h1 { font-size: 22px; }
.greet .date { color: var(--muted); font-size: 13.5px; }
.streak { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 99px; background: color-mix(in oklab, #FF7A1A 14%, var(--surface)); color: #E2580B; font-weight: 700; font-variant-numeric: tabular-nums; }
.avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); flex: none; display: grid; place-items: end center; }
.avatar .hero-svg { width: 150%; height: 150%; transform: translateY(32%); }

/* Qahramon kartasi */
.hero-card { position: relative; overflow: hidden; padding: 0; border: 0; background: linear-gradient(170deg, var(--brand-soft), var(--surface) 75%); }
.hero-card .hc-stage { position: relative; height: 340px; display: grid; place-items: end center; overflow: hidden; }
.hero-card .lagan { position: absolute; width: 300px; bottom: -118px; left: 50%; transform: translateX(-50%); }
.hero-card .hero-slot { position: relative; width: 160px; aspect-ratio: 2/3; z-index: 2; cursor: pointer; margin-bottom: 2px; }
.hero-card .bubble { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 3; }
.hero-card .hc-foot { padding: 14px 18px 18px; display: grid; gap: 8px; }
.lvl { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.lvl .lvl-n { font-family: var(--f-display); font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--brand-solid); color: var(--on-brand); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; flex: 1; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--brand); width: 0; transition: width 1s var(--ease); }

.bubble {
  background: var(--surface); color: var(--ink); padding: 11px 14px; border-radius: 18px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 320px; margin: 0 auto; text-align: center;
  animation: bubbleIn .5s var(--spring) both;
}
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: inherit; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.bubble { position: relative; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(.9); } }

/* Hero animatsiyalari */
.hero-slot { display: block; }
.hero-svg { width: 100%; height: 100%; overflow: visible; display: block; }
.h-shadow { fill: color-mix(in oklab, var(--ink) 13%, transparent); }
.h-arm, .h-leg, .h-upper, .h-body, .h-head, .h-torso, .h-eyes, .h-pony { transform-box: view-box; }
.h-arm { transform: rotate(var(--rest)); }
.hero-svg .h-eyes { animation: h-blink 4.6s infinite; }
.hero-svg .h-pony { animation: h-pony 3s ease-in-out infinite; }
.hero-svg[data-pose="idle"] .h-body { animation: h-bob 3.2s ease-in-out infinite; }
.hero-svg[data-pose="idle"] .h-torso { animation: h-breathe 3.2s ease-in-out infinite; }
.hero-svg[data-pose="idle"] .h-head { animation: h-tilt 6s ease-in-out infinite; }
@keyframes h-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes h-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.014, 1.008); } }
@keyframes h-tilt { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-4deg); } 90% { transform: rotate(3deg); } }
@keyframes h-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
@keyframes h-pony { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(7deg); } }

.hero-svg[data-pose="wave"] .h-arm-r { animation: h-wave .9s ease-in-out infinite; }
.hero-svg[data-pose="wave"] .h-head { animation: h-tilt2 .9s ease-in-out infinite; }
@keyframes h-wave { 0%, 100% { transform: rotate(-152deg); } 50% { transform: rotate(-118deg); } }
@keyframes h-tilt2 { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-1deg); } }

.hero-svg[data-pose="cheer"] .h-arm-l { animation: h-cheerL .5s ease-in-out infinite alternate; }
.hero-svg[data-pose="cheer"] .h-arm-r { animation: h-cheerR .5s ease-in-out infinite alternate; }
.hero-svg[data-pose="cheer"] .h-body { animation: h-jump .5s ease-in-out infinite alternate; }
@keyframes h-cheerL { from { transform: rotate(145deg); } to { transform: rotate(168deg); } }
@keyframes h-cheerR { from { transform: rotate(-145deg); } to { transform: rotate(-168deg); } }
@keyframes h-jump { from { transform: translateY(0); } to { transform: translateY(-12px); } }

.hero-svg[data-pose="jack"] .h-arm-l { animation: j-armL .8s ease-in-out infinite; }
.hero-svg[data-pose="jack"] .h-arm-r { animation: j-armR .8s ease-in-out infinite; }
.hero-svg[data-pose="jack"] .h-leg-l { animation: j-legL .8s ease-in-out infinite; }
.hero-svg[data-pose="jack"] .h-leg-r { animation: j-legR .8s ease-in-out infinite; }
.hero-svg[data-pose="jack"] .h-body { animation: j-body .8s ease-in-out infinite; }
@keyframes j-armL { 0%, 100% { transform: rotate(var(--rest)); } 50% { transform: rotate(160deg); } }
@keyframes j-armR { 0%, 100% { transform: rotate(var(--rest)); } 50% { transform: rotate(-160deg); } }
@keyframes j-legL { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(11deg); } }
@keyframes j-legR { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-11deg); } }
@keyframes j-body { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-svg[data-pose="squat"] .h-upper { animation: s-up 1.8s ease-in-out infinite; }
.hero-svg[data-pose="squat"] .h-leg { transform-origin: 100px 288px !important; animation: s-leg 1.8s ease-in-out infinite; }
.hero-svg[data-pose="squat"] .h-arm-l { animation: s-armL 1.8s ease-in-out infinite; }
.hero-svg[data-pose="squat"] .h-arm-r { animation: s-armR 1.8s ease-in-out infinite; }
@keyframes s-up { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(24px); } }
@keyframes s-leg { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.16, .72); } }
@keyframes s-armL { 0%, 100% { transform: rotate(var(--rest)); } 50% { transform: rotate(-62deg); } }
@keyframes s-armR { 0%, 100% { transform: rotate(var(--rest)); } 50% { transform: rotate(62deg); } }

.hero-svg[data-pose="march"] .h-leg-l, .hero-svg[data-pose="knees"] .h-leg-l { animation: m-leg .9s ease-in-out infinite; }
.hero-svg[data-pose="march"] .h-leg-r, .hero-svg[data-pose="knees"] .h-leg-r { animation: m-leg .9s ease-in-out infinite -.45s; }
.hero-svg[data-pose="march"] .h-arm-l, .hero-svg[data-pose="knees"] .h-arm-l { animation: m-arm .9s ease-in-out infinite -.45s; }
.hero-svg[data-pose="march"] .h-arm-r, .hero-svg[data-pose="knees"] .h-arm-r { animation: m-arm2 .9s ease-in-out infinite; }
.hero-svg[data-pose="knees"] .h-leg-l, .hero-svg[data-pose="knees"] .h-leg-r, .hero-svg[data-pose="knees"] .h-arm-l, .hero-svg[data-pose="knees"] .h-arm-r { animation-duration: .5s; }
.hero-svg[data-pose="knees"] .h-leg-r, .hero-svg[data-pose="knees"] .h-arm-l { animation-delay: -.25s; }
@keyframes m-leg { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-18px) scaleY(.84); } }
@keyframes m-arm { 0%, 100% { transform: rotate(var(--rest)); } 50% { transform: rotate(-38deg); } }
@keyframes m-arm2 { 0%, 100% { transform: rotate(var(--rest)); } 50% { transform: rotate(38deg); } }

.hero-svg[data-pose="box"] .h-arm-l { animation: b-armL .7s ease-in-out infinite; }
.hero-svg[data-pose="box"] .h-arm-r { animation: b-armR .7s ease-in-out infinite -.35s; }
.hero-svg[data-pose="box"] .h-upper { transform-origin: 100px 200px; animation: b-twist .7s ease-in-out infinite; }
@keyframes b-armL { 0%, 100% { transform: rotate(-40deg); } 45% { transform: rotate(-112deg); } }
@keyframes b-armR { 0%, 100% { transform: rotate(40deg); } 45% { transform: rotate(112deg); } }
@keyframes b-twist { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

.hero-svg[data-pose="circles"] .h-arm-l { animation: c-armL .6s linear infinite; }
.hero-svg[data-pose="circles"] .h-arm-r { animation: c-armR .6s linear infinite; }
@keyframes c-armL { 0% { transform: rotate(84deg) translateX(0); } 25% { transform: rotate(90deg) translateX(3px); } 50% { transform: rotate(96deg); } 75% { transform: rotate(90deg) translateX(-3px); } 100% { transform: rotate(84deg); } }
@keyframes c-armR { 0% { transform: rotate(-84deg); } 25% { transform: rotate(-90deg) translateX(-3px); } 50% { transform: rotate(-96deg); } 75% { transform: rotate(-90deg) translateX(3px); } 100% { transform: rotate(-84deg); } }

.hero-svg[data-pose="bend"] .h-upper { transform-origin: 100px 200px; animation: bend 3s ease-in-out infinite; }
.hero-svg[data-pose="bend"] .h-arm-r { animation: bendArm 3s ease-in-out infinite; }
@keyframes bend { 0%, 100% { transform: rotate(-11deg); } 50% { transform: rotate(11deg); } }
@keyframes bendArm { 0%, 100% { transform: rotate(-172deg); } 50% { transform: rotate(-165deg); } }

.hero-svg[data-pose="stretch"] .h-arm-l { transform: rotate(172deg); }
.hero-svg[data-pose="stretch"] .h-arm-r { transform: rotate(-172deg); }
.hero-svg[data-pose="stretch"] .h-body { transform-origin: 100px 290px; animation: stretch 4s ease-in-out infinite; }
@keyframes stretch { 0%, 100% { transform: scaleY(1) rotate(0); } 25% { transform: scaleY(1.03) rotate(-2deg); } 75% { transform: scaleY(1.03) rotate(2deg); } }

.hero-svg[data-pose="floor"] .h-body { transform-origin: 100px 290px; animation: floorPump 1.4s ease-in-out infinite; }
.hero-svg[data-pose="floor"] .h-arm-l { animation: s-armL 1.4s ease-in-out infinite; }
.hero-svg[data-pose="floor"] .h-arm-r { animation: s-armR 1.4s ease-in-out infinite; }
@keyframes floorPump { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.95) translateY(6px); } }

.hero-svg[data-pose="rest"] .h-body { animation: h-bob 2s ease-in-out infinite; }

/* Kaloriya halqasi */
.ring-wrap { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.ring { position: relative; width: 168px; height: 168px; flex: none; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring .track { stroke: var(--surface-3); }
.ring .val { stroke: var(--brand); transition: stroke-dashoffset 1.2s var(--ease), stroke .3s; }
.ring .val.over { stroke: var(--warn); }
.ring .burn { stroke: var(--accent); transition: stroke-dashoffset 1.2s var(--ease); }
.ring .ring-c { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.ring .ring-c b { font-family: var(--f-display); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring .ring-c span { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.cal-side { display: grid; gap: 12px; }
.cal-stat { display: flex; align-items: center; gap: 10px; }
.cal-stat .cs-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.cal-stat .cs-v { font-family: var(--f-display); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cal-stat .cs-l { font-size: 12px; color: var(--muted); }
.macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.macro .m-l { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; }
.macro .m-v { font-size: 13.5px; font-weight: 700; margin: 3px 0 6px; font-variant-numeric: tabular-nums; }
.macro .bar { height: 7px; }
.macro.p .bar > i { background: #E5664E; }
.macro.f .bar > i { background: var(--accent); }
.macro.c .bar > i { background: var(--brand2); }
@media (max-width: 420px) {
  .ring { width: 140px; height: 140px; }
  .ring .ring-c b { font-size: 26px; }
  .ring-wrap { gap: 14px; }
}

/* Suv */
.water { display: grid; gap: 12px; }
.glasses { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 8px; }
.glass { position: relative; height: 46px; border-radius: 6px 6px 12px 12px; border: 2px solid color-mix(in oklab, #2E9BE6 40%, var(--line)); overflow: hidden; background: var(--surface); transition: transform .2s var(--spring); }
.glass:active { transform: scale(.9); }
.glass i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(180deg, #6CC4FF, #2E9BE6); transition: height .5s var(--spring); }
.glass.on i { height: 100%; }
.glass.on i::before { content: ''; position: absolute; top: -4px; left: -50%; width: 200%; height: 8px; background: radial-gradient(circle at 10px -2px, transparent 6px, #6CC4FF 7px) 0 0 / 20px 8px repeat-x; animation: waveMove 1.6s linear infinite; }
@keyframes waveMove { to { transform: translateX(20px); } }
.glass.next { border-style: dashed; }
.glass.next::after { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; color: #2E9BE6; font-weight: 700; font-size: 18px; }

/* Ro'yxatlar */
.list { display: grid; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.li:last-child { border-bottom: 0; }
.li .li-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; }
.li .li-t { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .li-t.wrap { white-space: normal; overflow-wrap: break-word; }   /* tasdiqlash oynasida taom nomi to'liq ko'rinsin */
.li .li-s { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .li-v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.li.tap { cursor: pointer; border-radius: 12px; }
.li.tap:hover { background: var(--surface-2); }
.list.pad .li { padding-inline: 4px; }

/* Ovqat bo'limi */
.weekstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wday { display: grid; justify-items: center; gap: 4px; padding: 8px 0; border-radius: 14px; font-size: 12px; color: var(--muted); font-weight: 600; transition: all .2s; }
.wday b { font-family: var(--f-display); font-size: 16px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.wday .wd-dot { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.wday .wd-dot.on { background: var(--good); }
.wday .wd-dot.over { background: var(--warn); }
.wday.on { background: var(--brand-solid); color: var(--on-brand); }
.wday.on b { color: var(--on-brand); }
.wday.on .wd-dot.on, .wday.on .wd-dot.over { background: #fff; }
.meal-card .card-head { margin-bottom: 6px; }
.meal-card .mc-kcal { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.meal-card .mc-add { width: 100%; margin-top: 8px; }
.meal-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); }
.meal-item .mi-t { font-weight: 600; font-size: 14px; }
.meal-item .mi-s { font-size: 12px; color: var(--muted); }
.meal-item .mi-k { margin-left: auto; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meal-item .del { color: var(--muted); }

.food-list { display: grid; gap: 2px; max-height: none; }
.food { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 12px; text-align: left; width: 100%; transition: background .15s; }
.food:hover { background: var(--surface-2); }
.food .fd-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.food .fd-t { font-weight: 600; font-size: 14.5px; }
.food .fd-s { font-size: 12.5px; color: var(--muted); }
.food .fd-k { margin-left: auto; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.food .fd-k small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.search { position: relative; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 44px; min-height: 48px; border-radius: 99px; }
.portion { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.portion button { min-height: 46px; border-radius: 14px; border: 1.5px solid var(--line); font-weight: 700; background: var(--surface); transition: all .2s; }
.portion button.on { background: var(--brand-solid); color: var(--on-brand); border-color: var(--brand); }

.menu-day { display: grid; gap: 10px; }
.recipe { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); text-align: left; width: 100%; transition: transform .2s var(--spring), background .2s; }
.recipe:hover { background: var(--surface-3); }
.recipe .rc-slot { font-size: 11.5px; font-weight: 700; color: var(--brand-ink); }
.recipe .rc-t { font-weight: 650; font-size: 14.5px; }
.recipe .rc-s { font-size: 12.5px; color: var(--muted); }
.recipe .rc-k { margin-left: auto; text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.recipe .rc-k small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.plate-ic { width: 52px; height: 52px; border-radius: 50%; flex: none; position: relative; background: radial-gradient(circle, var(--surface) 0 44%, var(--brand-soft) 45% 62%, var(--surface) 63% 66%, color-mix(in oklab, var(--brand) 30%, var(--surface)) 67%); display: grid; place-items: center; color: var(--brand-ink); }
.locked-wrap { position: relative; }
.locked-wrap > .blur { filter: blur(5px); pointer-events: none; user-select: none; opacity: .7; }
.lock-over { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 16px; }
.lock-badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--surface); box-shadow: var(--shadow); }

/* Mashq bo'limi */
.today-workout { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; background: linear-gradient(140deg, var(--brand), color-mix(in oklab, var(--brand) 55%, var(--brand2))); color: var(--on-brand); border: 0; }
.today-workout .ikat { opacity: .12; background-color: #fff; }
.today-workout h3 { font-size: 19px; }
.today-workout .tw-meta span { display: inline-flex; align-items: center; gap: 5px; }
.today-workout .tw-meta { display: flex; gap: 12px; font-size: 13px; opacity: .9; margin: 8px 0 14px; flex-wrap: wrap; }
.today-workout .hero-slot { width: 120px; aspect-ratio: 2/3; margin-bottom: -22px; }
.today-workout .btn { background: #fff; color: var(--brand-ink); }
.prog-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .prog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .prog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prog { position: relative; display: grid; gap: 8px; text-align: left; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .2s var(--spring), box-shadow .2s; width: 100%; }
.prog:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.prog .pg-t { font-weight: 700; font-size: 15px; padding-right: 30px; }
.prog .pg-d { font-size: 13px; color: var(--muted); }
.prog .pg-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.prog .pg-lock { position: absolute; top: 14px; right: 14px; color: var(--muted); }
.lvl-dots { display: inline-flex; gap: 3px; }
.lvl-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); }
.lvl-dots i.on { background: var(--brand); }

/* Mashq pleyeri */
.player {
  position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column;
  padding-top: max(14px, env(safe-area-inset-top, 0px)); padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  animation: sheetUp .45s var(--ease);
}
.player .pl-top { display: flex; align-items: center; gap: 10px; }
.player .pl-steps { flex: 1; display: flex; gap: 4px; }
.player .pl-steps i { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; position: relative; }
.player .pl-steps i.done { background: var(--brand); }
.player .pl-steps i.cur::after { content: ''; position: absolute; inset: 0; width: var(--w, 0%); background: var(--brand); }
.player .pl-stage { flex: 1; position: relative; display: grid; place-items: center; min-height: 0; }
.player .pl-stage .lagan { position: absolute; width: min(80vw, 380px); top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: .9; }
.player .pl-stage .hero-slot { position: relative; height: min(46vh, 380px); aspect-ratio: 2/3; z-index: 2; }
.player .mat { position: absolute; bottom: 8%; left: 50%; width: min(60vw, 260px); height: 18px; transform: translateX(-50%); border-radius: 50%; background: color-mix(in oklab, var(--brand2) 35%, transparent); z-index: 1; }
.player .pl-info { text-align: center; display: grid; gap: 6px; }
.player .pl-name { font-family: var(--f-display); font-size: clamp(22px, 5.5vw, 30px); font-weight: 700; }
.player .pl-tip { color: var(--ink-2); font-size: 14px; max-width: 46ch; margin: 0 auto; }
.player .pl-time { font-family: var(--f-display); font-size: clamp(56px, 16vw, 88px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--brand-ink); }
.player .pl-next { font-size: 13px; color: var(--muted); }
.player .pl-ctrl { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 12px; }
.player .pl-ctrl .main-b { width: 76px; height: 76px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 16px 34px -14px var(--brand); }
.player .pl-ctrl .side-b { width: 54px; height: 54px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; }
.player.resting { background: color-mix(in oklab, var(--brand2) 10%, var(--bg)); }
.player.resting .pl-time { color: color-mix(in oklab, var(--brand2) 70%, var(--ink)); }
.done-screen { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 10px 0 0; }
.done-screen .ds-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 420px; }

/* Grafik */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--f-body); font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .area { fill: url(#gArea); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .proj { fill: none; stroke: var(--brand2); stroke-width: 2; stroke-dasharray: 5 6; }
.chart .goal { stroke: var(--good); stroke-width: 1.5; stroke-dasharray: 3 4; }
.chart .dot { fill: var(--surface); stroke: var(--brand); stroke-width: 3; }
.chart .dot.last { fill: var(--brand); }
.chart .bar-r { fill: var(--brand); }
.chart .bar-r.over { fill: var(--warn); }
.chart .bar-bg { fill: var(--surface-3); }
.chart text.lbl-strong { fill: var(--ink); font-weight: 700; font-size: 12px; }
.chart-wrap { overflow-x: auto; }

.compare3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; text-align: center; }
.compare3 .hero-slot { width: 100%; max-width: 130px; aspect-ratio: 2/3; margin: 0 auto; }
.compare3 .c3-l { font-size: 12px; color: var(--muted); font-weight: 600; }
.compare3 .c3-v { font-family: var(--f-display); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.compare3 .ghost { opacity: .55; }

.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.badge { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 12px 6px; border-radius: var(--r-md); }
.badge .bd-medal { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--surface-3); color: var(--muted); transform: rotate(45deg); }
.badge .bd-medal .ic { transform: rotate(-45deg); }
.badge.on .bd-medal { background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 60%, var(--brand))); color: #fff; box-shadow: 0 10px 20px -10px var(--accent); }
.badge .bd-t { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.badge .bd-d { font-size: 11px; color: var(--muted); line-height: 1.25; }
.badge:not(.on) .bd-t { color: var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Profil */
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head .avatar { width: 72px; height: 72px; }
.profile-head h2 { font-size: 20px; }
.set-group { display: grid; }
.set-row { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 8px 2px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.set-row:last-child { border-bottom: 0; }
.set-row .sr-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--brand-ink); flex: none; }
.set-row .sr-t { font-weight: 600; font-size: 14.5px; }
.set-row .sr-s { font-size: 12.5px; color: var(--muted); }
.set-row .sr-r { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.outfits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.outfit { position: relative; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--surface-2); padding: 6px 4px 8px; display: grid; justify-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; }
.outfit .hero-slot { width: min(64px, 100%); aspect-ratio: 2/3; }
.outfit.on { border-color: var(--brand); background: var(--brand-soft); }
.outfit .lk { position: absolute; top: 6px; right: 6px; color: var(--muted); }
/* Kiyim nomi («Тюбетейка») tor ustunga sig‘sin: tor ekranda ixchamroq, baribir sig‘masa — "…" */
.outfit .ol { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 400px) {
  .outfits { gap: 6px; }
  .outfit { padding: 6px 2px 8px; font-size: 11px; letter-spacing: -.01em; }
}
@media (max-width: 340px) {
  .outfit { padding: 6px 1px 8px; font-size: 10px; letter-spacing: -.03em; }
}
.skins { display: flex; gap: 10px; }
.skins button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--line); }
.skins button.on { box-shadow: 0 0 0 3px var(--brand); }

/* Pro */
.pro-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .02em; background: linear-gradient(135deg, #F7C64B, #E99A1B); color: #3A2400; }
.side-pro, .pro-cta {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 18px; color: #fff; text-align: left; display: grid; gap: 8px; width: 100%;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in oklab, var(--accent) 70%, var(--brand)), var(--brand) 55%, color-mix(in oklab, var(--brand) 70%, #000));
}
.side-pro .ikat, .pro-cta .ikat { background-color: #fff; opacity: .1; }
.side-pro b, .pro-cta b { font-family: var(--f-display); font-size: 17px; position: relative; }
.side-pro span, .pro-cta span { font-size: 13px; opacity: .9; position: relative; }
.pro-cta .btn { position: relative; background: #fff; color: var(--brand-ink); justify-self: start; }
.paywall { display: grid; gap: 18px; }
.pw-hero { position: relative; display: grid; justify-items: center; text-align: center; gap: 8px; padding-top: 8px; }
.pw-hero .hero-slot { width: 120px; aspect-ratio: 2/3; }
.pw-hero h2 { font-size: 26px; }
.pw-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pw-table th { font-size: 12px; color: var(--muted); font-weight: 700; padding: 0 6px 8px; text-align: center; }
.pw-table th:first-child { text-align: left; padding-left: 0; }
.pw-table td { padding: 10px 6px; border-top: 1px solid var(--line); text-align: center; vertical-align: middle; }
.pw-table td:first-child { text-align: left; padding-left: 0; font-weight: 500; }
.pw-table td.pro-col { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.pw-table th.pro-col { background: var(--brand-soft); color: var(--brand-ink); border-radius: 12px 12px 0 0; padding-top: 8px; }
.pw-table .yes { color: var(--good); display: inline-block; }
.pw-table .no { color: var(--muted); }
.plans { display: grid; gap: 10px; }
.plan { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); border: 2px solid var(--line); background: var(--surface); text-align: left; width: 100%; transition: all .25s var(--ease); }
.plan.on { border-color: var(--brand); background: var(--brand-soft); }
.plan .pl-radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.plan.on .pl-radio { border-color: var(--brand); }
.plan.on .pl-radio::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.plan .pl-t { font-weight: 700; }
.plan .pl-s { font-size: 12.5px; color: var(--muted); }
.plan .pl-p { margin-left: auto; text-align: right; font-family: var(--f-display); font-weight: 700; font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan .pl-p small { display: block; font-family: var(--f-body); font-size: 11.5px; color: var(--muted); font-weight: 600; }
.plan .pl-tag { position: absolute; top: -10px; left: 16px; background: color-mix(in oklab, var(--good) 78%, #000); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.pay-methods { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pay-methods span { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); font-weight: 800; font-size: 12.5px; letter-spacing: .02em; color: var(--ink-2); background: var(--surface); }
.card-visual {
  position: relative; overflow: hidden; aspect-ratio: 1.586; width: 100%; max-width: 360px; margin: 0 auto; border-radius: 20px; padding: 20px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, color-mix(in oklab, var(--brand) 80%, #000), var(--brand) 50%, var(--brand2));
  box-shadow: var(--shadow-lg);
}
.card-visual .ikat { background-color: #fff; opacity: .08; }
.card-visual .cv-num { font-family: var(--f-display); font-size: clamp(17px, 5vw, 21px); letter-spacing: .08em; font-variant-numeric: tabular-nums; position: relative; }
.card-visual .cv-row { display: flex; justify-content: space-between; align-items: flex-end; position: relative; font-size: 13px; }
.card-visual .cv-brand { font-weight: 800; font-size: 16px; letter-spacing: .04em; }
.card-visual .chip-g { width: 40px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #F8DE8B, #C9A34A); position: relative; }
.card-fields { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.success-burst { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 10px 0; }
.success-burst .hero-slot { width: 140px; aspect-ratio: 2/3; }

/* ---------------- Sheet (pastdan chiqadigan oyna) ---------------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: color-mix(in oklab, #000 45%, transparent); backdrop-filter: blur(3px); animation: fadeIn .3s ease both; }
.sheet-backdrop.closing { animation: fadeOut .25s ease both; }
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-lg);
  animation: sheetUp .42s var(--ease) both;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.sheet.closing { animation: sheetDown .28s ease-in both; }
.sheet .sh-handle { width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: 10px auto 2px; flex: none; }
.sheet .sh-head { display: flex; align-items: center; gap: 10px; padding: 8px 18px 10px; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); flex: none; }
.sheet .sh-head h3 { font-size: 18px; flex: 1; min-width: 0; }
.sheet .sh-body { overflow-y: auto; flex: 1 1 auto; min-height: 0; flex-direction: column; padding: 4px 18px 22px; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); display: flex; gap: 16px; overscroll-behavior: contain; }
.sheet .sh-body > * { flex-shrink: 0; }
.sheet .sh-foot { padding: 10px 18px 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; flex: none; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, 92vw); max-height: 86vh; border-radius: var(--r-xl); transform: translate(-50%, -50%); animation: dialogIn .38s var(--spring) both; }
  .sheet.wide { width: min(760px, 94vw); }
  .sheet.closing { animation: dialogOut .22s ease-in both; }
  .sheet .sh-handle { display: none; }
  .sheet .sh-head { padding-top: 18px; }
}
@keyframes dialogIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
@keyframes dialogOut { to { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }

/* Toast */
#toast-root { position: fixed; z-index: 100; left: 0; right: 0; top: max(12px, env(safe-area-inset-top, 0px)); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding-inline: 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 440px; width: 100%; padding: 12px 14px; border-radius: 18px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; animation: toastIn .45s var(--spring) both; }
.toast.out { animation: toastOut .3s ease-in both; }
.toast .t-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in oklab, var(--bg) 16%, transparent); flex: none; }
.toast.ach .t-ic { background: var(--accent); color: #2A1B00; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-24px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-16px); } }

/* SMS bildirishnoma (demo) */
.sms {
  pointer-events: auto; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; max-width: 420px; width: 100%;
  padding: 12px 14px; border-radius: 22px; background: color-mix(in oklab, var(--surface) 82%, transparent); color: var(--ink);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: toastIn .5s var(--spring) both;
}
.sms.out { animation: toastOut .3s ease-in both; }
.sms .s-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; background: #34C759; color: #fff; display: grid; place-items: center; }
.sms .s-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sms .s-msg { font-size: 14px; line-height: 1.35; }
.sms .s-msg b { font-family: var(--f-display); letter-spacing: .08em; }
.demo-tag { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); }
/* Aloqa yo'q: tepadagi rost xabar (internet yoki server) — ma'lumot yo'qolmaydi */
.net-banner { position: sticky; top: 0; z-index: 80; display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.35;
  padding: max(10px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: var(--warn-soft); color: var(--ink); border-bottom: 1px solid color-mix(in oklab, var(--warn) 35%, var(--line)); }
.net-banner > svg { flex: none; color: var(--warn); }
.net-banner b { margin-right: 4px; }
.net-banner .btn { flex: none; }

/* Konfetti */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 95; }

/* Och qolish (fasting) */
.fast-ring { position: relative; width: 210px; height: 210px; margin: 0 auto; }
.fast-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fast-ring .track { stroke: var(--surface-3); }
.fast-ring .val { stroke: url(#gFast); transition: stroke-dashoffset 1s linear; }
.fast-ring .fr-c { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.fast-ring .fr-c b { font-family: var(--f-display); font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.fast-ring .fr-c span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mini-fast { display: flex; align-items: center; gap: 14px; }
.mini-fast .mf-ring { width: 64px; height: 64px; flex: none; }
.mini-fast .mf-ring svg { transform: rotate(-90deg); }

.empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 18px 8px; color: var(--muted); }
.empty .ic { color: var(--brand); opacity: .6; }

.tip-card { display: flex; gap: 12px; align-items: flex-start; }
.tip-card .tip-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 20%, var(--surface)); color: color-mix(in oklab, var(--accent) 60%, #000); flex: none; }

.weight-q { display: flex; align-items: center; gap: 14px; }
.weight-q .wq-v { font-family: var(--f-display); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.weight-q .wq-v small { font-size: 14px; color: var(--muted); font-weight: 600; }
.delta { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.delta.down { color: var(--good); }
.delta.up { color: var(--warn); }

.ramadan-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); color: #fff; background: linear-gradient(120deg, #1C2C5B, #3B2A6B 60%, #6B3F7A); position: relative; overflow: hidden; }
.ramadan-bar .ikat { background-color: #F2C14E; opacity: .14; }
.ramadan-bar b { font-family: var(--f-display); font-size: 20px; font-variant-numeric: tabular-nums; }
.ramadan-bar > * { position: relative; }

.demo-box { border: 1.5px dashed color-mix(in oklab, var(--warn) 50%, var(--line)); background: var(--warn-soft); }

@media (min-width: 900px) {
  .ob { flex-direction: row; min-height: 100vh; }
  /* Sahna doim ekran balandligida va joyida turadi: o'ng panel uzun bo'lsa (Telegram yo'riqnomasi, QR) faqat panel suriladi —
     qahramon va uning gapi tepadan kesilib qolmaydi */
  .ob-stage { flex: 1.05; height: 100vh; height: 100dvh; min-height: 0; position: sticky; top: 0; align-self: flex-start; }
  .ob-stage .lagan { width: min(44vw, 560px); left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -36%); }
  .ob-stage .hero-slot { left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -38%); height: min(56vh, 470px); }
  .ob-stage .bubble, .ob-stage.duo-mode .bubble { top: 9%; left: 50%; right: auto; transform: translateX(-50%); width: min(80%, 380px); text-align: center; font-size: 15.5px; padding: 14px 18px; }
  .ob-stage .bubble::after, .ob-stage.duo-mode .bubble::after { left: 50%; top: auto; bottom: -7px; transform: translateX(-50%) rotate(45deg); }
  .ob-stage.duo-mode .duo { top: 50%; bottom: auto; transform: translate(-50%, -34%); height: min(48vh, 420px); }
  .ob-top { right: auto; width: 51%; }
  .ob-panel { flex: 1; margin-top: 0; border-radius: 0; max-width: 620px; padding: 90px 56px 40px; box-shadow: none; justify-content: center; }
  .ob-panel .ob-body { flex: 0; }
  .welcome { flex-direction: row; min-height: 100vh; }
  .welcome .w-stage { flex: 1.1; }
  .welcome .w-panel { flex: 1; max-width: 560px; align-content: center; padding: 40px 56px; }
  .welcome .duo .hero-slot { width: min(15vw, 230px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Lagan aylanishi va grafik chizilishi */
.lagan { display: block; }
.lagan .lagan-spin { transform-box: view-box; transform-origin: 100px 100px; }
.lagan.spin .lagan-spin { animation: laganSpin 80s linear infinite; }
@keyframes laganSpin { to { transform: rotate(360deg); } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* ===================== v2: yangi komponentlar ===================== */
/* Bugungi reja */
.today-plan .card-head { align-items: center; }
.tp-ring { position: relative; width: 52px; height: 52px; flex: none; }
.tp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tp-ring .track { stroke: var(--surface-3); }
.tp-ring .val { stroke: var(--good); transition: stroke-dashoffset 1s var(--ease); }
.tp-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 13px; font-variant-numeric: tabular-nums; }
.tp-list { display: grid; gap: 8px; }
.tp-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); transition: background .2s, transform .2s var(--spring); min-width: 0; }
.tp-item:hover { background: var(--surface-3); }
.tp-item:active { transform: scale(.985); }
.tp-check { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.tp-t { display: block; font-weight: 650; font-size: 14.5px; }
.tp-s { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tp-item.done { background: var(--good-soft); border-color: transparent; }
.tp-item.done .tp-check { background: var(--good); color: #fff; }
.tp-item.done .tp-t { color: var(--ink-2); }

/* Tez qo'shish tugmasi */
.fab {
  position: fixed; z-index: 45; width: 58px; height: 58px; border-radius: 50%;
  right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px));
  background: var(--brand-solid); color: var(--on-brand); display: grid; place-items: center;
  box-shadow: 0 16px 30px -12px var(--brand), 0 2px 6px rgba(0, 0, 0, .15); transition: transform .2s var(--spring);
}
.fab:active { transform: scale(.92); }
@media (min-width: 960px) { .fab { bottom: 28px; right: 28px; } }
.fab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .fab-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.fab-item { display: grid; justify-items: center; gap: 8px; padding: 14px 8px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-align: center; transition: background .2s, transform .2s var(--spring); }
.fab-item:hover { background: var(--surface-3); }
.fab-item:active { transform: scale(.96); }
.fi-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }

/* Missiyalar */
.quests { display: grid; gap: 8px; }
.quest { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; transition: all .2s; }
.quest.done { border-color: color-mix(in oklab, var(--good) 40%, var(--line)); background: var(--good-soft); }
.q-box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; flex: none; background: var(--surface); }
.quest.done .q-box, .q-box.on { background: var(--good); border-color: var(--good); }

/* E'lon va sana */
.announce { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--brand-soft); color: var(--ink); font-size: 14px; font-weight: 500; }
.announce .ic { color: var(--brand-ink); }
.announce.warn { background: var(--warn-soft); }
.announce.good { background: var(--good-soft); }
.event-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; justify-self: start; flex-wrap: wrap; }
.event-chip .ic { color: var(--brand-ink); }
.bell { position: relative; background: var(--surface-3); }
.dot-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.dot-badge.static { position: static; }
.hero-name { position: absolute; z-index: 3; left: 14px; bottom: 10px; font-family: var(--f-display); font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow-sm); }

/* Prognoz va va'da */
.fc-big { display: grid; gap: 2px; margin-bottom: 10px; }
.fc-big b { font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.fc-big .ic { color: var(--gold); }
.promise { border-radius: var(--r-lg); padding: 16px; background: var(--brand-soft); display: grid; gap: 4px; }
.promise .pr-head { display: flex; align-items: center; gap: 8px; color: var(--brand-ink); font-size: 15px; }
.promise ul { list-style: none; padding: 0; margin: 6px 0 4px; display: grid; gap: 6px; }
.promise li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.promise li .ic { color: var(--brand-ink); margin-top: 1px; }
.qs-bar { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.qs-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--warn), color-mix(in oklab, var(--warn) 60%, var(--bad))); transition: width .6s var(--ease); }
.cel-num { font-size: 30px; }
.duel-row { margin-top: 10px; }
.duel-bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.duel-bar > i { display: block; height: 100%; border-radius: 99px; background: var(--muted); transition: width .6s var(--ease); }
.duel-row.me .duel-bar > i { background: linear-gradient(90deg, var(--brand), var(--brand2)); }
.pr-start { margin-top: 8px; padding: 10px 14px; border-radius: 14px; display: flex; gap: 8px; align-items: center; font-size: 14.5px; background: color-mix(in oklab, var(--warn) 16%, var(--surface)); }
.pr-start > svg { flex: none; color: var(--warn); }
.pr-result { margin-top: 8px; padding: 14px; border-radius: 16px; background: var(--brand-solid); color: var(--on-brand); display: grid; justify-items: center; text-align: center; gap: 2px; }
.pr-result b { font-family: var(--f-display); font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.pr-result span { font-size: 13.5px; opacity: .9; }

/* Yo'l xaritasi */
.road { display: grid; }
.road-i { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.road-i:not(:last-child)::after { content: ''; position: absolute; left: 10px; top: 33px; bottom: -9px; width: 2px; background: var(--line); }
.road-i.done:not(:last-child)::after { background: var(--brand); }
.road-dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--brand); background: var(--surface); display: grid; place-items: center; color: #fff; flex: none; }
.road-i.done .road-dot { background: var(--brand); }
.road-i:last-child .road-dot { border-color: var(--gold); }
.road-i b { font-size: 14px; }

/* Ipak yo'li */
.chart.journey text { font-size: 10.5px; }
.city-fact { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); margin-top: 8px; }

/* Maqol */
.proverb { font-size: 15.5px; font-weight: 600; color: var(--ink); margin-top: 4px; text-wrap: balance; }

/* Yo'l-yo'riq turi */
.tour { position: fixed; inset: 0; z-index: 120; }
.tour-hole { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(8, 10, 18, .62); pointer-events: none; transition: all .3s var(--ease); }
.tour-dim { position: fixed; inset: 0; background: rgba(8, 10, 18, .62); }
.tour-card { position: fixed; left: 50%; transform: translateX(-50%); width: min(390px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border-radius: 20px; padding: 16px; box-shadow: var(--shadow-lg); animation: bubbleIn .4s var(--spring); }
.tour-avatar { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); flex: none; display: grid; place-items: end center; }
.tour-avatar .hero-svg { width: 150%; height: 150%; transform: translateY(30%); }

/* Raqamni qo'lda kiritish */
.num-entry { display: flex; align-items: center; justify-content: center; gap: 10px; }
.num-input { font-family: var(--f-display); font-size: 40px; font-weight: 700; text-align: center; max-width: 230px; min-height: 76px; letter-spacing: -0.02em; }
.num-unit { font-size: 18px; color: var(--muted); font-weight: 600; }
.edit-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font-size: 13.5px; font-weight: 600; padding: 6px 10px; border-radius: 99px; transition: background .2s; }
.edit-link:hover { background: var(--surface-2); }
.val-tap { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-size: 22px; font-weight: 700; padding: 4px 8px; border-radius: 10px; color: var(--ink); font-variant-numeric: tabular-nums; }
.val-tap small { font-family: var(--f-body); font-size: 13px; color: var(--muted); }
.val-tap .ic { color: var(--muted); }
.val-tap:hover, .tap-num:hover { background: var(--surface-2); }
.tap-num { border-radius: 16px; padding: 4px 12px; }
.help { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 700; margin-left: 4px; vertical-align: middle; font-family: var(--f-body); }
.help::after { content: ''; position: absolute; inset: -11px; }  /* barmoq uchun kattaroq bosish joyi (44px) */

/* Taklif kodi */
.ref-box summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--brand-ink); list-style: none; display: flex; align-items: center; gap: 8px; }
.ref-box summary::-webkit-details-marker { display: none; }
.ref-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ref-code b { flex: 1; min-width: 140px; text-align: center; font-family: var(--f-display); font-size: 21px; letter-spacing: .06em; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); border: 1.5px dashed color-mix(in oklab, var(--brand) 55%, var(--line)); }

/* To'lov */
.promo-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.promo-row .input { flex: 1; min-width: 160px; min-height: 48px; text-transform: uppercase; }
.pm { display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; border-radius: 10px; font-weight: 800; font-size: 13px; letter-spacing: .02em; color: #fff; background: #555; }
.pm-payme { background: #087985; }
.pm-click { background: #1767BF; }
.pm-visa { background: #1A1F71; }
.pm-card { background: var(--brand, #2F7D5B); }
.cp-box { background: var(--surface-2); border-radius: 18px; padding: 16px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.cp-l { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cp-amount { font-size: 38px; font-weight: 900; line-height: 1.1; letter-spacing: -.01em; }
.cp-amount small { font-size: 16px; font-weight: 700; color: var(--muted); }
.cp-tail { color: color-mix(in oklab, var(--accent) 55%, var(--ink)); background: color-mix(in srgb, var(--accent, #E07A2F) 14%, transparent); border-radius: 8px; padding: 0 4px; margin-left: 1px; }
.cp-warn { display: flex; gap: 6px; align-items: flex-start; text-align: left; font-size: 13px; margin: 2px 0 0; color: var(--ink); }
.cp-warn svg { flex: none; margin-top: 2px; color: var(--accent, #E07A2F); }
.cp-card { display: grid; gap: 2px; margin-top: 10px; padding: 14px 16px 16px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #1E3B33, #2F7D5B); }
.cp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
.cp-card .cp-l { color: rgba(255,255,255,.75); }
.cp-card .btn { background: rgba(255,255,255,.16); color: #fff; border: 0; }
.cp-num { font-size: clamp(18px, 6.2vw, 24px); font-weight: 800; letter-spacing: .04em; margin-top: 4px; word-spacing: .1em; white-space: nowrap; }
.cp-holder { font-size: 13px; opacity: .85; margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }
.cp-steps { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.cp-wait { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.cp-wait .num { font-size: 16px; }
.cp-wait.claimed { background: color-mix(in oklab, var(--good) 14%, var(--surface)); }
.receipt { margin-top: 14px; border: 1px dashed var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 6px; text-align: left; }
.receipt .rc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.receipt .rc-row span { color: var(--muted); }
.pm.big { min-width: 78px; padding: 12px 10px; font-size: 14px; flex: none; }
.pay-opt { padding: 12px 14px; }
.whatif-res { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 16px; border-radius: 18px; background: var(--surface-2); }
.whatif-res b { font-family: var(--f-display); font-size: 26px; }
.whatif-res.on { background: var(--brand-solid); color: var(--on-brand); }
ul.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
ul.tips li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; padding: 4px 0; }
ul.tips li .ic { color: var(--good); margin-top: 2px; }

/* Matn bilan yozish */
.quick-text { display: grid; gap: 8px; }
.qt-row { display: flex; gap: 8px; }
.qt-row .input { flex: 1; min-width: 0; min-height: 50px; }
.chart .trend { fill: none; stroke: var(--brand2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Katta yozuv rejimi */
html[data-big="1"] body { zoom: 1.12; }

/* ---------------- v2.1: huquqiy havolalar, admin kirish ---------------- */
.w-legal a, #pw-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; padding: 8px 0; }
.w-admin { display: inline-flex; align-items: center; gap: 6px; margin: -6px auto 0; font-size: 12.5px; color: var(--muted); padding: 6px 10px; border-radius: 10px; justify-self: center; }
.w-admin:hover { background: var(--surface-2); color: var(--ink); }

/* ---------------- Sayt bo'limlari (xush kelibsiz ostida) ---------------- */
.w-more { display: inline-flex; align-items: center; gap: 6px; justify-self: center; font-size: 13.5px; font-weight: 600; color: color-mix(in oklab, var(--brand-ink) 85%, var(--ink)); text-decoration: none; padding: 6px 12px; border-radius: 99px; animation: stepIn .6s var(--ease) 1.1s both; }
.w-more:hover { background: var(--surface-2); }
.land { background: var(--bg); position: relative; }
.land-sec { padding: 64px 0; }
.land-sec.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.land-in { max-width: 1120px; margin: 0 auto; display: grid; gap: 28px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.land-in.narrow { max-width: 780px; }
.land-head { display: grid; gap: 10px; justify-items: center; text-align: center; }
.land-head h2 { font-size: clamp(24px, 4.4vw, 36px); max-width: 24ch; }
.land-head p { color: var(--ink-2); max-width: 54ch; font-size: 16px; }
.land-steps { display: grid; gap: 14px; }
@media (min-width: 760px) { .land-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.land-step { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.land-step b { font-family: var(--f-display); font-size: 18px; }
.land-step p, .land-feat p { color: var(--ink-2); font-size: 14.5px; }
.ls-n { position: absolute; top: 14px; right: 18px; font-family: var(--f-display); font-weight: 800; font-size: 42px; line-height: 1; color: color-mix(in oklab, var(--brand) 16%, transparent); }
.ls-ic, .lf-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.land-feats { display: grid; gap: 12px; }
@media (min-width: 620px) { .land-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .land-feats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.land-feat { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line); }
.land-feat b { font-size: 16px; }
.land-prices { display: grid; gap: 22px; max-width: 880px; margin: 0 auto; width: 100%; }
@media (min-width: 760px) { .land-prices { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.land-price { position: relative; display: grid; gap: 12px; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1.5px solid var(--line); }
.land-price.pro { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.lp-tag { position: absolute; top: -12px; left: 24px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; background: linear-gradient(135deg, #F7C64B, #E99A1B); color: #3A2400; }
.lp-t { font-weight: 700; color: var(--ink-2); }
.lp-p { font-family: var(--f-display); font-size: 36px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.lp-p small { font-family: var(--f-body); font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.lp-s { font-size: 13px; color: var(--muted); margin-top: -6px; }
.land-price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.land-price li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.land-price li .ic { color: var(--good); margin-top: 2px; }
.lp-pay { display: flex; gap: 8px; flex-wrap: wrap; }
.lp-note { font-size: 12.5px; color: var(--muted); }
.land-cta { justify-self: center; min-width: min(280px, 100%); }
.land-faq { display: grid; gap: 10px; }
.land-faq details { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 18px; }
.land-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; font-weight: 650; font-size: 15.5px; }
.land-faq summary::-webkit-details-marker { display: none; }
.land-faq summary .ic { transition: transform .25s var(--ease); flex: none; color: var(--muted); }
.land-faq details[open] summary .ic { transform: rotate(180deg); }
.land-faq details p { padding: 0 0 16px; color: var(--ink-2); font-size: 14.5px; }
.land-foot { padding: 40px 0 calc(32px + env(safe-area-inset-bottom, 0px)); background: var(--bg); }
.land-foot .land-in { justify-items: center; text-align: center; gap: 16px; }
.land-foot .logo { font-size: 30px; }
.land-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.land-foot nav a { color: var(--ink-2); font-size: 14px; text-decoration: none; }
.land-foot nav a:hover { color: var(--brand-ink); text-decoration: underline; }
.land-foot p { font-size: 12.5px; color: var(--muted); max-width: 60ch; }

/* ---------------- Telegram eslatmalar ---------------- */
.tg-preview { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #DCE8F1; }
.tg-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; color: #1D2733; border-bottom: 1px solid #D5DEE6; }
.tg-top b { font-size: 14px; }
.tg-top .tiny { color: #7B8A99; }
.tg-ava { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #18B567, #0E7F6E); color: #fff; }
.tg-chat { display: grid; gap: 6px; padding: 12px; background: #CFE0EA; background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.35) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, rgba(255,255,255,.3) 0 2px, transparent 3px); background-size: 60px 60px; }
.tg-msg { justify-self: start; max-width: 86%; background: #fff; color: #1D2733; padding: 7px 11px; border-radius: 14px 14px 14px 4px; font-size: 13.5px; line-height: 1.35; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.tg-msg.me { justify-self: end; background: #E1FAC9; border-radius: 14px 14px 4px 14px; }
.tg-btn { margin-top: 6px; text-align: center; font-weight: 600; font-size: 13px; color: #2481CC; background: rgba(36,129,204,.1); border-radius: 8px; padding: 6px; }
.tg-ok { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-md); background: var(--good-soft); color: var(--ink); }
.tg-ok > .ic { color: var(--good); }
.tg-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.tg-promo { background: var(--brand-soft); border-radius: var(--r-md); padding-left: 10px; padding-right: 10px; border-bottom: 0; }

/* ---------------- AI maslahatchi ---------------- */
.coach-card .chips { margin-bottom: 10px; }
.coach-card .chip { white-space: normal; text-align: left; min-height: 34px; font-size: 13px; }
.coach-input { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 14.5px; text-align: left; transition: border-color .2s; }
.coach-input:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); }
.coach-input .ic { color: var(--brand-ink); }
.cm-list { display: grid; gap: 12px; }
.cm { display: flex; gap: 8px; align-items: flex-end; }
.cm.me { justify-content: flex-end; }
.cm-b { max-width: 82%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.cm.me .cm-b { background: var(--brand-solid); color: var(--on-brand); border-color: transparent; border-radius: 18px 18px 6px 18px; }
.cm-ava { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); flex: none; display: grid; place-items: end center; }
.cm-ava .hero-svg { width: 150%; height: 150%; transform: translateY(30%); }
.cm-demo { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.cm-b.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.cm-b.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite ease-in-out; }
.cm-b.typing i:nth-child(2) { animation-delay: .15s; }
.cm-b.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
.coach-sugg { margin-top: 4px; }
.coach-sugg .chip { white-space: normal; text-align: left; min-height: 34px; font-size: 13px; }
.coach-form { display: flex; gap: 8px; align-items: flex-end; }
.coach-form textarea { min-height: 48px; max-height: 120px; resize: none; padding: 12px 14px; line-height: 1.4; border-radius: 22px; }
.coach-form .btn-icon { width: 48px; min-height: 48px; flex: none; }

/* =========================================================
   v3: to'lov, o'smirlar roziligi, o'rnatish, mavsum, statistika
   ========================================================= */
.consent { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1.5px solid var(--line); font-size: 13.5px; line-height: 1.45; cursor: pointer; margin-top: 10px; }
.consent input { width: 20px; height: 20px; flex: none; accent-color: var(--brand); margin-top: 1px; }
.consent:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.spin.big { display: inline-block; width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid var(--brand); border-right-color: transparent; animation: spin .7s linear infinite; }
.install-steps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 10px; font-size: 14.5px; }
.install-steps li::marker { font-weight: 700; color: var(--brand); }
.install-ban { align-items: center; flex-wrap: wrap; }
.season-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.season-item { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); transition: transform .2s var(--spring), border-color .2s; }
.season-item:hover { border-color: var(--brand); transform: translateY(-1px); }
.season-item b { font-size: 14px; }
.season-item span { font-size: 12px; color: var(--muted); }
.land-stats { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.land-stats > div { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; align-content: center; }
.land-stats b { font-family: var(--f-display, 'Unbounded', sans-serif); font-size: 30px; line-height: 1.1; color: var(--brand); }
.land-stats .ls-big { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; border: 0; }
.land-stats .ls-big b { color: #fff; font-size: 34px; }
.land-stats span { font-size: 13.5px; color: var(--muted); }
.land-stats .ls-big span { color: rgba(255,255,255,.92); font-size: 15px; }
@media (max-width: 760px) { .land-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .land-stats .ls-big { grid-column: 1 / -1; } }
.land-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.dl-card { display: grid; justify-items: start; gap: 6px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--line); text-align: left; color: var(--ink); text-decoration: none; transition: transform .2s var(--spring), border-color .2s, box-shadow .2s; }
.dl-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.dl-card .ic { color: var(--brand); }
.dl-card b { font-size: 16px; }
.dl-card span { font-size: 13px; color: var(--muted); }
.dl-card[hidden] { display: none; }
.pm-trial { background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- v3.1: murabbiy ohangi va gazak nazoratchisi ---------- */
.tone-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.tone-chips { margin: 0; gap: 6px; }
.tone-chips .chip { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; font-size: 13px; }
.tone-list { display: grid; gap: 10px; margin: 12px 0; }
.tone-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface-2); color: inherit; font: inherit; cursor: pointer; }
.tone-opt.on { border-color: var(--brand); background: var(--brand-soft); }
.tone-opt .grow { display: grid; gap: 3px; }
.tone-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); flex: none; }
.tone-ex { font-size: 13px; font-style: italic; opacity: .85; margin-top: 3px; }
.nudge { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.nudge-ava { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); flex: none; display: grid; place-items: end center; }
.nudge-ava .hero-svg { width: 150%; height: 150%; transform: translateY(30%); }
.nudge .cm-b { max-width: none; font-size: 15px; }
.coach-nudge.strict .nudge .cm-b { border-color: #E5676E; border-width: 1.5px; font-weight: 600; }
.coach-nudge .link { background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; }
.toast.coach-toast { max-width: 440px; }
.meal-card .mc-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.meal-card .mc-btns .btn { flex: 1 1 140px; width: auto; margin-top: 0; }

/* v3.3: porsiya tanlash */
.pv-card { background: var(--surface-2); }
.pv-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pv-kcal { font-size: 36px; font-weight: 700; line-height: 1; }
.pv-kcal small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 6px; font-family: var(--f-body); }
.pv-desc { margin-top: 6px; font-weight: 600; color: var(--ink-2); }
.pv-mac { display: flex; gap: 16px; }
.pv-mac > div { display: grid; justify-items: center; gap: 2px; }
.pv-mac span { font-size: 12px; color: var(--muted); }
.portion button { padding: 6px 8px; line-height: 1.2; font-size: 14px; color: var(--ink); }
.pv-kv { font-weight: 700; font-size: 16px; text-align: center; }
.pv-g-row { display: flex; align-items: center; gap: 10px; }
.pv-g-row .input { max-width: 160px; }
@media (max-width: 420px) { .portion { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hb { display: grid; min-width: 0; }
@media (max-width: 1059px) { .home-grid { display: flex; flex-direction: column; } .home-col { display: contents; } .hb { order: var(--o); } }
/* v3.3: bosh sahifa (landing) telefonda ixchamroq */
@media (max-width: 760px) {
  .land-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .land-stats > div.ls-item { padding: 12px 10px; }
  .land-stats .ls-item b { font-size: 22px; }
  .land-stats .ls-item span { font-size: 12px; }
}
@media (max-width: 619px) {
  .land-feat { grid-template-columns: 46px 1fr; column-gap: 12px; row-gap: 2px; padding: 14px 16px; }
  .land-feat .lf-ic { grid-row: span 2; align-self: start; }
  .land-feat p { margin: 0; }
}
.land-final { display: grid; justify-items: center; gap: 14px; margin-top: 28px; text-align: center; }
.land-final b { font-size: 18px; text-wrap: balance; }
/* v3.3: tor telefonlarda (360px) sarlavha sig‘maydi — ixchamlashtiramiz */
.greet .grow { min-width: 0; }
.greet h1 { overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .greet { gap: 8px; }
  .greet h1 { font-size: 19px; }
  .greet .avatar { width: 40px; height: 40px; flex: none; }
  .greet .btn-accent { padding: 0 10px; }
  .greet .streak { padding: 4px 8px; }
}
.greet .date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Ism so'z o'rtasidan bo'linmaydi ("Umarbe/k!"): sig'masa yangi qatorga, juda uzun bo'lsa "…" */
.greet h1 { overflow-wrap: normal; }
.greet h1 .nm { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
/* Olov (ketma-ket kunlar) tor ekranda avatar burchagida */
.greet .av { position: relative; flex: none; display: grid; }
.greet .streak-b { display: none; position: absolute; right: -9px; top: -5px; align-items: center; gap: 1px; padding: 1px 5px 1px 3px; border-radius: 99px;
  background: color-mix(in oklab, #FF7A1A 16%, var(--surface)); color: #E2580B; border: 2px solid var(--bg); font-size: 11px; font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) {
  .greet .streak { display: none; }
  .greet .streak-b { display: inline-flex; }
}
.w-dl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; justify-self: stretch; font-weight: 600; font-size: 14.5px; color: var(--brand-ink); text-decoration: none; padding: 10px 14px; border-radius: 14px; border: 1.5px dashed color-mix(in oklab, var(--brand) 45%, var(--line)); }
.w-dl:hover { background: var(--surface-2); }

/* Telegram orqali kirish kodi */
.tg-steps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.tg-steps li::marker { color: var(--brand-ink); font-weight: 700; }
.tg-open { margin: 2px 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.tg-qr { display: grid; justify-items: center; gap: 8px; margin: 0 0 14px; padding: 12px; border: 1px dashed var(--line); border-radius: var(--r-md); }
.tg-qr img { width: 150px; height: 150px; image-rendering: pixelated; background: #fff; padding: 6px; border-radius: 8px; }
.tg-help { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; background: var(--surface-2); }
.tg-help summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--brand-ink); min-height: 28px; display: flex; align-items: center; }
.tg-help ul { margin: 8px 0 2px; padding-left: 18px; display: grid; gap: 6px; }
[data-act="obSms"] { background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
/* v3.8: taklif kartasi, ona rejimi */
.ref-prog { margin: 10px 0 4px; }
.ref-bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.ref-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent, var(--brand))); transition: width .6s; }
.ref-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.ref-stats b { color: var(--text, inherit); font-size: 15px; }
.mom-card .note { margin-top: 6px; }
.w-ref { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px auto 0; padding: 8px 12px; border-radius: 12px; background: color-mix(in oklab, var(--brand) 14%, transparent); font-size: 14px; font-weight: 600; max-width: 420px; }
.ref-card .ref-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ref-card .ref-code b { flex: 1 1 100%; text-align: center; }
.ref-card .ref-code .btn { flex: 1 1 auto; }

/* v3.9: to'lov faqat karta orqali — qisqa ko'rsatma */
.card-only { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--brand-soft); color: var(--ink); font-size: 14px; line-height: 1.45; }
.card-only svg { flex: none; color: var(--brand-ink); margin-top: 2px; }

/* Kirish: Telegram / Google bilan bir bosishda */
.si-btns { display: grid; gap: 12px; margin: 18px 0 6px; }
.btn-tg { background: #229ED9; color: #fff; border-color: #229ED9; text-decoration: none; }
.btn-tg:hover { background: #1c8cc1; color: #fff; }
.g-btn { display: flex; justify-content: center; min-height: 44px; }
.si-wait { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 14px; margin: 10px 0; border-radius: 14px; background: var(--surface-2); font-weight: 600; }
.si-wait .spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--brand); border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
.guest-card { border: 1.5px dashed var(--brand); }

.sup-link { color: var(--brand); font-weight: 700; text-decoration: none; }
.sup-link:hover { text-decoration: underline; }

/* ===== Mashq harakatlari (v3.12): har bir mashq o'z harakati bilan. Yotib bajariladiganlar — tana yotqizilgan holda ===== */
/* Yotish: oyoq uchi atrofida burilgan va kichraytirilgan tana (bosh chapda, oyoq o'ngda) */
.hero-svg[data-pose="pushup"] .h-body, .hero-svg[data-pose="plank"] .h-body, .hero-svg[data-pose="sideplank"] .h-body,
.hero-svg[data-pose="climber"] .h-body, .hero-svg[data-pose="crunch"] .h-body, .hero-svg[data-pose="bicycle"] .h-body,
.hero-svg[data-pose="bridge"] .h-body, .hero-svg[data-pose="superman"] .h-body, .hero-svg[data-pose="kickback"] .h-body,
.hero-svg[data-pose="catcow"] .h-body, .hero-svg[data-pose="bench"] .h-body { transform-origin: 100px 288px; transform: translate(72px, -16px) rotate(-86deg) scale(.66); }
.hero-svg[data-pose="pushup"] .h-shadow, .hero-svg[data-pose="plank"] .h-shadow, .hero-svg[data-pose="sideplank"] .h-shadow, .hero-svg[data-pose="climber"] .h-shadow,
.hero-svg[data-pose="crunch"] .h-shadow, .hero-svg[data-pose="bicycle"] .h-shadow, .hero-svg[data-pose="bridge"] .h-shadow, .hero-svg[data-pose="superman"] .h-shadow,
.hero-svg[data-pose="kickback"] .h-shadow, .hero-svg[data-pose="catcow"] .h-shadow, .hero-svg[data-pose="bench"] .h-shadow { transform: translate(-8px, -6px) scale(1.9, 1); transform-origin: 100px 291px; }

/* Otjimaniye: tana pastga-tepaga, qo'llar polga tirgalgan */
.hero-svg[data-pose="pushup"] .h-body { animation: p-push 1.6s ease-in-out infinite; }
.hero-svg[data-pose="pushup"] .h-arm-l, .hero-svg[data-pose="pushup"] .h-arm-r { animation: p-pushArm 1.6s ease-in-out infinite; }
@keyframes p-push { 0%, 100% { transform: translate(72px, -16px) rotate(-74deg) scale(.66); } 50% { transform: translate(72px, -16px) rotate(-86deg) scale(.66); } }
@keyframes p-pushArm { 0%, 100% { transform: rotate(74deg) scaleY(.82); } 50% { transform: rotate(86deg) scaleY(.62); } }

/* Planka: tirsakda, tana tekis — faqat nafas */
.hero-svg[data-pose="plank"] .h-body { transform: translate(72px, -16px) rotate(-82deg) scale(.66); }
.hero-svg[data-pose="plank"] .h-arm-l, .hero-svg[data-pose="plank"] .h-arm-r { transform: rotate(82deg) scaleY(.55); }
.hero-svg[data-pose="plank"] .h-torso { animation: h-breathe 2.4s ease-in-out infinite; }

/* Yon planka: bir qo'l polda, ikkinchisi shiftga */
.hero-svg[data-pose="sideplank"] .h-body { animation: p-side 3s ease-in-out infinite; }
.hero-svg[data-pose="sideplank"] .h-arm-l { transform: rotate(78deg) scaleY(.55); }
.hero-svg[data-pose="sideplank"] .h-arm-r { transform: rotate(-102deg); }
@keyframes p-side { 0%, 100% { transform: translate(72px, -16px) rotate(-76deg) scale(.66); } 50% { transform: translate(72px, -18px) rotate(-79deg) scale(.66); } }

/* Tog'chi: planka holatida tizzalar navbat bilan ko'krakka */
.hero-svg[data-pose="climber"] .h-body { transform: translate(72px, -16px) rotate(-74deg) scale(.66); }
.hero-svg[data-pose="climber"] .h-arm-l, .hero-svg[data-pose="climber"] .h-arm-r { transform: rotate(74deg); }
.hero-svg[data-pose="climber"] .h-leg-l { animation: m-leg .5s ease-in-out infinite; }
.hero-svg[data-pose="climber"] .h-leg-r { animation: m-leg .5s ease-in-out infinite -.25s; }

/* Qorin pressi: chalqancha, yelkalar ko'tariladi, qo'llar bosh orqasida */
.hero-svg[data-pose="crunch"] .h-body, .hero-svg[data-pose="bicycle"] .h-body { transform: translate(72px, -16px) rotate(-90deg) scale(.66); }
.hero-svg[data-pose="crunch"] .h-upper, .hero-svg[data-pose="bicycle"] .h-upper { transform-origin: 100px 200px; animation: p-crunch 1.8s ease-in-out infinite; }
.hero-svg[data-pose="crunch"] .h-arm-l { transform: rotate(160deg); }
.hero-svg[data-pose="crunch"] .h-arm-r { transform: rotate(-160deg); }
.hero-svg[data-pose="crunch"] .h-leg { transform-origin: 100px 200px; transform: scaleY(.78); }
@keyframes p-crunch { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(30deg); } }
/* Velosiped: + oyoqlar navbat bilan */
.hero-svg[data-pose="bicycle"] .h-upper { animation-duration: 1.2s; }
.hero-svg[data-pose="bicycle"] .h-arm-l { transform: rotate(160deg); }
.hero-svg[data-pose="bicycle"] .h-arm-r { transform: rotate(-160deg); }
.hero-svg[data-pose="bicycle"] .h-leg-l { animation: m-leg .6s ease-in-out infinite; }
.hero-svg[data-pose="bicycle"] .h-leg-r { animation: m-leg .6s ease-in-out infinite -.3s; }

/* Ko'prik: yelka polda, tos yuqoriga ko'tariladi */
.hero-svg[data-pose="bridge"] .h-body { animation: p-bridge 2s ease-in-out infinite; }
.hero-svg[data-pose="bridge"] .h-leg { transform: scaleY(.7); }
@keyframes p-bridge { 0%, 100% { transform: translate(72px, -16px) rotate(-90deg) scale(.66); } 50% { transform: translate(72px, -16px) rotate(-80deg) scale(.66); } }

/* Supermen: qorinda, qo'l-oyoq birga ko'tariladi */
.hero-svg[data-pose="superman"] .h-body { transform: translate(72px, -16px) rotate(-90deg) scale(.66); }
.hero-svg[data-pose="superman"] .h-arm-l { animation: p-supArmL 2s ease-in-out infinite; }
.hero-svg[data-pose="superman"] .h-arm-r { animation: p-supArmR 2s ease-in-out infinite; }
.hero-svg[data-pose="superman"] .h-leg { transform-origin: 100px 200px; animation: p-supLeg 2s ease-in-out infinite; }
@keyframes p-supArmL { 0%, 100% { transform: rotate(178deg); } 50% { transform: rotate(160deg); } }
@keyframes p-supArmR { 0%, 100% { transform: rotate(-178deg); } 50% { transform: rotate(-196deg); } }
@keyframes p-supLeg { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }

/* To'rt oyoqlab: oyoqni orqaga siltash va mushuk-sigir */
.hero-svg[data-pose="kickback"] .h-body, .hero-svg[data-pose="catcow"] .h-body { transform: translate(72px, -16px) rotate(-70deg) scale(.66); }
.hero-svg[data-pose="kickback"] .h-arm-l, .hero-svg[data-pose="kickback"] .h-arm-r,
.hero-svg[data-pose="catcow"] .h-arm-l, .hero-svg[data-pose="catcow"] .h-arm-r { transform: rotate(70deg) scaleY(.8); }
.hero-svg[data-pose="kickback"] .h-leg-l { transform: scaleY(.6); }
.hero-svg[data-pose="kickback"] .h-leg-r { animation: p-kick 1.4s ease-in-out infinite; }
@keyframes p-kick { 0%, 100% { transform: scaleY(.6); } 50% { transform: rotate(-38deg) scaleY(1); } }
.hero-svg[data-pose="catcow"] .h-leg { transform: scaleY(.6); }
.hero-svg[data-pose="catcow"] .h-upper { transform-origin: 100px 200px; animation: p-catcow 3.2s ease-in-out infinite; }
@keyframes p-catcow { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }

/* Shtanga yotib: chalqancha, qo'llar shiftga itaradi */
.hero-svg[data-pose="bench"] .h-body { transform: translate(72px, -16px) rotate(-90deg) scale(.66); }
.hero-svg[data-pose="bench"] .h-leg { transform: scaleY(.75); }
.hero-svg[data-pose="bench"] .h-arm-l, .hero-svg[data-pose="bench"] .h-arm-r { animation: p-bench 1.6s ease-in-out infinite; }
@keyframes p-bench { 0%, 100% { transform: rotate(-90deg) scaleY(1); } 50% { transform: rotate(-90deg) scaleY(.5); } }

/* Hamla: bir oyoq bukiladi, tana pastga tushadi */
.hero-svg[data-pose="lunge"] .h-upper { animation: s-up 2s ease-in-out infinite; }
.hero-svg[data-pose="lunge"] .h-leg-l { transform-origin: 82px 288px !important; animation: p-lungeL 2s ease-in-out infinite; }
.hero-svg[data-pose="lunge"] .h-leg-r { animation: p-lungeR 2s ease-in-out infinite; }
.hero-svg[data-pose="lunge"] .h-arm-l, .hero-svg[data-pose="lunge"] .h-arm-r { transform: rotate(var(--rest)); }
@keyframes p-lungeL { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.1, .74); } }
@keyframes p-lungeR { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-14deg) translateY(10px); } }

/* Devorda o'tirish: pastki holatda qotib turadi (biroz titraydi) */
.hero-svg[data-pose="wallsit"] .h-upper { transform: translateY(24px); animation: p-shake .25s linear infinite; }
.hero-svg[data-pose="wallsit"] .h-leg { transform-origin: 100px 288px !important; transform: scale(1.16, .72); }
.hero-svg[data-pose="wallsit"] .h-arm-l { transform: rotate(-30deg); }
.hero-svg[data-pose="wallsit"] .h-arm-r { transform: rotate(30deg); }
@keyframes p-shake { 0%, 100% { transform: translateY(24px); } 50% { transform: translate(.6px, 24.4px); } }

/* Stulda triceps: tana pastga-tepaga, oyoqlar bukilgan */
.hero-svg[data-pose="dips"] .h-upper { animation: p-dips 1.6s ease-in-out infinite; }
.hero-svg[data-pose="dips"] .h-leg { transform-origin: 100px 288px !important; transform: scale(1.1, .78); }
.hero-svg[data-pose="dips"] .h-arm-l { transform: rotate(-14deg); }
.hero-svg[data-pose="dips"] .h-arm-r { transform: rotate(14deg); }
@keyframes p-dips { 0%, 100% { transform: translateY(8px); } 50% { transform: translateY(26px); } }

/* Tovonda ko'tarilish: butun tana yuqoriga-pastga */
.hero-svg[data-pose="calf"] .h-body { animation: p-calf 1.4s ease-in-out infinite; }
@keyframes p-calf { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* Bir oyoqda turish: tizza ko'tarilgan, qo'llar yonga — muvozanat */
.hero-svg[data-pose="balance"] .h-leg-r { transform: translateY(-30px) scaleY(.72); }
.hero-svg[data-pose="balance"] .h-arm-l { transform: rotate(84deg); }
.hero-svg[data-pose="balance"] .h-arm-r { transform: rotate(-84deg); }
.hero-svg[data-pose="balance"] .h-body { transform-origin: 82px 288px; animation: p-wobble 2.6s ease-in-out infinite; }
@keyframes p-wobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* Qo'l bukish (biseps): gantel yelkaga ko'tariladi, navbat bilan */
.hero-svg[data-pose="curl"] .h-arm-l { animation: p-curl 1.4s ease-in-out infinite; }
.hero-svg[data-pose="curl"] .h-arm-r { animation: p-curl2 1.4s ease-in-out infinite -.7s; }
@keyframes p-curl { 0%, 100% { transform: rotate(var(--rest)) scaleY(1); } 50% { transform: rotate(-24deg) scaleY(.5); } }
@keyframes p-curl2 { 0%, 100% { transform: rotate(var(--rest)) scaleY(1); } 50% { transform: rotate(24deg) scaleY(.5); } }

/* Yelka press: qo'llar yelkadan boshdan yuqoriga */
.hero-svg[data-pose="press"] .h-arm-l { animation: p-pressL 1.6s ease-in-out infinite; }
.hero-svg[data-pose="press"] .h-arm-r { animation: p-pressR 1.6s ease-in-out infinite; }
@keyframes p-pressL { 0%, 100% { transform: rotate(115deg) scaleY(.7); } 50% { transform: rotate(172deg) scaleY(1); } }
@keyframes p-pressR { 0%, 100% { transform: rotate(-115deg) scaleY(.7); } 50% { transform: rotate(-172deg) scaleY(1); } }

/* Yuqori blok: qo'llar tepadan ko'krakka tortiladi */
.hero-svg[data-pose="pulldown"] .h-arm-l { animation: p-pressL 2s ease-in-out infinite reverse; }
.hero-svg[data-pose="pulldown"] .h-arm-r { animation: p-pressR 2s ease-in-out infinite reverse; }

/* Eshkak: qo'llar oldindan o'ziga tortiladi, tana biroz orqaga */
.hero-svg[data-pose="row"] .h-arm-l { animation: p-rowL 1.8s ease-in-out infinite; }
.hero-svg[data-pose="row"] .h-arm-r { animation: p-rowR 1.8s ease-in-out infinite; }
.hero-svg[data-pose="row"] .h-upper { transform-origin: 100px 200px; animation: p-rowB 1.8s ease-in-out infinite; }
.hero-svg[data-pose="row"] .h-leg { transform-origin: 100px 288px !important; animation: p-rowLeg 1.8s ease-in-out infinite; }
@keyframes p-rowL { 0%, 100% { transform: rotate(-60deg) scaleY(1); } 50% { transform: rotate(-20deg) scaleY(.55); } }
@keyframes p-rowR { 0%, 100% { transform: rotate(60deg) scaleY(1); } 50% { transform: rotate(20deg) scaleY(.55); } }
@keyframes p-rowB { 0%, 100% { transform: translateY(14px); } 50% { transform: translateY(6px); } }
@keyframes p-rowLeg { 0%, 100% { transform: scale(1.12, .78); } 50% { transform: scale(1, 1); } }

/* Oldinga egilish: tana pastga, qo'llar oyoq uchiga */
.hero-svg[data-pose="fold"] .h-upper { transform-origin: 100px 200px; animation: p-fold 4s ease-in-out infinite; }
.hero-svg[data-pose="fold"] .h-arm-l, .hero-svg[data-pose="fold"] .h-arm-r { transform: rotate(0); }
@keyframes p-fold { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(34px) scaleY(.72); } }

/* Berpi: o'tirish → yotish (planka) → sakrash */
.hero-svg[data-pose="burpee"] .h-body { transform-origin: 100px 288px; animation: p-burpee 2.4s ease-in-out infinite; }
.hero-svg[data-pose="burpee"] .h-arm-l { animation: p-burArmL 2.4s ease-in-out infinite; }
.hero-svg[data-pose="burpee"] .h-arm-r { animation: p-burArmR 2.4s ease-in-out infinite; }
@keyframes p-burpee {
  0%, 100% { transform: translateY(0); } 15% { transform: translateY(0) scale(1, .86); }
  35%, 55% { transform: translate(72px, -16px) rotate(-78deg) scale(.66); }
  75% { transform: translateY(0) scale(1, .86); } 87% { transform: translateY(-22px); }
}
@keyframes p-burArmL { 0%, 15%, 75%, 100% { transform: rotate(var(--rest)); } 35%, 55% { transform: rotate(78deg); } 87% { transform: rotate(165deg); } }
@keyframes p-burArmR { 0%, 15%, 75%, 100% { transform: rotate(var(--rest)); } 35%, 55% { transform: rotate(78deg); } 87% { transform: rotate(-165deg); } }

/* ===== Taom muharriri (v3.12): tarkibi (masalliqlar), aniq qiymatlar, kundalikda tahrirlash ===== */
.comp { padding: 0; overflow: hidden; }
.comp-head { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; }
.comp-head:focus-visible { outline: 3px solid color-mix(in oklab, var(--brand) 45%, transparent); outline-offset: -3px; border-radius: var(--r-md); }
.comp-head > svg:last-child { transition: transform .25s var(--ease); color: var(--muted); flex: none; }
.comp.open .comp-head > svg:last-child { transform: rotate(180deg); }
.comp-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; color: var(--brand-ink); background: var(--brand-soft); border-radius: 99px; padding: 3px 8px; flex: none; }
.comp-body { padding: 0 16px 14px; display: grid; gap: 10px; }
.comp-rows { display: grid; gap: 6px; }
.comp-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 14px 46px 32px; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.comp-row .cr-n { font-weight: 600; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.comp-row .cr-g { min-height: 38px; padding: 6px 10px; text-align: right; border-radius: 10px; font-weight: 700; }
.comp-row .cr-u { color: var(--muted); font-size: 12px; }
.comp-row .cr-k { text-align: right; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.comp-th { border-bottom: 0; padding: 0; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: lowercase; }
.comp-th span:nth-child(2), .comp-th span:nth-child(4) { text-align: right; }
.comp-row .cr-x { width: 32px; height: 32px; min-height: 32px; color: var(--muted); background: transparent; }
.comp-q .input { min-height: 42px; }
.comp-res { gap: 6px; }
.comp-res .chip { font-size: 12.5px; }
.comp-body .link, .link.danger { background: none; border: 0; padding: 6px 0; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; justify-self: start; }
.link.danger { color: var(--bad); }
.man-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.man-f { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.man-f .input { min-height: 42px; font-weight: 700; color: var(--ink); }
.fe-save { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; padding: 4px 2px; cursor: pointer; }
.fe-save input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--brand); }
#fe-por.dim { opacity: .4; pointer-events: none; filter: grayscale(.4); }
.meal-item .mi-main { all: unset; box-sizing: border-box; flex: 1; min-width: 0; display: grid; gap: 1px; cursor: pointer; border-radius: 10px; padding: 2px 4px; margin: -2px -4px; }
.meal-item .mi-main:hover { background: var(--surface-2); }
.meal-item .mi-main:focus-visible { outline: 3px solid color-mix(in oklab, var(--brand) 45%, transparent); }
.meal-item .mi-tag { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); vertical-align: -3px; }
@media (max-width: 400px) { .comp-row { grid-template-columns: minmax(0, 1fr) 68px 12px 40px 30px; gap: 4px; } }

/* ===== Rejim ranglari (v3.12): kuchli ozish rejimida ilova rangi o'zgaradi =====
   Ramazon — tungi binafsha + oltin; Jadal — olov; Ultra tez — qizil (sur'at ustun turadi) */
:root[data-mode="ramadan"] { --brand: #5B3FC4; --brand2: #C08A2B; --accent: #E9C46A; }
:root[data-mode="fast"] { --brand: #E05A1B; --brand2: #F59F00; --accent: #FFB703; }
:root[data-mode="ultra"] { --brand: #D61F3A; --brand2: #FF6A3D; --accent: #FFC233; }
.mode-pill { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--brand); vertical-align: 1px; box-shadow: 0 4px 14px -6px var(--brand); }
.mode-pill.m-ultra { animation: modePulse 1.6s ease-in-out infinite; }
@keyframes modePulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand) 55%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .mode-pill.m-ultra { animation: none; } }
.sep-dot::before { content: ' · '; }

/* Qadam kartasidagi "×" — qadam maqsadini olib tashlash */
.steps-x { width: 30px; min-height: 30px; margin-left: 6px; background: var(--surface-3); color: var(--muted); }
.steps-x:hover { color: var(--ink); }

/* Oqsil — kaloriya ostida kichik kulrang qator (taomlar, kundalik, retseptlar) */
.p-tag { display: block; font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.2; white-space: nowrap; letter-spacing: 0; }
.fd-k .p-tag, .rc-k .p-tag { margin-top: 1px; }
.mi-k .p-tag { text-align: right; }
.mc-p { display: inline; margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.mc-p::before { content: '· '; }

/* "Prognoz" kartasi: joriy sur'at va "Rejani o'zgartirish" */
.plan-edit-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Reja oynasi: o'z tanlagan harakat */
.mv-box { margin-top: 4px; padding: 4px 12px 12px; border-radius: 14px; background: var(--surface-2); }

/* ---------- 3.14.0: tor ekran (390px) uchun mayda tuzatishlar ---------- */
/* Matnli (ikonsiz) tanlov kartasi: yozuv o'ng yuqoridagi belgi doirasi ustiga chiqmasin */
.opts.two .opt.noic { padding-right: 46px; justify-content: center; min-height: 54px; }
/* Karta sarlavhasi ustidagi kichik izoh ("Keyingi taom" → "Gazak") */
.card-head .over { font-size: 12px; font-weight: 650; color: var(--muted); letter-spacing: .01em; line-height: 1.2; margin-bottom: 1px; }
.card-head .grow { min-width: 0; }
/* "Tez start": natija va reja — chiziq ustida */
.qs-nums { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.qs-nums b { font-family: var(--f-display); font-size: 20px; letter-spacing: -.01em; }
/* Ikon + matn bir qatorda (maslahat satri) */
.tip-line { display: flex; align-items: flex-start; gap: 8px; }
.tip-line > svg { flex: none; margin-top: 2px; color: var(--brand); }
/* Ikki tugma: sig'sa yonma-yon, sig'masa ustma-ust (matn kesilmaydi) */
.btn-pair { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
/* Tugmalar qatori: sig‘sa — yonma-yon, sig‘masa — ustma-ust (yozuv hech qachon tugmadan chiqib ketmaydi) */
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 auto; }
/* Prognoz kartasi pastki qatori: tor ekranda matn to'liq qatorda, tugma pastda */
.plan-edit-row > .grow { flex: 1 1 210px; }
/* Sarlavha yonida ikki tugma bo'lsa: izoh tugmalar tagidan to'liq qatorda (so'z o'rtasidan sinmaydi) */
.page-head.ph-wrap { flex-wrap: wrap; row-gap: 2px; }
.page-head.ph-wrap > .grow { display: contents; }
/* So'z o'rtasidan sinmaydi ("Результат/ы"): sig'masa tugmalar keyingi qatorga o'tadi (katta yozuv rejimi, 320px) */
.page-head.ph-wrap h1 { flex: 1 1 0; min-width: auto; font-size: clamp(18px, 6vw, 24px); overflow-wrap: normal; }
.ph-btns { display: flex; gap: 8px; margin-left: auto; }
@container phead (max-width: 300px) { .page-head.ph-wrap h1 { font-size: 19px; } }
/* Juda tor (320px + katta yozuv): sarlavha, sana, keyin tugmalar qatori — asosiy tugma birinchi */
@container phead (max-width: 279px) { .ph-btns { order: 6; flex-basis: 100%; margin: 8px 0 0; flex-direction: row-reverse; justify-content: flex-end; } }
/* Ulashish tugmasi: telefonda faqat ikonka (uzun sarlavha — "Результаты" — kesilmasin), keng joyda yozuvi bilan */
.page-head.ph-wrap { container: phead / inline-size; }
.ph-ic { padding: 0; width: 36px; }
.ph-ic .lbl { display: none; }
@container phead (min-width: 470px) {
  .ph-ic { width: auto; padding: 0 14px; }
  .ph-ic .lbl { display: inline; }
}
.page-head.ph-wrap .sub { order: 5; flex-basis: 100%; }

/* ===== Juda tor ekran (320px, ayniqsa "Katta yozuv" va ruscha uzun so'zlar): hech narsa ekrandan chiqmasin ===== */
/* Karta sarlavhasi: tugma/belgi sig'masa — keyingi qatorga (o'ngda) o'tadi, sarlavha so'z o'rtasidan sinmaydi */
.card-head { flex-wrap: wrap; row-gap: 8px; }
.card-head h3 { min-width: 0; }
/* Kaloriya halqasi: joy tor bo'lsa — halqa tepada, ko'rsatkichlar pastda ikki ustun bo'lib */
.ring-wrap { container: ringw / inline-size; }
@container ringw (max-width: 232px) {
  .ring-wrap > .ring { grid-column: 1 / -1; justify-self: center; }
  .ring-wrap > .cal-side { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .ring-wrap > .cal-side > .row-flex { grid-column: 1 / -1; justify-content: center; }
}
/* Sozlamalar ro'yxati: qator karta enidan oshmaydi (eng uzun qator butun ustunni kengaytirib yubormasin) */
.set-group { grid-template-columns: minmax(0, 1fr); container: sgroup / inline-size; }
.set-row .sr-t, .set-row .sr-s { overflow-wrap: break-word; }
@container sgroup (max-width: 236px) {
  .set-row { gap: 10px; }
  .set-row .sr-ic { width: 32px; height: 32px; border-radius: 10px; }
  .set-row .sr-t { font-size: 14px; }
}
/* Reja kartasi: "Сбалансированный" kabi uzun so'z tor kartada ham bir qatorda */
.result-grid { container: rgrid / inline-size; }
@container rgrid (max-width: 236px) { .result-grid > .kpi .k-v { font-family: var(--f-body); font-size: 17px; letter-spacing: 0; } }
/* Pastki menyu: tor ekranda yozuvlar bir-birining ustiga chiqmaydi ("Тренировка" + "Результат") */
.tabbar { container: tabbar / inline-size; }
.tab { min-width: 0; }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container tabbar (max-width: 340px) { .tab { font-size: 10px; letter-spacing: -.035em; } }
/* Eslab qolingan kirish: hisob ochilguncha (odatda 1 soniyadan kam) */
.resume-wait { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; background: var(--bg); }
.resume-wait .logo { font-size: clamp(44px, 12vw, 64px); }
.rw-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); animation: rwSpin .8s linear infinite; }
@keyframes rwSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rw-spin { animation-duration: 2.4s; } }
