/* Shrift: Manrope Variable (OFL, Kimyo ASU botidan — lokal, CDN yo'q) */
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  /* Kunduzgi (standart). Tungi rejim: html[data-theme="dark"] — pastda. JS (applyTheme) Telegram mavzusi yoki o'quvchi tanlovi bo'yicha qo'yadi. */
  --bg: #f3f5f9;
  --bg2: #ffffff;
  --text: #111827;
  --hint: #6b7280;
  --link: #2563eb;
  --btn: #2563eb;
  --btn-text: #ffffff;
  --card: #ffffff;
  --accent: #2563eb;
  --accent2: #0ea5e9;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --line: rgba(0,0,0,.07);          /* chiziqlar, ramkalar */
  --fill: var(--fill);          /* yengil fon (variant tugmasi, chip, badge) */
  --ghost: rgba(37,99,235,.08);     /* ghost tugma foni */
  --toast: #111827;
  --top1: #1e40af; --top2: #0ea5e9; --top3: #6366f1;   /* yuqori panel gradienti */
  --radius: 16px;
  --shadow: 0 2px 10px rgba(17, 24, 39, .06);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0b1220;
  --bg2: #111a2e;
  --text: #e5e9f2;
  --hint: #94a3b8;
  --link: #7cb3ff;
  --btn: #3b82f6;
  --btn-text: #ffffff;
  --card: #141d33;
  --accent: #60a5fa;
  --accent2: #38bdf8;
  --green: #4ade80;
  --red: #f87171;
  --amber: #fbbf24;
  --line: rgba(255,255,255,.09);
  --fill: rgba(255,255,255,.08);
  --ghost: rgba(96,165,250,.16);
  --toast: #1f2a44;
  --top1: #0f1b3d; --top2: #0e3a5e; --top3: #2a1f5e;
  --shadow: 0 2px 12px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
html[data-theme="dark"] .q .opt.sel { color: #0b1220; }
html[data-theme="dark"] .modal { background: rgba(0,0,0,.65); }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif; font-size: 16px; font-weight: 500; }
#app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)) 16px 12px; background: linear-gradient(135deg, #1e40af, #0ea5e9); color: #fff; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand span:last-child { overflow: hidden; text-overflow: ellipsis; }
.logo { font-size: 22px; }
.topbar-right { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.topbar-right .btn.sm { padding: 6px 10px; font-size: 12px; }
.pill { font-size: 11px; padding: 4px 8px; white-space: nowrap; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; }
.view { flex: 1; padding: 16px 16px 90px; max-width: 760px; width: 100%; margin: 0 auto; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--bg2); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 10; }
.tabbar button { flex: 1; background: none; border: 0; padding: 6px 2px; color: var(--hint); font-size: 11px; display: flex;
  flex-direction: column; align-items: center; gap: 2px; cursor: pointer; border-radius: 12px; }
.tabbar button .ic { font-size: 22px; line-height: 1; }
.tabbar button.active { color: var(--accent); font-weight: 600; }
.tabbar.admin button { font-size: 10px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px; }
.card h2 { margin: 0 0 8px; font-size: 18px; }
.card h3 { margin: 14px 0 6px; font-size: 15px; }
.muted { color: var(--hint); font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 16px;
  font-size: 15px; font-weight: 600; cursor: pointer; background: var(--btn); color: var(--btn-text); text-decoration: none; }
.btn.block { width: 100%; }
.btn.big { padding: 18px 16px; font-size: 16px; border-radius: 16px; }
.btn.ghost { background: var(--ghost); color: var(--accent); }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); }
.btn.amber { background: var(--amber); }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu-tile { background: var(--card); border-radius: 18px; padding: 18px 14px; box-shadow: var(--shadow); cursor: pointer;
  display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; transition: transform .1s; }
.menu-tile:active { transform: scale(.98); }
.menu-tile .ic { font-size: 30px; }
.menu-tile .t { font-weight: 700; font-size: 16px; }
.menu-tile .d { color: var(--hint); font-size: 12px; }
.input, textarea, select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2);
  color: var(--text); font-size: 15px; outline: none; font-family: inherit; }
.input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
label.lbl { display: block; font-size: 13px; color: var(--hint); margin: 10px 0 4px; }
.code-input { font-size: 22px; letter-spacing: 3px; text-align: center; text-transform: uppercase; font-weight: 700; }
.content p { margin: 0 0 8px; line-height: 1.5; }
.content ul { margin: 4px 0 8px 18px; padding: 0; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line); }
.badge.green { background: rgba(22,163,74,.12); color: var(--green); }
.badge.red { background: rgba(220,38,38,.12); color: var(--red); }
.badge.blue { background: rgba(37,99,235,.12); color: var(--accent); }
.badge.amber { background: rgba(217,119,6,.14); color: var(--amber); }
.level { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 4px 10px; border-radius: 10px;
  font-weight: 800; color: #fff; background: #6b7280; }
.level.Ap { background: #d97706; } .level.A { background: #ea580c; } .level.Bp { background: #2563eb; } .level.B { background: #3b82f6; }
.level.Cp { background: #16a34a; } .level.C { background: #22c55e; }
.q-grid { display: flex; flex-direction: column; gap: 10px; }
.q { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 12px; padding: 8px 10px; box-shadow: var(--shadow); }
.q .n { width: 30px; font-weight: 700; color: var(--hint); text-align: right; }
.q .opts { display: flex; gap: 6px; flex: 1; }
.q .opt { flex: 1; padding: 10px 0; text-align: center; border-radius: 10px; background: var(--fill); font-weight: 700; cursor: pointer;
  user-select: none; border: 2px solid transparent; }
.q .opt.sel { background: var(--accent); color: #fff; }
.q input { flex: 1; }
.sticky-bottom { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg2);
  box-shadow: 0 -4px 12px var(--line); z-index: 11; }
.sticky-bottom .inner { max-width: 760px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; flex: 1; }
.progress > div { height: 100%; background: var(--accent); }
.stat { background: var(--card); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.stat .v { font-size: 24px; font-weight: 800; }
.stat .k { font-size: 12px; color: var(--hint); }
.result-big { text-align: center; padding: 10px 0; }
.result-big .score { font-size: 44px; font-weight: 800; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--hint); font-weight: 600; font-size: 12px; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.list-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.list-item:last-child { border-bottom: 0; }
.list-item .main { flex: 1; min-width: 0; }
.list-item .t { font-weight: 600; }
.list-item .s { color: var(--hint); font-size: 12px; margin-top: 2px; }
.chev { color: var(--hint); }
.segs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; }
.segs button { flex: 0 0 auto; border: 0; background: var(--fill); color: var(--text); padding: 8px 12px; border-radius: 999px; font-size: 13px;
  font-weight: 600; cursor: pointer; }
.segs button.active { background: var(--accent); color: #fff; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px); background: var(--toast); color: #fff; padding: 10px 16px;
  border-radius: 12px; font-size: 14px; opacity: 0; transition: .25s; z-index: 50; max-width: 90%; text-align: center; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--red); }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 40; }
.modal.hidden { display: none; }
.modal-card { background: var(--bg2); width: 100%; max-width: 760px; max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 18px 16px 28px; }
.loading { text-align: center; padding: 60px 0; color: var(--hint); }
.spinner { width: 36px; height: 36px; border: 4px solid rgba(37,99,235,.2); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 10px;
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.plan { border: 2px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; background: var(--card); }
.plan.sel { border-color: var(--accent); background: rgba(37,99,235,.05); }
.plan .p { font-size: 20px; font-weight: 800; }
.plan .n { font-weight: 600; }
.hero { background: linear-gradient(135deg, #1e40af, #0ea5e9); color: #fff; border-radius: 20px; padding: 20px; margin-bottom: 14px; }
.hero h1 { margin: 0 0 6px; font-size: 22px; }
.hero p { margin: 0; opacity: .9; font-size: 14px; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.hidden { display: none !important; }
.small { font-size: 12px; }
.center { text-align: center; }
.mt { margin-top: 12px; }
.chip { display: inline-block; padding: 4px 8px; border-radius: 8px; background: var(--fill); font-size: 12px; margin: 2px; }
.chip.bad { background: rgba(220,38,38,.12); color: var(--red); }
.timer { font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.qr { font-size: 13px; }
.qr .ok { color: var(--green); font-weight: 700; } .qr .no { color: var(--red); font-weight: 700; }

/* ===================== Animatsiyalar va interaktivlik ===================== */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .7; }
#app { position: relative; z-index: 1; }
.topbar { background: linear-gradient(120deg, var(--top1), var(--top2), var(--top3), var(--top1)); background-size: 300% 300%;
  animation: gradientMove 14s ease infinite; }
.hero { background: linear-gradient(120deg, var(--top1), var(--top2), var(--top3), var(--top1)); background-size: 300% 300%;
  animation: gradientMove 12s ease infinite; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.14); filter: blur(2px);
  animation: floatBlob 9s ease-in-out infinite; }
.hero::before { width: 160px; height: 160px; right: -40px; top: -60px; }
.hero::after { width: 110px; height: 110px; left: -30px; bottom: -50px; animation-delay: -4s; animation-duration: 11s; }
.hero > * { position: relative; z-index: 1; }
@keyframes gradientMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes floatBlob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-14px, 12px) scale(1.12); } }
/* banner lentasi */
.banner { margin-top: 10px; min-height: 42px; position: relative; font-size: 14px; font-weight: 600; }
.banner span { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; line-height: 1.4; }
.banner span.on { opacity: 1; transform: translateY(0); }
/* kirish animatsiyasi */
.view > * { animation: riseIn .45s cubic-bezier(.2,.7,.2,1) both; }
.view > *:nth-child(2) { animation-delay: .06s; } .view > *:nth-child(3) { animation-delay: .12s; }
.view > *:nth-child(4) { animation-delay: .18s; } .view > *:nth-child(5) { animation-delay: .24s; } .view > *:nth-child(n+6) { animation-delay: .3s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal-card { animation: slideUp .3s cubic-bezier(.2,.7,.2,1); }
@keyframes slideUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
/* tugmalar */
.btn { position: relative; overflow: hidden; transition: transform .12s, box-shadow .2s, filter .2s; box-shadow: 0 4px 14px rgba(37,99,235,.18); }
.btn.ghost { box-shadow: none; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 8px 20px rgba(37,99,235,.25); }
.btn:active { transform: scale(.97); }
.btn.big { background-image: linear-gradient(120deg, var(--btn), #0ea5e9); background-size: 200% 100%; animation: sheen 5s linear infinite; }
.btn.big.green { background-image: linear-gradient(120deg, #16a34a, #22c55e); }
.btn.big.ghost { background-image: none; animation: none; }
@keyframes sheen { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.45); animation: ripple .55s ease-out forwards; pointer-events: none; }
.ghost .ripple, .menu-tile .ripple, .opt .ripple { background: rgba(37,99,235,.18); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
/* menyu plitkalari */
.menu-tile { position: relative; overflow: hidden; transition: transform .15s, box-shadow .2s, border-color .2s; }
.menu-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17,24,39,.12); border-color: rgba(37,99,235,.35); }
.menu-tile:hover .ic { animation: wiggle .6s ease; }
.menu-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #2563eb, #0ea5e9, #7c3aed);
  transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.menu-tile:hover::after { transform: scaleX(1); }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg) scale(1.15); } 75% { transform: rotate(8deg) scale(1.1); } }
/* test variantlari */
.q .opt { position: relative; overflow: hidden; transition: transform .1s, background .15s, color .15s; }
.q .opt:active { transform: scale(.92); }
.q .opt.sel { animation: pop .25s ease; box-shadow: 0 4px 12px rgba(37,99,235,.3); }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.progress > div { transition: width .35s cubic-bezier(.2,.7,.2,1); background: linear-gradient(90deg, #2563eb, #0ea5e9); }
/* natija va daraja */
.result-big .score { animation: scoreIn .6s cubic-bezier(.2,.7,.2,1); background: linear-gradient(120deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes scoreIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result-big .level { animation: pulseGlow 1.6s ease-in-out 2; }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,.35); } 50% { box-shadow: 0 0 0 10px rgba(37,99,235,0); } }
/* pastki menyu */
.tabbar button { transition: transform .15s, color .15s; }
.tabbar button.active .ic { animation: bounce .4s ease; display: inline-block; }
.tabbar button:active { transform: scale(.9); }
@keyframes bounce { 0% { transform: translateY(0); } 40% { transform: translateY(-5px) scale(1.15); } 100% { transform: translateY(0); } }
/* statistika va kartalar */
.stat { transition: transform .15s, box-shadow .2s; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(17,24,39,.1); }
.stat .v { animation: scoreIn .5s ease both; }
.card { transition: box-shadow .2s; }
.list-item { transition: background .15s, transform .15s; border-radius: 10px; }
.list-item:hover { background: rgba(37,99,235,.05); transform: translateX(3px); }
.plan { transition: transform .15s, border-color .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(17,24,39,.1); }
.plan.sel { animation: pop .25s ease; }
.badge.amber, .pill { animation: none; }
.spinner { border-top-color: #0ea5e9; }
.timer.warn { animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: .3; } }
/* kam harakat rejimi */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #bg-canvas { display: none; }
}
/* kalit panjarasi (admin) — ixcham qatorlar */
#k-grid .q { padding: 4px 8px; border-radius: 10px; }
#k-grid .q .opt { padding: 7px 0; font-size: 14px; }
#k-grid .q .input { padding: 7px 10px; }

/* ===================== Mavzu tugmasi, sanoq, «Nega xato qildim?», kalit ogohi ===================== */
.theme-btn { background: rgba(255,255,255,.2) !important; color: #fff !important; padding: 6px 8px !important; font-size: 15px !important; box-shadow: none !important; }
.countdown { display: flex; gap: 10px; margin-bottom: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cd { flex: 1 1 0; min-width: 130px; display: flex; gap: 10px; align-items: center; background: var(--card); border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow); }
.cd-n { font-size: 30px; font-weight: 800; line-height: 1; background: linear-gradient(120deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 44px; text-align: center; }
.cd-t { font-size: 12px; line-height: 1.3; color: var(--hint); } .cd-t span:first-of-type { color: var(--text); font-weight: 600; }
.rv { border-left: 3px solid var(--red); background: var(--fill); border-radius: 10px; padding: 8px 10px; margin-top: 8px; font-size: 14px; }
.rv.ok { border-left-color: var(--green); }
.rv-h { display: flex; gap: 10px; align-items: baseline; } .rv-h > b:first-child { min-width: 26px; color: var(--hint); }
.rv-n { margin-top: 4px; font-size: 13px; line-height: 1.45; }
.warnbox { border: 1px solid rgba(217,119,6,.5); background: rgba(217,119,6,.1); border-radius: 12px; padding: 10px 12px; margin: 8px 0 12px; }

/* ===================== 07.11 dizayn kuni: rang tanlash, tabbar, profil, daraxt, guruh plitkalari ===================== */
/* Harakatni kamaytirish (Ko'rinish → tugma) */
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }
/* kartalar daraxt ustida yengil shaffof — daraxt orqa fonda ko'rinib tursin */
.card, .stat { background: var(--card-a, var(--card)); }
:root { --card-a: rgba(255,255,255,.84); } html[data-theme="dark"] { --card-a: rgba(20,29,51,.84); }
.view { position: relative; z-index: 1; }
/* ---- pastki menyu: SVG ikonkalar, faol bo'lim ramkasi, animatsiya */
.tabbar { padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); gap: 2px; }
.tabbar button { padding: 4px 2px; gap: 1px; position: relative; }
.tabbar button .ic { width: 42px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 12px; transition: background .2s, transform .2s; }
.tabbar button .ic svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.tabbar button.active .ic { background: var(--ghost); color: var(--accent); animation: tabPop .35s cubic-bezier(.2,.9,.3,1.4); }
.tabbar button.active .ic svg { animation: tabFloat 2.6s ease-in-out infinite; }
.tabbar button.active .ic svg .fl { fill: var(--accent); fill-opacity: .18; }
.tabbar button:not(.active):active .ic { transform: scale(.92); }
.tabbar.admin button .ic { width: 38px; height: 28px; } .tabbar.admin button .ic svg { width: 22px; height: 22px; }
@keyframes tabPop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes tabFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
/* ---- profil (Kimyo uslubi) */
.pf-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 16px 14px; position: relative; overflow: hidden; }
.pf-head::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2 52 16v32L28 62 4 48V16z' fill='none' stroke='%23888' stroke-opacity='.18'/%3E%3C/svg%3E"); }
.pf-av { width: 84px; height: 84px; border-radius: 18px; background: linear-gradient(145deg, var(--accent), var(--accent2)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.18); position: relative; }
.pf-av .no { position: absolute; top: 5px; left: 8px; font-size: 10px; opacity: .85; font-weight: 600; }
.pf-av .ltr { font-size: 36px; font-weight: 800; line-height: 1; }
.pf-av .sub { font-size: 10px; opacity: .9; margin-top: 2px; }
.pf-name { font-size: 20px; font-weight: 800; margin-top: 10px; position: relative; }
.pf-sub { color: var(--hint); font-size: 13px; position: relative; }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; width: 100%; position: relative; }
.pf-stats .st { background: var(--fill); border-radius: 12px; padding: 8px 6px; }
.pf-stats .st .v { font-size: 18px; font-weight: 800; color: var(--accent); } .pf-stats .st .k { font-size: 10.5px; color: var(--hint); line-height: 1.2; }
.pf-list { padding: 4px 6px; }
.pf-row { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 12px; transition: background .15s; }
.pf-row:last-child { border-bottom: 0; } .pf-row:active { background: var(--fill); }
.pf-row .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--ghost); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: 0 0 36px; }
.pf-row .ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pf-row .tx { flex: 1; min-width: 0; } .pf-row .tx b { display: block; font-size: 15px; } .pf-row .tx span { font-size: 12px; color: var(--hint); }
.pf-row .val { font-size: 13px; color: var(--hint); white-space: nowrap; } .pf-row .chev { color: var(--hint); font-size: 20px; }
/* ---- Ko'rinish */
.ap-sample { display: flex; gap: 12px; align-items: center; background: var(--fill); border-radius: 14px; padding: 12px; }
.ap-sample .tile { width: 64px; height: 64px; border-radius: 12px; background: var(--accent); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; flex: 0 0 64px; }
.ap-sample .tile small { font-size: 9px; font-weight: 500; opacity: .9; }
.ap-sample .lb { font-size: 10px; letter-spacing: .5px; color: var(--accent); font-weight: 700; }
.ap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ap-c { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 14px; border: 2px solid transparent; background: var(--fill); cursor: pointer; font-size: 11px; color: var(--hint); transition: transform .15s, border-color .15s; }
.ap-c svg { width: 34px; height: 34px; } .ap-c.on { border-color: var(--accent); color: var(--text); font-weight: 600; } .ap-c:active { transform: scale(.95); }
.sw { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--fill); border: 1px solid var(--line); flex: 0 0 46px; cursor: pointer; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .2s; }
.sw.on { background: var(--accent); } .sw.on::after { left: 22px; }
/* ---- BIOPRO daraxti (orqa fon) */
#tree-bg { position: fixed; left: 0; right: 0; bottom: 0; height: 78vh; z-index: 0; pointer-events: none; overflow: hidden; opacity: .8; }
html[data-theme="dark"] #tree-bg { opacity: .6; }
#tree-bg svg { position: absolute; bottom: calc(50px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(118vw, 640px); height: 100%; }
.tree-sway { transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }
.tree-sway .br2 { transform-origin: inherit; animation: sway2 5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1.1deg); } 50% { transform: rotate(1.1deg); } }
@keyframes sway2 { 0%, 100% { transform: rotate(.8deg); } 50% { transform: rotate(-.8deg); } }
.leaf-fall { animation: fall linear infinite; }
@keyframes fall { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(var(--dx, 30px), var(--dy, 220px)) rotate(300deg); opacity: 0; } }
.flower-pop { animation: flowerPop 3s ease-in-out infinite; }
@keyframes flowerPop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.tree-page svg { width: 100%; height: 62vh; display: block; }
.tree-page .tree-sway { animation-duration: 8s; }
.tree-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* ---- admin: guruh plitkalari va probirka */
.g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-tile { position: relative; background: var(--card-a, var(--card)); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 22px 12px; min-height: 96px; cursor: pointer; overflow: hidden; transition: transform .15s; }
.g-tile:active { transform: scale(.97); }
.g-tile .nm { font-weight: 800; font-size: 15px; line-height: 1.2; } .g-tile .sb { font-size: 11.5px; color: var(--hint); margin-top: 4px; }
.g-tile .bar { position: absolute; top: 10px; bottom: 10px; width: 9px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.g-tile .bar.l { left: 7px; } .g-tile .bar.r { right: 7px; }
.g-tile .bar i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 999px; transition: height .6s cubic-bezier(.2,.7,.2,1); }
.g-tile .bar.full i { box-shadow: 0 0 10px 2px rgba(56,189,248,.8); animation: glow 2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 8px 1px rgba(56,189,248,.6); } 50% { box-shadow: 0 0 14px 4px rgba(56,189,248,.95); } }
.g-legend { font-size: 11px; color: var(--hint); display: flex; gap: 12px; margin: 6px 2px 0; flex-wrap: wrap; }
.g-legend i { display: inline-block; width: 8px; height: 14px; border-radius: 999px; vertical-align: middle; margin-right: 4px; }
.tube { position: relative; height: 14px; border-radius: 999px; background: var(--fill); border: 1.5px solid var(--line); overflow: hidden; margin: 6px 0 2px; }
.tube i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.tube i.sub { background: repeating-linear-gradient(45deg, rgba(0,0,0,.08) 0 4px, transparent 4px 8px); }
.tube.full i.gr { box-shadow: 0 0 8px 2px rgba(56,189,248,.8); animation: glow 2s ease-in-out infinite; }
.tube b { position: absolute; right: 6px; top: -1px; font-size: 10px; color: var(--text); }
/* ---- kattaroq tugmalar: fayl qatorlari, jadvaldagi 👁, belgilar */
.btn.fb { min-width: 40px; min-height: 38px; padding: 6px 10px; font-size: 17px; }
.btn.eye { min-width: 44px; min-height: 40px; font-size: 20px; padding: 6px 10px; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; accent-color: var(--accent); vertical-align: middle; margin: 0 8px 0 0; }
label.lbl:has(> input[type="checkbox"]) { display: flex; align-items: center; gap: 2px; padding: 8px 0; font-size: 14px; line-height: 1.3; }
.kv .row .btn.sm { min-height: 36px; }
.hero h1 { margin: 2px 0 0; font-size: 24px; }
.hero-badge { background: rgba(255,255,255,.2); border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; align-self: flex-start; }
.hero-prog { margin-top: 12px; } .hero-prog .small { opacity: .9; }
.hp-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; margin-top: 6px; }
.hp-bar i { display: block; height: 100%; border-radius: 999px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.7); transition: width .6s cubic-bezier(.2,.7,.2,1); }

/* ================= BIOPRO bog'i — daraxt 6.0 (to'liq ekran sahna) ================= */
#tree-bg.bt { opacity: .9; }
html[data-theme="dark"] #tree-bg.bt { opacity: .55; }
#tree-bg.bt svg { width: min(112vw, 620px); }
body.bog-open { overflow: hidden; }
body.bog-open #tabbar, body.bog-open #tree-bg { visibility: hidden; }
.bog { position: fixed; inset: 0; z-index: 60; background: #7fb0de; overflow: hidden; color: #fff; font-family: inherit; -webkit-user-select: none; user-select: none; }
.bog.tun { background: #0d1626; }
.bog-sc { position: absolute; inset: 0; }
.bog-sc > .lay { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bog-sc > svg.out { animation: bog-fade 1.4s ease forwards; }
@keyframes bog-fade { to { opacity: 0; } }
.bog-top { position: absolute; left: 0; right: 0; top: 0; padding: calc(10px + var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)) 12px 0; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.bog-tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; pointer-events: auto; }
.bog-tabs button { border: 0; border-radius: 999px; padding: 7px 13px; font: 600 13px/1 inherit; color: #fff; background: rgba(15, 23, 42, .38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bog-tabs button[aria-pressed="true"] { background: rgba(255, 255, 255, .92); color: #0f172a; }
.bog-banner { pointer-events: auto; max-width: 520px; background: rgba(120, 53, 15, .82); color: #fff7ed; border-radius: 14px; padding: 9px 13px; font-size: 13px; line-height: 1.35; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bog-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 14px calc(14px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.bog-chip { pointer-events: auto; display: flex; align-items: center; gap: 8px; background: rgba(15, 23, 42, .42); border-radius: 999px; padding: 8px 14px; font: 600 13px/1 inherit; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bog-chip .dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.bog-btn { pointer-events: auto; width: 52px; height: 52px; border-radius: 50%; border: 0; font-size: 25px; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .45); }
.bog-credit { position: absolute; left: 0; right: 0; bottom: calc(3px + env(safe-area-inset-bottom)); text-align: center; font-size: 9.5px; color: rgba(255, 255, 255, .7); pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.bog-info { position: absolute; left: 12px; right: 12px; top: calc(14px + var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)); display: flex; justify-content: center; pointer-events: none; }
.bog-tabs:not(:empty) ~ .bog-banner { margin-top: 0; }
.bog-info .bi { display: flex; gap: 10px; align-items: center; max-width: 560px; background: rgba(15, 23, 42, .5); border-radius: 16px; padding: 10px 14px; font-size: 13px; line-height: 1.35; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bog-info .bi b { display: block; font-size: 14px; }
.bog-info .bi div > span, .bog-info .bi > span:not(.av) { display: block; color: rgba(255, 255, 255, .85); }
.bog-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 74%; overflow: auto; background: var(--card, #fff); color: var(--text, #0f172a); border-radius: 22px 22px 0 0; padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px -10px rgba(0, 0, 0, .4); animation: bog-up .28s ease; }
@keyframes bog-up { from { transform: translateY(40px); opacity: 0; } }
.bog-sheet .hd { display: flex; justify-content: space-between; align-items: center; font-size: 16px; margin-bottom: 6px; }
.bog-sheet .x { border: 0; background: transparent; font-size: 18px; color: inherit; padding: 4px 8px; }
.bog-sheet .lb { font-size: 11px; letter-spacing: .06em; color: var(--hint, #64748b); margin: 12px 0 6px; font-weight: 700; }
.bog-sheet .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.bog-sheet .sp { text-align: left; border: 1.5px solid var(--border, #e2e8f0); background: var(--bg2, #f8fafc); color: inherit; border-radius: 14px; padding: 10px; font: inherit; display: flex; flex-direction: column; gap: 4px; }
.bog-sheet .sp b { font-size: 14px; }
.bog-sheet .sp .s { font-size: 11.5px; color: var(--hint, #64748b); line-height: 1.3; }
.bog-sheet .sp.on { border-color: var(--accent, #1a73c9); box-shadow: 0 0 0 3px var(--ghost, rgba(26, 115, 201, .12)); }
.bog-sheet .sp.own .s { color: #16a34a; font-weight: 600; }
.bog-sheet .sp.lock { opacity: .8; }
.bog-sheet .bar { height: 5px; border-radius: 3px; background: var(--border, #e2e8f0); overflow: hidden; }
.bog-sheet .bar i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #a3e635); }
.bog-sheet .nt { font-size: 11.5px; color: var(--hint, #64748b); margin: 12px 2px 0; line-height: 1.4; }
.bog-card { cursor: pointer; }
.bog-row { gap: 10px; align-items: center; }
.av { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 38px; object-fit: cover; background: var(--ghost, #e2e8f0); }
.av.ini { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent, #1a73c9), var(--accent2, #5aaef5)); font-size: 15px; }
.hb { width: 64px; height: 7px; border-radius: 4px; background: var(--border, #e2e8f0); overflow: hidden; flex: 0 0 64px; }
.hb i { display: block; height: 100%; border-radius: 4px; }
.tr-row { border-bottom: 1px solid var(--border, #e2e8f0); padding: 8px 0; }
.tr-row .row { gap: 6px; margin-top: 6px; }
html[data-motion="off"] .bog .sway, html[data-motion="off"] .bog .sway2 { animation: none; }
.avw { position: relative; overflow: hidden; }
.avw img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ================= 08.11 qo'lyozma bo'yicha (1-bosqich) ================= */
/* Mening bog'im — tab ichidagi sahna */
.bog-host { position: relative; border-radius: 22px; overflow: hidden; margin: -2px 0 0; background: #7fb0de; box-shadow: var(--shadow); }
.bog-hero { position: relative; border-radius: 22px; overflow: hidden; margin-bottom: 12px; background: #7fb0de; box-shadow: var(--shadow); }
.bog.inline { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.bog.inline .bog-top { padding-top: 10px; }
.bog.inline .bog-bottom { padding-bottom: 12px; }
.bog.inline .bog-credit { bottom: 2px; }
.bog-zoom { position: absolute; inset: 0; overflow: hidden; }
.bog-sc { transition: transform .12s ease-out; will-change: transform; }
.bog-sc.zoomed { transition: none; }
.bog-top { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 8px; }
.bog-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.bog-cd { pointer-events: auto; min-width: 56px; padding: 6px 8px 5px; border-radius: 14px; background: rgba(15, 23, 42, .42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-align: center; line-height: 1.05; border: 1.5px solid rgba(255, 255, 255, .35); }
.bog-cd b { display: block; font-size: 20px; font-weight: 800; }
.bog-cd span { display: block; font-size: 10px; opacity: .9; }
.bog-cd i { display: block; font-style: normal; font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; opacity: .75; margin-top: 1px; }
.bog-cd.l { border-color: rgba(250, 204, 21, .6); } .bog-cd.r { border-color: rgba(134, 239, 172, .6); }
.bog-chip.tap { cursor: pointer; } .bog-chip.tap::after { content: '›'; margin-left: 2px; opacity: .8; }
.bog-info .bi.tap { pointer-events: auto; cursor: pointer; }
.bog-sheet .sp .th { display: block; height: 62px; margin: -2px 0 2px; text-align: center; }
.bog-sheet .sp .th img { height: 62px; width: auto; }
.rw-row { display: flex; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.rw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rw-main b { font-size: 14px; }
.rw-card { border: 1.5px dashed var(--accent); }
.info-box { background: var(--ghost) !important; color: var(--text); border-radius: 12px; }
.rw-info { padding: 10px 12px; margin: 6px 0 10px; font-size: 13.5px; line-height: 1.45; }
.cd-k .cd-n { color: var(--green); }
/* Boshqaruv: yirik tugmalar, bosiladigan statistika */
.nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nav-tile { border: 0; text-align: left; background: var(--card-a, var(--card)); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 3px; color: var(--text); font: inherit; cursor: pointer; transition: transform .15s; min-height: 104px; }
.nav-tile:active { transform: scale(.97); }
.nav-tile .ic { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--ghost); color: var(--accent); margin-bottom: 6px; font-size: 20px; }
.nav-tile .ic svg { width: 22px; height: 22px; }
.nav-tile b { font-size: 16px; font-weight: 800; }
.nav-tile span:last-child { font-size: 12px; color: var(--hint); }
.stat.tap { cursor: pointer; position: relative; } .stat.tap::after { content: '›'; position: absolute; right: 12px; top: 10px; color: var(--hint); font-size: 18px; }
.stat.tap:active { transform: scale(.97); }
/* Vazifalar: tepadagi tugmalar va indikator */
.tbar { display: flex; gap: 8px; flex-wrap: wrap; }
.tbar .btn { flex: 1 1 0; min-width: 110px; }
.list-item .ind { width: 7px; align-self: stretch; border-radius: 4px; margin-right: 10px; flex: 0 0 7px; min-height: 38px; }
/* o'quvchi kurs plitkalari / o'quvchilar plitkalari */
.st-tile { padding-left: 26px; }
.st-tile .bar.full1 { left: 10px; }
.gt-main { display: flex; flex-direction: column; gap: 3px; }
.gt-main b { font-size: 15px; line-height: 1.2; } .gt-main span { font-size: 12px; color: var(--hint); }
.gt-need { color: var(--amber) !important; font-weight: 700; } .gt-ok { color: var(--green) !important; font-weight: 700; }
/* Kod-1: o'quvchi profili */
.sc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.sc-head .av { width: 54px; height: 54px; flex-basis: 54px; font-size: 22px; }
.sc-trees { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.sc-tree { display: flex; gap: 10px; align-items: center; background: var(--ghost); border-radius: 14px; padding: 8px 10px; cursor: pointer; }
.sc-tree > div:last-child { display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.sc-svg { width: 74px; height: 70px; flex: 0 0 74px; } .sc-svg svg { width: 100%; height: 100%; }
.sc-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; } .sc-act .btn:only-child { grid-column: 1 / -1; }
.sc-res .kv span { font-size: 13px; }
.chk-big { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); margin-top: 6px; font-weight: 600; cursor: pointer; }
.chk-big input { width: 22px; height: 22px; accent-color: var(--accent); }
.kv.tap { cursor: pointer; } .kv.tap:active { background: var(--ghost); }
/* avatar */
.av.emo { display: inline-flex; align-items: center; justify-content: center; font-size: 21px; background: var(--ghost); }
.av.sm { width: 26px; height: 26px; flex-basis: 26px; font-size: 12px; vertical-align: middle; margin-right: 6px; }
.av.big { width: 56px; height: 56px; flex-basis: 56px; font-size: 26px; }
.av-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.av-pick { border: 2px solid transparent; background: var(--card); border-radius: 16px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; font-size: 11px; color: var(--hint); cursor: pointer; }
.av-pick.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ghost); }
.pf-av { overflow: hidden; } .pf-av .pf-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-av .ltr.emo { font-size: 40px; }
.pf-av .pf-edit { position: absolute; right: 5px; bottom: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.pf-av .sub { z-index: 2; }
/* Yordam: kontaktlar */
.ct-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ct-main { flex: 1; display: flex; flex-direction: column; } .ct-main span { font-size: 12px; color: var(--hint); }
/* Xabar yuborish */
.bc-step { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; margin: 12px 0 10px; }
.bc-step .n { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.bc-aud { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bc-card { border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 12px 10px; text-align: left; display: flex; flex-direction: column; gap: 2px; font: inherit; color: var(--text); cursor: pointer; transition: transform .12s, border-color .15s; }
.bc-card .ic { font-size: 22px; } .bc-card b { font-size: 14px; } .bc-card span:last-child { font-size: 11.5px; color: var(--hint); }
.bc-card.on { border-color: var(--accent); background: var(--ghost); }
.bc-card:active, .bc-g:active { transform: scale(.97); }
.bc-gl { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.bc-g { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 12px; font: inherit; color: var(--text); cursor: pointer; }
.bc-g .ck { grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: transparent; font-weight: 800; }
.bc-g b { font-size: 15px; } .bc-g span:last-child { font-size: 12px; color: var(--hint); }
.bc-g.on { border-color: var(--accent); background: var(--ghost); } .bc-g.on .ck { background: var(--accent); border-color: var(--accent); color: #fff; }
.bc-g.all { grid-template-rows: auto; } .bc-g.all .ck { grid-row: auto; }
.bc-count { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ghost); font-size: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--ghost); margin-bottom: 10px; }
.seg button { border: 0; background: transparent; border-radius: 10px; padding: 9px; font: inherit; font-weight: 700; color: var(--hint); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.chip { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; white-space: nowrap; color: var(--text); cursor: pointer; }
.chip:active { background: var(--ghost); }
.bc-files { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.bc-file { display: inline-flex; align-items: center; gap: 4px; background: var(--ghost); border-radius: 10px; padding: 5px 8px; font-size: 12.5px; }
.bc-file button { border: 0; background: transparent; color: var(--red); font-weight: 700; cursor: pointer; }
.bc-btn-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 6px; margin-top: 8px; padding: 8px; border-radius: 12px; background: var(--ghost); position: relative; }
.bc-col { display: flex; gap: 4px; grid-column: 1 / 2; } .bc-col button { border: 2px solid transparent; background: var(--card); border-radius: 10px; padding: 4px 8px; cursor: pointer; } .bc-col button.on { border-color: var(--accent); }
.bc-x { position: absolute; right: 8px; bottom: 8px; border: 0; background: var(--card); color: var(--red); border-radius: 10px; padding: 5px 10px; cursor: pointer; }
.tg-chat { background: linear-gradient(160deg, #cfe3c8, #b9d5c7); border-radius: 16px; padding: 14px; }
html[data-theme="dark"] .tg-chat { background: linear-gradient(160deg, #18242f, #0f1a24); }
.tg-bub { background: #fff; color: #111827; border-radius: 14px 14px 14px 4px; padding: 10px 12px; max-width: 92%; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); font-size: 14px; line-height: 1.4; }
html[data-theme="dark"] .tg-bub { background: #1f2c38; color: #e5e9f2; }
.tg-txt { white-space: pre-wrap; margin-top: 6px; word-break: break-word; }
.tg-att { font-size: 12.5px; padding: 18px 10px; border-radius: 10px; background: rgba(0, 0, 0, .06); text-align: center; margin-bottom: 6px; }
.tg-btns { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.tg-btn { display: block; text-align: center; padding: 8px; border-radius: 10px; background: rgba(37, 99, 235, .12); color: #2563eb; font-weight: 600; font-size: 13px; }
.tg-btn.yashil { background: rgba(22, 163, 74, .15); color: #15803d; } .tg-btn.qizil { background: rgba(220, 38, 38, .13); color: #b91c1c; }
.hist-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.btn.green { background: var(--green); } .btn.red { background: var(--red); }
.warn-box { background: rgba(245, 158, 11, .12) !important; border: 1px solid rgba(245, 158, 11, .35); }
.warn-box .btn { margin-top: 6px; }
/* ---- 08.11 (3-bosqich): guruh daraxti, Ajdarxo, ulashish, daraxt qoidalari sahifasi */
.bog-bottom { gap: 10px; }
.bog-left { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.bog-acts { display: flex; gap: 8px; align-items: flex-end; pointer-events: auto; }
.bog-btn.sm { width: 44px; height: 44px; font-size: 20px; }
.bog-dg { pointer-events: auto; border: 0; border-radius: 999px; padding: 7px 12px; font: 700 12px/1 inherit; color: #ecfdf5; background: rgba(6, 95, 70, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(110, 231, 183, .35) inset; }
.gt-info { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 620px; pointer-events: none; }
.gt-info .bi { pointer-events: auto; }
.gt-strip { pointer-events: auto; display: flex; gap: 7px; overflow-x: auto; max-width: 100%; padding: 2px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gt-strip::-webkit-scrollbar { display: none; }
.gt-c { flex: none; width: 70px; border: 0; border-radius: 14px; padding: 5px 4px 6px; background: rgba(15, 23, 42, .5); color: #fff; font: inherit; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 1px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); position: relative; }
.gt-c.m1 { box-shadow: 0 0 0 2px #facc15 inset; } .gt-c.m2 { box-shadow: 0 0 0 2px #cbd5e1 inset; } .gt-c.m3 { box-shadow: 0 0 0 2px #fb923c inset; }
.gt-c .gt-r { position: absolute; top: 2px; left: 4px; font-size: 12px; font-weight: 800; }
.gt-c .th { display: block; height: 44px; } .gt-c .th img { height: 44px; width: auto; }
.gt-c b { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-c .gt-h { font-weight: 800; font-size: 11px; }
.gt-me { pointer-events: auto; font-size: 12px; background: rgba(15, 23, 42, .5); border-radius: 999px; padding: 6px 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tp-row { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--line); border-radius: 12px; }
.tp-row.hl { background: var(--ghost, rgba(37, 99, 235, .1)); }
.tp-row.tap { cursor: pointer; }
.tp-r { width: 30px; text-align: center; font-weight: 800; font-size: 15px; flex: none; }
.tp-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tp-m b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-th { display: block; width: 48px; height: 46px; flex: none; } .tp-th img { height: 46px; width: auto; }
.dg-hero { display: flex; justify-content: center; margin: -4px 0 0; }
.dg-hero .dg-svg { width: 150px; height: 148px; }
.dg-lv, .dg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.dg-lv > div, .dg-row > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 4px; border-radius: 14px; background: var(--bg2, rgba(0,0,0,.03)); border: 1.5px solid var(--line); opacity: .55; }
.dg-row > div, .dg-lv > div.on { opacity: 1; border-color: #34d399; }
.dg-lv .dg-svg, .dg-row .dg-svg { width: 72px; height: 70px; }
.dg-lv b, .dg-row b { font-size: 12px; } .dg-lv span, .dg-row span { font-size: 11px; color: var(--hint); }
.sh-prev { display: flex; justify-content: center; align-items: center; min-height: 240px; margin: 8px 0; }
.sh-prev img { width: min(62%, 240px); border-radius: 18px; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .55); }
.sh-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.chips .chip.on { background: var(--accent); color: #fff; }
.tr-page { padding-bottom: 18px; }
.tr-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin: 0 -4px 6px; scrollbar-width: none; }
.tr-tabs::-webkit-scrollbar { display: none; }
.tr-tabs button { flex: none; border: 0; border-radius: 999px; padding: 9px 13px; font: inherit; font-size: 13px; font-weight: 700; background: var(--fill, rgba(0,0,0,.05)); color: var(--text); cursor: pointer; }
.tr-tabs button.on { background: var(--accent); color: #fff; }
.tr-card { display: flex; gap: 10px; padding: 10px; border-radius: 16px; border: 1.5px solid var(--line); margin-top: 8px; transition: opacity .2s; }
.tr-card.off { opacity: .45; }
.tr-card .th { display: block; width: 58px; height: 56px; flex: none; } .tr-card .th img { height: 56px; width: auto; }
.tr-cm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tr-cond { font-size: 12px; color: var(--accent); font-weight: 700; }
.input.sm { padding: 8px 10px; font-size: 13px; }
.stp { display: inline-flex; align-items: center; gap: 0; border-radius: 12px; border: 1.5px solid var(--line); overflow: hidden; background: var(--card); }
.stp-b { border: 0; background: var(--fill, rgba(0,0,0,.05)); width: 38px; height: 38px; font-size: 20px; font-weight: 700; color: var(--text); cursor: pointer; }
.stp-b:active { background: var(--ghost); }
.stp-v { width: 58px; border: 0; text-align: center; font: inherit; font-weight: 800; font-size: 15px; background: transparent; color: var(--text); -moz-appearance: textfield; }
.stp-v::-webkit-inner-spin-button, .stp-v::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stp-s { padding: 0 10px 0 2px; font-size: 12px; color: var(--hint); font-weight: 700; }
.tr-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tr-l { display: flex; flex-direction: column; min-width: 150px; flex: 1; }
.tr-l b, .sw-row b { font-size: 14px; } .tr-l i, .sw-row i { font-style: normal; font-size: 12px; color: var(--hint); line-height: 1.35; }
.tr-f .seg { grid-auto-flow: column; grid-template-columns: none; margin: 0; }
.tr-f .seg button { padding: 8px 12px; }
.sw-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.sw-row > span { display: flex; flex-direction: column; }
input.tgl { -webkit-appearance: none; appearance: none; position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--fill, #e5e7eb); border: 1px solid var(--line); flex: 0 0 48px; cursor: pointer; transition: background .2s; margin: 0; }
input.tgl::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .2s; }
input.tgl:checked { background: #22c55e; } input.tgl:checked::after { left: 22px; }
.tr-viz { margin: 4px 0 6px; }
.tr-bar { position: relative; height: 14px; border-radius: 8px; overflow: hidden; background: var(--line); }
.tr-bar i { position: absolute; top: 0; bottom: 0; }
.tr-bar em { position: absolute; top: -2px; bottom: -2px; width: 3px; background: var(--text); border-radius: 2px; }
.tr-leg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 11.5px; color: var(--hint); margin-top: 8px; }
.tr-save { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--card); box-shadow: 0 14px 40px -12px rgba(0,0,0,.45); transform: translateY(calc(100% + 140px)); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .2s; }
.tr-save.show { transform: none; opacity: 1; pointer-events: auto; }
.tr-save span { flex: 1; font-size: 13px; font-weight: 700; }
.bog-chip { white-space: nowrap; min-width: 0; }
.bog-left .bog-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* ---- 09.11: yulduzcha, top-10 tasmasi (suzadi), o'quvchi kartasi, ob-havo boshqaruvi, o'lchamlar, premium avatar */
.gt-strip { overflow-x: auto; scroll-behavior: auto; }
.gt-track { display: flex; gap: 7px; width: max-content; }
.tc-tree { height: 230px; border-radius: 16px; overflow: hidden; margin: -4px 0 4px; }
.tc-tree svg { width: 100%; height: 100%; display: block; }
.tc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.tc-grid > div { background: var(--fill, rgba(0,0,0,.04)); border-radius: 12px; padding: 8px 2px; display: flex; flex-direction: column; }
.tc-grid b { font-size: 17px; } .tc-grid span { font-size: 10.5px; color: var(--hint); line-height: 1.2; }
.st-hero { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 54px; line-height: 1; margin: 2px 0 4px; filter: drop-shadow(0 6px 14px rgba(250, 204, 21, .45)); }
.st-hero b { font-size: 40px; color: var(--text); }
.st-hero.sm { font-size: 38px; }
.av-pick.prem { position: relative; background: linear-gradient(135deg, rgba(250, 204, 21, .18), rgba(168, 85, 247, .14)); }
.av-pick.lock { opacity: .55; } .av-pick.lock i { position: absolute; right: 4px; bottom: 2px; font-style: normal; font-size: 13px; }
.sz-grid { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 12px; }
.sz-row { display: flex; align-items: center; gap: 10px; }
.sz-row .th { display: block; width: 40px; height: 38px; flex: none; } .sz-row .th img { height: 38px; width: auto; }
.sz-row b { flex: 1; font-size: 13.5px; }
.wx-list { max-height: 46vh; overflow-y: auto; margin-top: 4px; }
.wx-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.wx-row .chk { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.wx-m { flex: 1; min-width: 0; display: flex; flex-direction: column; } .wx-m b { font-size: 14px; } .wx-m i { font-style: normal; font-size: 12px; color: var(--hint); }
.wx-on { font-size: 12px; background: var(--fill, rgba(0,0,0,.05)); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.wx-ic { font-size: 24px; width: 30px; text-align: center; }
.wx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wx-p { border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; font-size: 11.5px; font-weight: 700; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.wx-p span { font-size: 24px; } .wx-p.on { border-color: var(--accent); background: rgba(37, 99, 235, .1); }
.tg-btn.green { background: #16a34a; color: #fff; }
.tr-save { animation: none !important; visibility: hidden; } .tr-save.show { visibility: visible; }

/* 09.11: qotmaslik — qatlam darajasidagi animatsiya (GPU) */
.bog .lay.swl { animation: bt-swl var(--swd, 7s) ease-in-out infinite; will-change: transform; }
@keyframes bt-swl { 0%, 100% { transform: rotate(calc(var(--swa, .6) * -1deg)); } 50% { transform: rotate(calc(var(--swa, .6) * 1.3deg)); } }
.bog .lay.brb { animation: bt-brb 4.8s ease-in-out infinite; will-change: transform; }
@keyframes bt-brb { 0%, 100% { transform: scale(1, 1); } 45% { transform: scale(1.004, 1.035); } }
.bog .lay.brl, .bog .lay.zl { pointer-events: none; }
.bog-top { grid-template-columns: minmax(0, auto) 1fr minmax(0, auto); }
.bog-top > .bog-cd.l { grid-column: 1; } .bog-top > .bog-mid { grid-column: 2; } .bog-top > .bog-cd.r { grid-column: 3; justify-self: end; }
