/* Sihat Band oilasi: Poppins, ko'k gradient, oq kartalar. O'ziga xos belgi: joylar halqasi. */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(fonts/Poppins-Regular.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(fonts/Poppins-Medium.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(fonts/Poppins-SemiBold.ttf) format("truetype"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(fonts/Poppins-Bold.ttf) format("truetype"); }

:root {
  --bg: #F6F7F9; --surface: #FFFFFF; --soft: #EEF3FF; --line: #E7ECF6; --line-2: #D5DCEA;
  --fg: #111827; --muted: #667085; --dim: #98A1B3;
  --blue: #2F6BFF; --blue-2: #1E4FD8; --blue-3: #4F86FF; --on-blue: #FFFFFF;
  --green: #0E9F6E; --green-soft: #E6F8F1; --amber: #B7701A; --amber-soft: #FFF4E0;
  --pink: #E0335C; --pink-soft: #FFEEF2;
  --shadow: 0 10px 24px rgba(47, 107, 255, .09), 0 1px 4px rgba(11, 21, 48, .04);
  --c-walk: #2F6BFF; --s-walk: #EAF0FF; --c-run: #E0335C; --s-run: #FFEEF2; --c-sport: #D97706; --s-sport: #FFF4E0;
  --c-yoga: #7C5CFA; --s-yoga: #F2EEFF; --c-bike: #0E9F6E; --s-bike: #E6F8F1; --c-doctor: #0891B2; --s-doctor: #E3F6FB; --c-mind: #4F46E5; --s-mind: #ECEBFF;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0D1324; --surface: #161E33; --soft: #1E2A4A; --line: #27324E; --line-2: #3A4766;
  --fg: #EEF2FB; --muted: #A1ACC4; --dim: #76819C;
  --blue: #6C97FF; --blue-2: #2F6BFF; --blue-3: #4F86FF; --on-blue: #08122B;
  --green: #4CD6A0; --green-soft: #143429; --amber: #F0C062; --amber-soft: #3A2F16;
  --pink: #F58BA3; --pink-soft: #3C1E29;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03);
  --c-walk: #7EA5FF; --s-walk: #1E2A4A; --c-run: #F58BA3; --s-run: #3C1E29; --c-sport: #F0B45C; --s-sport: #3A2C14;
  --c-yoga: #B09CFF; --s-yoga: #2A2350; --c-bike: #4CD6A0; --s-bike: #143429; --c-doctor: #5CCDE6; --s-doctor: #123540; --c-mind: #A5A0FF; --s-mind: #25234F;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0D1324; --surface: #161E33; --soft: #1E2A4A; --line: #27324E; --line-2: #3A4766;
  --fg: #EEF2FB; --muted: #A1ACC4; --dim: #76819C;
  --blue: #6C97FF; --blue-2: #2F6BFF; --blue-3: #4F86FF; --on-blue: #08122B;
  --green: #4CD6A0; --green-soft: #143429; --amber: #F0C062; --amber-soft: #3A2F16;
  --pink: #F58BA3; --pink-soft: #3C1E29;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03);
  --c-walk: #7EA5FF; --s-walk: #1E2A4A; --c-run: #F58BA3; --s-run: #3C1E29; --c-sport: #F0B45C; --s-sport: #3A2C14;
  --c-yoga: #B09CFF; --s-yoga: #2A2350; --c-bike: #4CD6A0; --s-bike: #143429; --c-doctor: #5CCDE6; --s-doctor: #123540; --c-mind: #A5A0FF; --s-mind: #25234F;
  color-scheme: dark;
} }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--fg); font: 400 14.5px/1.5 Poppins, system-ui, sans-serif; overflow-x: clip; overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; }
svg { display: block; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cat-walk { --c: var(--c-walk); --s: var(--s-walk); } .cat-run { --c: var(--c-run); --s: var(--s-run); } .cat-sport { --c: var(--c-sport); --s: var(--s-sport); }
.cat-yoga { --c: var(--c-yoga); --s: var(--s-yoga); } .cat-bike { --c: var(--c-bike); --s: var(--s-bike); } .cat-doctor { --c: var(--c-doctor); --s: var(--s-doctor); } .cat-mind { --c: var(--c-mind); --s: var(--s-mind); }

.root { max-width: 520px; margin: 0 auto; padding: calc(14px + var(--tg-content-safe-area-inset-top, 0px)) 16px calc(112px + env(safe-area-inset-bottom, 0px)); }
.root.bare { padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)); }
.enter { animation: enter .26s cubic-bezier(.2, .8, .2, 1); }
.enter-back { animation: enterBack .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes enter { from { opacity: 0; transform: translateX(14px); } }
@keyframes enterBack { from { opacity: 0; transform: translateX(-10px); } }
.rise { animation: rise .34s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 38ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.press { transition: transform .12s ease; }
.press:active { transform: scale(.975); }

/* Sarlavha */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.logo { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.logo em { font-style: normal; color: var(--blue); }
.hello { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.pts-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.pts-pill .ico { color: var(--amber); font-size: 18px; }
.page-title { font-size: 25px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; margin: 2px 0 3px; text-wrap: balance; }
.page-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }

/* Haftalik maqsad */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 14px; align-items: center; padding: 15px 16px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #4F86FF 0%, #2F6BFF 46%, #1E4FD8 100%); box-shadow: 0 10px 22px rgba(47, 107, 255, .26); }
.hero::after { content: ""; position: absolute; right: -42px; top: -56px; width: 170px; height: 170px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .07); pointer-events: none; }
.hero h1 { margin: 0; font-size: 17.5px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
.hero p { margin: 3px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .84); }
.hero-ring { width: 68px; height: 68px; }
.hero-ring .tr { stroke: rgba(255, 255, 255, .24); }
.hero-ring .on { stroke: #fff; }
.hero-ring text { fill: #fff; font: 700 24px Poppins, sans-serif; text-anchor: middle; }
.hero-ring .sm { font-size: 11.5px; font-weight: 500; fill: rgba(255, 255, 255, .82); }
.hero-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; position: relative; z-index: 1; }
.hero-stats div { background: rgba(255, 255, 255, .13); border-radius: 13px; padding: 7px 9px; }
.hero-stats b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stats span { font-size: 10.5px; color: rgba(255, 255, 255, .8); }

/* Kunlar va mavzular */
.strip { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px; scroll-padding: 16px; }
.strip::-webkit-scrollbar { display: none; }
.days { margin-top: 8px; }
.day { flex: none; width: 46px; min-height: 54px; display: grid; justify-items: center; align-content: center; gap: 1px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: background .15s, color .15s, transform .12s; }
.day small { font-size: 9.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.day b { font-size: 15px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.day i { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.day.has i { background: var(--blue); }
.day[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.day[aria-pressed="true"] small { color: inherit; opacity: .85; }
.day[aria-pressed="true"].has i { background: var(--on-blue); }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 33px; padding: 0 12px 0 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; white-space: nowrap; }
.chip .ico { font-size: 16px; color: var(--c, var(--muted)); }
.chip.plain { padding: 0 14px; }
.chip[aria-pressed="true"] { background: var(--c, var(--blue)); border-color: var(--c, var(--blue)); color: #fff; }
:root[data-theme="dark"] .chip[aria-pressed="true"] { color: #0B1224; }
.chip[aria-pressed="true"] .ico { color: inherit; }

/* Uchrashuv kartasi */
.list { display: grid; gap: 10px; margin-top: 8px; }
.group { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 8px 2px -4px; }
.group:first-child { margin-top: 0; }
.ev { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 62px; gap: 10px; align-items: center; padding: 14px 13px 14px 15px; background: var(--surface); border-radius: 21px; box-shadow: var(--shadow); }
.ev-when { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--c); }
.ev-when .ico { font-size: 14px; }
.ev-title { display: block; margin: 3px 0 3px; font-size: 15.5px; line-height: 1.32; font-weight: 600; letter-spacing: -.008em; overflow-wrap: anywhere; }
.ev-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 5px; font-size: 12.5px; color: var(--muted); }
.ev-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2.5px 8px; font-size: 11px; font-weight: 600; border-radius: 999px; background: var(--soft); white-space: nowrap; }
.tag .ico { font-size: 12px; }
.tag.pts { background: var(--green-soft); color: var(--green); }
.tag.yes { background: var(--green-soft); color: var(--green); }
.tag.wait { background: var(--amber-soft); color: var(--amber); }
.tag.no { background: var(--pink-soft); color: var(--pink); }
.tag.host { background: var(--soft); color: var(--blue); }
.doc-tick { display: inline-flex; align-items: center; gap: 3px; color: var(--c-doctor); font-weight: 600; }
.doc-tick .ico { font-size: 13px; }
.ring { width: 62px; height: 62px; }
.ring .free { stroke: var(--line-2); }
.ring .taken { stroke: var(--c, var(--blue)); }
.ring text { fill: var(--fg); font: 600 16px Poppins, sans-serif; text-anchor: middle; font-variant-numeric: tabular-nums; }
.ring .lbl { font-size: 8.5px; font-weight: 500; fill: var(--muted); }

.invite { display: grid; gap: 12px; width: 100%; margin-top: 10px; padding: 15px; color: #fff; border-radius: 20px; background: linear-gradient(135deg, #4F86FF, #2F6BFF 50%, #1E4FD8); box-shadow: 0 10px 22px rgba(47, 107, 255, .26); }
.invite-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.invite-top b { display: block; font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.invite-top span span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: rgba(255, 255, 255, .85); }
.invite-top strong { width: 54px; height: 54px; display: grid; place-items: center; font-size: 17px; font-weight: 700; border-radius: 50%; background: rgba(255, 255, 255, .17); font-variant-numeric: tabular-nums; }
.invite-cta { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; font-size: 13.5px; font-weight: 600; color: #1E4FD8; background: #fff; border-radius: 13px; }
.invite-cta .ico { font-size: 17px; }
/* Sihat Band reklamasi: ingichka banner, birinchi ekranda doim ko'rinadi */
.promo { position: relative; display: block; width: 100%; min-height: 116px; margin-top: 10px; overflow: hidden; color: #fff; background: #0B1530; border-radius: 20px; box-shadow: 0 10px 22px rgba(11, 21, 48, .2); }
.promo img { position: absolute; top: 0; right: 0; width: 44%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0B1530 56%, rgba(11, 21, 48, .55) 72%, rgba(11, 21, 48, 0) 100%); }
.promo-body { position: relative; z-index: 1; display: grid; gap: 3px; width: 70%; padding: 14px 15px; }
.promo-body small { font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #8FB2FF; }
.promo-body b { font-size: 17px; font-weight: 700; line-height: 1.22; letter-spacing: -.01em; }
.promo-sub { font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .8); }
.promo-go { position: absolute; z-index: 1; right: 12px; bottom: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #0B1530; font-size: 16px; }
.notice { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; margin-top: 10px; padding: 9px 12px; font-size: 12.5px; font-weight: 500; color: var(--amber); background: var(--amber-soft); border-radius: 13px; overflow-wrap: anywhere; }
.notice .ico { font-size: 17px; margin-top: 1px; }
/* Zich ro'yxat: bir ekranga ko'p reja sig'adi */
.rows { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.evr { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; padding: 9px 11px; background: none; border-radius: 0; box-shadow: none; }
.evr + .evr { border-top: 1px solid var(--line); }
.evr:active { transform: none; background: var(--soft); }
.evr-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--s); color: var(--c); font-size: 20px; }
.evr-main { display: block; min-width: 0; }
.evr-title { display: flex; align-items: center; gap: 4px; font-size: 14px; line-height: 1.3; font-weight: 600; }
.evr-title > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.evr-title .doc { font-size: 14px; color: var(--c-doctor); }
.evr-meta { display: flex; align-items: baseline; gap: 5px; margin-top: 1px; font-size: 12px; color: var(--muted); }
.evr-meta b { flex: none; font-weight: 600; color: var(--c); font-variant-numeric: tabular-nums; }
.evr-meta span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.evr-tag { display: block; margin-top: 3px; }
.evr-side { display: flex; align-items: center; gap: 6px; }
.evr-side em { font-size: 11.5px; font-style: normal; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.ring.sm { width: 38px; height: 38px; }
.ring.sm text { font-size: 23px; font-weight: 600; }
.ring.sm path, .ring.sm circle { stroke-width: 5.5; }
.empty { display: grid; justify-items: center; gap: 4px; padding: 34px 22px; text-align: center; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); margin-top: 10px; }
.empty .art { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--blue); font-size: 32px; margin-bottom: 8px; }
.empty b { font-size: 16px; font-weight: 600; }
.empty p { margin: 0 0 12px; font-size: 13px; color: var(--muted); max-width: 30ch; }
.empty .btn { width: auto; padding: 0 22px; }

/* Tugmalar */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 16px; border-radius: 16px; background: linear-gradient(135deg, var(--blue-3), var(--blue-2)); color: #fff; font-weight: 600; text-align: center; transition: transform .12s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn .ico { font-size: 19px; }
.btn.ghost { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn.green { background: var(--green); color: #fff; }
:root[data-theme="dark"] .btn.green { color: #08221A; }
.btn.danger { background: var(--pink-soft); color: var(--pink); }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
.link { display: block; width: 100%; padding: 10px; text-align: center; font-size: 13px; font-weight: 500; color: var(--muted); }
.link.danger { color: var(--pink); }
.actions { position: fixed; inset: auto 0 0; z-index: 6; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--bg) 72%, transparent); }
.actions > div { max-width: 488px; margin: 0 auto; display: grid; gap: 8px; }
.actions .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.icon-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); font-size: 19px; }

/* Batafsil */
.d-head { position: relative; margin: 0 -16px 0; margin-top: calc(-14px - var(--tg-content-safe-area-inset-top, 0px)); padding: calc(16px + var(--tg-content-safe-area-inset-top, 0px)) 18px 22px; background: var(--s); color: var(--fg); border-radius: 0 0 28px 28px; }
.d-nav { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; min-height: 40px; }
.d-grid { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: center; }
.d-head h1 { margin: 6px 0 0; font-size: 23px; font-weight: 700; line-height: 1.22; letter-spacing: -.022em; text-wrap: balance; overflow-wrap: anywhere; }
.d-head .ring { width: 96px; height: 96px; }
.facts { display: grid; gap: 1px; margin-top: 14px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.fact { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 11px 14px; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact > .ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--blue); font-size: 19px; }
.fact small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.fact b { display: block; font-weight: 600; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.about { margin-top: 12px; padding: 13px 15px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); font-size: 14px; overflow-wrap: anywhere; }
.lock { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 12px; padding: 12px 14px; background: var(--soft); border-radius: 16px; font-size: 13px; font-weight: 500; }
.lock .ico { font-size: 20px; color: var(--blue); }
.lock.ok { background: var(--green-soft); color: var(--green); font-weight: 600; }
.lock.ok .ico { color: var(--green); }
.lock.warn { background: var(--amber-soft); color: var(--amber); }
.lock.warn .ico { color: var(--amber); }
.lock.bad { background: var(--pink-soft); color: var(--pink); }
.lock.bad .ico { color: var(--pink); }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; }
.flow div { position: relative; display: grid; justify-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: var(--dim); text-align: center; }
.flow i { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); font-style: normal; font-size: 14px; }
.flow div:not(:first-child)::before { content: ""; position: absolute; top: 12px; right: 50%; width: 100%; height: 2px; background: var(--line-2); }
.flow .on { color: var(--fg); font-weight: 600; }
.flow .on i { background: var(--blue); box-shadow: none; color: var(--on-blue); }
.flow .on::before { background: var(--blue) !important; }
.safety { margin: 14px 2px 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.stars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.stars button { min-height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 22px; color: var(--amber); }
.stars .ico.fill { fill: currentColor; }

/* Boshqarish */
.code-card { margin-top: 14px; padding: 16px; display: grid; gap: 4px; justify-items: center; text-align: center; color: #fff; border-radius: 22px; background: linear-gradient(135deg, #4F86FF, #1E4FD8); }
.code-card small { font-size: 12px; color: rgba(255, 255, 255, .85); }
.code-card b { font-size: 38px; font-weight: 700; letter-spacing: .22em; margin-right: -.22em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.h3 { margin: 20px 2px 8px; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.h3 span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.req { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; align-items: center; padding: 12px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--blue-3), var(--blue-2)); color: #fff; font-weight: 600; font-size: 16px; }
.req b { display: block; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.req small { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.req-acts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr; gap: 7px; }
.mini { min-height: 42px; padding: 0 12px; text-align: center; font-size: 13px; font-weight: 600; border-radius: 12px; background: var(--soft); }
.mini.yes { background: var(--blue); color: var(--on-blue); }
.mini.quiet { background: transparent; color: var(--muted); min-height: 34px; padding: 0 2px; font-weight: 500; font-size: 12px; text-align: left; }

/* Ochish ustasi */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 2px 0 18px; }
.steps i { height: 5px; border-radius: 99px; background: var(--line); transition: background .25s; }
.steps i.on { background: var(--blue); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span, .label { font-size: 13px; font-weight: 600; }
.input { width: 100%; min-height: 52px; padding: 11px 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 15px; font-weight: 500; font-size: 16px; transition: border-color .15s; }
.input:focus { outline: 0; border-color: var(--blue); }
textarea.input { min-height: 84px; resize: none; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.count { justify-self: end; font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 16px; }
.cat { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 13.5px; line-height: 1.25; transition: box-shadow .15s, background .15s; }
.cat .bub { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--s); color: var(--c); font-size: 21px; }
.cat small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.cat[aria-pressed="true"] { background: var(--s); box-shadow: inset 0 0 0 2px var(--c); }
.cat[aria-pressed="true"] .bub { background: var(--c); color: var(--surface); }
.sug { margin: -4px -16px 14px; padding: 2px 16px; }
.sug .chip { font-weight: 500; min-height: 33px; }
.stepper { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; background: var(--surface); border: 1.5px solid var(--line); border-radius: 15px; }
.stepper button { min-height: 50px; text-align: center; font-size: 22px; font-weight: 500; color: var(--blue); }
.stepper output { text-align: center; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 13px; font-size: 13px; background: var(--soft); border-radius: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); }
.check button { display: inline; color: var(--blue); font-weight: 600; text-decoration: underline; }
.inline-err { color: var(--pink); font-size: 13px; font-weight: 500; margin: 8px 2px 0; }

/* Reyting */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; padding: 4px; margin-bottom: 14px; background: var(--soft); border-radius: 15px; }
.seg button { min-height: 40px; text-align: center; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: background .15s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 2px 6px rgba(11, 21, 48, .08); }
.timer { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; margin-bottom: 14px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 600; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; margin-bottom: 12px; }
.pod { display: grid; justify-items: center; gap: 4px; padding: 12px 6px 11px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); text-align: center; min-width: 0; }
.pod.p1 { padding-top: 24px; background: linear-gradient(160deg, #4F86FF, #1E4FD8); color: #fff; }
.pod .n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--blue); font-weight: 700; font-size: 13px; }
.pod.p1 .n { background: rgba(255, 255, 255, .2); color: #fff; }
.pod b { width: 100%; font-weight: 600; font-size: 12.5px; line-height: 1.25; overflow-wrap: anywhere; }
.pod span { font-size: 13px; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.pod.p1 span { color: #fff; }
.row { position: relative; overflow: hidden; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 50px; padding: 8px 14px 8px 10px; background: var(--surface); border-radius: 15px; box-shadow: var(--shadow); }
.row > .bar { position: absolute; inset: 0 auto 0 0; background: var(--soft); opacity: .7; }
.row > *:not(.bar) { position: relative; }
.row .n { text-align: center; font-weight: 600; font-size: 13px; color: var(--muted); }
.row b { font-weight: 600; overflow-wrap: anywhere; line-height: 1.3; }
.row small { display: block; font-size: 11.5px; color: var(--muted); }
.row .p { font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.row.me { box-shadow: inset 0 0 0 2px var(--blue); }

/* Profil */
.me-card { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 13px; align-items: center; padding: 16px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); }
.me-card .avatar { width: 62px; height: 62px; font-size: 24px; }
.me-card h1 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.me-card p { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); }
.lvl { grid-column: 1 / -1; display: grid; gap: 5px; margin-top: 2px; }
.lvl div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.lvl div b { color: var(--blue); font-weight: 600; }
.track { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue-3), var(--blue-2)); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.stat { padding: 12px 8px; text-align: center; background: var(--surface); border-radius: 17px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 20px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bdg { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 9px; align-items: center; padding: 10px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.bdg .ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--dim); font-size: 20px; }
.bdg.done .ic { background: var(--green-soft); color: var(--green); }
.bdg b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.bdg small { display: block; font-size: 11px; line-height: 1.3; color: var(--muted); }
.settings { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.set { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 15px; font-weight: 500; }
.set + .set { border-top: 1px solid var(--line); }
.set span { color: var(--muted); font-size: 13px; }
.set.danger { color: var(--pink); }
.set .ico { color: var(--dim); font-size: 18px; }
.switch { width: 44px; height: 26px; flex: none; position: relative; border-radius: 99px; background: var(--line-2); transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch.on { background: var(--blue); }
.switch.on::after { transform: translateX(18px); }

/* Tanishtiruv */
.onb { min-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.onb-hero { margin: -14px -16px 0; margin-top: calc(-14px - var(--tg-content-safe-area-inset-top, 0px)); padding: calc(30px + var(--tg-content-safe-area-inset-top, 0px)) 22px 26px; color: #fff; border-radius: 0 0 32px 32px; background: linear-gradient(145deg, #4F86FF, #2F6BFF 50%, #1E4FD8); position: relative; overflow: hidden; }
.onb-hero .logo { color: #fff; margin-bottom: 18px; }
.onb-hero .logo em { color: #BFD2FF; }
.onb-hero h1 { margin: 0; font-size: 28px; line-height: 1.17; font-weight: 700; letter-spacing: -.028em; text-wrap: balance; max-width: 13em; }
.onb-hero p { margin: 8px 0 0; color: rgba(255, 255, 255, .86); font-size: 14px; }
.onb-rings { position: absolute; right: -30px; top: -26px; width: 170px; height: 170px; opacity: .22; }
.onb-rings circle { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 11 8; }
.benefits { display: grid; gap: 10px; margin: 20px 0; }
.benefit { font-size: 13px; color: var(--muted); }
.benefit b { display: block; color: var(--fg); font-weight: 600; font-size: 14px; }

/* Oynalar */
.scrim { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgba(6, 12, 30, .52); animation: fade .16s ease-out; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; display: grid; gap: 12px; padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-radius: 26px 26px 0 0; animation: up .24s cubic-bezier(.2, .8, .2, 1); }
.sheet::before { content: ""; justify-self: center; width: 40px; height: 4px; border-radius: 9px; background: var(--line-2); }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.sheet h2 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.012em; }
.sheet p { margin: 0; font-size: 13.5px; color: var(--muted); }
.sheet ul { margin: 0; padding-left: 18px; font-size: 13.5px; display: grid; gap: 7px; }
.story-prev { justify-self: center; width: auto; height: min(46vh, 380px); aspect-ratio: 9 / 16; border-radius: 18px; background: var(--soft); box-shadow: 0 14px 30px rgba(11, 21, 48, .22); animation: storyIn .34s cubic-bezier(.2, .8, .2, 1); }
@keyframes storyIn { from { transform: scale(.94); opacity: 0; } }
.reason { width: 100%; min-height: 50px; padding: 10px 14px; background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.pick button { min-height: 46px; padding: 6px 10px; font-size: 13px; font-weight: 500; text-align: center; background: var(--surface); border-radius: 13px; box-shadow: inset 0 0 0 1.5px var(--line); }
.pick button[aria-pressed="true"] { background: var(--soft); box-shadow: inset 0 0 0 2px var(--blue); font-weight: 600; color: var(--blue); }
.boxes { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.boxes div { height: 66px; display: grid; place-items: center; font-size: 28px; font-weight: 600; background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.boxes div.cur { box-shadow: inset 0 0 0 2px var(--blue); }
.boxes input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; }
.boxes.bad { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

/* Muvaffaqiyat */
.win { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; align-content: center; gap: 8px; padding: 24px; text-align: center; color: #fff; background: linear-gradient(150deg, #4F86FF, #1E4FD8); animation: fade .2s; overflow: hidden; }
.win-ring { position: relative; width: 170px; height: 170px; display: grid; place-items: center; margin-bottom: 10px; }
.win-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.win-ring circle { fill: none; stroke-width: 9; stroke: rgba(255, 255, 255, .22); }
.win-ring .draw { stroke: #fff; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw .85s .1s cubic-bezier(.3, .8, .3, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.win-ring b { font-size: 48px; font-weight: 700; font-variant-numeric: tabular-nums; }
.win h2 { margin: 0; font-size: 25px; font-weight: 700; letter-spacing: -.02em; }
.win p { margin: 0 0 18px; color: rgba(255, 255, 255, .86); font-size: 14px; max-width: 30ch; }
.win .btn { background: #fff; color: #1E4FD8; max-width: 300px; }
.bit { position: absolute; left: 50%; top: 42%; width: 9px; height: 9px; border-radius: 3px; background: #fff; opacity: 0; animation: burst 1.1s .25s ease-out forwards; }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(320deg); } }

/* Pastki menyu */
.nav { position: fixed; inset: auto 0 0; z-index: 8; padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--surface); box-shadow: 0 -1px 0 var(--line), 0 -10px 24px rgba(11, 21, 48, .05); }
.nav > div { max-width: 500px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
.tab { position: relative; min-height: 52px; display: grid; justify-items: center; align-content: center; gap: 1px; font-size: 10.5px; font-weight: 600; color: var(--dim); transition: color .15s; }
.tab .ico { font-size: 23px; }
.tab[aria-current="page"] { color: var(--blue); }
.tab b { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; border-radius: 99px; background: var(--pink); color: #fff; font-size: 10px; font-weight: 600; }
.fab { justify-self: center; width: 54px; height: 54px; margin-top: -20px; display: grid; place-items: center; border-radius: 19px; color: #fff; background: linear-gradient(135deg, var(--blue-3), var(--blue-2)); box-shadow: 0 10px 20px rgba(47, 107, 255, .38); font-size: 27px; transition: transform .12s; }
.fab:active { transform: scale(.93); }

.toast { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: min(90%, 420px); padding: 11px 15px; transform: translateX(-50%); text-align: center; font-size: 13px; font-weight: 500; color: var(--bg); background: var(--fg); border-radius: 14px; box-shadow: 0 10px 24px rgba(11, 21, 48, .25); animation: toast .2s; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 8px); } }

/* Klaviatura ochiq: tugma kiritish maydonini to'smaydi, sahifa oxirida qoladi */
body.typing .actions { position: static; padding: 8px 0 0; background: none; }
body.typing .nav { display: none; }

/* Yuklanish */
.sk { position: relative; overflow: hidden; background: var(--surface); border-radius: 21px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(127, 150, 200, .13), transparent); animation: sk 1.2s infinite; }
@keyframes sk { to { transform: translateX(100%); } }
.fail { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 20px; text-align: center; }
.fail b { font-size: 17px; font-weight: 600; }
.fail p { margin: 0 0 12px; color: var(--muted); }
.fail .btn { width: 180px; }
.foot { margin: 20px 0 0; text-align: center; font-size: 11.5px; color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
