/* =====================================================================
   chess64 2.0 — dizayn tizimi (app.css dan keyin yuklanadi)
   Tun rangidagi fon, shisha yuzalar, ko'k brend + "quyosh" (olovrang) urg'u,
   Liquid Metal tugmalar, Dock paneli, 3D faollik xaritasi.
   Taxta ranglari va donalar o'zgarmaydi (ko'k taxta, klassik donalar).
   ===================================================================== */

:root {
  --accent: #4b8fd1;
  --accent-2: #6aa7e3;
  --accent-3: #2f6fac;
  --accent-soft: rgba(75, 143, 209, .16);
  --accent-glow: rgba(75, 143, 209, .55);
  --green: var(--accent);
  --green-2: var(--accent-2);
  --green-3: var(--accent-3);
  --green-soft: var(--accent-soft);

  --ember: #f97316;
  --ember-2: #fb923c;
  --ember-3: #c2410c;
  --ember-soft: rgba(249, 115, 22, .14);

  --bg: #0a0d13;
  --bg-2: #0c1017;
  --surface: #121722;
  --surface-2: #19202c;
  --surface-3: #242d3b;
  --input-bg: #0e131b;
  --hover: rgba(148, 163, 184, .08);
  --line: rgba(148, 163, 184, .11);
  --line-2: rgba(148, 163, 184, .2);
  --text: #edf1f7;
  --muted: #97a3b6;
  --muted-2: #6b778a;

  --ok: #34c37a;
  --danger: #f05d5d;
  --warn: #f5b041;
  --info: #5aa9f0;
  --gold: #f5c451;

  --shadow-s: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  --shadow-l: 0 30px 70px -16px rgba(0, 0, 0, .72);
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 1px 2px rgba(0, 0, 0, .25);
  --inset: inset 0 1px 0 rgba(255, 255, 255, .05);

  --r-s: 8px;
  --r: 12px;
  --r-l: 16px;
  --r-xl: 22px;
  --side: 224px;
  --content: 1160px;
  --nav-text: #c3cbd8;
  --btn-2: #1a212d;
  --btn-2-hover: #222b39;
  --btn-2-shadow: rgba(0, 0, 0, .35);
  --chart: #5aa0e6;
  --glass: rgba(14, 18, 26, .72);
  --glass-line: rgba(255, 255, 255, .08);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

html[data-theme="light"] {
  --accent: #2f78c4;
  --accent-2: #4a8fd6;
  --accent-3: #23609f;
  --accent-soft: rgba(47, 120, 196, .12);
  --accent-glow: rgba(47, 120, 196, .4);
  --bg: #f3f5f9;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f5f9;
  --surface-3: #e4e9f1;
  --input-bg: #ffffff;
  --hover: rgba(15, 23, 42, .05);
  --line: rgba(15, 23, 42, .08);
  --line-2: rgba(15, 23, 42, .15);
  --text: #0f172a;
  --muted: #586579;
  --muted-2: #8590a2;
  --shadow-s: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-l: 0 30px 70px -20px rgba(15, 23, 42, .28);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 14px -6px rgba(15, 23, 42, .08);
  --inset: inset 0 1px 0 rgba(255, 255, 255, .9);
  --nav-text: #334155;
  --btn-2: #ffffff;
  --btn-2-hover: #f3f6fa;
  --btn-2-shadow: rgba(15, 23, 42, .1);
  --chart: #2f78c4;
  --glass: rgba(255, 255, 255, .78);
  --glass-line: rgba(15, 23, 42, .08);
  --ok: #16a34a;
  --danger: #dc2626;
}

/* ---------- asos ---------- */
html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
body { background: var(--bg); color: var(--text); font-size: 15px; letter-spacing: -.003em; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(75, 143, 209, .10), transparent 60%),
    radial-gradient(800px 560px at 105% 110%, rgba(249, 115, 22, .06), transparent 60%);
}
html[data-theme="light"] body::before {
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(47, 120, 196, .08), transparent 60%),
    radial-gradient(800px 560px at 105% 110%, rgba(249, 115, 22, .05), transparent 60%);
}
::selection { background: rgba(75, 143, 209, .35); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border: 3px solid var(--bg); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
h1, h2, h3 { letter-spacing: -.02em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1.page { font-size: 26px; font-weight: 800; margin: 2px 0 18px; letter-spacing: -.025em; gap: 12px; }
h1.page .ic, h1.page .ic-img { width: 30px !important; height: 30px !important; }

/* ---------- yon panel ---------- */
.side {
  width: var(--side); padding: 14px 12px 12px;
  background: linear-gradient(180deg, rgba(16, 21, 30, .96), rgba(10, 13, 19, .98));
  border-right: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
html[data-theme="light"] .side { background: linear-gradient(180deg, #ffffff, #fafbfd); }
.side-logo { padding: 6px 10px 18px; }
.side-logo .logo-full { height: 40px; }
.side-nav { gap: 2px; }
.side-item {
  position: relative; min-height: 44px; padding: 6px 10px; gap: 12px; border-radius: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--nav-text);
  transition: background .18s, color .18s;
}
.side-item .si-ic { width: 30px; height: 30px; }
.side-item .si-ic .ic { width: 26px; height: 26px; }
.side-item .si-ic .ic-img { width: 28px; height: 28px; transition: transform .25s var(--ease-spring); }
.side-item:hover .si-ic .ic-img { transform: scale(1.12) rotate(-4deg); }
.side-item:hover, html[data-theme="light"] .side-item:hover { background: var(--hover); color: var(--text); }
.side-item.active, html[data-theme="light"] .side-item.active {
  background: linear-gradient(90deg, var(--accent-soft), rgba(75, 143, 209, .03) 85%);
  color: var(--text);
}
.side-item.active::before {
  content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 4px 4px 0;
  background: var(--accent-2); box-shadow: 0 0 14px var(--accent);
}
html[dir="rtl"] .side-item.active::before { left: auto; right: -12px; border-radius: 4px 0 0 4px; }
.side-item.sm { min-height: 38px; font-size: 14px; color: var(--muted); }
.side-item.sub-open { background: var(--hover); }
.side-foot { gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; }
.side-user { border-radius: 14px; padding: 8px 10px; gap: 10px; background: var(--hover); border: 1px solid var(--line); }
.side-user:hover, .side-user.active { background: var(--surface-2); }
.side-user .avatar { border-radius: 10px; }
.side-user .su-lvl { color: var(--accent-2); font-weight: 700; }
.side-mini { border-radius: 10px; }
.side-mini:hover { background: var(--hover); }
.side-item.premium-cta {
  background: linear-gradient(135deg, rgba(245, 196, 81, .18), rgba(249, 115, 22, .12));
  border: 1px solid rgba(245, 196, 81, .25); color: #f8d77a;
}
html[data-theme="light"] .side-item.premium-cta { color: #9a6a00; }

.more-pop {
  border-radius: 16px; padding: 8px; border: 1px solid var(--glass-line);
  background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: var(--shadow-l);
}
.more-pop .side-item { min-height: 42px; font-size: 14.5px; }
.more-pop .side-item.active::before { display: none; }

.main { margin-left: var(--side); }
.view { padding: 26px 32px 72px; max-width: var(--content); }

/* ixcham yon panel (faqat ikonkalar) va telefon — app.css dagi o'lchamlar shu fayldan keyin ham amal qilsin */
@media (max-width: 1100px) {
  :root { --side: 78px; }
  .side { padding: 14px 9px 12px; }
  .side-item.active::before { left: -9px; }
  html[dir="rtl"] .side-item.active::before { left: auto; right: -9px; }
  .side-user { padding: 6px 0; justify-content: center; background: transparent; border-color: transparent; }
  .side-foot { gap: 2px; }
  .view { padding: 22px 22px 64px; }
}
@media (max-width: 860px) {
  :root { --side: 0px; }
}

/* ---------- telefon: yuqori panel + suzuvchi Dock ---------- */
@media (max-width: 860px) {
  .m-top {
    height: 58px; padding: 0 8px; background: var(--glass) !important; border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  }
  .m-icon { border-radius: 12px; }
  .m-ava .avatar { border-radius: 10px; }
  .main { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .m-tabs {
    left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 66px; padding: 6px;
    border-radius: 22px; border: 1px solid var(--glass-line) !important; gap: 2px;
    background: var(--glass) !important; -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  }
  html[data-theme="light"] .m-tabs { box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .28); }
  .m-tab { position: relative; border-radius: 16px; gap: 2px; font-weight: 700; font-size: 10.5px; transition: background .18s, color .18s; }
  .m-tab .ic, .m-tab .ic-img { width: 26px; height: 26px; transition: transform .25s var(--ease-spring); }
  .m-tab.active { background: var(--accent-soft); color: var(--text); }
  .m-tab.active .ic-img, .m-tab.active .ic { transform: translateY(-2px) scale(1.08); }
  .m-tab.active::after {
    content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px;
    border-radius: 50%; background: var(--accent-2);
  }
  .view { padding: 16px 14px 28px; }
  body.game-view .main { padding-bottom: 0; }
  .toast-wrap { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* ---------- komponentlar ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 18px; box-shadow: var(--card-shadow);
}
html[data-theme="light"] .card { border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.card-head { margin-bottom: 14px; }
.card-head h2, .card-head h3 { font-size: 17px; font-weight: 800; letter-spacing: -.015em; }
.card.flush { padding: 0; }

.btn {
  border: 1px solid var(--line); border-radius: 12px; min-height: 42px; padding: 9px 16px;
  font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; background: var(--btn-2); color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 1px 2px rgba(0, 0, 0, .25);
  transition: background .16s, border-color .16s, box-shadow .16s, transform .08s, filter .16s;
}
html[data-theme="light"] .btn { box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.btn:hover { background: var(--btn-2-hover); border-color: var(--line-2); }
.btn:active { transform: translateY(1px) scale(.99); box-shadow: none; }
.btn.primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 20px -8px var(--accent-glow);
}
.btn.primary:hover { background: linear-gradient(180deg, var(--accent-2), var(--accent)); filter: brightness(1.08); }
.btn.primary:active { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .2); transform: translateY(1px) scale(.99); }
.btn.ghost { background: transparent; border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--hover); }
.btn.danger { background: linear-gradient(180deg, #f87171, #dc2626); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -10px rgba(220, 38, 38, .7); }
.btn.ember {
  background: linear-gradient(180deg, #fb923c, #f97316 55%, #ea580c); color: #fff; border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 24px -10px rgba(249, 115, 22, .8);
}
.btn.ember:hover { filter: brightness(1.07); background: linear-gradient(180deg, #fb923c, #f97316 55%, #ea580c); }
.btn.lg { min-height: 50px; font-size: 16px; border-radius: 14px; padding: 11px 20px; }
.btn.xl { min-height: 56px; font-size: 18px; border-radius: 16px; letter-spacing: -.015em; }
.btn.sm { min-height: 34px; padding: 5px 12px; font-size: 13px; border-radius: 10px; box-shadow: none; }
.btn.big-btn { border-radius: 14px; }

.input, select.input, textarea.input {
  background: var(--input-bg); border: 1px solid var(--line-2); border-radius: 12px; min-height: 44px; padding: 10px 14px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
html[data-theme="light"] .input { background: #fff; }
.input:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line-2)); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
label.field > span { font-size: 12.5px; letter-spacing: .01em; }

.chip { border-radius: 999px; padding: 3px 10px; background: var(--surface-2); border: 1px solid var(--line); }
.chip.green { background: var(--accent-soft); color: var(--accent-2); border-color: transparent; }
.chip.gold { border-color: transparent; }
.chip.red, .chip.blue { border-color: transparent; }
.chip.active { background: var(--accent); color: #fff; border-color: transparent; }

.tabs { gap: 4px; border-bottom: 1px solid var(--line); }
.tab { border-radius: 10px 10px 0 0; padding: 11px 14px; font-weight: 700; border-bottom-width: 2px; transition: color .15s, background .15s; }
.tab:hover { background: var(--hover); }
.tab.active { color: var(--text); border-bottom-color: var(--accent-2); }

table.tbl th { font-size: 11px; letter-spacing: .06em; }
table.tbl tbody tr { transition: background .12s; }
table.tbl tbody tr:hover td { background: var(--hover); }

.avatar { border-radius: 10px; background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); color: var(--accent-2); }
.avatar.lg { border-radius: 16px; }
.avatar.md { border-radius: 12px; }
.avatar.sm { border-radius: 9px; }

.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.progress { height: 8px; background: var(--surface-3); }
.progress > i { background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent-glow); }
.list-item { border-radius: 12px; }
.list-item:hover { background: var(--hover); }
.count-badge { background: var(--accent-soft); color: var(--accent-2); font-weight: 800; }

.toast {
  border-radius: 14px; border: 1px solid var(--glass-line); border-left: 4px solid var(--accent);
  background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow-l); font-weight: 600;
}
.modal-bg { background: rgba(4, 6, 10, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html[data-theme="light"] .modal-bg { background: rgba(15, 23, 42, .35); }
.modal { border-radius: 20px; border: 1px solid var(--line-2); box-shadow: var(--shadow-l); animation: modalIn .28s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.modal .m-head { padding: 16px 20px; }
.modal .m-head h3 { font-size: 18px; }
.modal .m-body { padding: 20px; }
.modal .m-foot { padding: 14px 20px; }
.icon-btn { border-radius: 10px; }
.spinner { border-color: var(--surface-3); border-top-color: var(--accent-2); }
.switch i { background: var(--surface-3); }
.switch input:checked + i { background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 0 12px var(--accent-glow); }
.empty { color: var(--muted); }
.settings-layout { border-radius: var(--r-l); }
.settings-nav .s-item { border-radius: 10px; }
.settings-nav .s-item.active { box-shadow: inset 3px 0 0 var(--accent-2); }

/* kirib kelish */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--rd, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- taxta atrofi (ranglar o'zgarmaydi) ---------- */
.board { border-radius: 8px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04); }
html[data-theme="light"] .board { box-shadow: 0 20px 44px -18px rgba(15, 23, 42, .4); }

/* =====================================================================
   Dock (macOS uslubida)
   ===================================================================== */
.dock-wrap { display: flex; justify-content: center; }
.dock {
  position: relative; display: inline-flex; justify-content: center; max-width: 100%;
  padding: 10px 12px; margin-top: 40px; border-radius: 22px;
  background: rgba(40, 44, 54, .55); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(0, 0, 0, .2);
}
html[data-theme="light"] .dock { background: rgba(255, 255, 255, .62); border-color: rgba(15, 23, 42, .1); box-shadow: 0 10px 30px -10px rgba(15, 23, 42, .3), inset 0 1px 0 #fff; }
.dock-track { position: relative; min-height: var(--dock-base, 56px); }
.dock-item {
  position: absolute; bottom: 0; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  display: block; -webkit-tap-highlight-color: transparent; outline: none;
}
.dock-face {
  display: block; width: 100%; height: 100%; border-radius: 27%; overflow: hidden; position: relative;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1);
  transition: box-shadow .2s;
}
.dock-face img, .dock-face .bot-ava { width: 100% !important; height: 100% !important; border-radius: 0 !important; display: block; object-fit: cover; box-shadow: none !important; }
.dock-item.on .dock-face { box-shadow: 0 0 0 2.5px var(--tier, var(--accent-2)), 0 10px 22px -6px rgba(0, 0, 0, .6); }
.dock-item:focus-visible .dock-face { box-shadow: 0 0 0 3px var(--accent-2); }
.dock-dot {
  position: absolute; left: 50%; bottom: -8px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%;
  background: currentColor; color: var(--text); opacity: 0; transition: opacity .2s;
}
.dock-item.on .dock-dot { opacity: .85; }
.dock-tip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 6px); opacity: 0;
  pointer-events: none; white-space: nowrap; text-align: center; z-index: 40;
  background: rgba(17, 20, 27, .94); color: #fff; padding: 6px 11px; border-radius: 9px;
  font-size: 12.5px; line-height: 1.25; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); transition: opacity .15s, transform .15s;
}
.dock-tip b { font-weight: 800; }
.dock-tip small { display: block; opacity: .7; font-weight: 600; font-size: 11px; }
.dock-item:hover .dock-tip, .dock-item:focus-visible .dock-tip { opacity: 1; transform: translate(-50%, 0); }
.dock.dock-scroll { display: flex; overflow-x: auto; overflow-y: hidden; padding-bottom: 14px; margin-top: 8px; scrollbar-width: none; }
.dock.dock-scroll::-webkit-scrollbar { display: none; }
.dock.dock-scroll .dock-tip { display: none; }

/* =====================================================================
   Liquid Metal tugma
   ===================================================================== */
@property --lm-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.lm-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; isolation: isolate;
  height: 50px; padding: 0 28px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  color: #ececf1; font-family: var(--display); font-weight: 700; font-size: 15.5px; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; overflow: hidden; -webkit-tap-highlight-color: transparent;
  transition: transform .5s var(--ease-spring), box-shadow .15s;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 36px 14px 0 rgba(0, 0, 0, .02), 0 20px 12px 0 rgba(0, 0, 0, .08), 0 9px 9px 0 rgba(0, 0, 0, .12), 0 2px 5px 0 rgba(0, 0, 0, .15);
}
.lm-btn:hover {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 12px 6px 0 rgba(0, 0, 0, .05), 0 8px 5px 0 rgba(0, 0, 0, .1), 0 4px 4px 0 rgba(0, 0, 0, .15), 0 1px 2px 0 rgba(0, 0, 0, .2);
}
.lm-btn:active { transform: translateY(1px) scale(.98); }
.lm-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.lm-btn.lg { height: 58px; padding: 0 34px; font-size: 17px; }
.lm-btn.xl { height: 64px; padding: 0 42px; font-size: 19px; }
.lm-btn.sm { height: 42px; padding: 0 20px; font-size: 14px; }
.lm-btn.block { display: flex; width: 100%; }
.lm-ring { position: absolute; inset: 0; z-index: 0; border-radius: inherit; overflow: hidden; background: #9ca3af; }
.lm-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lm-core { position: absolute; inset: 2px; z-index: 1; border-radius: inherit; background: linear-gradient(180deg, #232323 0%, #000 100%); transition: box-shadow .15s; }
.lm-btn:active .lm-core { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4), inset 0 1px 2px rgba(0, 0, 0, .3); }
.lm-label { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 9px; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.lm-tx { background: linear-gradient(180deg, #ffffff 0%, #d4d7de 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .55)); }
.lm-ic { display: inline-flex; color: #e5e7eb; }
.lm-ic .ic { width: 20px; height: 20px; }
.lm-ripple {
  position: absolute; z-index: 3; width: 20px; height: 20px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, 0) 70%);
  transform: translate(-50%, -50%) scale(0); animation: lmRipple .6s ease-out forwards;
}
@keyframes lmRipple { 0% { transform: translate(-50%, -50%) scale(0); opacity: .6; } 100% { transform: translate(-50%, -50%) scale(5); opacity: 0; } }
.lm-css .lm-canvas { display: none; }
.lm-css .lm-ring {
  background: conic-gradient(from var(--lm-a), #2a2a2e, #f4f4f5, #71717a, #fafafa, #18181b, #d4d4d8, #3f3f46, #f4f4f5, #2a2a2e);
  animation: lmSpin 5s linear infinite;
}
@keyframes lmSpin { to { --lm-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .lm-css .lm-ring { animation: none; } }

/* =====================================================================
   Faollik xaritasi (Contribution Skyline)
   ===================================================================== */
.sk { position: relative; padding: 18px 18px 6px; color: var(--text); background: var(--surface); }
.sk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.sk-head h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.sk-head h3 b { font-variant-numeric: tabular-nums; }
.sk-toggle { position: relative; display: inline-flex; padding: 2px; border-radius: 10px; border: 1px solid var(--line-2); }
.sk-toggle-ind {
  position: absolute; top: 2px; bottom: 2px; left: 2px; width: 34px; border-radius: 8px; background: var(--text);
  transition: transform .5s cubic-bezier(.65, 0, .35, 1);
}
.sk.is3d .sk-toggle-ind { transform: translateX(100%); }
.sk-tg {
  position: relative; z-index: 1; width: 34px; height: 28px; display: grid; place-items: center; padding: 0; border: 0;
  background: transparent; color: var(--muted); cursor: pointer; border-radius: 8px; transition: color .5s;
}
.sk-tg[aria-pressed="true"] { color: var(--surface); }
.sk-box { position: relative; border: 1px solid var(--line); border-radius: 14px; }
.sk-pad { position: relative; padding: 14px 14px 0; }
.sk-stage { position: relative; width: 100%; height: 150px; overflow: hidden; border-radius: 10px; }
.sk-canvas { position: absolute; top: 0; left: 0; display: block; outline: none; max-width: none; }
.sk-stage:has(.sk-canvas:focus-visible) { outline: 2px solid var(--text); outline-offset: 4px; }
.sk-tip {
  position: absolute; top: 14px; left: 14px; z-index: 20; white-space: nowrap; pointer-events: none;
  padding: 7px 10px; border-radius: 8px; font-size: 12px; line-height: 1; background: var(--text); color: var(--surface);
  box-shadow: 0 10px 20px -6px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .15s;
}
.sk-tip.on { opacity: 1; }
.sk-tip strong { font-weight: 800; }
.sk-tip-d { opacity: .75; }
.sk-tip-arrow { position: absolute; top: 100%; left: var(--arrow, 50%); margin-left: -5px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid var(--text); }
.sk-corner {
  position: absolute; z-index: 5; display: flex; flex-direction: column; gap: 18px; pointer-events: none;
  opacity: 0; transition: opacity .3s cubic-bezier(.65, 0, .35, 1), transform .3s cubic-bezier(.65, 0, .35, 1);
}
.sk-corner.tr { top: 4px; right: 4px; align-items: flex-end; text-align: right; transform: translateY(-10px); }
.sk-corner.bl { bottom: 4px; left: 4px; align-items: flex-start; transform: translateY(10px); }
.sk.is3d.corners .sk-corner { opacity: 1; transform: none; transition-duration: .6s; transition-delay: .72s; }
.sk.is3d.corners .sk-corner.bl { transition-delay: .85s; }
.sk-stat-k { font-size: 12.5px; color: var(--muted); line-height: 1.2; }
.sk-stat-v { display: flex; align-items: baseline; gap: 6px; margin-top: 3px; }
.sk-stat-v b { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -.02em; color: var(--sk-accent, var(--accent-2)); font-variant-numeric: tabular-nums; transition: color .5s; }
.sk-stat-v span { font-size: 13.5px; }
.sk-stat-s { margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-stat.big .sk-stat-v b { font-size: clamp(30px, 4vw, 48px); }
.sk-corner.tr .sk-stat-v { justify-content: flex-end; }
.sk-row { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows 1.3s cubic-bezier(.65, 0, .35, 1), opacity 1.3s cubic-bezier(.65, 0, .35, 1); }
.sk.is3d.corners .sk-row { grid-template-rows: 0fr; opacity: 0; }
.sk-row-in { min-height: 0; overflow: hidden; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 16px 14px 2px; }
.sk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 14px; font-size: 12px; color: var(--muted); }
.sk-legend { display: flex; align-items: center; gap: 6px; }
.sk-sw { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 3px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .14); transition: transform .3s, background-color .5s; }
.sk-sw:hover, .sk-sw[aria-pressed="true"] { transform: scale(1.3); }
@media (max-width: 640px) {
  .sk { padding: 14px 12px 4px; }
  .sk-row-in { grid-template-columns: 1fr 1fr; }
  .sk-pad { padding: 10px 10px 0; }
}

/* =====================================================================
   Botlar: rasm, reyting, unvon
   ===================================================================== */
.bot-ava {
  position: relative; display: inline-grid; place-items: center; flex: none; overflow: hidden;
  width: 44px; height: 44px; border-radius: 14px;
  background: radial-gradient(circle at 50% 30%, var(--tier, #7dd3fc), var(--tier-2, #1d4ed8));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}
.bot-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bot-ava.round { border-radius: 50%; }
.bot-ava.ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--tier, var(--accent)); }
.bot-ini { font-family: var(--display); font-weight: 800; color: #fff; font-size: 15px; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.bot-rt {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; flex: none;
  font-family: var(--display); font-weight: 800; font-size: 12.5px; font-variant-numeric: tabular-nums;
  color: var(--tier); background: color-mix(in srgb, var(--tier) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tier) 34%, transparent);
}
html[data-theme="light"] .bot-rt { color: var(--tier-2); background: color-mix(in srgb, var(--tier-2) 9%, transparent); border-color: color-mix(in srgb, var(--tier-2) 26%, transparent); }
.bot-title {
  display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 5px; flex: none;
  background: #b4232a; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; line-height: 1;
}

/* =====================================================================
   Ochilish sahifasi (kirish / ro'yxatdan o'tish) — "quyosh botishi"
   ===================================================================== */
.lx { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
.lx-top {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 28px 12px;
  background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
}
.lx-top .side-logo { padding: 0; }
.lx-logo .logo-full { height: 36px; }
.lx-logo.sm .logo-full { height: 26px; }
.lx-lang {
  position: relative; display: inline-flex; align-items: center; height: 40px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
}
.lx-lang-ic { position: absolute; left: 11px; display: flex; color: var(--muted); pointer-events: none; }
.lx-lang select {
  -webkit-appearance: none; appearance: none; height: 100%; border: 0; background: transparent; color: inherit;
  padding: 0 30px 0 35px; font-weight: 700; font-size: 14px; border-radius: 999px; cursor: pointer; outline: none; max-width: 150px;
}
.lx-lang select option { background: var(--bg-2); color: var(--text); }
.lx-lang::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; pointer-events: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg);
}
html[dir="rtl"] .lx-lang-ic { left: auto; right: 11px; }
html[dir="rtl"] .lx-lang select { padding: 0 35px 0 30px; }
html[dir="rtl"] .lx-lang::after { right: auto; left: 13px; }
.lx-icon-btn {
  width: 40px; height: 40px; flex: none; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.lx-icon-btn .ic { width: 20px; height: 20px; }
.lx-top-login { border-radius: 999px; padding: 6px 16px; }

.lx-main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 28px 48px; }
.lx-hero {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); min-height: 660px;
  border-radius: 30px; overflow: hidden; border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02);
  animation: lxRise .9s var(--ease-out) both;
}
html[data-theme="light"] .lx-hero { box-shadow: 0 40px 90px -40px rgba(15, 23, 42, .4); }
@keyframes lxRise { from { opacity: 0; transform: translateY(24px) scale(.985); } }

/* chap panel */
.lx-art { position: relative; isolation: isolate; overflow: hidden; background: #000; color: #fff; min-height: 560px; border-bottom-left-radius: 0; }
.lx-sun {
  position: absolute; z-index: 0; right: -12%; bottom: -30%; width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #ffe2a8 0%, #ffb35c 20%, #fb7a1c 44%, #d9480f 66%, #7c2d12 92%);
  box-shadow: 0 0 120px 40px rgba(249, 115, 22, .45), 0 0 280px 90px rgba(249, 115, 22, .16);
  animation: lxSun 10s ease-in-out infinite alternate;
}
@keyframes lxSun { to { transform: translate(2%, -4%) scale(1.04); } }
.lx-haze { position: absolute; inset: 0; z-index: 1; background: radial-gradient(70% 55% at 78% 100%, rgba(255, 140, 40, .32), transparent 70%); }
.lx-stripes { position: absolute; inset: 0; z-index: 2; display: flex; overflow: hidden; }
.lx-stripes i {
  flex: 1; height: 100%; opacity: .32;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #000 69%, rgba(255, 255, 255, .19));
  -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
}
.lx-shade { position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .86) 30%, rgba(0, 0, 0, .25) 60%, rgba(0, 0, 0, 0) 78%); }
.lx-pieces { position: absolute; z-index: 4; right: -3%; bottom: 0; width: 60%; height: auto; filter: drop-shadow(0 0 28px rgba(0, 0, 0, .35)); }
.lx-copy { position: relative; z-index: 5; padding: 50px 50px 0; max-width: 640px; }
.lx-kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fde7c4; font-weight: 700; font-size: 13px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.lx-kicker .ic { width: 18px; height: 18px; }
.lx-copy h1 { font-size: clamp(34px, 4.1vw, 56px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; margin: 20px 0 16px; text-wrap: balance; }
.lx-copy > p { color: rgba(255, 255, 255, .72); font-size: 16.5px; line-height: 1.6; margin: 0; max-width: 480px; }
.lx-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.lx-points li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: rgba(255, 255, 255, .92); }
.lx-points li > span { display: flex; width: 34px; height: 34px; border-radius: 10px; place-items: center; justify-content: center; align-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.lx-points .ic { width: 22px; height: 22px; }
.lx-faces {
  position: absolute; z-index: 6; left: 26px; bottom: 26px; display: flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 10px; border-radius: 999px; color: #fff; text-decoration: none;
  background: rgba(14, 14, 18, .55); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform .3s var(--ease-out), background .2s;
}
.lx-faces:hover { transform: translateY(-2px); background: rgba(24, 24, 30, .7); }
.lx-faces-row { display: flex; }
.lx-faces-row .bot-ava { width: 38px; height: 38px; margin-left: -11px; box-shadow: 0 0 0 2.5px #0d0d10; }
.lx-faces-row .bot-ava:first-child { margin-left: 0; }
.lx-faces b { display: block; font-size: 14px; }
.lx-faces small { display: block; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .62); font-variant-numeric: tabular-nums; }

/* forma */
.lx-form { position: relative; display: flex; flex-direction: column; padding: 46px 44px 26px; background: var(--surface); }
.lx-sunic { display: inline-flex; color: var(--ember); margin-bottom: 14px; animation: lxSpin 40s linear infinite; width: fit-content; }
@keyframes lxSpin { to { transform: rotate(360deg); } }
.lx-form-title { margin: 0 0 6px; font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.lx-form-sub { margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.lx-form .ld-tabs { margin: 18px 0 18px; }
.lx-form .ld-tab-ind { background: var(--surface-3); }
html[data-theme="light"] .lx-form .ld-tab-ind { background: #fff; }
.lx-form .ld-form .btn.xl { border-radius: 14px; font-size: 18px; }
.lx-form .ld-note { background: var(--surface-2); border: 1px solid var(--line); }
.lx-form .ld-switch b { color: var(--ember-2); }
html[data-theme="light"] .lx-form .ld-switch b { color: var(--ember-3); }
.lx-form .ld-field:focus-within .ld-fi { color: var(--ember-2); }
.lx-form .input:focus { border-color: var(--ember); box-shadow: 0 0 0 4px var(--ember-soft); }

/* bo'limlar */
.lx-sec { margin-top: 110px; }
.lx-sec-head { text-align: center; max-width: 740px; margin: 0 auto 40px; }
.lx-eyebrow { display: inline-block; margin-bottom: 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--ember-2); }
html[data-theme="light"] .lx-eyebrow { color: var(--ember-3); }
.lx-sec-head h2, .lx-live-copy h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.lx-sec-head p, .lx-live-copy > p { color: var(--muted); font-size: 16.5px; line-height: 1.65; margin: 0; }
.lx-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lx-feat {
  position: relative; overflow: hidden; padding: 28px 26px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--ease-out), border-color .25s, box-shadow .4s var(--ease-out), opacity .7s var(--ease-out);
}
.lx-feat::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 220px at 0% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 62%); }
.lx-feat:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 42%, var(--line)); box-shadow: 0 28px 60px -30px color-mix(in srgb, var(--c) 70%, transparent); }
.lx-feat-ic {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; border-radius: 17px;
  background: color-mix(in srgb, var(--c) 13%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.lx-feat-ic .ic { width: 34px; height: 34px; }
.lx-feat h3 { position: relative; margin: 0 0 8px; font-size: 19px; letter-spacing: -.02em; }
.lx-feat p { position: relative; margin: 0; color: var(--muted); line-height: 1.6; font-size: 15px; }

.lx-bots-box {
  position: relative; padding: 40px 36px 30px; border-radius: 30px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(700px 360px at 50% -10%, color-mix(in srgb, var(--tier, #7dd3fc) 18%, transparent), transparent 70%), var(--surface);
}
.lx-bot-stage { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: center; max-width: 860px; margin: 0 auto; }
.lx-bot-stage > * { animation: lxSwap .5s var(--ease-out) both; }
.lx-bot-stage > :nth-child(2) { animation-delay: .06s; }
@keyframes lxSwap { from { opacity: 0; transform: translateY(10px); } }
.lx-bot-photo { position: relative; }
.lx-bot-photo::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tier) 40%, transparent), transparent 70%); filter: blur(20px); }
.lx-bot-ava { position: relative; width: 230px !important; height: 230px !important; border-radius: 34px !important; box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--tier-2) 85%, #000), 0 0 0 1px rgba(255, 255, 255, .12) !important; }
.lx-bot-tier { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--tier); }
html[data-theme="light"] .lx-bot-tier { color: var(--tier-2); }
.lx-bot-name { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; font-family: var(--display); font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.lx-bot-name .bot-title { height: 26px; font-size: 14px; padding: 0 8px; border-radius: 7px; }
.lx-bot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.bot-rt.lg { height: 30px; padding: 0 13px; font-size: 16px; }
.lx-bot-bio { margin: 0 0 22px; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 540px; }
.lx-bots-box .dock { margin-top: 56px; }

.lx-live { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.lx-live-board { position: relative; width: min(100%, 520px); justify-self: center; }
.lx-live-board::before { content: ""; position: absolute; inset: 8% -6% -8%; border-radius: 40px; background: radial-gradient(circle at 50% 60%, rgba(75, 143, 209, .35), transparent 65%); filter: blur(30px); z-index: -1; }
.lx-live-board .board { border-radius: 16px; }
.lx-live-tag {
  display: flex; align-items: center; gap: 8px; width: fit-content; margin: 16px auto 0; padding: 6px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 800;
}
.lx-live-tag i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: ld-pulse 1.6s infinite; }
.lx-checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.lx-checks li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15.5px; }
.lx-checks li > span { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; color: #fff; background: linear-gradient(180deg, var(--ember-2), var(--ember)); box-shadow: 0 6px 14px -6px rgba(249, 115, 22, .8); }
.lx-checks .ic { width: 16px; height: 16px; }

.lx-stats {
  margin-top: 110px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden;
  border-radius: 26px; border: 1px solid var(--line); background: var(--surface);
}
.lx-stat { padding: 32px 18px; text-align: center; border-left: 1px solid var(--line); }
.lx-stat:first-child { border-left: 0; }
.lx-stat > div { display: flex; align-items: baseline; justify-content: center; }
.lx-stat b, .lx-stat > div > span {
  font-family: var(--display); font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
  font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--text) 30%, color-mix(in srgb, var(--text) 55%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lx-stat > div > span { color: var(--ember); -webkit-text-fill-color: var(--ember); background: none; }
.lx-stat small { display: block; margin-top: 6px; color: var(--muted); font-weight: 700; font-size: 14px; }

.lx-cta {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 110px; padding: 84px 24px 88px; text-align: center;
  border-radius: 34px; background: #050506; color: #fff; border: 1px solid rgba(255, 255, 255, .06);
}
.lx-cta-glow {
  position: absolute; z-index: -1; left: 13%; bottom: -78%; width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fdba74 0%, #f97316 30%, #9a3412 58%, transparent 72%); filter: blur(24px); opacity: .85;
  animation: lxSun 9s ease-in-out infinite alternate;
}
.lx-cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 40px, rgba(0, 0, 0, .35) 40px 80px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 70%); mask: linear-gradient(180deg, transparent, #000 70%);
}
.lx-cta h2 { position: relative; margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 48px); letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.lx-cta p { position: relative; margin: 0 0 30px; color: rgba(255, 255, 255, .72); font-size: 17px; }
.lx-foot {
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 26px 28px calc(26px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; border-top: 1px solid var(--line);
}
.lx-foot .side-logo { padding: 0; }

@media (max-width: 1100px) {
  .lx-hero { grid-template-columns: minmax(0, 1fr) 400px; }
  .lx-copy { padding: 40px 36px 0; }
  .lx-form { padding: 38px 32px 22px; }
}
@media (max-width: 900px) {
  .lx-main { padding: 18px 16px 32px; }
  .lx-hero { grid-template-columns: 1fr; min-height: 0; border-radius: 26px; }
  .lx-art { min-height: 470px; }
  .lx-copy { padding: 32px 26px 0; }
  .lx-copy h1 { font-size: clamp(30px, 7.4vw, 44px); }
  .lx-pieces { width: 84%; right: -4%; }
  .lx-faces { left: 16px; bottom: 16px; }
  .lx-form { padding: 30px 22px 18px; }
  .lx-feats { grid-template-columns: 1fr 1fr; }
  .lx-live { grid-template-columns: 1fr; gap: 36px; }
  .lx-live-copy { text-align: center; }
  .lx-checks { justify-content: center; }
  .lx-bot-stage { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
  .lx-bot-name, .lx-bot-meta { justify-content: center; }
  .lx-bot-bio { margin-inline: auto; }
  .lx-stats { grid-template-columns: 1fr 1fr; }
  .lx-stat:nth-child(3) { border-left: 0; }
  .lx-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .lx-sec, .lx-stats, .lx-cta { margin-top: 72px; }
}
@media (max-width: 560px) {
  .lx-top { padding: max(10px, env(safe-area-inset-top)) 12px 10px; gap: 6px; }
  .lx-logo .logo-full { height: 30px; }
  .lx-lang select { max-width: 128px; padding-right: 26px; font-size: 13.5px; }
  .lx-top-login { display: none; }
  .lx-art { min-height: 0; padding-bottom: 210px; }
  .lx-copy { padding: 26px 22px 0; }
  .lx-copy h1 { margin: 16px 0 12px; }
  .lx-copy > p { font-size: 15px; }
  .lx-points { display: none; }
  .lx-pieces { width: 82%; right: -6%; }
  .lx-faces { left: 14px; bottom: 14px; padding: 6px 14px 6px 8px; gap: 10px; }
  .lx-faces-row .bot-ava { width: 32px; height: 32px; margin-left: -10px; }
  .lx-faces b { font-size: 13px; }
  .lx-feats { grid-template-columns: 1fr; gap: 12px; }
  .lx-feat { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; padding: 18px 16px; border-radius: 18px; }
  .lx-feat-ic { grid-row: span 2; width: 52px; height: 52px; margin: 0; border-radius: 15px; }
  .lx-feat-ic .ic { width: 30px; height: 30px; }
  .lx-feat h3 { font-size: 17px; margin: 2px 0 4px; }
  .lx-feat p { font-size: 14px; line-height: 1.5; }
  .lx-sec-head { margin-bottom: 26px; }
  .lx-sec-head p { font-size: 15px; }
  .lx-bots-box { padding: 28px 16px 22px; border-radius: 24px; }
  .lx-bot-ava { width: 180px !important; height: 180px !important; border-radius: 28px !important; }
  .lx-cta { padding: 56px 18px 60px; border-radius: 26px; }
  .lx-foot { flex-wrap: wrap; justify-content: center; text-align: center; }
  .lx-foot .spacer { display: none; }
}

/* =====================================================================
   Bosh sahifa
   ===================================================================== */
.hx { max-width: 1180px; margin: 0 auto; display: grid; gap: 18px; }
.hx-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.hx-me { display: flex; align-items: center; gap: 14px; min-width: 0; color: inherit; }
.hx-ring { position: relative; display: grid; place-items: center; flex: none; width: 54px; height: 54px; }
.hx-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hx-ring-bg { fill: none; stroke: var(--surface-3); stroke-width: 4.5; }
.hx-ring-fg { fill: none; stroke: var(--accent-2); stroke-width: 4.5; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--accent-glow)); }
.hx-ring b { font-family: var(--display); font-size: 18px; font-weight: 800; }
.hx-me-tx { display: grid; gap: 2px; min-width: 0; }
.hx-hello { font-family: var(--display); font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-sub { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.hx-sub .flag-ic { width: 20px; height: 13px; }
.hx-kpis { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
html[dir="rtl"] .hx-kpis { margin-left: 0; margin-right: auto; }
.hx-kpi {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 14px; color: inherit;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); transition: transform .25s var(--ease-out), border-color .2s;
}
.hx-kpi:hover { transform: translateY(-2px); border-color: var(--line-2); }
.hx-kpi .ic { width: 24px; height: 24px; }
.hx-kpi b { font-family: var(--display); font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hx-kpi small { color: var(--muted); font-weight: 700; font-size: 12px; }
.hx-kpi.fire b { color: #fb923c; }

.hx-hero { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 18px; }
.hx-play {
  position: relative; isolation: isolate; overflow: hidden; min-height: 380px; padding: 30px 30px 26px; border-radius: 24px; color: #fff;
  background: radial-gradient(620px 320px at 0% 0%, rgba(75, 143, 209, .3), transparent 62%), radial-gradient(420px 300px at 100% 100%, rgba(249, 115, 22, .16), transparent 70%), linear-gradient(160deg, #121c2d, #0a0f18 64%);
  border: 1px solid rgba(120, 160, 220, .16); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.hx-play-art {
  position: absolute; z-index: -1; right: -70px; bottom: -96px; width: 380px; opacity: .55;
  transform: perspective(900px) rotateX(46deg) rotateZ(-24deg);
  -webkit-mask-image: linear-gradient(to top left, #000 35%, transparent 82%); mask-image: linear-gradient(to top left, #000 35%, transparent 82%);
}
.hx-play-art .mini-board { border-radius: 12px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9); }
.hx-play-in { position: relative; display: grid; gap: 14px; max-width: 440px; }
.hx-eyebrow { color: #9cc7f0; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.hx-eyebrow .ic, .hx-eyebrow .ic-img { width: 16px !important; height: 16px !important; }
.hx-play h2 { margin: 0; font-size: 31px; line-height: 1.1; letter-spacing: -.035em; font-weight: 800; }
.hx-play p { margin: 0; color: rgba(255, 255, 255, .66); font-size: 14.5px; line-height: 1.5; }
.hx-tcs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.hx-tc {
  display: grid; justify-items: center; padding: 9px 4px; border-radius: 14px; cursor: pointer; color: #fff;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); transition: background .18s, border-color .18s, box-shadow .18s;
}
.hx-tc b { font-family: var(--display); font-size: 16px; font-weight: 800; }
.hx-tc small { color: rgba(255, 255, 255, .48); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hx-tc:hover { background: rgba(255, 255, 255, .08); }
.hx-tc.on { border-color: #6aa7e3; background: rgba(75, 143, 209, .2); box-shadow: 0 0 22px -6px rgba(75, 143, 209, .7); }
.hx-play .lm-btn { justify-self: start; margin-top: 4px; }
.hx-quicks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.hx-quick {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border-radius: 12px; font-weight: 700; font-size: 13.5px;
  color: rgba(255, 255, 255, .88); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); transition: background .18s;
}
.hx-quick:hover { background: rgba(255, 255, 255, .12); }
.hx-quick .ic { width: 24px; height: 24px; }

.hx-bots {
  padding: 20px 22px 14px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(520px 280px at 100% 0%, color-mix(in srgb, var(--tier, #7dd3fc) 17%, transparent), transparent 70%), var(--surface);
  transition: background .4s;
}
.hx-bots .card-head { margin-bottom: 16px; }
.hx-bot { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 18px; align-items: center; }
.hx-bot > * { animation: lxSwap .45s var(--ease-out) both; }
.hx-bot-ava { width: 116px !important; height: 116px !important; border-radius: 28px !important; box-shadow: 0 18px 36px -16px color-mix(in srgb, var(--tier-2) 90%, #000), 0 0 0 1px rgba(255, 255, 255, .1) !important; }
.hx-bot-info { min-width: 0; }
.hx-bot-tier { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tier); }
html[data-theme="light"] .hx-bot-tier { color: var(--tier-2); }
.hx-bot-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 3px 0 6px; font-family: var(--display); font-size: 25px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.hx-bot-bio { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-bot-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-bots .dock { margin-top: 46px; }

.hx-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.hx-card { display: flex; flex-direction: column; gap: 14px; border-radius: 22px; color: inherit; }
.hx-card-head { display: flex; align-items: center; gap: 10px; }
.hx-card-head b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.hx-card-head .ic { width: 26px; height: 26px; }
.hx-card-head > :last-child:not(b) { margin-left: auto; }
html[dir="rtl"] .hx-card-head > :last-child:not(b) { margin-left: 0; margin-right: auto; }
.hx-daily { transition: transform .3s var(--ease-out), border-color .2s, box-shadow .3s; }
.hx-daily:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.hx-daily-board .mini-board { border-radius: 12px; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .8); }
.hx-goal { display: grid; gap: 7px; margin-top: auto; }
.hx-goal-tx { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); }
.hx-goal-tx b { color: var(--text); }
.hx-tasks, .hx-links { display: grid; gap: 8px; }
.hx-task, .hx-link {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: inherit;
  background: var(--surface-2); border: 1px solid var(--line); transition: background .18s, transform .25s var(--ease-out), border-color .18s;
}
.hx-link { grid-template-columns: 34px minmax(0, 1fr) 18px; font-weight: 700; }
.hx-task:hover, .hx-link:hover { background: var(--surface-3); border-color: var(--line-2); transform: translateX(3px); }
.hx-task-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); }
.hx-task-tx { display: grid; gap: 4px; min-width: 0; }
.hx-task-tx b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-task-tx small { color: var(--muted); font-size: 12px; }
.hx-task-tx .progress { height: 6px; }
.hx-go { display: flex; color: var(--muted); }
.hx-go .ic { width: 16px; height: 16px; }
.hx-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.hx-mode {
  display: grid; place-items: center; align-content: center; gap: 8px; padding: 18px 8px; border-radius: 16px; text-align: center; color: inherit;
  background: color-mix(in srgb, var(--c) 9%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.hx-mode:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px color-mix(in srgb, var(--c) 80%, transparent); }
.hx-mode b { font-size: 14px; }
.hx-mode-ic .ic { width: 34px; height: 34px; }

.hx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.hx-lb-list { display: grid; gap: 2px; }
.hx-lb-row { display: grid; grid-template-columns: 26px 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: inherit; transition: background .15s; }
.hx-lb-row:hover { background: var(--hover); }
.hx-lb-row.me { background: var(--accent-soft); }
.hx-lb-rank { text-align: center; font-family: var(--display); font-weight: 800; color: var(--muted); }
.hx-lb-rank.r1 { color: #f5c451; } .hx-lb-rank.r2 { color: #cbd5e1; } .hx-lb-rank.r3 { color: #d39b6a; }
.hx-lb-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-lb-xp { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.hx-lb-xp b { color: var(--text); font-size: 14px; }

@media (max-width: 1060px) {
  .hx-hero { grid-template-columns: 1fr; }
  .hx-row { grid-template-columns: 1fr 1fr; }
  .hx-daily { grid-row: span 2; }
  .hx-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hx { gap: 14px; }
  .hx-hello { font-size: 21px; }
  .hx-ring { width: 46px; height: 46px; }
  .hx-kpis { width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hx-kpi { justify-content: center; padding: 8px 6px; gap: 6px; }
  .hx-kpi small { display: none; }
  .hx-play { padding: 22px 18px 20px; min-height: 0; border-radius: 22px; }
  .hx-play h2 { font-size: 25px; }
  .hx-play-art { width: 260px; right: -80px; bottom: -80px; opacity: .35; }
  .hx-play .lm-btn { justify-self: stretch; }
  .hx-tc { padding: 8px 2px; }
  .hx-bots { padding: 18px 14px 12px; border-radius: 22px; }
  .hx-bot { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .hx-bot-ava { width: 88px !important; height: 88px !important; border-radius: 22px !important; }
  .hx-bot-name { font-size: 20px; }
  .hx-row { grid-template-columns: 1fr; }
  .hx-daily { grid-row: auto; }
}

/* =====================================================================
   Kompyuter bilan o'ynash — botlar sahifasi
   ===================================================================== */
.bx { max-width: 1180px; margin: 0 auto; }
.bx-head { margin-bottom: 18px; }
.bx-head .page { margin-bottom: 4px; }
.bx-head p { margin: 0; }
.bx-stage {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px; align-items: center; padding: 38px 40px; border-radius: 30px; border: 1px solid var(--line);
  background:
    radial-gradient(900px 480px at 18% -10%, color-mix(in srgb, var(--tier, #7dd3fc) 22%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--tier-2, #1d4ed8) 10%, var(--surface)), var(--surface));
  box-shadow: 0 40px 80px -44px color-mix(in srgb, var(--tier-2, #1d4ed8) 70%, #000);
  transition: background .5s, box-shadow .5s; scroll-margin-top: 80px;
}
.bx-glow {
  position: absolute; z-index: -1; left: -60px; top: -80px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tier) 34%, transparent), transparent 66%); filter: blur(10px);
}
.bx-photo { position: relative; width: 320px; aspect-ratio: 1; animation: lxSwap .5s var(--ease-out) both; }
.bx-photo.tall { aspect-ratio: 3 / 4; }
.bx-photo .bx-ava, .bx-portrait {
  width: 100% !important; height: 100% !important; display: block; object-fit: cover; border-radius: 30px !important;
  box-shadow: 0 34px 60px -26px color-mix(in srgb, var(--tier-2) 90%, #000), 0 0 0 1px rgba(255, 255, 255, .12) !important;
}
.bx-photo-tier {
  position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); white-space: nowrap;
  padding: 7px 16px; border-radius: 999px; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tier) 70%, var(--tier-2)), var(--tier-2));
  box-shadow: 0 12px 24px -10px var(--tier-2), inset 0 1px 0 rgba(255, 255, 255, .3); text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.bx-lock { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bx-lock .ic { width: 24px; height: 24px; }
.bx-info { min-width: 0; animation: lxSwap .5s .06s var(--ease-out) both; }
.bx-eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tier); }
.bx-eyebrow .ic, .bx-eyebrow .ic-img { width: 16px !important; height: 16px !important; }
html[data-theme="light"] .bx-eyebrow, html[data-theme="light"] .bx-rating b { color: var(--tier-2); }
.bx-name { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 8px 0 12px; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; }
.bx-name .bot-title { height: 28px; padding: 0 9px; border-radius: 8px; font-size: 15px; }
.bx-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.bx-meta .flag-ic { width: 26px; height: 17px; }
.bx-rating { display: inline-flex; align-items: baseline; gap: 6px; margin-right: 4px; }
.bx-rating b { font-family: var(--display); font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--tier); font-variant-numeric: tabular-nums; }
.bx-rating small { color: var(--muted); font-weight: 700; font-size: 13px; }
.bx-power { max-width: 440px; margin-bottom: 18px; }
.bx-power-k { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.bx-power-k b { color: var(--text); }
.bx-power-bar { position: relative; height: 10px; border-radius: 999px; overflow: hidden; background: linear-gradient(90deg, #5eead4, #7dd3fc 27%, #c4b5fd 47%, #fda4af 60%, #fdba74 73%, #fde68a); }
.bx-power-bar i { position: absolute; top: 0; bottom: 0; right: 0; background: var(--surface-3); transition: left .7s var(--ease-out); }
.bx-power-bar u { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--surface); opacity: .55; text-decoration: none; }
.bx-bio { max-width: 580px; margin: 0 0 14px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.bx-quote {
  max-width: 580px; margin: 0 0 16px; padding: 12px 16px 12px 18px; border-radius: 4px 16px 16px 16px; font-size: 15.5px; font-weight: 600; font-style: italic;
  border-left: 3px solid var(--tier); background: color-mix(in srgb, var(--tier) 8%, var(--surface-2));
}
.bx-listen {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; margin-bottom: 16px; padding: 0 16px 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--tier) 42%, transparent); background: transparent; color: var(--text); font-weight: 700; font-size: 13.5px;
}
.bx-listen .ic { width: 18px; height: 18px; }
.bx-listen.playing { animation: bxPulse 1s ease-in-out infinite; }
@keyframes bxPulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--tier) 22%, transparent); } }
.bx-opts { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 24px; }
.bx-opt { display: grid; gap: 7px; }
.bx-opt-k { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bx-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.bx-seg-b {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--muted); font-weight: 700; font-size: 13.5px; transition: background .18s, color .18s, box-shadow .18s;
}
.bx-seg-b img { width: 24px; height: 24px; }
.bx-seg-b:hover { color: var(--text); }
.bx-seg-b.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .25), 0 0 0 1px var(--line-2); }
html[data-theme="light"] .bx-seg-b.on { background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }
.bx-rand { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(90deg, #f1f5f9 50%, #1e293b 50%); color: #f97316; font-weight: 900; font-size: 13px; }
.bx-cta .lm-btn { min-width: 270px; }
.bx-dock { margin: 6px 0 34px; }
.bx-dock .dock { margin-top: 66px; }
.bx-tiers { display: grid; gap: 28px; }
.bx-tier-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bx-tier-head i { width: 10px; height: 10px; border-radius: 50%; background: var(--tier); box-shadow: 0 0 12px var(--tier); }
.bx-tier-head b { font-size: 16px; font-weight: 800; }
.bx-tier-head span { color: var(--muted); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.bx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bx-card {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 18px; align-items: center; gap: 14px; padding: 12px 14px 12px 12px;
  border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-align: start; cursor: pointer; font: inherit;
  box-shadow: var(--card-shadow); transition: transform .3s var(--ease-out), border-color .2s, box-shadow .3s, background .2s;
}
.bx-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tier) 45%, var(--line)); box-shadow: 0 18px 36px -22px color-mix(in srgb, var(--tier-2) 85%, transparent); }
.bx-card.on { border-color: var(--tier); background: color-mix(in srgb, var(--tier) 7%, var(--surface)); box-shadow: inset 0 0 0 1px var(--tier), 0 18px 36px -24px var(--tier-2); }
.bx-card-ava { width: 64px !important; height: 64px !important; border-radius: 18px !important; }
.bx-card.locked .bx-card-ava { filter: saturate(.6); }
.bx-card-tx { min-width: 0; }
.bx-card-name { display: flex; align-items: center; gap: 6px; font-size: 16px; white-space: nowrap; overflow: hidden; }
.bx-card-name b { overflow: hidden; text-overflow: ellipsis; }
.bx-card-sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-width: 0; }
.bx-card-sub small { color: var(--muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bx-card-go { display: flex; color: var(--muted); }
.bx-card-go .ic { width: 16px; height: 16px; }
@media (max-width: 1100px) {
  .bx-stage { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 30px; }
  .bx-photo { width: 260px; }
}
@media (max-width: 760px) {
  .bx-stage { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 30px; padding: 26px 16px 24px; border-radius: 24px; }
  .bx-photo { width: min(230px, 64vw); }
  .bx-name, .bx-meta, .bx-opts { justify-content: center; }
  .bx-power, .bx-bio, .bx-quote { margin-inline: auto; }
  .bx-quote { text-align: start; }
  .bx-cta .lm-btn { min-width: 0; width: 100%; }
  .bx-dock .dock { margin-top: 10px; }
  .bx-grid { grid-template-columns: 1fr; }
}

/* o'yin oynasi: bot rasmi va gapi */
.gp-bot { width: 44px !important; height: 44px !important; border-radius: 12px !important; }
.gp-name .bot-title { height: 18px; font-size: 10.5px; padding: 0 5px; }
.gp-rt { height: 20px; padding: 0 7px; font-size: 11.5px; }
.gp-say {
  position: absolute; z-index: 40; top: 10px; left: 10px; display: flex; align-items: center; gap: 10px; max-width: min(80%, 430px);
  padding: 8px 14px 8px 8px; border-radius: 4px 18px 18px 18px; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.35;
  background: rgba(10, 13, 20, .9); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .75);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none;
  opacity: 0; transform: translateY(-8px) scale(.96); transform-origin: top left; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.gp-say.on { opacity: 1; transform: none; }
.gp-say-ava { width: 32px !important; height: 32px !important; }
html[dir="rtl"] .gp-say { left: auto; right: 10px; border-radius: 18px 4px 18px 18px; }

/* =====================================================================
   Admin panel → Botlar
   ===================================================================== */
.ba-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin-bottom: 18px; }
.ba-head h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 22px; }
.ba-head p { margin: 0; max-width: 680px; }
.ba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.ba-card {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow);
  transition: border-color .2s, transform .25s var(--ease-out);
}
.ba-card:hover { border-color: color-mix(in srgb, var(--tier) 40%, var(--line)); transform: translateY(-2px); }
.ba-card.off { opacity: .62; }
.ba-ava { width: 64px !important; height: 64px !important; border-radius: 18px !important; }
.ba-tx { min-width: 0; }
.ba-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 16px; }
.ba-sub { margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.ba-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ba-chips:empty { display: none; }
.ba-acts { display: flex; flex-direction: column; gap: 6px; }
.icon-btn.danger:hover { background: rgba(240, 93, 93, .14); color: var(--danger); }
.ba-off { padding: 26px; }

.modal.ba-modal { width: min(1000px, 100%); max-height: 92vh; }
.ba-edit { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.ba-prev { position: sticky; top: 0; }
.ba-prev-card {
  display: grid; justify-items: center; gap: 8px; padding: 22px 18px; text-align: center; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(320px 220px at 50% 0%, color-mix(in srgb, var(--tier) 22%, transparent), transparent 70%), var(--surface-2);
}
.ba-prev-ava { width: 150px !important; height: 150px !important; border-radius: 30px !important; box-shadow: 0 20px 40px -18px color-mix(in srgb, var(--tier-2) 90%, #000) !important; }
.ba-prev-tier { margin-top: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tier); }
html[data-theme="light"] .ba-prev-tier { color: var(--tier-2); }
.ba-prev-name { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.ba-prev-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ba-prev-eng { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.ba-prev-bio { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ba-prev-quote { margin: 0; padding: 8px 12px; border-radius: 4px 12px 12px 12px; border-left: 3px solid var(--tier); background: color-mix(in srgb, var(--tier) 8%, var(--surface)); font-size: 13px; font-weight: 600; font-style: italic; text-align: start; }
.ba-form { display: grid; gap: 2px; min-width: 0; }
.ba-sec { margin-bottom: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.ba-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ba-sub-h { margin: 10px 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ba-hint { display: block; margin-top: 4px; color: var(--muted-2); font-size: 12px; line-height: 1.4; }
.ba-gal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.ba-gal-i { aspect-ratio: 1; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 14px; background: none; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.ba-gal-i img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ba-gal-i:hover { transform: translateY(-2px); }
.ba-gal-i.on { border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.ba-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba-rating { display: flex; align-items: center; gap: 12px; }
.ba-rnum { flex: none; width: 110px; font-family: var(--display); font-weight: 800; font-size: 17px; }
.ba-range { flex: 1; min-width: 0; accent-color: var(--accent); }
.ba-tier-lbl { flex: none; min-width: 116px; font-weight: 800; font-size: 13px; }
.ba-str { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba-str-o { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ba-str-o:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ba-str-o input { margin-top: 3px; accent-color: var(--accent); }
.ba-str-o b { display: block; font-size: 14px; }
.ba-str-o small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.ba-voice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ba-voice audio { height: 36px; max-width: 260px; }
.ba-sec .toggle-row:last-child { border-bottom: 0; }
@media (max-width: 860px) {
  .ba-edit { grid-template-columns: 1fr; }
  .ba-prev { position: static; }
  .ba-gal { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ba-two, .ba-str { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   O'yin oynasi — panel va boshqaruv (taxta o'zgarmaydi)
   ===================================================================== */
.gp-panel { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--card-shadow); }
html[data-theme="light"] .gp-panel { border: 1px solid var(--line); }
.gp-top { background: rgba(0, 0, 0, .2); }
.gp-top-tab { transition: color .15s, background .15s; }
.gp-tab { transition: color .15s; }
.gp-tab.active { border-bottom-color: var(--accent-2); }
.gp-nb { border-radius: 12px; border: 1px solid var(--line); box-shadow: none; }
.gp-nb:active { transform: translateY(1px); box-shadow: none; }
.gp-nb.gp-play { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -10px var(--accent-glow); }
.gp .clock { border-radius: 12px; }
.gp .clock.black { background: #0c1017; }
.gp-ava { border-radius: 12px; }
.mv.cur { background: var(--accent-soft); border-bottom-color: var(--accent-2); }
html[data-theme="light"] .mv.cur { border-bottom-color: var(--accent); }
.go-card { border-radius: 20px; }

/* profil: faollik xaritasi (Skyline) — eski kalendar o'rnida */
.pf-main > .pf-sky { margin-top: 16px; }
@media (max-width: 1000px) { .pf-sky { order: 7; } }

/* =====================================================================
   O'ynash sahifasi (tanlov)
   ===================================================================== */
.play-layout { gap: 26px; }
.play-panel { padding: 20px; border-radius: 24px; }
.pp-head { margin-bottom: 14px; }
.pp-head h2 { font-size: 24px; letter-spacing: -.03em; }
.play-opt {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 11px 14px 11px 11px; margin-bottom: 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line);
  transition: transform .25s var(--ease-out), border-color .2s, background .2s, box-shadow .25s;
}
.play-opt:hover { transform: translateX(3px); background: var(--surface-3); border-color: var(--line-2); }
html[dir="rtl"] .play-opt:hover { transform: translateX(-3px); }
.play-opt .po-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.play-opt .po-ic .ic { width: 30px; height: 30px; }
.play-opt .po-title { display: block; font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; }
.play-opt .po-sub { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; }
.play-opt.primary {
  background: linear-gradient(120deg, rgba(75, 143, 209, .3), rgba(75, 143, 209, .06)); border-color: rgba(106, 167, 227, .38);
  box-shadow: 0 14px 30px -18px var(--accent-glow);
}
.po-faces { display: flex; align-items: center; }
.po-faces .bot-ava { width: 30px; height: 30px; margin-left: -9px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface-2); }
.po-faces .bot-ava:first-child { margin-left: 0; }
.play-opt:hover .po-faces .bot-ava { box-shadow: 0 0 0 2px var(--surface-3); }
.po-go { display: flex; color: var(--muted); }
.po-go .ic { width: 16px; height: 16px; }

/* =====================================================================
   Darslar markazi
   ===================================================================== */
.learn-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.learn-card {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center; gap: 14px; min-height: 108px; padding: 18px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow);
  transition: transform .3s var(--ease-out), border-color .2s, box-shadow .3s;
}
.learn-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(320px 170px at 0% 0%, color-mix(in srgb, var(--c, #4b8fd1) 17%, transparent), transparent 66%); }
.learn-card:nth-child(7n + 1) { --c: #a78bfa; }
.learn-card:nth-child(7n + 2) { --c: #38bdf8; }
.learn-card:nth-child(7n + 3) { --c: #f43f5e; }
.learn-card:nth-child(7n + 4) { --c: #34d399; }
.learn-card:nth-child(7n + 5) { --c: #94a3b8; }
.learn-card:nth-child(7n + 6) { --c: #facc15; }
.learn-card:nth-child(7n + 7) { --c: #f97316; }
.learn-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 42%, var(--line)); box-shadow: 0 22px 44px -26px color-mix(in srgb, var(--c) 75%, transparent); }
.learn-card .lc-ic {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px;
  background: color-mix(in srgb, var(--c) 13%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}
.learn-card .lc-ic .ic { width: 34px; height: 34px; transition: transform .3s var(--ease-spring); }
.learn-card:hover .lc-ic .ic { transform: scale(1.1) rotate(-5deg); }
.learn-card .b { font-size: 16.5px !important; letter-spacing: -.01em; }
.learn-card .chip.green { background: color-mix(in srgb, var(--c) 16%, transparent); color: color-mix(in srgb, var(--c) 70%, var(--text)); font-variant-numeric: tabular-nums; }
.cch-bot { width: 34px !important; height: 34px !important; }

/* arabcha (o'ngdan chapga): quyosh va siluetlar chap tomonda */
html[dir="rtl"] .lx-sun { right: auto; left: -12%; }
html[dir="rtl"] .lx-haze { background: radial-gradient(70% 55% at 22% 100%, rgba(255, 140, 40, .32), transparent 70%); }
html[dir="rtl"] .lx-pieces { right: auto; left: -3%; }
html[dir="rtl"] .lx-faces { left: auto; right: 26px; }
html[dir="rtl"] .hx-play-art { right: auto; left: -70px; transform: perspective(900px) rotateX(46deg) rotateZ(24deg); }
@media (max-width: 860px) { .gp-bot { width: 38px !important; height: 38px !important; border-radius: 11px !important; } }

/* =====================================================================
   Grafiklar: harakat (motion) — ekranga kirganda o'sib/chizilib chiqadi
   ===================================================================== */
.cx-m .cx-b { transform-box: fill-box; transform-origin: 50% 100%; }
.cx-m:not(.cx-in) .cx-b { transform: scaleY(0); }
.cx-m.cx-in .cx-b { animation: cxGrow .85s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 14ms); }
@keyframes cxGrow { from { transform: scaleY(0); } }
.cx-m:not(.cx-in) .cx-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.cx-m.cx-in .cx-draw { stroke-dasharray: 1; animation: cxDraw 1.5s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes cxDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.cx-m:not(.cx-in) .cx-area { opacity: 0; }
.cx-m.cx-in .cx-area { animation: cxFade 1s .55s both; }
@keyframes cxFade { from { opacity: 0; } }
.cx-m .cx-dot, .cx-m .cx-pc { transform-box: fill-box; transform-origin: center; }
.cx-m:not(.cx-in) .cx-dot, .cx-m:not(.cx-in) .cx-pc { transform: scale(0); }
.cx-m.cx-in .cx-dot { animation: cxPop .45s calc(.7s + var(--i, 0) * 18ms) var(--ease-spring) both; }
.cx-m.cx-in .cx-pc { animation: cxPop .5s calc(var(--i, 0) * 9ms) var(--ease-spring) both; }
@keyframes cxPop { from { transform: scale(0); } }
.cx-m:not(.cx-in) .cx-cell { opacity: 0; }
.cx-m.cx-in .cx-cell { animation: cxFade .5s calc(var(--i, 0) * 12ms) both; }
.cx-m:not(.cx-in) .cx-seg { stroke-dasharray: 0 400 !important; }
.cx-m.cx-in .cx-seg { animation: cxSeg 1.1s calc(var(--i, 0) * 120ms) cubic-bezier(.65, 0, .35, 1) both; }
@keyframes cxSeg { from { stroke-dasharray: 0 400; } }
.cx-m:not(.cx-in) .cx-ring-fg { stroke-dasharray: 0 200 !important; }
.cx-m.cx-in .cx-ring-fg { animation: cxRingFill 1.2s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes cxRingFill { from { stroke-dasharray: 0 200; } }
.cx-m .cx-hb-t i { transform-origin: left center; }
html[dir="rtl"] .cx-m .cx-hb-t i { transform-origin: right center; }
.cx-m:not(.cx-in) .cx-hb-t i { transform: scaleX(0); }
.cx-m.cx-in .cx-hb-t i { animation: cxBarX .9s calc(var(--i, 0) * 60ms) var(--ease-out) both; }
@keyframes cxBarX { from { transform: scaleX(0); } }
.cx-m .cx-radar-a { transform-box: fill-box; transform-origin: center; }
.cx-m:not(.cx-in) .cx-radar-a { transform: scale(.1); opacity: 0; }
.cx-m.cx-in .cx-radar-a { animation: cxRadar 1s var(--ease-spring) both; }
@keyframes cxRadar { from { transform: scale(.1); opacity: 0; } }
.cx-m.cx-static * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .cx-m * { animation: none !important; } }

/* =====================================================================
   O'qituvchi markazi
   ===================================================================== */
.tc-root { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.tc-hero {
  position: relative; overflow: hidden; padding: 26px 28px 18px; border-radius: 26px; border: 1px solid var(--line);
  background: radial-gradient(700px 300px at 0% 0%, rgba(75, 143, 209, .22), transparent 60%), radial-gradient(520px 280px at 100% 100%, rgba(52, 195, 122, .12), transparent 70%), var(--surface);
  box-shadow: var(--card-shadow);
}
.tc-group-hero { background: radial-gradient(700px 300px at 0% 0%, color-mix(in srgb, var(--g) 24%, transparent), transparent 62%), var(--surface); border-top: 3px solid var(--g); }
.tc-hero-top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; }
.tc-eyebrow { display: inline-flex; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.tc-eyebrow .ic, .tc-eyebrow .ic-img { width: 16px !important; height: 16px !important; }
.tc-hero h1 { margin: 6px 0 4px; font-size: 30px; letter-spacing: -.03em; }
.tc-hero p { margin: 0; color: var(--muted); }
.tc-hero-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tc-dock .dock { margin-top: 44px; }
.tc-ini { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); color: #fff; font-family: var(--display); font-weight: 800; font-size: 15px; }
.tc-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.tc-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.tc-seg-b { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 13.5px; padding: 8px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: background .16s, color .16s; }
.tc-seg-b:hover { color: var(--text); }
.tc-seg-b.on { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-2) 40%, transparent); }
.tc-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tc-gsel { width: auto; min-width: 170px; min-height: 42px; }
.tc-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.tc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tc-kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tc-kpi {
  position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 12px; padding: 16px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow);
  transition: transform .3s var(--ease-out), border-color .2s;
}
.tc-kpi:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
.tc-kpi::after { content: ""; position: absolute; right: -34px; top: -34px; width: 110px; height: 110px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); }
.tc-kpi-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); }
.tc-kpi-ic .ic { width: 24px; height: 24px; }
.tc-kpi-tx { min-width: 0; }
.tc-kpi-k { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tc-kpi-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tc-kpi-v { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tc-kpi-row small { color: var(--muted); font-weight: 700; }
.tc-kpi-s { margin-top: 2px; font-size: 12px; color: var(--muted-2); }
.tc-delta { padding: 2px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.tc-delta.up { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.tc-delta.down { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.tc-delta.flat { color: var(--muted); background: var(--surface-2); }
.tc-grid2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tc-grid2.eq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tc-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.tc-card { min-width: 0; border-radius: 22px; }
.tc-card .card-head h3 .ic, .tc-card .card-head h3 .ic-img { width: 22px !important; height: 22px !important; }
.tc-legend-note { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.tc-legend-note i { width: 14px; height: 3px; border-radius: 2px; }
.tc-note { margin-top: 8px; }
.tc-att-list { display: grid; gap: 8px; }
.tc-att-i {
  display: grid; grid-template-columns: 30px 30px minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 9px 10px; color: inherit;
  border-radius: 13px; border: 1px solid var(--line); background: var(--surface-2); transition: transform .25s var(--ease-out), border-color .2s;
}
.tc-att-i:hover { transform: translateX(3px); border-color: var(--line-2); }
.tc-att-ic { display: grid; place-items: center; }
.tc-att-ic .ic { width: 20px; height: 20px; }
.tc-att-tx { display: grid; min-width: 0; }
.tc-att-tx b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-att-tx small { font-size: 12px; color: var(--muted); }
.tc-att-tx small .k-overdue, .tc-att-tx small .k-accuracy { color: var(--danger); }
.tc-att-tx small .k-hints { color: var(--warn); }
.tc-allgood { display: grid; place-items: center; gap: 8px; padding: 34px 10px; color: var(--ok); font-weight: 700; text-align: center; }
.tc-lead { display: grid; gap: 4px; }
.tc-lead-i { display: grid; grid-template-columns: 22px 30px minmax(0, 1fr) auto 96px; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: inherit; transition: background .15s; }
.tc-lead-i:hover { background: var(--hover); }
.tc-lead-n { text-align: center; font-family: var(--display); font-weight: 800; color: var(--muted); }
.tc-lead-n.r1 { color: #f5c451; } .tc-lead-n.r2 { color: #cbd5e1; } .tc-lead-n.r3 { color: #d39b6a; }
.tc-lead-tx { display: grid; min-width: 0; }
.tc-lead-tx b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-lead-bar { display: block; height: 6px; margin-top: 5px; border-radius: 999px; overflow: hidden; background: var(--surface-3); }
.tc-lead-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ok), #8fe0b6); transform-origin: left; animation: cxBarX .9s calc(var(--i, 0) * 70ms) var(--ease-out) both; }
.tc-lead-v { display: grid; justify-items: end; line-height: 1.15; }
.tc-lead-v b { font-family: var(--display); font-size: 16px; }
.tc-lead-v small { color: var(--muted); font-size: 11.5px; }
.tc-lead-i .cx-spark svg { width: 96px; height: 28px; }
.tc-feed { display: grid; }
.tc-feed-i { display: grid; grid-template-columns: 30px minmax(0, 1fr) 10px; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.tc-feed-i:last-child { border-bottom: 0; }
.tc-feed-tx { min-width: 0; font-size: 13.5px; }
.tc-feed-tx small { color: var(--muted); font-size: 12px; }
.tc-feed-tx a { color: var(--accent-2); font-weight: 700; }
.tc-feed-dot { width: 8px; height: 8px; border-radius: 50%; }
.tc-feed-dot.ok { background: var(--ok); } .tc-feed-dot.bad { background: var(--danger); } .tc-feed-dot.game { background: var(--c1); }

.tc-table-card { border-radius: 22px; }
.tc-table-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.tc-search { max-width: 280px; }
.tc-tbl th.tc-th { cursor: pointer; user-select: none; white-space: nowrap; }
.tc-tbl th.tc-th:hover, .tc-tbl th.tc-th.on { color: var(--text); }
.tc-sort { margin-left: 4px; font-size: 9px; }
.tc-tbl td { vertical-align: middle; }
.tc-tr { cursor: pointer; }
.tc-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; }
.tc-who-tx { display: grid; min-width: 0; }
.tc-who-tx b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-who-tx small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.tc-blocked { margin-left: 40px; margin-top: 4px; }
.tc-acc { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.tc-acc .progress { flex: 1; height: 6px; }
.tc-acc .progress > i { box-shadow: none; }
.tc-acc span { font-size: 12.5px; font-weight: 700; min-width: 34px; font-variant-numeric: tabular-nums; }
.tc-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tc-num small { color: var(--muted); }
.tc-od { margin-left: 4px; padding: 0 6px; }
.tc-acts { display: flex; justify-content: flex-end; gap: 4px; }
.tc-acts .icon-btn .ic, .tc-acts .icon-btn .ic-img { width: 18px; height: 18px; }

.tc-pz-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tc-pz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tc-pz {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 18px; color: inherit;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); transition: transform .3s var(--ease-out), border-color .2s, box-shadow .3s;
}
.tc-pz:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.tc-pz-board .mini-board { border-radius: 10px; }
.tc-pz-tx { min-width: 0; }
.tc-pz-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tc-pz-th { margin: 4px 0 8px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-pz-st { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.tc-pz-st .ic, .tc-pz-st .ic-img { width: 14px !important; height: 14px !important; }
.tc-pz-fail { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--danger); }

.tc-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.tc-group { position: relative; overflow: hidden; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--g); box-shadow: var(--card-shadow); }
.tc-group-top { display: flex; align-items: center; gap: 12px; }
.tc-group-ic { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 14px; color: var(--g); background: color-mix(in srgb, var(--g) 18%, var(--surface-2)); }
.tc-group-tx { display: grid; flex: 1; min-width: 0; }
.tc-group-tx b { font-size: 17px; }
.tc-group-tx small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-group-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 10px; }
.tc-group-kpi > div { padding: 8px 4px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.tc-group-kpi b { display: block; font-family: var(--display); font-size: 18px; }
.tc-group-kpi small { font-size: 11px; color: var(--muted); }
.tc-group .cx-spark { display: block; width: 100%; height: 34px; }
.tc-group .cx-spark svg { width: 100%; height: 34px; }
.tc-group-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tc-code { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; border: 1px dashed var(--line-2); background: transparent; color: var(--text); font-size: 13px; cursor: pointer; }
.tc-code b { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; }
.tc-code:hover { border-color: var(--accent-2); }
.tc-code .ic { width: 14px; height: 14px; }

.tc-sh { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 22px 24px; border-radius: 26px; border: 1px solid var(--line); background: radial-gradient(600px 260px at 0% 0%, rgba(75, 143, 209, .2), transparent 62%), var(--surface); box-shadow: var(--card-shadow); }
.tc-back { flex: none; }
.tc-sh-ava { display: grid; justify-items: center; gap: 6px; }
.tc-sh-ava .avatar.lg { width: 84px; height: 84px; border-radius: 22px; font-size: 28px; }
.tc-sh-tx { min-width: 0; flex: 1; }
.tc-sh-tx h1 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.tc-sh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.tc-sh-rt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tc-sh-rt > span { display: grid; min-width: 86px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.tc-sh-rt small { font-size: 11px; font-weight: 700; color: var(--muted); }
.tc-sh-rt b { font-family: var(--display); font-size: 18px; }
.tc-sh-rt b.ok { color: var(--ok); } .tc-sh-rt b.muted { color: var(--muted); }
.tc-sh-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
html[dir="rtl"] .tc-sh-acts { margin-left: 0; margin-right: auto; }
.tc-h2 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.02em; }
.tc-sw { display: grid; gap: 8px; }
.tc-sw-i { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px; border-radius: 12px; color: inherit; background: var(--surface-2); border-left: 3px solid var(--muted-2); transition: transform .25s var(--ease-out); }
.tc-sw-i:hover { transform: translateX(3px); }
.tc-sw-i.ok { border-left-color: var(--ok); } .tc-sw-i.bad { border-left-color: var(--danger); }
.tc-sw-n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-sw-v { font-family: var(--display); font-weight: 800; }
.tc-sw-i small { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }

.tc-att-log { display: grid; gap: 10px; }
.tc-at { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); border-left: 4px solid var(--muted-2); background: var(--surface-2); animation: lxSwap .45s var(--ease-out) both; }
.tc-at.clean { border-left-color: var(--ok); } .tc-at.helped { border-left-color: var(--warn); } .tc-at.failed { border-left-color: var(--danger); }
.tc-at:not(:has(.tc-at-board)) { grid-template-columns: minmax(0, 1fr); }
.tc-at-board .mini-board { border-radius: 8px; }
.tc-at-main { min-width: 0; }
.tc-at-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tc-at-th { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tc-rd { font-family: var(--display); font-weight: 800; font-size: 13px; }
.tc-rd.up { color: var(--ok); } .tc-rd.down { color: var(--danger); }
.tc-at-st { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.tc-at-st .ic, .tc-at-st .ic-img { width: 14px !important; height: 14px !important; }
.tc-tl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tc-tl-i { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 700; background: var(--surface); border: 1px solid var(--line); }
.tc-tl-i small { color: var(--muted-2); font-weight: 600; }
.tc-tl-i.ok b { color: var(--ok); }
.tc-tl-i.bad { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.tc-tl-i.bad b { color: var(--danger); }
.tc-tl-i.hint { color: var(--warn); }
.tc-tl-i.hint .ic { width: 13px; height: 13px; }
.tc-tl-i.show { color: var(--danger); }

.tc-pzd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tc-pzd-board { max-width: 420px; margin: 0 auto; }
.tc-sol-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 420px; margin: 12px auto; }
.tc-sol { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tc-sol-m { padding: 5px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer; }
.tc-sol-m small { margin-right: 4px; color: var(--muted); }
.tc-sol-m.opp { opacity: .7; }
.tc-sol-m.on { background: var(--accent-soft); border-color: var(--accent); opacity: 1; }
.tc-wrongs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.tc-wrongs > div { width: 100%; }
.tc-menu { display: grid; gap: 6px; }
.tc-menu-i { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 700; text-align: start; cursor: pointer; }
.tc-menu-i:hover { background: var(--surface-3); }
.tc-menu-i .ic { width: 22px; height: 22px; }
.tc-pick { display: grid; gap: 6px; max-height: 50vh; overflow: auto; margin: 10px 0; }
.tc-pick-i { display: grid; grid-template-columns: 30px minmax(0, 1fr) 20px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); text-align: start; cursor: pointer; }
.tc-pick-i small { display: block; font-size: 12px; color: var(--muted); }
.tc-pick-i.on { border-color: var(--accent); background: var(--accent-soft); }
.tc-pick-ck { color: var(--accent-2); }
.tc-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-color { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.tc-color.on { border-color: var(--text); }
.tc-cred-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.tc-cred-box > div { padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.tc-cred-box small { display: block; color: var(--muted); }
.tc-cred-box b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; }
.tc-err { min-height: 18px; color: var(--danger); font-weight: 700; font-size: 13px; }
.tc-off { padding: 20px; }
@media (max-width: 1100px) {
  .tc-kpis, .tc-kpis.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-grid2, .tc-grid2.eq { grid-template-columns: 1fr; }
  .tc-grid3 { grid-template-columns: 1fr 1fr; }
  .tc-pzd { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tc-grid3 { grid-template-columns: 1fr; }
  .tc-hero, .tc-sh { padding: 18px 16px; border-radius: 22px; }
  .tc-hero h1, .tc-sh-tx h1 { font-size: 23px; }
  /* sarlavha: orqaga · avatar · ism bir qatorda, reytinglar va tugmalar — to'liq kenglikda */
  .tc-sh { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px 12px; }
  .tc-sh-tx { display: contents; }
  .tc-sh > .tc-back { grid-area: 1 / 1; }
  .tc-sh-ava { grid-area: 1 / 2; }
  .tc-sh-ava .avatar.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 20px; }
  .tc-sh-tx h1 { grid-area: 1 / 3; font-size: 21px; line-height: 1.15; }
  .tc-sh-meta { grid-column: 1 / -1; margin-top: 0; }
  .tc-sh-rt { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
  .tc-sh-rt > span { min-width: 0; padding: 7px 10px; }
  .tc-sh-acts { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; margin-left: 0; width: 100%; }
  html[dir="rtl"] .tc-sh-acts { margin-right: 0; }
  .tc-at { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
  .tc-lead-i { grid-template-columns: 22px 30px minmax(0, 1fr) auto; }
  .tc-lead-i .cx-spark { display: none; }
  .tc-kpi { padding: 12px; gap: 10px; }
  .tc-kpi-ic { width: 38px; height: 38px; }
  .tc-kpi-v { font-size: 21px; }
  .tc-filters { width: 100%; }
  .tc-gsel { flex: 1; }
  .tc-seg { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tc-seg::-webkit-scrollbar { display: none; }
  .tc-card .card-head { flex-wrap: wrap; }
  .tc-card .card-head .right { max-width: 100%; min-width: 0; }
}

/* =====================================================================
   Ota-ona PIN-kodi (iPhone uslubidagi klaviatura)
   ===================================================================== */
.pin-screen { position: relative; display: grid; place-items: center; min-height: calc(100vh - 140px); padding: 30px 16px; }
.pin-glow {
  position: absolute; inset: 8% 14%; pointer-events: none; filter: blur(34px);
  background: radial-gradient(circle at 45% 35%, rgba(75, 143, 209, .28), transparent 58%), radial-gradient(circle at 62% 72%, rgba(249, 115, 22, .14), transparent 60%);
}
.pin-card {
  position: relative; display: grid; justify-items: center; width: min(370px, 100%); padding: 30px 24px 22px; text-align: center; outline: none;
  border-radius: 32px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-l);
  -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4); animation: modalIn .4s var(--ease-out);
}
.pin-card.shake { animation: pinShake .5s cubic-bezier(.36, .07, .19, .97); }
@keyframes pinShake {
  10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-9px); } 40%, 60% { transform: translateX(9px); }
}
.pin-ic {
  display: grid; place-items: center; width: 78px; height: 78px; margin-bottom: 14px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(75, 143, 209, .28), rgba(167, 139, 250, .22)); border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.pin-ic .ic { width: 42px; height: 42px; }
.pin-title { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.pin-sub { min-height: 20px; margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.pin-dots { display: flex; gap: 18px; margin: 24px 0 8px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--text); opacity: .5; transition: transform .15s var(--ease-spring), background .15s, opacity .15s; }
.pin-dots i.on { background: var(--text); opacity: 1; transform: scale(1.12); }
.pin-msg { min-height: 20px; margin-bottom: 8px; color: var(--danger); font-weight: 700; font-size: 13px; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 22px; }
.pin-key {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--glass-line); background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text);
  font-family: var(--display); font-size: 30px; font-weight: 600; transition: background .12s, transform .08s;
}
.pin-key b { font-weight: 600; }
.pin-key:hover { background: color-mix(in srgb, var(--text) 14%, transparent); }
.pin-key:active { background: color-mix(in srgb, var(--text) 28%, transparent); transform: scale(.94); }
.pin-key:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.pin-key.del { background: transparent; border-color: transparent; }
.pin-card.blocked .pin-key { opacity: .35; pointer-events: none; }
.pin-foot { margin-top: 18px; }
.pin-link { border: 0; background: none; color: var(--accent-2); font-weight: 700; font-size: 14px; cursor: pointer; }
.pin-link:hover { text-decoration: underline; }
.pin-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.pin-bar-ic { display: flex; }
.pin-bar-ic .ic { width: 18px; height: 18px; }
.pin-bar-tx { font-weight: 700; }
.modal.pin-modal { width: min(420px, 100%); }
.pin-modal .m-body { display: grid; place-items: center; }
.pin-modal .pin-card { padding: 4px 0 0; border: 0; box-shadow: none; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 400px) {
  .pin-pad { grid-template-columns: repeat(3, 68px); gap: 12px 18px; }
  .pin-key { width: 68px; height: 68px; font-size: 27px; }
}
.pa-kids .dock { margin: 34px 0 6px; }
/* Dock: ilova ikonkasi (rangli plitka + 3D emoji) */
.app-ic {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, #ffffff 0%), color-mix(in srgb, var(--c) 70%, #000));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.app-ic .ic, .app-ic .ic-img { width: 64% !important; height: 64% !important; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.learn-dock { margin: -4px 0 22px; }
.learn-dock .dock { margin-top: 36px; }

/* =====================================================================
   Mavzuli to'plamlar (pages/collections.js): kitob javoni, mundarija, diagrammalar
   ===================================================================== */
.col-page { --cv: #c0264a; --c1: #9f1239; --c2: #2e0a1c; max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.col-page.eg { --cv: #10a37f; --c1: #0f766e; --c2: #062e2a; }
.col-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
html[data-theme="light"] .col-eyebrow { color: var(--accent-3); }
.col-bar { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.col-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ok), #6ee7a8); transition: width .6s var(--ease-out); }
.col-bar.has-bad i { background: linear-gradient(90deg, var(--ok), var(--warn)); }

/* --- sarlavha: kitob javoni, matn, natijalar --- */
.col-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 330px); align-items: center; gap: 22px 30px;
  padding: 26px 28px; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--card-shadow);
  background: radial-gradient(720px 340px at 0% 0%, color-mix(in srgb, var(--cv) 24%, transparent), transparent 62%),
    radial-gradient(520px 300px at 100% 100%, rgba(245, 196, 81, .09), transparent 70%), var(--surface);
}
.col-hero-tx { display: grid; gap: 10px; min-width: 0; }
.col-hero h1 { margin: 0; font: 800 38px/1.06 var(--display); letter-spacing: -.03em; }
.col-lead { margin: 0; color: var(--muted); max-width: 62ch; }
.col-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.col-stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-size: 13px; color: var(--muted); }
html[data-theme="light"] .col-stat { background: rgba(255, 255, 255, .7); }
.col-stat b { font: 800 15px var(--display); color: var(--text); }
.col-prog { display: flex; align-items: center; gap: 12px; max-width: 460px; font-size: 13px; color: var(--muted); }
.col-prog .col-bar { flex: 1; }
.col-prog b { color: var(--text); font-family: var(--display); font-size: 15px; }
.col-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.col-go { min-height: 46px; padding: 0 24px; gap: 9px; font-size: 15px; border-radius: 12px; }
.col-go .ic { width: 20px; height: 20px; }
.col-next { display: grid; gap: 2px; min-width: 0; flex: 1; font-size: 13px; }
.col-next b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-res { display: grid; gap: 10px; align-self: stretch; align-content: center; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 72%, transparent); }
.col-res-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.col-res .cx-donut-wrap { justify-content: center; }
.col-res .cx-legend.col { min-width: 170px; }

.col-shelf { position: relative; display: flex; align-items: flex-end; gap: 16px; padding: 4px 10px 14px; perspective: 900px; }
.col-shelf::after {
  content: ""; position: absolute; left: -6px; right: -6px; bottom: 0; height: 10px; border-radius: 5px;
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); box-shadow: 0 12px 20px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.col-book {
  --c1: #9f1239; --c2: #2e0a1c;
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px;
  width: 128px; aspect-ratio: 3 / 4.25; padding: 14px 10px 12px 18px; border-radius: 4px 10px 10px 4px; color: #fff; text-align: center;
  background: radial-gradient(120% 70% at 70% 0%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow: inset 7px 0 0 rgba(0, 0, 0, .3), inset 9px 0 10px -6px rgba(255, 255, 255, .24), 0 18px 30px -16px rgba(0, 0, 0, .9);
  transform: rotateY(-18deg) translateY(4px) scale(.9); transform-origin: left bottom; filter: saturate(.7) brightness(.8);
  transition: transform .45s var(--ease-spring), filter .3s;
}
.col-book.eg { --c1: #0f766e; --c2: #062e2a; }
.col-book:hover { transform: rotateY(-8deg) translateY(-2px) scale(.95); filter: none; }
.col-book.on { transform: rotateY(-6deg) translateY(-8px) scale(1); filter: none; }
.col-book.on::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: -14px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c1) 80%, transparent), transparent); filter: blur(4px); }
.col-book-foil { position: absolute; inset: 7px 6px 7px 14px; border: 1px solid rgba(245, 196, 81, .55); border-radius: 2px 6px 6px 2px; pointer-events: none; }
.col-book-top { font: 700 8.5px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: rgba(245, 196, 81, .85); }
.col-book-emb { display: flex; align-items: flex-end; justify-content: center; height: 46%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.col-book-emb img { height: 100%; width: auto; }
.col-book.eg .col-book-emb img + img { height: 56%; margin-inline-start: -14%; }
.col-book-t { font: 800 15px/1.1 Georgia, "Times New Roman", serif; letter-spacing: .02em; color: #f8e3a8; text-shadow: 0 1px 0 rgba(0, 0, 0, .45); }
.col-book-s { font-size: 9.5px; line-height: 1.25; color: rgba(255, 255, 255, .72); }

/* --- qismlar bo'yicha tez o'tish --- */
.col-jump { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 2px; margin: -8px 0; background: var(--bg); }
.col-jump::-webkit-scrollbar { display: none; }
.col-jump a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 13.5px; font-weight: 700; transition: border-color .2s; }
html[dir="rtl"] .col-jump a { padding: 5px 5px 5px 12px; }
.col-jump a:hover { border-color: var(--line-2); }
.col-jump small { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.col-jump-no { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; font: 800 12px Georgia, serif; color: #f8e3a8; background: linear-gradient(150deg, var(--c1), var(--c2)); }

/* --- qism va mundarija --- */
.col-part { display: grid; gap: 12px; scroll-margin-top: 64px; }
.col-part.flash .col-part-h { animation: colFlash 1.1s ease; }
@keyframes colFlash { 30% { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); } }
.col-part-h { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(140px, 220px); align-items: center; gap: 16px; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.col-part-no {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; font: 800 21px Georgia, serif; color: #f8e3a8;
  background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: inset 0 0 0 1px rgba(245, 196, 81, .45), 0 10px 20px -12px rgba(0, 0, 0, .8);
}
.col-part-tx { min-width: 0; }
.col-part-tx h2 { margin: 2px 0 3px; font: 800 21px/1.2 var(--display); letter-spacing: -.01em; }
.col-part-tx p { margin: 0; font-size: 13.5px; color: var(--muted); }
.col-part-p { display: grid; gap: 7px; font-size: 13px; color: var(--muted); text-align: end; }
.col-part-p b { color: var(--text); font: 800 17px var(--display); }
.col-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.col-row {
  position: relative; display: grid; grid-template-columns: 30px 58px minmax(0, 1fr) auto; grid-template-areas: "no ic tx st" "no ic meta st";
  align-items: center; gap: 5px 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  transition: transform .25s var(--ease-out), border-color .2s, box-shadow .25s;
}
.col-row:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow); }
.col-row.full { border-color: color-mix(in srgb, var(--ok) 32%, var(--line)); }
.col-row.next { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); }
.col-row-no { grid-area: no; font: 800 21px Georgia, "Times New Roman", serif; color: var(--muted-2); text-align: center; font-variant-numeric: lining-nums; }
.col-row-ic { grid-area: ic; display: grid; place-items: center; width: 58px; height: 50px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.col-row-ic > img { width: 32px; height: 32px; }
.col-row-tx { grid-area: tx; display: grid; gap: 2px; min-width: 0; }
.col-row-tx b { font-size: 15px; line-height: 1.25; }
.col-row-tx span { font-size: 12.5px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.col-row-meta { grid-area: meta; display: flex; align-items: center; gap: 10px; min-width: 0; }
.col-row-meta .col-bar { flex: 1; height: 5px; }
.col-chip { flex: none; direction: ltr; unicode-bidi: isolate; font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 2px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-row-st { grid-area: st; font: 800 13px var(--display); color: var(--muted); font-variant-numeric: tabular-nums; }
.col-row-st.ok { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.col-row-st.ok .ic { width: 16px; height: 16px; }
.col-tag { position: absolute; top: -9px; inset-inline-end: 14px; padding: 2px 9px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; }

/* bob ikonkalari: qurbonlik (dona + olov) va material nisbati (oqlar | qoralar) */
.col-ic-sac { position: relative; display: inline-grid; place-items: center; }
.col-ic-sac img { width: 32px; height: 32px; }
.col-ic-sac i { position: absolute; right: -8px; bottom: -6px; }
.col-ic-sac i .ic, .col-ic-sac i .ic-img { width: 18px !important; height: 18px !important; }
.col-mat {
  display: inline-flex; align-items: center; direction: ltr; padding: 3px 6px; border-radius: 10px;
  background: linear-gradient(180deg, #f1f4f6, #d3dbe1); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 3px 8px -4px rgba(0, 0, 0, .6);
}
.col-mat-s { display: inline-flex; align-items: center; }
.col-mat-p { display: inline-grid; place-items: center; }
.col-mat-p img { width: 19px; height: 19px; }
.col-mat-s .col-mat-p + .col-mat-p { margin-left: -6px; }
.col-mat-vs { width: 1.5px; height: 18px; margin: 0 4px; border-radius: 1px; background: rgba(15, 23, 42, .3); transform: rotate(18deg); }
.col-mat-p.sq { padding: 1px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.col-mat-p.sq + .col-mat-p.sq { margin-left: 2px; }
.col-mat-p.sq.l { background: #dee3e6; }
.col-mat-p.sq.d { background: #4a7fa5; }
.col-page.eg .col-row { grid-template-columns: 30px 80px minmax(0, 1fr) auto; }
.col-page.eg .col-row-ic { width: 80px; }

/* --- bob sahifasi --- */
.col-ch-hero {
  position: relative; overflow: hidden; display: grid; gap: 14px; padding: 18px 24px 20px; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--card-shadow);
  background: radial-gradient(640px 280px at 0% 0%, color-mix(in srgb, var(--cv) 22%, transparent), transparent 62%), var(--surface);
}
.col-crumb { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 13px; font-weight: 700; color: var(--muted); }
.col-crumb:hover { color: var(--text); }
.col-crumb .ic { width: 16px; height: 16px; }
html[dir="rtl"] .col-crumb .ic, html[dir="rtl"] .col-ch-nb .ic { transform: scaleX(-1); }
.col-ch-top { display: flex; align-items: center; gap: 18px; min-width: 0; }
.col-ch-ic { display: grid; place-items: center; flex: none; min-width: 76px; height: 76px; padding: 0 10px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.col-ch-ic > img { width: 48px; height: 48px; }
.col-ch-ic .col-ic-sac img { width: 46px; height: 46px; }
.col-ch-ic .col-mat-p img { width: 25px; height: 25px; }
.col-ch-ic .col-mat-s .col-mat-p + .col-mat-p { margin-left: -9px; }
.col-ch-tx { min-width: 0; }
.col-ch-tx h1 { margin: 4px 0 3px; font: 800 30px/1.1 var(--display); letter-spacing: -.02em; }
.col-ch-tx p { margin: 0; color: var(--muted); }
.col-ch-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.col-ch-prog { display: flex; align-items: center; gap: 10px; flex: 1 1 200px; max-width: 340px; font-size: 13px; color: var(--muted); }
.col-ch-prog .col-bar { flex: 1; }
.col-ch-prog b { color: var(--text); font: 800 15px var(--display); }
.col-rcs { display: flex; flex-wrap: wrap; gap: 8px; }
.col-rc { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.col-rc i { width: 8px; height: 8px; border-radius: 50%; }
.col-rc.ok i { background: var(--ok); }
.col-rc.warn i { background: var(--warn); }
.col-rc.bad i { background: var(--danger); }
.col-rc b { color: var(--text); font-variant-numeric: tabular-nums; }
.col-ch-bar .col-go { margin-inline-start: auto; }

.col-grid-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.col-grid-h h2 { margin: 0; font: 800 20px var(--display); }
.col-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.col-seg button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--muted); font: 700 13.5px var(--sans); padding: 7px 13px; border-radius: 10px; cursor: pointer; transition: background .16s, color .16s; }
.col-seg button small { font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.col-seg button:hover { color: var(--text); }
.col-seg button.on { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-2) 40%, transparent); }
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; }
.col-dg {
  position: relative; display: grid; gap: 8px; padding: 10px 10px 9px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  transition: transform .25s var(--ease-out), border-color .2s, box-shadow .25s;
}
.col-dg:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.col-dg.st1 { border-color: color-mix(in srgb, var(--ok) 38%, var(--line)); }
.col-dg.st2 { border-color: color-mix(in srgb, var(--warn) 38%, var(--line)); }
.col-dg.st3 { border-color: color-mix(in srgb, var(--danger) 38%, var(--line)); }
.col-dg-head { display: flex; align-items: center; justify-content: space-between; min-height: 22px; padding: 0 2px; }
.col-dg-n { font: 800 18px Georgia, "Times New Roman", serif; font-variant-numeric: lining-nums; }
.col-dg-st { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.col-dg-st .ic { width: 13px; height: 13px; }
.col-dg.st1 .col-dg-st { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.col-dg.st2 .col-dg-st { background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn); }
.col-dg.st3 .col-dg-st { background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); }
.col-dg-board {
  aspect-ratio: 1; border-radius: 7px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 8px 18px -12px rgba(0, 0, 0, .8);
  background: repeating-conic-gradient(var(--board-dark, #4a7fa5) 0 25%, var(--board-light, #dee3e6) 0 50%) 0 0 / 25% 25%; opacity: .96;
}
.col-dg-board .mini-board { border-radius: 0; animation: colFade .35s ease both; }
@keyframes colFade { from { opacity: 0; } }
.col-dg .mini-board > .lm { box-shadow: inset 0 0 0 999px rgba(255, 213, 79, .42); }
.col-dg-cap { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 0; padding: 0 2px; }
.col-dg-cap span { flex: 1; min-width: 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-dg-cap small { flex: none; font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.col-side { width: 11px; height: 11px; border-radius: 50%; flex: none; border: 1.5px solid var(--muted-2); }
.col-side.w { background: #fff; }
.col-side.b { background: #1a1a1a; }
.col-empty { grid-column: 1 / -1; padding: 34px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: 16px; }
.col-ch-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.col-ch-nb { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, transform .25s var(--ease-out); }
.col-ch-nb:hover { border-color: var(--line-2); transform: translateY(-2px); }
.col-ch-nb.nx { justify-content: flex-end; text-align: end; }
.col-ch-nb > span:not([class]) { display: grid; gap: 1px; min-width: 0; }
.col-ch-nb small { font-size: 12px; color: var(--muted); }
.col-ch-nb b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-ch-nb .ic { width: 20px; height: 20px; flex: none; }

/* --- pastki qism: nazariya havolasi va manba --- */
.col-foot { display: grid; gap: 12px; }
.col-theory {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; color: var(--text); border: 1px solid var(--line);
  background: linear-gradient(100deg, color-mix(in srgb, var(--cv) 14%, var(--surface)), var(--surface) 70%); transition: border-color .2s, transform .25s var(--ease-out);
}
.col-theory:hover { border-color: var(--line-2); transform: translateY(-2px); }
.col-theory-ic img { width: 40px; height: 40px; display: block; }
.col-theory > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.col-theory .ic { width: 20px; height: 20px; }
html[dir="rtl"] .col-theory .ic { transform: scaleX(-1); }
.col-src { margin: 0; text-align: center; }

/* masalalar katalogidagi kartochkalar */
.pzt-col .pzt-ic { border-radius: 14px; padding: 9px; background: linear-gradient(150deg, #9f1239, #2e0a1c); box-shadow: inset 0 0 0 1px rgba(245, 196, 81, .45); }
.pzt-col.eg .pzt-ic { background: linear-gradient(150deg, #0f766e, #062e2a); }

@media (max-width: 1180px) {
  .col-hero { grid-template-columns: auto minmax(0, 1fr); }
  .col-res { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .col-toc { grid-template-columns: minmax(0, 1fr); }
  .col-part-h { grid-template-columns: auto minmax(0, 1fr); }
  .col-part-p { grid-column: 1 / -1; text-align: start; }
}
@media (max-width: 680px) {
  .col-hero { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; border-radius: 22px; }
  .col-shelf { justify-content: center; }
  .col-book { width: 112px; }
  .col-hero h1 { font-size: 30px; }
  .col-go { flex: 1 1 100%; justify-content: center; }
  .col-ch-hero { padding: 16px; }
  .col-ch-top { align-items: flex-start; gap: 14px; }
  .col-ch-ic { min-width: 58px; height: 58px; padding: 0 6px; border-radius: 17px; }
  .col-ch-ic > img { width: 38px; height: 38px; }
  .col-ch-ic .col-mat-p img { width: 19px; height: 19px; }
  .col-ch-tx h1 { font-size: 23px; }
  .col-ch-bar .col-go { margin-inline-start: 0; }
  .col-grid-h { flex-direction: column; align-items: stretch; }
  .col-seg { display: flex; }
  .col-seg button { flex: 1 1 0; min-width: 0; justify-content: center; padding: 7px 6px; font-size: 13px; gap: 5px; }
  .col-rcs { gap: 6px; }
  .col-rc { padding: 3px 8px; font-size: 12px; }
  .col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .col-dg { padding: 8px 8px 7px; border-radius: 14px; }
  .col-dg-cap small { display: none; }
  .col-row { grid-template-columns: 24px 50px minmax(0, 1fr) auto; gap: 4px 10px; padding: 11px 12px; }
  .col-row-ic { width: 50px; height: 44px; }
  .col-page.eg .col-row { grid-template-columns: 24px 74px minmax(0, 1fr) auto; }
  .col-page.eg .col-row-ic { width: 74px; }
  .col-row-ic .col-mat-p img { width: 17px; height: 17px; }
  .col-row-ic > img { width: 28px; height: 28px; }
  .col-ch-nav { grid-template-columns: minmax(0, 1fr); }
  .col-part-no { width: 46px; height: 46px; font-size: 18px; }
}
.tc-pz-list { display: grid; gap: 14px; }
.tc-more { justify-self: center; min-width: 240px; }

/* ============ Android ilova (Google Play) va PWA — static/js/pwa.js ============ */
/* Ilova ichida xarid yo'q: Premium sotib olish tugmalari yashiriladi (Premium sahifasi faqat holatni ko'rsatadi) */
html.c64-app a.premium-btn[href="#/premium"],
html.c64-app a.premium-cta[href="#/premium"] { display: none !important; }
html.c64-app .pr-info { grid-template-columns: minmax(0, 1fr); }
.pr-app-note { color: var(--muted); font-weight: 600; font-size: 14px; max-width: 520px; margin-left: auto; margin-right: auto; }
/* O'yin sahifalarida "tortib yangilash" o'chiq — partiya o'rtasida sahifa tasodifan yangilanib ketmasin */
html:has(> body.game-view), body.game-view { overscroll-behavior-y: none; }
/* Internet uzilganda yuqorida doimiy yozuv */
.net-off {
  position: fixed; z-index: 10000; left: 50%; top: calc(8px + env(safe-area-inset-top)); transform: translateX(-50%);
  max-width: calc(100vw - 24px); padding: 8px 14px; border-radius: 999px; background: #b45309; color: #fff;
  font-size: 13px; font-weight: 700; text-align: center; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .6); pointer-events: none;
}
/* Sozlamalar → Hisob: huquqiy havolalar va hisobni o'chirish */
.acc-legal, .acc-danger { margin-top: 18px; }
.acc-danger { border-color: rgba(220, 38, 38, .35); }
.acc-danger p { margin: 6px 0 12px; }
.acc-del p { margin: 0 0 12px; }
.acc-del-err { min-height: 18px; color: var(--danger); font-weight: 700; }
.lx-foot-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ================= Tahlil taxtasi 2.0 — chess.com "Analysis" kabi bosh menyu + Stockfish 19 ================= */
.an-head { position: relative; }
.an-back {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer;
}
.an-back:hover { background: var(--surface-3); }
.an-back[hidden] { display: none; }
.an-back .ic { width: 18px; height: 18px; }
.an-head-ic .ic-img { width: 26px; height: 26px; }
.an-sf {
  padding: 2px 7px; border-radius: 6px; font: 800 11px/1.4 var(--display); letter-spacing: .04em;
  color: #fff; background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 4px 12px -4px rgba(79, 70, 229, .7);
}
.an-home { padding: 12px 12px 16px; gap: 12px; }
.an-home > * { flex: none; }

/* PGN / FEN joylash */
.an-paste-box { display: grid; gap: 10px; }
.an-paste-row { position: relative; }
.an-paste {
  width: 100%; min-height: 50px; resize: none; padding: 14px 84px 12px 14px; line-height: 1.45;
  font: 600 14px/1.45 var(--sans, inherit); border-radius: 12px; background: var(--input-bg, var(--surface-2));
  transition: min-height .18s;
}
.an-paste.wide { min-height: 190px; font: 500 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; resize: vertical; }
.an-paste-tools { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; }
.an-paste-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 0; display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--muted); transition: background .12s, color .12s, transform .15s;
}
.an-paste-btn:hover { background: var(--surface-3); color: var(--text); }
.an-paste-btn.on { color: var(--accent); transform: rotate(45deg); }
.an-paste-btn .ic { width: 20px; height: 20px; }
.an-load { height: 46px; font-size: 15px; border-radius: 12px; }
.an-load:disabled { opacity: .45; cursor: default; filter: saturate(.6); }

/* menyu kartalari */
.an-items { display: grid; gap: 8px; }
.an-item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 14px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  transition: transform .15s var(--ease-spring, ease), background .15s, border-color .15s, box-shadow .15s;
}
html[dir="rtl"] .an-item { text-align: right; }
.an-item:hover { background: var(--surface-3); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .7); }
.an-item:active { transform: translateY(1px); }
.an-item-ic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; }
.an-item-ic .ic-img, .an-item-ic .ic { width: 38px; height: 38px; }
.an-item-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.an-item-tx b { font: 700 16px/1.25 var(--display); }
.an-item-tx small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.an-item-badge { flex: none; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--accent); color: #fff; }
.an-prev {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px auto 0; padding: 8px 14px; border: 0; border-radius: 10px;
  background: none; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer;
}
.an-prev:hover { color: var(--text); background: var(--surface-2); }
.an-prev .ic { width: 17px; height: 17px; }

/* Stockfish 19 kartasi */
.an-engcard {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; margin-top: 2px;
  background: linear-gradient(135deg, color-mix(in srgb, #6366f1 16%, var(--surface-2)), var(--surface-2));
  border: 1px solid color-mix(in srgb, #6366f1 28%, var(--line));
}
.an-engcard-logo {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; align-content: center; line-height: 1;
  color: #fff; background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .8);
}
.an-engcard-logo b { font: 900 15px/1 var(--display); }
.an-engcard-logo small { font: 800 10px/1.1 var(--display); opacity: .85; }
.an-engcard-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.an-engcard-tx b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-engcard-tx small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ro'yxatlar (o'yinlarim, saqlanganlar) */
.an-list { display: grid; gap: 6px; }
.an-row { display: flex; align-items: stretch; gap: 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.an-row.cur { border-color: var(--accent); }
.an-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none; color: var(--text); cursor: pointer; text-align: left; border-radius: 12px; }
.an-row-main:hover { background: var(--surface-3); }
.an-row-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.an-row-tx b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-row-tx small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-row-ic .ic-img { width: 26px; height: 26px; }
.an-row-act { flex: none; width: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 12px; }
.an-row-act:hover { color: var(--text); background: var(--surface-3); }
.an-row-act.danger:hover { color: var(--danger); }
.an-row-act .ic { width: 18px; height: 18px; }
.an-res { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 900 16px/1 var(--display); background: var(--surface-3); color: var(--muted); }
.an-res.w { background: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--ok); }
.an-res.l { background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger); }
.an-res.d { background: var(--surface-3); color: var(--text); }
.an-pad { padding: 0 6px; }
.an-review-link { margin-left: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; color: var(--accent); }
.an-review-link .ic { width: 14px; height: 14px; }
.an-save { display: grid; gap: 8px; }

/* dvigatel paneli: Stockfish 19 */
.eng-logo { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.eng-logo b { font-size: 14px; white-space: nowrap; }
.eng-kind { padding: 1px 7px; border-radius: 99px; font: 800 11px/1.5 var(--display); background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.eng-kind.max { color: #fff; background: linear-gradient(135deg, #3b82f6, #6366f1); }
.eng-kind.warn { background: color-mix(in srgb, var(--warn, #f0c15c) 25%, transparent); color: var(--warn, #f0c15c); }
.eng-stat { display: inline-flex; align-items: baseline; gap: 3px; font: 800 12.5px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.eng-stat small { font: 600 10.5px/1 var(--sans, inherit); color: var(--muted); }
.eng-gear { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; display: grid; place-items: center; background: none; color: var(--muted); cursor: pointer; }
.eng-gear:hover { background: var(--surface-2); color: var(--text); }
.eng-gear .ic { width: 18px; height: 18px; }
.eng-up { display: grid; gap: 5px; padding: 4px 2px 6px; }
.eng-up-tx { display: grid; gap: 1px; font-size: 12.5px; font-weight: 700; }
.eng-up-tx small { font-weight: 600; color: var(--muted); font-size: 11.5px; }
.eng-boost {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 0 4px; padding: 7px 10px; border-radius: 10px; cursor: pointer;
  border: 1px dashed color-mix(in srgb, #6366f1 55%, var(--line)); background: color-mix(in srgb, #6366f1 10%, transparent);
  color: var(--text); font-weight: 700; font-size: 12.5px;
}
.eng-boost:hover { background: color-mix(in srgb, #6366f1 18%, transparent); }
.eng-boost .ic { width: 16px; height: 16px; color: #f97316; }

/* dvigatel sozlamalari oynasi */
.eng-set { display: grid; gap: 8px; min-width: min(420px, 82vw); }
.eng-set-h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-top: 6px; }
.eng-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.eng-seg-b {
  flex: 1 1 0; min-width: 56px; display: grid; gap: 2px; justify-items: center; padding: 10px 8px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); text-align: center;
}
.eng-seg-b b { font-size: 14.5px; }
.eng-seg-b small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.eng-seg-b.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); box-shadow: 0 0 0 3px var(--accent-soft); }
.eng-set-note { margin: 6px 0 0; line-height: 1.45; }

/* telefon: bosh menyuda sarlavha ko'rinadi, pastki ⏮ ‹ ▶ › ⏭ paneli yo'q */
.gp-actions .an-menu-act { color: var(--accent); }
@media (min-width: 861px) { .gp-actions .an-menu-act { display: none; } }
@media (max-width: 860px) {
  .an-panel.an-menu-on .op-head { display: flex; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .gp.an-menu-on .m-strip { display: none; }
  .an-home { padding: 12px 12px 18px; }
  .an-item { padding: 11px 12px; gap: 12px; }
  .an-item-tx b { font-size: 15px; }
  .eng-logo b { font-size: 13px; }
}

/* chess64 ilovasi: Google orqali kirish (Android'ning o'z oynasi) — Google tugmasi uslubida */
.ld-gbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: min(400px, 100%); height: 46px; padding: 0 18px;
  border-radius: 99px; border: 1px solid #747775; background: #fff; color: #1f1f1f; cursor: pointer;
  font: 600 15px/1 var(--sans, inherit); transition: background .15s, box-shadow .15s;
}
.ld-gbtn:hover { background: #f8faff; box-shadow: 0 1px 3px rgba(60, 64, 67, .3); }
html[data-theme="dark"] .ld-gbtn { background: #131314; color: #e3e3e3; border-color: #8e918f; }
html[data-theme="dark"] .ld-gbtn:hover { background: #1f1f20; }
.ld-gbtn.loading { opacity: .6; pointer-events: none; }
.ld-gbtn-ic { display: grid; width: 20px; height: 20px; }
.ld-gbtn-ic svg { width: 20px; height: 20px; }
/* tor ekranda dvigatel sarlavhasi bir qatorga sig'sin */
.op-eng-head .eng-logo { overflow: hidden; }
.eng-kind { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 430px) {
  .eng-stat.dp small { display: none; }
  .eng-logo b { font-size: 12.5px; }
  .eng-kind { font-size: 10.5px; padding: 1px 6px; }
  .op-eng-head { gap: 6px; }
}

/* ================= 3.0 — strelka yozuvlari (aniq ko'rinadi): dona rasmi + qalin katak nomi ================= */
.board > svg.arrows .arrow-lbl rect { fill: #1d2430; stroke: rgba(255, 255, 255, .92); stroke-width: .035; }
.board > svg.arrows .arrow-lbl.book rect { fill: #6b4b2a; }
.board > svg.arrows .arrow-lbl.green rect { fill: #14661a; }
.board > svg.arrows .arrow-lbl.engine rect { fill: #1d5c99; }
.board > svg.arrows .arrow-lbl.red rect { fill: #8c1f1f; }
.board > svg.arrows .arrow-lbl text {
  fill: #fff; font-weight: 800; text-anchor: start; letter-spacing: -.005em;
  font-family: "DejaVu Sans", "Segoe UI", Roboto, Arial, sans-serif; font-variant-numeric: tabular-nums;
}
.board > svg.arrows .arrow-lbl svg { overflow: visible; }

/* ================= 3.0 — Tahlil (chess.com Game Review uslubida) ================= */
.an-rv .an-body { padding: 0; gap: 0; }
.an-rv .an-body > * { flex: none; }
.an-rv .an-body > .an-mlist { flex: 1 1 auto; min-height: 120px; overflow-y: auto; }
.an-rv .op-engine { border-bottom: 1px solid var(--line); }
.eng-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; }
.eng-ic .ic-img { width: 20px; height: 20px; }

/* murabbiy: avatar + oq "nutq pufakchasi" (rasm 4 dagidek) */
.an-coach { display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 10px; }
.an-coach-ava {
  flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 30%, var(--surface-2)), var(--surface-2));
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 20px -14px rgba(0, 0, 0, .8);
}
.an-coach-ava .ic-img { width: 54px; height: 54px; }
.an-bubble {
  position: relative; flex: 1; min-width: 0; display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px;
  background: #fff; color: #1f2430; font-size: 14.5px; font-weight: 600; line-height: 1.45;
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, .85);
}
.an-bubble::before { content: ""; position: absolute; left: -8px; top: 22px; border: 8px solid transparent; border-left: 0; border-right-color: #fff; }
html[dir="rtl"] .an-bubble::before { left: auto; right: -8px; border-right: 0; border-left: 8px solid #fff; border-top-color: transparent; border-bottom-color: transparent; }
.an-say-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.an-say-top .cls-ic { flex: none; }
.an-say-h { font-weight: 800; font-size: 15px; line-height: 1.3; font-family: var(--sans), "DejaVu Sans", sans-serif; }
.an-say-top .an-say-h { flex: 0 1 auto; min-width: 0; }
.an-say-top .spacer { flex: 1; }
.an-say-top .op-chip { flex: none; }
.an-bubble .op-chip.w { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.an-bubble .op-chip.b { background: #3a3f4a; }
.an-say-tx { color: #3b4250; font-family: var(--sans), "DejaVu Sans", sans-serif; }
.an-say-tx.muted { color: #6b7280; display: flex; align-items: center; gap: 6px; }
.an-say-tip { display: flex; gap: 6px; align-items: flex-start; padding: 7px 9px; border-radius: 10px; background: #fff7e0; color: #7a5a00; font-size: 13.5px; }
.an-say-best {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 10px; border-radius: 10px;
  background: #eef8ea; color: #1f5f17; font-weight: 700; font-family: var(--sans), "DejaVu Sans", sans-serif;
}
.an-say-best .cls-ic { flex: none; }
.an-say-line { flex-basis: 100%; font-size: 13px; font-weight: 600; color: #3f6b37; }
.an-say-play {
  display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 5px 10px; border-radius: 99px; border: 0; cursor: pointer;
  background: #2f8f2a; color: #fff; font: 700 12.5px/1 var(--sans, inherit);
}
.an-say-play .ic { width: 14px; height: 14px; }
.an-say-meta { font-size: 12.5px; color: #6b7280; }
.an-variant {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; margin: -2px -4px 2px; border-radius: 10px;
  background: #eef3ff; color: #2d4f9c; font-size: 12.5px; font-weight: 800;
}
.an-variant-btn {
  display: inline-flex; align-items: center; gap: 4px; margin-left: auto; border: 0; border-radius: 99px; padding: 4px 10px; cursor: pointer;
  background: #2f6fdb; color: #fff; font: 800 12px/1.2 var(--sans, inherit);
}
.an-variant-btn .ic { width: 14px; height: 14px; }
.an-prog { display: grid; gap: 6px; margin-top: 2px; }
.an-prog-tx { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4b5563; }
.an-bubble .rv-prog { background: #e5e7eb; height: 8px; }
.an-bubble .rv-prog i { background: linear-gradient(90deg, #4b8fd1, #34c37a); }
.an-btns { padding: 0 14px 10px; }
.an-btns .rv-btn { border-radius: 12px; font-size: 14px; }
.an-btns .rv-btn.primary { background: linear-gradient(180deg, #5aa65a, #3f8c3f); border-color: transparent; color: #fff; }
.an-opening-row {
  display: flex; align-items: center; gap: 8px; margin: 0 14px 6px; padding: 7px 10px; border-radius: 10px;
  background: var(--surface-2); font-size: 13px; font-weight: 700; min-width: 0;
}
.an-op-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-mlist { border-top: 1px solid var(--line); }
.an-mlist .mv { display: inline-flex; align-items: center; gap: 4px; }
.an-mlist .mv-cls { display: inline-grid; }
.mv.c-brilliant { color: #26c2bd; } .mv.c-great { color: #6ea8dd; } .mv.c-inaccuracy { color: #f0c15c; }
.mv.c-mistake { color: #f0a04b; } .mv.c-blunder, .mv.c-miss { color: #ff7a66; }
html[data-theme="light"] .mv.c-brilliant { color: #138b87; } html[data-theme="light"] .mv.c-great { color: #3a6f9e; }
html[data-theme="light"] .mv.c-inaccuracy { color: #a87a00; } html[data-theme="light"] .mv.c-mistake { color: #c66a12; }
html[data-theme="light"] .mv.c-blunder, html[data-theme="light"] .mv.c-miss { color: #c62f22; }
.an-result { padding: 10px 16px; text-align: center; font: 800 15px/1 var(--display); color: var(--muted); }
.an-foot { flex: none; display: grid; gap: 10px; padding: 10px 12px 10px; border-top: 1px solid var(--line); }
.an-foot .rv-graph { border-radius: 10px; min-height: 0; }
.an-foot .rv-graph-svg { height: 72px; }
.an-sum-btn { gap: 8px; border-radius: 12px; }
.an-sum-btn .ic { width: 17px; height: 17px; }
.an-sum-btn.on { box-shadow: inset 0 0 0 2px var(--accent-2); }

/* xulosa */
.an-sum { display: grid; gap: 12px; padding: 0 14px 14px; }
.an-sum > .an-coach { padding: 14px 0 0; }
.an-pls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; }
.an-pl {
  display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border-radius: 16px; text-align: center; min-width: 0;
  background: var(--surface-2); border: 1px solid var(--line);
}
.an-pl.me { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); }
.an-pl-ava { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #e9edf3; }
.an-pl.b .an-pl-ava { background: #2a303b; }
.an-pl-ava svg { width: 36px; height: 36px; }
.an-pl-name { max-width: 100%; font-weight: 800; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-pl-acc { font: 900 30px/1 var(--display); letter-spacing: -.02em; }
.an-pl.w .an-pl-acc { color: var(--text); }
.an-pl-sub { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.an-pl-rt { display: flex; gap: 6px; align-items: baseline; margin-top: 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.an-pl-rt b { font: 800 15px/1 var(--display); color: var(--text); }
.an-pl-vs { align-self: center; font: 800 12px/1 var(--display); color: var(--muted-2); text-transform: uppercase; }
.an-cls { display: grid; gap: 2px; padding: 6px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.an-cls-row { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; min-height: 34px; padding: 0 6px; border-radius: 10px; }
.an-cls-row:nth-child(odd) { background: rgba(255, 255, 255, .025); }
html[data-theme="light"] .an-cls-row:nth-child(odd) { background: rgba(15, 23, 42, .025); }
.an-cls-n { text-align: center; font: 800 16px/1 var(--display); color: var(--muted-2); }
.an-cls-mid { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.an-cls-mid span:last-child { min-width: 92px; }
.an-ph { display: grid; gap: 4px; padding: 8px 10px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.an-ph-row { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; justify-items: center; min-height: 34px; font-weight: 700; font-size: 13.5px; }
.an-keys-h { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-top: 2px; }
.an-keys { display: flex; flex-wrap: wrap; gap: 6px; }
.an-key {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 7px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 800 13px/1 var(--sans, inherit);
  font-family: var(--sans), "DejaVu Sans", sans-serif;
}
.an-key:hover { background: var(--surface-3); }
.an-start { gap: 10px; border-radius: 14px; min-height: 52px; font-size: 16px; }
.an-start .cls-ic circle { fill: #fff; }
.an-start .cls-ic path { fill: #3f8c3f; }
.an-approx { text-align: center; }
.an-io-modal .op-io { padding: 0; }
.an-engcard-logo .ic-img { width: 30px; height: 30px; }
.an-engcard-logo { background: linear-gradient(135deg, #3b82f6, #8b5cf6); }

@media (min-width: 861px) {
  .an-rv { overflow: hidden; }
  .an-rv .an-body { overflow-y: auto; }
}
@media (max-width: 860px) {
  .an-rv .op-head { display: none; }
  .an-rv .an-body { overflow: visible; }
  .an-rv .an-mlist { display: none; }               /* telefonda yurishlar — taxta ostidagi gorizontal qatorda */
  .an-coach { padding: 12px 10px 8px; gap: 10px; }
  .an-coach-ava { width: 52px; height: 52px; border-radius: 14px; }
  .an-coach-ava .ic-img { width: 44px; height: 44px; }
  .an-bubble { font-size: 14px; padding: 10px 12px; }
  .an-btns { padding: 0 10px 10px; }
  .an-opening-row { margin: 0 10px 8px; }
  .an-foot { border-top: 1px solid var(--line); padding: 10px 10px 12px; }
  .an-sum { padding: 0 10px 12px; }
  .an-pl-acc { font-size: 26px; }
}
@media (max-width: 380px) {
  .an-cls-mid span:last-child { min-width: 78px; }
  .an-btns .rv-btn { font-size: 12.5px; }
}

/* ================= 3.0 — Sozlamalar → Ovozlar ================= */
.snd-box { display: grid; gap: 18px; margin-top: 14px; transition: opacity .2s; }
.snd-box.off { opacity: .45; pointer-events: none; }
.snd-sec { display: grid; gap: 10px; }
.snd-h { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.snd-vol-v { font: 800 15px/1 var(--display); color: var(--text); letter-spacing: 0; }
.snd-vol { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.snd-vol .ic { width: 20px; height: 20px; }
.snd-range, .bs-range {
  flex: 1; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 99px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) 0 var(--p, 80%), var(--surface-3) var(--p, 80%) 100%);
}
.bs-range { flex: 0 1 50%; min-width: 120px; background: var(--surface-3); accent-color: var(--accent); }
.snd-range::-webkit-slider-thumb, .bs-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45), 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent);
}
.snd-range::-moz-range-thumb, .bs-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.snd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.snd-card {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; cursor: pointer; text-align: left;
  border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text);
  transition: transform .15s var(--ease-spring, ease), border-color .15s, background .15s, box-shadow .15s;
}
html[dir="rtl"] .snd-card { text-align: right; }
.snd-card:hover { transform: translateY(-1px); background: var(--surface-3); }
.snd-card.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); box-shadow: 0 0 0 3px var(--accent-soft); }
.snd-ic { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-3); }
.snd-ic .ic-img { width: 36px; height: 36px; }
.snd-tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.snd-tx b { font: 800 15px/1.2 var(--display); }
.snd-tx small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.snd-play {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 6px 14px -8px var(--accent-glow, rgba(0, 0, 0, .6));
}
.snd-play .ic { width: 16px; height: 16px; }
.snd-check { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 0 0 3px var(--bg, #0a0d13); }
.snd-check .ic { width: 13px; height: 13px; }
.snd-tries { display: flex; flex-wrap: wrap; gap: 8px; }
.snd-try { gap: 6px; border-radius: 99px; }
.snd-try .ic { width: 15px; height: 15px; }
.bs-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 800; font-size: 14px; color: var(--accent); }
.bs-more .ic { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .snd-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  /* telefonda: murabbiy va tugmalar darhol taxta ostida, dvigatel qatorlari keyin */
  .an-rv .an-body > .an-coach, .an-rv .an-body > .an-sum { order: 1; }
  .an-rv .an-body > .an-btns { order: 2; }
  .an-rv .an-body > .an-opening-row { order: 3; }
  .an-rv .an-body > .op-engine { order: 4; border-top: 1px solid var(--line); }
  .gp.op .an-left { padding: 0 6px; }
}
.an-sum.busy .an-pls, .an-sum.busy .an-cls, .an-sum.busy .an-ph { opacity: .6; transition: opacity .3s; }

/* ================= 3.0 — Shaxmat asoslari: intensiv (vaqt), yordam ================= */
.lb-time { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--text); }
.lb-best { color: var(--muted); }
.lb-time-done { margin-top: 8px; font: 800 18px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.lb-time-done.rec { color: var(--ok); }
.lb-hint .ic-img { width: 18px; height: 18px; }
.lb-timed .lb-info { font-size: 15px; }
@media (max-width: 860px) {
  /* Tahlil bosh menyusi (taxta boshqaruvi yo'q) — pastki asosiy menyu qaytadi */
  body.game-view.an-home-view .m-tabs { display: flex; }
  body.game-view.an-home-view .main { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* Arab tilida (RTL) ham taxta hech qachon ko'zguda aks etmaydi: a1 doim chap pastda, strelkalar donalarga mos */
.board, .mini-board, .preview-board, .bs-preview, .m-strip, .an-mlist .mv-row { direction: ltr; }
