/* ============ Zone Manager — dizayn tizimi v3 ("Zone Manager Desktop", Claude Design) ============
   Lyuks uslub: 6 ta palitra (Platina, Neon lime, Zumrad, Sapfir, Arktika, Lavanda) × tungi / kunduzgi rejim.
   Rang — holat uchun: bo'sh / faol / 5 daq qoldi / vaqt tugadi. Kompyuterda chap panel, telefonda pastki menyu. */

/* ---------------- Shriftlar (lokal — CSP font-src 'self') ---------------- */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url('fonts/material-symbols-outlined.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url('fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------- Mavzular: 6 palitra × 2 rejim ----------------
   <html data-palette="platinum|lime|emerald|sapphire|arctic|lavender" data-mode="dark|light">.
   Selektorlar html'ga bog'lanmagan — profildagi palitra namunalari ham o'z palitrasini shu yerdan oladi. */
:root {
  --r: 20px; --rs: 13px;
  --fd: 'Sora', 'Manrope', system-ui, sans-serif;
  --fb: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --st-free: var(--text3);
  --st-busy: var(--acc);
  --st-ending: var(--warn);
  --st-over: var(--danger);
}
/* Rejimga bog'liq (palitradan mustaqil) tokenlar */
[data-mode="dark"] {
  --hi: rgba(255, 255, 255, .05);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 30px 60px -32px rgba(0, 0, 0, .85);
  --shadowLg: 0 40px 100px rgba(0, 0, 0, .7);
  --overlay: rgba(0, 0, 0, .6);
  --glow: var(--acc);
  --gradText: linear-gradient(100deg, var(--gB) 0%, var(--gA) 25%, var(--acc) 50%, var(--gA) 75%, var(--gB) 100%);
  color-scheme: dark;
}
[data-mode="light"] {
  --hi: rgba(255, 255, 255, .7);
  --shadow: 0 1px 2px rgba(20, 24, 40, .06), 0 8px 24px -8px rgba(20, 24, 40, .12);
  --shadowLg: 0 24px 60px -20px rgba(20, 24, 40, .22);
  --overlay: rgba(20, 24, 40, .28);
  /* Yorug' fonda aksent porlashi ~45% kuchsizroq */
  --glow: color-mix(in srgb, var(--acc) 55%, transparent);
  /* Yorug' fonda och gA o'qilmaydi — shimmer to'q tonlardan */
  --gradText: linear-gradient(100deg, var(--gB) 0%, var(--acc) 25%, var(--acc2) 50%, var(--acc) 75%, var(--gB) 100%);
  /* "Band" holati matn sifatida ham ishlatiladi — yorug' fonda 4.5:1 uchun to'qroq aksent */
  --st-busy: var(--acc2);
  color-scheme: light;
}
[data-palette] { --grad: linear-gradient(180deg, var(--gA), var(--acc) 58%, var(--gB)); }
/* Platina — obsidian va platina */
[data-palette="platinum"][data-mode="dark"] {
  --bg: #09090a; --bg2: #0d0d0f; --surf: #141417; --surf2: #1b1b1f; --surf3: #25252b;
  --line: rgba(220,225,235,.11); --line2: rgba(220,225,235,.24);
  --text: #f2f3f5; --text2: #b4b7bf; --text3: #7a7e88;
  --acc: #d4d9e2; --acc2: #ffffff; --accInk: #111216; --accSoft: rgba(212,217,226,.12);
  --gA: #ffffff; --gB: #8a909c; --warn: #ffb04a; --danger: #ff5a5f;
}
[data-palette="platinum"][data-mode="light"] {
  --bg: #f3f4f6; --bg2: #eceef1; --surf: #fafbfc; --surf2: #ffffff; --surf3: #e4e7ec;
  --line: rgba(20,24,32,.10); --line2: rgba(20,24,32,.20);
  --text: #111318; --text2: #50555f; --text3: #8a8f99;
  --acc: #3d4350; --acc2: #1c2028; --accInk: #ffffff; --accSoft: rgba(61,67,80,.10);
  --gA: #8a909c; --gB: #1c2028; --warn: #d9730f; --danger: #d23b3f;
}
/* Neon lime — qora va neon lime */
[data-palette="lime"][data-mode="dark"] {
  --bg: #070806; --bg2: #0a0c08; --surf: #10130d; --surf2: #161a12; --surf3: #1f2519;
  --line: rgba(198,244,50,.11); --line2: rgba(198,244,50,.24);
  --text: #f1f5e8; --text2: #aeb6a0; --text3: #737b66;
  --acc: #c6f432; --acc2: #e6ff9a; --accInk: #141a00; --accSoft: rgba(198,244,50,.12);
  --gA: #eaffa8; --gB: #7fa10f; --warn: #ffb03a; --danger: #ff5a5a;
}
[data-palette="lime"][data-mode="light"] {
  --bg: #f4f6ee; --bg2: #edf0e4; --surf: #fbfcf7; --surf2: #ffffff; --surf3: #e4e9d6;
  --line: rgba(40,55,10,.11); --line2: rgba(40,55,10,.22);
  --text: #161a0c; --text2: #545c43; --text3: #8b937a;
  --acc: #5f8a00; --acc2: #3f5c00; --accInk: #ffffff; --accSoft: rgba(95,138,0,.12);
  --gA: #a6d62a; --gB: #3f5c00; --warn: #d9730f; --danger: #d23b33;
}
/* Zumrad — chuqur yashil va zumrad */
[data-palette="emerald"][data-mode="dark"] {
  --bg: #03100a; --bg2: #05150d; --surf: #081d13; --surf2: #0c271a; --surf3: #123424;
  --line: rgba(52,209,122,.11); --line2: rgba(52,209,122,.24);
  --text: #e9f7ef; --text2: #9fc2ae; --text3: #628571;
  --acc: #34d17a; --acc2: #b6f5cf; --accInk: #01200f; --accSoft: rgba(52,209,122,.12);
  --gA: #c8ffdc; --gB: #108a47; --warn: #ffb347; --danger: #ff5f6d;
}
[data-palette="emerald"][data-mode="light"] {
  --bg: #eef5f1; --bg2: #e6efe9; --surf: #f8fbf9; --surf2: #ffffff; --surf3: #dde9e2;
  --line: rgba(10,60,35,.10); --line2: rgba(10,60,35,.20);
  --text: #0d1f16; --text2: #46604f; --text3: #83998b;
  --acc: #0f8a4c; --acc2: #0a6337; --accInk: #ffffff; --accSoft: rgba(15,138,76,.10);
  --gA: #3ddc8a; --gB: #0a6337; --warn: #d9730f; --danger: #d6334a;
}
/* Sapfir — tungi ko'k va sapfir */
[data-palette="sapphire"][data-mode="dark"] {
  --bg: #040816; --bg2: #060b1d; --surf: #0a1127; --surf2: #0f1833; --surf3: #172243;
  --line: rgba(111,155,255,.11); --line2: rgba(111,155,255,.24);
  --text: #edf2ff; --text2: #a7b4d6; --text3: #6c7aa0;
  --acc: #6f9bff; --acc2: #c2d4ff; --accInk: #030b24; --accSoft: rgba(111,155,255,.12);
  --gA: #d4e0ff; --gB: #2f55c4; --warn: #ffb347; --danger: #ff5a6e;
}
[data-palette="sapphire"][data-mode="light"] {
  --bg: #eef1f6; --bg2: #e7ebf2; --surf: #f8fafc; --surf2: #ffffff; --surf3: #e3e8f0;
  --line: rgba(30,48,90,.10); --line2: rgba(30,48,90,.20);
  --text: #141b2d; --text2: #4f5b75; --text3: #8490a8;
  --acc: #2f5bd3; --acc2: #1d3f9e; --accInk: #ffffff; --accSoft: rgba(47,91,211,.10);
  --gA: #6f93f0; --gB: #1d3f9e; --warn: #d9730f; --danger: #d6334a;
}
/* Arktika — po'lat va muz */
[data-palette="arctic"][data-mode="dark"] {
  --bg: #060b0f; --bg2: #081016; --surf: #0d171f; --surf2: #121f29; --surf3: #1a2b38;
  --line: rgba(143,232,255,.11); --line2: rgba(143,232,255,.24);
  --text: #eef8fc; --text2: #a4bdc8; --text3: #67808c;
  --acc: #8fe8ff; --acc2: #d6f7ff; --accInk: #02161d; --accSoft: rgba(143,232,255,.12);
  --gA: #e4faff; --gB: #3a9fc0; --warn: #ffb347; --danger: #ff5f6d;
}
[data-palette="arctic"][data-mode="light"] {
  --bg: #edf5f8; --bg2: #e4eff3; --surf: #f7fbfc; --surf2: #ffffff; --surf3: #dae8ee;
  --line: rgba(10,50,70,.10); --line2: rgba(10,50,70,.20);
  --text: #0c1c24; --text2: #445f6b; --text3: #7f98a3;
  --acc: #0a8db5; --acc2: #066887; --accInk: #ffffff; --accSoft: rgba(10,141,181,.10);
  --gA: #5fd0f0; --gB: #066887; --warn: #d9730f; --danger: #d6334a;
}
/* Lavanda — grafit va lavanda */
[data-palette="lavender"][data-mode="dark"] {
  --bg: #0c0c10; --bg2: #101015; --surf: #16161d; --surf2: #1d1d26; --surf3: #282833;
  --line: rgba(185,164,255,.11); --line2: rgba(185,164,255,.24);
  --text: #f3f1fb; --text2: #b7b3c9; --text3: #7c788f;
  --acc: #b9a4ff; --acc2: #e2d9ff; --accInk: #160d33; --accSoft: rgba(185,164,255,.12);
  --gA: #ece6ff; --gB: #6c55c9; --warn: #ffb04a; --danger: #ff5a6e;
}
[data-palette="lavender"][data-mode="light"] {
  --bg: #f2f0f8; --bg2: #ebe8f3; --surf: #faf9fd; --surf2: #ffffff; --surf3: #e3dfee;
  --line: rgba(40,25,90,.10); --line2: rgba(40,25,90,.20);
  --text: #17132a; --text2: #555070; --text3: #8d88a5;
  --acc: #6b4fd8; --acc2: #4b33a8; --accInk: #ffffff; --accSoft: rgba(107,79,216,.10);
  --gA: #a893ff; --gB: #4b33a8; --warn: #d9730f; --danger: #d6334a;
}

/* ---------------- Animatsiyalar ---------------- */
@keyframes zmUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes zmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zmFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes zmPop { 0% { opacity: 0; transform: scale(.88) translateY(12px); } 100% { opacity: 1; transform: none; } }
@keyframes zmPopOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.94); } }
@keyframes zmBreath { 0%, 100% { opacity: .62; } 50% { opacity: 1; } }
@keyframes zmAlarm { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes zmShine { 0% { transform: translateX(-160%) skewX(-20deg); } 55%, 100% { transform: translateX(360%) skewX(-20deg); } }
@keyframes zmShimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes zmSpin { to { transform: rotate(360deg); } }
@keyframes zmFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }
@keyframes zmGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes zmRipple { from { transform: scale(.7); opacity: .9; } to { transform: scale(2.3); opacity: 0; } }
@keyframes zmToast { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes zmToastOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes zmBx { from { left: 0; } to { left: calc(100% - var(--b, 8px)); } }
@keyframes zmRy { 0% { top: 20%; } 12.5% { top: 62%; } 25% { top: 35%; } 37.5% { top: 70%; } 50% { top: 12%; } 62.5% { top: 48%; } 75% { top: 66%; } 87.5% { top: 28%; } 100% { top: 20%; } }
@keyframes zmRl { 0% { top: 20%; } 12.5% { top: 40%; } 25% { top: 35%; } 37.5% { top: 15%; } 50% { top: 12%; } 62.5% { top: 72%; } 75% { top: 66%; } 87.5% { top: 55%; } 100% { top: 20%; } }
@keyframes zmRr { 0% { top: 50%; } 12.5% { top: 62%; } 25% { top: 75%; } 37.5% { top: 70%; } 50% { top: 30%; } 62.5% { top: 48%; } 75% { top: 10%; } 87.5% { top: 28%; } 100% { top: 50%; } }
@keyframes zmRise { from { transform: translateY(100%); } to { transform: none; } }
@keyframes zmDown { from { transform: none; } to { transform: translateY(100%); } }
@keyframes zmSwap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes zmPick { 0% { transform: scaleY(.9); } 60% { transform: scaleY(1.05); } 100% { transform: none; } }
@keyframes zmDot { 0% { box-shadow: 0 0 0 0 var(--pc); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }

/* ---------------- Asos ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; min-height: 100dvh;
  font-family: var(--fb); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .6s ease, color .6s ease;
}
/* Rejim/palitra almashganda — faqat almashtirish paytida (doimiy animatsiyalarga aralashmaydi) */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after {
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease !important;
}
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
input, select { font: inherit; color: inherit; outline: none; }
a { color: var(--acc2); text-decoration: none; }
a:hover { color: var(--acc); }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--acc) 35%, transparent); color: var(--text); }
html { scrollbar-color: var(--line2) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr;
  display: inline-block; width: 1em; overflow: hidden; flex-shrink: 0;
  font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'opsz' 24;
}
body:not(.fonts-loaded) .material-symbols-outlined { color: transparent !important; }
.ms-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 24; }

/* ---------------- Umumiy bo'laklar ---------------- */
.eyebrow {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text3); font-weight: 700; white-space: nowrap;
}
.eyebrow--dot { display: flex; align-items: center; gap: 10px; }
.pulse-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); flex-shrink: 0;
  --pc: color-mix(in srgb, var(--acc) 60%, transparent); animation: zmDot 2s ease-out infinite;
}
.shimmer {
  background-image: var(--gradText); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: zmShimmer 7s linear infinite;
}
.coin {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, var(--gA), var(--acc) 45%, var(--gB));
  color: var(--accInk); font-family: var(--fd); font-weight: 600; font-size: 23px;
  box-shadow: 0 10px 26px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .5);
}
/* 8-shar: tana palitra gradientida (tanga kabi), ustida yaltiroq blik va hajm soyasi */
.coin--eight {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 30% 25%, var(--gA), var(--acc) 45%, var(--gB));
  box-shadow: 0 10px 26px -10px var(--glow), inset -3px -5px 10px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.coin--eight span {
  width: 48%; height: 48%; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, #fff, #efebe3);
  color: #111; font-family: var(--fd); font-weight: 800; font-size: 11px; line-height: 1;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, .25), 0 1px 1px rgba(0, 0, 0, .15);
}
.brand-name { font-weight: 800; font-size: 15.5px; }
.brand-name + .eyebrow { font-size: 10.5px; margin-top: 3px; letter-spacing: .2em; }
.card {
  position: relative;
  background: linear-gradient(180deg, var(--surf2), var(--surf));
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
}
.card--pad { padding: 26px 28px; }
.h2 { font-family: var(--fd); font-weight: 600; font-size: 30px; line-height: 1; white-space: nowrap; letter-spacing: -.01em; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-meta { font-size: 13px; color: var(--text3); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Tugmalar */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 22px; border-radius: var(--rs);
  font-weight: 700; font-size: 14.5px; white-space: nowrap;
  transition: transform .2s, filter .2s, background .2s, border-color .2s, color .2s;
}
.btn .material-symbols-outlined { font-size: 20px; }
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:disabled { opacity: .6; }
.btn--block { display: flex; width: 100%; }
.btn--sm { height: 42px; padding: 0 16px; font-size: 13.5px; }
.btn--lg { height: 54px; font-size: 15px; }
.btn--xl { height: 58px; font-size: 16px; }
.btn--acc {
  background: var(--grad); color: var(--accInk); font-weight: 800;
  box-shadow: 0 18px 40px -18px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .2);
}
.btn--acc:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-1px); }
.btn--head { flex-shrink: 0; }
.shine {
  position: absolute; top: 0; bottom: 0; left: 0; width: 38%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: zmShine 3.8s ease-in-out infinite;
}
.btn--soft { background: var(--accSoft); border: 1px solid var(--line); color: var(--acc2); }
.btn--soft:hover { border-color: var(--line2); }
.btn--ghost { background: var(--surf3); border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--line2); }
.btn--danger { background: var(--danger); color: #fff; font-weight: 800; }
.btn--danger:hover:not(:disabled) { filter: brightness(1.08); }
.btn--danger-soft {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 24%, transparent); color: var(--danger);
}
.btn--danger-soft:hover { background: color-mix(in srgb, var(--danger) 16%, transparent); }
.btn--icon { width: 56px; padding: 0; flex-shrink: 0; }
.link-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--acc2); }
.link-btn:hover { color: var(--text); }
.link-btn .material-symbols-outlined { font-size: 18px; }
.round-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--surf); border: 1px solid var(--line); color: var(--text3);
  transition: border-color .2s, transform .2s, color .2s;
}
.round-btn:hover { border-color: var(--line2); transform: translateY(-1px); }
.round-btn.on { color: var(--acc2); }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 2.5px solid color-mix(in srgb, var(--accInk) 25%, transparent); border-top-color: var(--accInk);
  animation: zmSpin .7s linear infinite;
}

/* ---------------- Kirish ekrani ---------------- */
.view--login {
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(440px, 1fr);
}
.login-art {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100dvh;
  background: radial-gradient(120% 80% at 50% 0%, var(--surf2), var(--bg) 62%);
  border-right: 1px solid var(--line); perspective: 1300px;
}
.lamp-cord { position: absolute; left: 50%; top: 0; width: 1px; height: 16%; background: linear-gradient(180deg, transparent, var(--line2)); }
.lamp-shade {
  position: absolute; left: 50%; top: 16%; width: 240px; height: 46px; margin-left: -120px;
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #2a241c, #0d0b09); box-shadow: inset 0 -2px 0 var(--acc);
}
.lamp-bulb {
  position: absolute; left: 50%; top: calc(16% + 44px); width: 224px; height: 4px; margin-left: -112px; border-radius: 4px;
  background: var(--acc2); box-shadow: 0 0 30px 6px var(--glow), 0 0 90px 24px color-mix(in srgb, var(--glow) 40%, transparent);
}
.lamp-light {
  position: absolute; left: 50%; top: calc(16% + 46px); width: 960px; height: 80%; margin-left: -480px; pointer-events: none;
  background: radial-gradient(ellipse 40% 72% at 50% 0%, color-mix(in srgb, var(--acc) 24%, transparent), transparent 72%);
  animation: zmBreath 6s ease-in-out infinite;
}
.art-stage {
  position: absolute; left: 50%; top: 48%; width: 0; height: 0;
  transform-style: preserve-3d; animation: zmFloat 7s ease-in-out infinite;
}
.art-table {
  position: absolute; left: -300px; top: -160px; width: 600px; height: 320px; transform-style: preserve-3d;
  transform: rotateX(calc(58deg + var(--py, 0deg))) rotateZ(calc(-14deg + var(--px, 0deg)));
  transition: transform .9s var(--ease);
}
.art-shadow { position: absolute; inset: -70px -90px; border-radius: 50%; background: radial-gradient(ellipse at center, var(--overlay), transparent 68%); transform: translateZ(-40px); }
.art-rail { position: absolute; inset: 0; border-radius: 30px; background: linear-gradient(145deg, #7a4f2b, #3d2615 50%, #211308); box-shadow: 0 24px 0 #120a04, inset 0 2px 0 rgba(255, 255, 255, .2), inset 0 0 0 2px rgba(0, 0, 0, .35); }
.art-felt { position: absolute; inset: 30px; border-radius: 8px; background: radial-gradient(ellipse at 50% 38%, #36895f, #1e5a3c 62%, #123826); box-shadow: inset 0 0 44px rgba(0, 0, 0, .6); }
.art-pocket { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #000 58%, #3a2616); }
.art-cue {
  position: absolute; left: 40px; top: 214px; width: 250px; height: 9px; border-radius: 6px;
  background: linear-gradient(90deg, #1c120a, #5b3a1f 40%, #c9a46a 88%, #f5ecd8 94%, #6f8fb0 97%);
  transform: translateZ(22px) rotate(-10deg); box-shadow: 0 18px 14px rgba(0, 0, 0, .45);
}
.art-ball {
  position: absolute; width: 0; height: 0; transform-style: preserve-3d;
  transform: translateZ(15px) rotateZ(calc(14deg - var(--px, 0deg))) rotateX(calc(-58deg - var(--py, 0deg)));
}
.art-ball .ball { position: absolute; left: -15px; top: -30px; width: 30px; height: 30px; }
.ball { display: grid; place-items: center; border-radius: 50%; box-shadow: 0 10px 12px -4px rgba(0, 0, 0, .6); }
.ball--white { background: radial-gradient(circle at 34% 30%, #fff, #e8e2d6 35%, #9c968a 75%, #5d584f); }
.ball--eight { background: radial-gradient(circle at 34% 30%, #5a5a5a, #121212 45%, #000); }
.ball--eight span { width: 13px; height: 13px; border-radius: 50%; background: #f3efe6; color: #000; font-size: 8px; font-weight: 800; line-height: 13px; text-align: center; font-style: normal; }
.ball--acc { background: radial-gradient(circle at 34% 30%, var(--gA), var(--acc) 45%, var(--gB)); box-shadow: 0 10px 12px -4px rgba(0, 0, 0, .6), 0 0 20px -4px var(--glow); }
.ball--red { background: radial-gradient(circle at 34% 30%, #ff9c8a, #c9321f 45%, #6d130a); }
.login-brand { position: absolute; top: 40px; left: 48px; display: flex; align-items: center; gap: 14px; z-index: 2; }
.login-brand .coin { width: 44px; height: 44px; font-size: 24px; }
.login-brand .coin--eight span { font-size: 12px; }
.login-brand .brand-name { font-size: 16px; }
.login-brand .brand-name + .eyebrow { font-size: 11px; }
.login-hero {
  position: absolute; left: clamp(24px, 3.5vw, 48px); right: clamp(24px, 3.5vw, 48px); bottom: clamp(28px, 5vh, 52px); z-index: 2;
  animation: zmUp .9s var(--ease) both .1s;
}
.login-headline { margin-top: 14px; font-family: var(--fd); font-weight: 600; font-size: clamp(34px, 5.4vw, 84px); line-height: .95; letter-spacing: -.02em; }
.login-headline-em { font-style: italic; }
.login-lead { margin-top: 18px; max-width: 460px; font-size: 16px; line-height: 1.6; color: var(--text2); }
.login-side {
  position: relative; display: flex; align-items: center; justify-content: center; padding: 56px;
  background: linear-gradient(180deg, var(--bg2), var(--bg));
}
.login-form { width: 100%; max-width: 400px; animation: zmUp .8s var(--ease) both .2s; }
.login-title { margin-top: 10px; font-family: var(--fd); font-weight: 600; font-size: 52px; line-height: 1; letter-spacing: -.02em; }
.login-sub { margin-top: 10px; color: var(--text2); font-size: 15px; line-height: 1.5; }
.login-fields { margin-top: 34px; display: flex; flex-direction: column; gap: 16px; }
.login-form #login-btn { margin-top: 26px; }
.login-error {
  margin-top: 16px; padding: 12px 14px; border-radius: var(--rs); font-size: 13.5px; font-weight: 600;
  color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 24%, transparent);
}
.divider { margin: 22px 0; display: flex; align-items: center; gap: 14px; color: var(--text3); font-size: 12.5px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.security-footer { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--text3); }
.security-footer .material-symbols-outlined { font-size: 16px; color: var(--acc2); }

/* ---------------- Maydonlar ---------------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field + .field { margin-top: 18px; }
.login-fields .field + .field { margin-top: 0; }
.field label, .field-label { font-size: 13px; font-weight: 600; color: var(--text2); }
.input-wrap { position: relative; display: block; }
.input-icon { position: absolute; left: 16px; top: 18px; color: var(--text3); pointer-events: none; }
.input-wrap input { padding-left: 48px !important; padding-right: 52px !important; background: var(--surf) !important; height: 56px !important; font-size: 15.5px !important; }
.field input, .input {
  width: 100%; height: 54px; padding: 0 18px; border-radius: var(--rs);
  background: var(--bg); border: 1px solid var(--line2); color: var(--text); font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .input::placeholder { color: var(--text3); }
.field input:focus, .input:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--accSoft); }
.field input:disabled { opacity: .6; }
.field input.input-error, .input.input-error { border-color: var(--danger); }
.field-error { font-size: 12.5px; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }
.eye { position: absolute; right: 8px; top: 8px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--text3); }
.eye:hover { color: var(--text); }
.affix { position: relative; }
.affix input { padding-right: 70px; }
.affix-text { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--text3); font-weight: 600; pointer-events: none; }
.input--big { height: 56px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------- Ilova qobig'i ---------------- */
body:not(.in-app) .main { display: none; }
.main { position: relative; min-width: 0; padding: 0 clamp(18px, 3.2vw, 48px) 120px; overflow-x: clip; }
.main-glow {
  position: absolute; top: -220px; right: -160px; width: 760px; height: 620px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 9%, transparent), transparent);
}
.view { position: relative; }
.view:not(.view--login) { max-width: 1680px; }

/* Navigatsiya — kompyuterda chap panel */
.nav {
  position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: 20;
  display: flex; flex-direction: column; padding: 28px 18px 22px; overflow-y: auto;
  background: linear-gradient(180deg, var(--bg2), var(--bg)); border-right: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; }
.nav-list { position: relative; display: flex; flex-direction: column; gap: 4px; margin-top: 36px; }
.nav-indicator {
  --i: 0;  /* faol bo'lim tartib raqami — app.js beradi */
  position: absolute; left: 0; right: 0; top: 0; height: 48px; border-radius: var(--rs); pointer-events: none;
  background: linear-gradient(90deg, var(--accSoft), transparent 92%); border: 1px solid var(--line);
  transform: translateY(calc(var(--i) * 52px));  /* 48px balandlik + 4px oraliq */
  transition: transform .5s var(--spring);
}
.nav-indicator::before {
  content: ''; position: absolute; left: -1px; top: 13px; bottom: 13px; width: 3px; border-radius: 3px;
  background: var(--acc); box-shadow: 0 0 14px 1px var(--glow);
}
.nav-btn {
  position: relative; height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 16px;
  border-radius: var(--rs); font-size: 14.5px; font-weight: 600; text-align: left; color: var(--text2);
  transition: color .25s, background .3s;
}
.nav-btn:hover { color: var(--text); }
.nav-btn .nav-ic { font-size: 22px; }
.nav-btn .nav-label { flex: 1; }
.nav-btn.active { color: var(--acc2); }
.nav-btn.active .nav-ic { font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 24; }
.nav-label--short { display: none; }
.nav-badge {
  min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800; background: var(--accSoft); color: var(--acc2);
}
.nav-spacer { flex: 1; min-height: 20px; }
.nav-live {
  position: relative; overflow: hidden; padding: 18px; border-radius: var(--r); margin-bottom: 14px; flex-shrink: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 13%, var(--surf)), var(--surf) 70%);
  border: 1px solid var(--line2);
}
.nav-live .eyebrow { position: relative; font-size: 10.5px; letter-spacing: .18em; gap: 8px; }
.nav-live-glow {
  position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 30%, transparent), transparent);
  animation: zmBreath 4s ease-in-out infinite;
}
.nav-live-sum { position: relative; margin-top: 10px; font-family: var(--fd); font-weight: 600; font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nav-live-note { position: relative; margin-top: 8px; font-size: 12.5px; color: var(--text2); }
.nav-user { display: flex; align-items: center; gap: 12px; padding: 4px 4px 0; flex-shrink: 0; }
.avatar-ring {
  width: 40px; height: 40px; border-radius: 50%; padding: 2px; flex-shrink: 0;
  background: conic-gradient(from 180deg, var(--gB), var(--gA), var(--acc), var(--gB));
}
.avatar { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--surf2); font-family: var(--fd); font-weight: 600; font-size: 18px; color: var(--acc2); text-transform: uppercase; }
.nav-user-text { flex: 1; min-width: 0; }
.nav-user-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-user-mail { font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-logout { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--text3); transition: background .2s, color .2s; }
.nav-logout:hover { background: var(--surf3); color: var(--danger); }

@media (min-width: 900px) {
  body.in-app #app { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
  .nav { animation: zmFade .6s both; }
}

/* Telefon / planshet — suzuvchi pastki menyu */
@media (max-width: 899px) {
  .nav {
    position: fixed; top: auto; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); height: auto;
    z-index: 30; flex-direction: row; padding: 6px; overflow: visible;
    max-width: 560px; margin: 0 auto;
    border-radius: 24px; border: 1px solid var(--line2);
    background: color-mix(in srgb, var(--surf2) 84%, transparent);
    backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: var(--shadowLg);
    animation: zmUp .5s both;
  }
  .nav-brand, .nav-spacer, .nav-live, .nav-user, .nav-badge { display: none !important; }
  .nav-list { flex-direction: row; gap: 2px; margin: 0; width: 100%; }
  /* Indikator bu yerda yonma-yon suzadi — 5 ta teng tugma, oralig'i 2px */
  .nav-indicator {
    top: 0; bottom: 0; right: auto; height: auto;
    width: calc((100% - 8px) / 5);
    border-radius: 16px; border: none; background: var(--accSoft);
    transform: translateX(calc(var(--i) * (100% + 2px)));
  }
  .nav-indicator::before { display: none; }
  /* Fon endi indikatorda — tugmaning o'zida emas, aks holda sakrab ko'rinadi */
  .nav-btn.active { background: none; }
  .nav-btn {
    flex: 1; min-width: 0; height: auto; flex-direction: column; gap: 4px; padding: 8px 0 7px;
    border-radius: 16px; font-size: 10.5px; font-weight: 700; text-align: center; justify-content: center;
  }
  .nav-btn .nav-label { flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
  .nav-btn.active { background: var(--accSoft); }
  .nav-label--long { display: none; }
  .nav-label--short { display: block; }
}

/* ---------------- Sahifa sarlavhasi ---------------- */
.page-head {
  position: sticky; top: 0; z-index: 15;
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px;
  margin: 0 calc(-1 * clamp(18px, 3.2vw, 48px)); padding: 40px clamp(18px, 3.2vw, 48px) 26px;
  background: linear-gradient(180deg, var(--bg) 72%, transparent);
}
.page-title { flex: 1 1 300px; min-width: 0; }
.page-title h1 { margin-top: 10px; font-family: var(--fd); font-weight: 600; font-size: clamp(40px, 4.6vw, 60px); line-height: 1; letter-spacing: -.025em; white-space: nowrap; }
.page-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.search { position: relative; display: block; min-width: 0; }
.search .material-symbols-outlined { position: absolute; left: 16px; top: 13px; color: var(--text3); pointer-events: none; }
.search input {
  width: 220px; height: 46px; padding: 0 16px 0 46px; border-radius: 999px;
  background: var(--surf); border: 1px solid var(--line); color: var(--text); font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--text3); }
.search input:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--accSoft); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); opacity: .6; }
.view-toggle { display: flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surf); border: 1px solid var(--line); }
.view-toggle button {
  flex: 1; justify-content: center; height: 38px; padding: 0 16px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13.5px; font-weight: 700; color: var(--text2);
  transition: color .3s;
}
.view-toggle button .material-symbols-outlined { font-size: 18px; }
.view-toggle button.active { background: var(--grad); color: var(--accInk); box-shadow: 0 10px 24px -12px var(--glow); }
/* Zal xaritasi — faqat kompyuterda */
@media (max-width: 1023px) { .view-toggle, .map-wrap { display: none !important; } }

.trial-banner {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 16px; border-radius: var(--rs);
  background: color-mix(in srgb, var(--warn) 12%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
  color: var(--warn); font-size: 13.5px; font-weight: 700;
}

.push-banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; padding: 14px 16px; border-radius: var(--r);
  background: linear-gradient(90deg, var(--accSoft), transparent); border: 1px solid var(--line2);
}
.push-banner-ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accSoft); color: var(--acc2); border: 1px solid var(--line2); }
.push-banner-text { flex: 1 1 220px; min-width: 0; font-size: 13.5px; color: var(--text2); line-height: 1.45; }
.push-banner-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text3); flex-shrink: 0; }
.push-banner-x:hover { background: var(--surf3); color: var(--text); }
@media (max-width: 759px) { .push-banner .btn { flex: 1; } }

/* Kirish animatsiyasi — faqat bo'lim ochilganda (qayta chizishda takrorlanmaydi) */
.view.entering .anim { animation: zmUp .7s var(--ease) both; }
.view.entering .anim:nth-child(2) { animation-delay: .07s; }
.view.entering .anim:nth-child(3) { animation-delay: .14s; }
.view.entering .page-title { animation: zmUp .6s both; }
.view.entering .page-ctrl, .view.entering .btn--head { animation: zmUp .6s both .08s; }
.view.entering .stagger > * { animation: zmUp .6s var(--ease) both; animation-delay: calc(var(--i, 0) * .06s); }

/* ---------------- Statistika ---------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; margin-bottom: 28px; }
.stat {
  position: relative; overflow: hidden; min-width: 0; padding: 26px 28px;
  background: linear-gradient(180deg, var(--surf2), var(--surf)); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
}
.stat--live { border-color: var(--line2); min-height: 172px; }
.stat-topline { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--acc), transparent); opacity: .8; }
.stat-glow {
  position: absolute; right: -90px; top: -130px; width: 360px; height: 360px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 22%, transparent), transparent);
  animation: zmBreath 5s ease-in-out infinite;
}
.orbit { position: absolute; border-radius: 50%; pointer-events: none; }
.orbit--a { right: 30px; top: 26px; width: 118px; height: 118px; border: 1px solid var(--line2); animation: zmSpin 24s linear infinite; }
.orbit--a i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--acc2); box-shadow: 0 0 14px 2px var(--glow); }
.orbit--b { right: 52px; top: 48px; width: 74px; height: 74px; border: 1px dashed var(--line); animation: zmSpin 40s linear infinite reverse; }
.stat .eyebrow { position: relative; }
.stat-live-row { position: relative; margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.stat-live-num { font-family: var(--fd); font-weight: 600; font-size: clamp(40px, 4.2vw, 62px); line-height: .95; white-space: nowrap; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-cur { font-size: 15px; color: var(--text2); font-weight: 600; }
.stat-note { position: relative; margin-top: 14px; font-size: 13.5px; color: var(--text2); }
.stat-row { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; }
.stat-num { font-family: var(--fd); font-weight: 600; font-size: 54px; line-height: .95; font-variant-numeric: tabular-nums; }
.stat-num--money { font-size: clamp(32px, 3vw, 44px); line-height: 1; white-space: nowrap; }
.stat-of { font-size: 20px; color: var(--text3); }
.busy-dots { margin-top: 18px; display: flex; gap: 5px; }
.busy-dots i { flex: 1; min-width: 0; height: 8px; border-radius: 4px; background: var(--surf3); transition: background .4s; }
.busy-dots i.on { background: var(--grad); box-shadow: 0 0 12px -2px var(--glow); }
.stat-foot { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.stat-foot .stat-note { margin-top: 0; font-size: 13px; }
.stat .busy-dots + .stat-note { margin-top: 12px; font-size: 13px; }

/* ---------------- Asboblar qatori ---------------- */
.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.toolbar-fill { flex: 1; }
.zone-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.zone-tabs::-webkit-scrollbar { display: none; }
.zone-tabs:empty { display: none; }
.zone-tabs--block { margin-bottom: 22px; }
.zone-tab {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap; flex-shrink: 0;
  font-size: 14px; font-weight: 700; color: var(--text2); background: var(--surf); border: 1px solid var(--line);
  transition: color .25s, background .25s;
}
.zone-tab:hover { color: var(--text); }
.zone-tab .cnt { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; background: var(--accSoft); color: var(--acc2); }
.zone-tab.active { background: var(--grad); border-color: transparent; color: var(--accInk); box-shadow: 0 10px 24px -10px var(--glow); }
.zone-tab.active .cnt { background: rgba(0, 0, 0, .16); color: var(--accInk); }
.chips { display: flex; gap: 8px; }
/* Zona tanlovi (Stollar, Tarix) — segment toggle; belgi faol tugma ostiga suriladi (--x, --w JS'dan).
   Tarixda sarlavha o'ngida, Stollar'da asboblar qatorida */
#hist-zone-ctrl[hidden], .zone-ctrl[hidden] { display: none; }
.zone-ctrl { min-width: 0; max-width: 100%; }
#view-history .page-title { flex: 1 1 0; min-width: min-content; }
#view-history .page-title .eyebrow { width: 0; overflow: visible; }
.hist-ctrl { flex: 0 1 auto; margin-left: auto; min-width: 0; max-width: 100%; }
.seg {
  position: relative; display: flex; max-width: 100%; padding: 4px; gap: 2px;
  border-radius: 16px; background: var(--surf); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg-ind {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); border-radius: 12px;
  background: var(--text); box-shadow: var(--shadow);
  transform: translateX(var(--x, 0)); transition: transform .35s var(--ease), width .35s var(--ease);
}
.seg.no-anim .seg-ind, .seg.no-anim .seg-btn { transition: none; }
.seg-btn {
  position: relative; z-index: 1; flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 12px; max-width: 200px; min-width: 0;
  font-size: 13.5px; font-weight: 700; white-space: nowrap; color: var(--text2); transition: color .25s;
}
.seg-lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.seg-cnt {
  flex-shrink: 0; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800; background: var(--surf3); color: var(--text2); transition: background .25s, color .25s;
}
.seg-cnt:empty { display: none; }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { color: var(--bg); }
.seg-btn.active .seg-cnt { background: color-mix(in srgb, var(--bg) 16%, transparent); color: var(--bg); }
.chips-ind { display: none; }
.chip {
  height: 40px; padding: 0 8px 0 16px; border-radius: 999px; white-space: nowrap;
  display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700;
  border: 1px solid var(--line2); color: var(--text2); transition: all .25s;
}
.chip b { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; background: var(--surf3); }
.chip:hover { color: var(--text); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip.active b { background: color-mix(in srgb, var(--bg) 16%, transparent); }
.legend { display: flex; align-items: center; gap: 18px; font-size: 12.5px; color: var(--text2); }
.legend > span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.lg { width: 8px; height: 8px; border-radius: 50%; }
.lg--free { background: var(--st-free); }
.lg--busy { background: var(--st-busy); box-shadow: 0 0 8px var(--st-busy); }
.lg--ending { background: var(--st-ending); box-shadow: 0 0 8px var(--st-ending); }
.lg--over { background: var(--st-over); box-shadow: 0 0 8px var(--st-over); }

/* ---------------- Stol kartalari ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 22px; }
/* Kompyuterda — qatorda aniq 3 ta stol */
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-free { --sc: var(--st-free); }
.st-busy { --sc: var(--st-busy); }
.st-ending { --sc: var(--st-ending); }
.st-over { --sc: var(--st-over); }
.table-card { perspective: 1000px; outline: none; }
.tc {
  position: relative; height: 320px; border-radius: var(--r); cursor: pointer;
  background: linear-gradient(180deg, var(--surf2), var(--surf));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transform-style: preserve-3d; transition: transform .35s var(--ease), border-color .3s;
}
.table-card:focus-visible .tc { border-color: var(--acc); }
.table-card:not(.is-free) .tc { border-color: var(--line2); }
.table-card.is-ending .tc { border-color: color-mix(in srgb, var(--st-ending) 45%, transparent); }
.table-card.is-over .tc { border-color: color-mix(in srgb, var(--st-over) 55%, transparent); }
.tc-light {
  position: absolute; left: 0; right: 0; top: 0; height: 210px; border-radius: var(--r) var(--r) 0 0; pointer-events: none;
  background: radial-gradient(ellipse 58% 78% at 50% -6%, color-mix(in srgb, var(--sc) 48%, transparent), transparent 72%);
  opacity: .35;
}
.table-card:not(.is-free) .tc-light { opacity: 1; animation: zmBreath 4.5s ease-in-out infinite; }
.table-card.is-over .tc-light { animation: zmAlarm 1.1s ease-in-out infinite; }
.tc-cord { position: absolute; left: 50%; top: 10px; width: 2px; height: 36px; margin-left: -1px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--sc) 60%, transparent)); opacity: .35; }
.table-card:not(.is-free) .tc-cord { opacity: 1; }
.tc-vis { position: absolute; left: 0; right: 0; top: 66px; margin: 0 auto; width: min(64%, 250px); aspect-ratio: 25 / 13; transform: translateZ(46px); transform-style: preserve-3d; }
.tc-sheen { position: absolute; inset: 0; border-radius: var(--r); pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), var(--hi), transparent 46%); opacity: var(--go, 0); transition: opacity .3s; }
.tc-head { position: absolute; top: 18px; left: 20px; right: 18px; display: flex; align-items: flex-start; gap: 10px; transform: translateZ(30px); }
.tc-title { flex: 1; min-width: 0; }
.tc-name { font-family: var(--fd); font-weight: 600; font-size: 25px; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-sport { font-size: 12px; color: var(--text3); margin-top: 3px; }
.st-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; flex-shrink: 0;
  font-size: 12px; font-weight: 800; white-space: nowrap; color: var(--sc);
  background: color-mix(in srgb, var(--sc) 14%, var(--surf)); border: 1px solid color-mix(in srgb, var(--sc) 32%, transparent);
}
.st-pill i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 10px var(--sc); }
.tc-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 20px; transform: translateZ(24px); }
.tc-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tc-label { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text3); font-weight: 700; white-space: nowrap; }
.tc-label .material-symbols-outlined { font-size: 14px; }
.tc-timer { margin-top: 6px; font-size: 40px; font-weight: 300; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.table-card.is-over .tc-timer { color: var(--danger); }
.tc-right { text-align: right; min-width: 0; }
.tc-extra { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.tc-extra .material-symbols-outlined { font-size: 15px; }
.tc-sum { font-size: 18px; font-weight: 800; color: var(--acc2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress { margin-top: 14px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 3px; background: var(--sc, var(--acc)); box-shadow: 0 0 12px var(--sc, var(--acc)); transition: width 1s linear; }
.tc-start { display: flex; align-items: center; gap: 12px; }
.play {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--grad); color: var(--accInk); box-shadow: 0 10px 24px -8px var(--glow);
}
.play .material-symbols-outlined { font-size: 24px; font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 24; }
.tc-start b { display: block; font-weight: 800; font-size: 15px; }
.tc-start small, .tc-rate small { display: block; font-size: 12px; color: var(--text3); margin-top: 2px; }
.tc-rate { text-align: right; }
.tc-rate b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; }

/* Mini stol (billiard / tennis) */
.mt { position: relative; width: 100%; height: 100%; --rim: 9px; --pk: 14px; }
.mt-rail { position: absolute; inset: 0; border-radius: 14px; box-shadow: 0 6px 0 rgba(0, 0, 0, .45), 0 24px 30px -6px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .14); }
.mt-felt { position: absolute; inset: var(--rim); border-radius: 6px; }
.mt--billiard .mt-rail { background: linear-gradient(145deg, #6e4727, #3a2414 55%, #22150b); }
.mt--billiard .mt-felt { background: radial-gradient(ellipse at 50% 42%, #2f7a55, #1b4d35 72%, #133a28); box-shadow: inset 0 0 20px rgba(0, 0, 0, .55); }
.mt--tennis .mt-rail { background: linear-gradient(145deg, #2b3244, #141925); }
/* O'rta chiziq yuza fonining o'zida chiziladi: alohida 1px element 3D qatlamda (GPU) yo'qolib qolardi */
.mt--tennis .mt-felt { background: linear-gradient(180deg, transparent calc(50% - 1px), rgba(255, 255, 255, .6) calc(50% - 1px), rgba(255, 255, 255, .6) calc(50% + 1px), transparent calc(50% + 1px)), radial-gradient(ellipse at 50% 42%, #2d5fae, #1a3c78 75%); box-shadow: inset 0 0 18px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .82); }
.mt-pk { position: absolute; width: var(--pk); height: var(--pk); border-radius: 50%; background: radial-gradient(circle at 50% 40%, #000 55%, #3a2616); }
.mt-pk.p1 { left: 3px; top: 3px; } .mt-pk.p2 { left: calc(50% - var(--pk) / 2); top: 1px; } .mt-pk.p3 { right: 3px; top: 3px; }
.mt-pk.p4 { left: 3px; bottom: 3px; } .mt-pk.p5 { left: calc(50% - var(--pk) / 2); bottom: 1px; } .mt-pk.p6 { right: 3px; bottom: 3px; }
.mt-net { position: absolute; top: var(--rim); bottom: var(--rim); left: calc(50% - 1.5px); width: 3px; background: rgba(255, 255, 255, .9); box-shadow: 0 0 6px rgba(0, 0, 0, .6); }
.mt--sm { --rim: 8px; --pk: 12px; }
.mt--sm .mt-rail { border-radius: 10px; box-shadow: 0 9px 0 #0b0704, 0 28px 36px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .15); }
.mt--sm .mt-felt { border-radius: 4px; }
.mt--sm .mt-pk { background: #000; }
.mt--lg { --rim: 10px; --pk: 15px; }
.mt--lg .mt-pk { background: #000; }
/* Harakatlanuvchi sharlar (faol billiard) */
.balls { position: absolute; inset: 11px; animation: zmFade .6s both; }
.balls i { position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; will-change: transform; box-shadow: 0 3px 4px rgba(0, 0, 0, .5); }
.mt--sm .balls { inset: 9px; }
.mt--sm .balls i { width: 7px; height: 7px; }
.balls .b1 { background: radial-gradient(circle at 35% 30%, #fff, #d9d3c7 40%, #8d877c); }
.balls .b2 { background: radial-gradient(circle at 35% 30%, var(--gA), var(--acc) 50%, var(--gB)); }
.balls .b3 { background: radial-gradient(circle at 35% 30%, #ff9c8a, #c9321f 50%, #6d130a); }
.balls .b4 { background: radial-gradient(circle at 35% 30%, #666, #111 50%, #000); }
.balls .b5 { background: radial-gradient(circle at 35% 30%, #ffe98a, #e0b21c 50%, #7a5a05); }
/* Tennis rallisi (faol tennis) */
.rally { position: absolute; inset: 12px 0; animation: zmFade .6s both; }
.paddle { position: absolute; top: 0; width: 24px; height: 22px; margin-top: -7px; animation: 8.8s ease-in-out infinite; animation-delay: var(--rd, 0s); }
.paddle--l { left: -16px; animation-name: zmRl; }
.paddle--r { right: -16px; animation-name: zmRr; }
.paddle .grip { position: absolute; width: 5px; height: 11px; border-radius: 2px; }
.paddle--l .grip { left: 7.5px; top: 20px; background: linear-gradient(180deg, #d8b27a, #8a6a3e); }
.paddle--r .grip { right: 7.5px; top: -9px; background: linear-gradient(0deg, #d8b27a, #8a6a3e); }
.paddle .head { position: absolute; top: 0; width: 20px; height: 22px; border-radius: 50%; border: 2px solid #121212; box-shadow: 0 4px 6px rgba(0, 0, 0, .55); }
.paddle--l .head { left: 0; background: radial-gradient(circle at 40% 35%, #ff6b5e, #c62a1f 60%, #7a130c); }
.paddle--r .head { right: 0; background: radial-gradient(circle at 40% 35%, #555, #1c1c1c 60%, #000); }
.pong { position: absolute; inset: 0 4px; }
.pong i {
  --b: 8px; position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ffe9b8 50%, #f2a33a);
  box-shadow: 0 0 8px rgba(255, 220, 150, .85), 0 3px 3px rgba(0, 0, 0, .4);
  animation: zmBx 1.1s ease-in-out infinite alternate, zmRy 8.8s linear infinite; animation-delay: var(--rd, 0s), var(--rd, 0s);
}
.mt--sm .rally { inset: 10px 0; }
.mt--sm .paddle { width: 20px; height: 18px; margin-top: -5px; }
.mt--sm .paddle--l { left: -13px; } .mt--sm .paddle--r { right: -13px; }
.mt--sm .paddle .head { width: 16px; height: 18px; }
.mt--sm .paddle--l .grip { left: 5.5px; top: 16px; } .mt--sm .paddle--r .grip { right: 5.5px; }
.mt--sm .pong { inset: 0 3px; }
/* Kichik stol belgisi (ro'yxatlarda) */
.mini-t { display: block; width: 48px; height: 28px; border-radius: 6px; padding: 3px; flex-shrink: 0; box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .6); }
.mini-t > i { display: block; width: 100%; height: 100%; border-radius: 3px; }
.mini-t--billiard { background: linear-gradient(145deg, #6e4727, #3a2414 55%, #22150b); }
.mini-t--billiard > i { background: radial-gradient(ellipse at 50% 42%, #2f7a55, #1b4d35 72%, #133a28); }
.mini-t--tennis { background: linear-gradient(145deg, #2b3244, #141925); }
.mini-t--tennis > i { background: radial-gradient(ellipse at 50% 42%, #2d5fae, #1a3c78 75%); }

/* ---------------- Zal xaritasi (kompyuter) ---------------- */
.map {
  position: relative; height: 700px; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 38%, var(--surf2), var(--bg) 85%);
  perspective: 1500px; animation: zmFade .6s both;
}
.map-lamp { position: absolute; left: 50%; top: 0; width: 900px; height: 100%; margin-left: -450px; pointer-events: none; background: radial-gradient(ellipse 45% 70% at 50% 0%, color-mix(in srgb, var(--acc) 12%, transparent), transparent 70%); }
.map-plane {
  position: absolute; left: 7%; right: 7%; top: 12%; bottom: 6%; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 50deg)) rotateZ(var(--rz, 0deg)); transition: transform .6s var(--ease);
  border-radius: var(--r); border: 1px solid var(--line2); box-shadow: var(--shadowLg);
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--text) 4%, transparent) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--text) 4%, transparent) 0 1px, transparent 1px 64px),
    linear-gradient(180deg, var(--surf2), var(--surf));
}
.map-door { position: absolute; left: 40%; bottom: -1px; width: 20%; height: 5px; border-radius: 6px 6px 0 0; background: var(--acc); box-shadow: 0 0 22px var(--glow); opacity: .7; }
.billboard {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d;
  transform: translateZ(var(--bz, 74px)) rotateZ(calc(var(--rz, 0deg) * -1)) rotateX(calc(var(--rx, 50deg) * -1));
}
.billboard > * { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); white-space: nowrap; }
.map-t { position: absolute; transform-style: preserve-3d; cursor: pointer; transition: transform .35s var(--ease), opacity .3s; }
.map-t:hover { transform: translateZ(18px); }
.map-t.dim { opacity: .3; }
.map-glow {
  position: absolute; inset: -56px -64px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--sc) 42%, transparent), transparent 64%); opacity: .2;
}
.map-t:not(.is-free) .map-glow { opacity: 1; animation: zmBreath 4.5s ease-in-out infinite; }
.map-t.is-over .map-glow { animation: zmAlarm 1.1s ease-in-out infinite; }
.map-chip {
  display: flex; align-items: center; gap: 8px; padding: 7px 13px 7px 11px; border-radius: 999px; font-size: 13px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border: 1px solid color-mix(in srgb, var(--sc) 45%, transparent);
  box-shadow: var(--shadow), 0 0 22px color-mix(in srgb, var(--sc) 28%, transparent);
}
.map-chip i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 8px var(--sc); }
.map-chip b { font-weight: 800; }
.map-chip span { font-variant-numeric: tabular-nums; color: var(--text2); }
.map-title { position: absolute; left: 22px; top: 20px; display: flex; align-items: center; gap: 10px; }
.map-title b { font-family: var(--fd); font-weight: 600; font-size: 24px; white-space: nowrap; }
.map-title span { font-size: 12px; color: var(--text3); }
.map-hint { position: absolute; right: 22px; top: 22px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text3); }
.map-hint .material-symbols-outlined { font-size: 16px; }

/* ---------------- Bo'sh holatlar ---------------- */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 20px; gap: 10px; }
.empty-state--sm { padding: 40px 20px; }
.empty-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accSoft); border: 1px solid var(--line2); color: var(--acc2); margin-bottom: 8px; box-shadow: 0 0 40px -10px var(--glow); }
.empty-icon .material-symbols-outlined { font-size: 32px; }
.empty-title { font-family: var(--fd); font-weight: 600; font-size: 24px; }
.empty-text { color: var(--text2); font-size: 14px; max-width: 420px; }
.empty-state .btn { margin-top: 14px; }

/* ---------------- Zonalar ---------------- */
.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr)); gap: 22px; align-items: start; }
.zone-grid > .empty-state { grid-column: 1 / -1; }
.zone-card { overflow: hidden; }
.zone-map {
  position: relative; height: 190px; border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--text) 3%, transparent) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--text) 3%, transparent) 0 1px, transparent 1px 28px),
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 70%), var(--bg);
}
.zone-dots { position: absolute; left: 6%; right: 6%; top: 14px; bottom: 62px; }
.zone-dot { position: absolute; border-radius: 4px; padding: 2px; box-shadow: 0 4px 8px rgba(0, 0, 0, .5); }
.zone-dot > i { display: block; width: 100%; height: 100%; border-radius: 2px; }
.zone-dot.on { box-shadow: 0 0 18px 2px color-mix(in srgb, var(--sc) 55%, transparent), 0 4px 8px rgba(0, 0, 0, .5); }
.zone-info { position: absolute; left: 24px; right: 20px; bottom: 18px; display: flex; align-items: flex-end; gap: 12px; }
.zone-info-text { flex: 1; min-width: 0; }
.zone-name { font-family: var(--fd); font-weight: 600; font-size: 30px; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zone-meta { margin-top: 6px; font-size: 13px; color: var(--text2); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--surf3); border: 1px solid var(--line); color: var(--text2); transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--acc2); border-color: var(--line2); }
.t-row {
  width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 24px; align-items: center; gap: 14px;
  padding: 14px 22px; border-bottom: 1px solid var(--line); text-align: left; transition: background .2s;
}
.t-row:hover { background: color-mix(in srgb, var(--acc) 5%, transparent); }
.t-row .mini-t { width: 44px; height: 26px; }
.row-text { min-width: 0; }
.row-text b { display: block; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-text small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text3); }
.row-chevron { color: var(--text3); }
.st-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; color: var(--sc); background: color-mix(in srgb, var(--sc) 14%, transparent); white-space: nowrap;
}
.st-tag i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sc); }
.zone-add { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; color: var(--acc2); font-weight: 700; font-size: 14px; transition: background .2s; }
.zone-add:hover { background: var(--accSoft); }

/* ---------------- Tarix ---------------- */
.hist-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 20px; }
.hist-hero { overflow: hidden; padding: 30px 32px; border-color: var(--line2); }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); pointer-events: none; }
.ring--1 { right: -110px; top: -110px; width: 320px; height: 320px; }
.ring--2 { right: -170px; top: -170px; width: 440px; height: 440px; }
.ring-glow { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 22%, transparent), transparent); animation: zmBreath 5s ease-in-out infinite; }
.hist-hero > .eyebrow, .hist-hero-val, .split, .mini-stats { position: relative; }
.hist-hero-val { margin-top: 18px; display: flex; align-items: baseline; gap: 12px; }
.hist-hero-val .big { font-family: var(--fd); font-weight: 600; font-size: clamp(46px, 5.4vw, 78px); line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hist-hero-val .cur { font-size: 18px; color: var(--text2); font-weight: 600; }
.split { margin-top: 28px; display: flex; height: 10px; gap: 3px; }
.split .a { border-radius: 6px; background: var(--grad); box-shadow: 0 0 16px -2px var(--glow); transition: width .7s var(--ease); }
.split .b { flex: 1; border-radius: 6px; background: color-mix(in srgb, var(--acc2) 28%, var(--surf3)); }
.mini-stats { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.mini-stat { padding: 14px 16px; border-radius: var(--rs); background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.mini-stat-l { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text2); font-weight: 600; }
.mini-stat-l i { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.mini-stat-l i.b { background: color-mix(in srgb, var(--acc2) 45%, var(--surf3)); }
.mini-stat-l .material-symbols-outlined { font-size: 15px; }
.mini-stat b { display: block; margin-top: 7px; font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-card { display: flex; flex-direction: column; padding: 26px 28px 22px; }
.chart-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 12px; }
.chart-sel { margin-top: 6px; font-size: 14px; color: var(--text2); }
.chart-val { font-family: var(--fd); font-weight: 600; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars { flex: 1; min-height: 230px; margin-top: 16px; display: flex; align-items: flex-end; gap: 12px; }
.bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; }
.bar-val { font-size: 11px; font-weight: 800; color: var(--acc2); opacity: 0; transition: opacity .25s; white-space: nowrap; }
.bar.is-sel .bar-val { opacity: 1; }
.bar-col {
  display: block; width: 100%; max-width: 46px; border-radius: 10px 10px 4px 4px; transform-origin: bottom;
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 26%, var(--surf3)), var(--surf3));
  transition: height .5s, box-shadow .3s;
}
.view.entering .bar-col { animation: zmGrow .9s var(--ease) both; animation-delay: calc(var(--i, 0) * .07s); }
.bar.is-sel .bar-col { background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 75%, white), color-mix(in srgb, var(--acc) 35%, var(--surf3))); box-shadow: 0 0 28px -6px var(--glow); }
.bar.is-today .bar-col { background: var(--grad); box-shadow: 0 0 28px -6px var(--glow); }
.bar-lbl { font-size: 12px; font-weight: 700; color: var(--text3); transition: color .3s; }
.bar.is-sel .bar-lbl { color: var(--text); }
.bar.bar-pop .bar-col { animation: zmPick .45s var(--ease); }
/* Tanlangan kun almashganda: matn suzib chiqadi, ro'yxat silliq almashadi */
.swap { animation: zmSwap .4s var(--ease) both; }
#hist-list { transition: opacity .16s, transform .16s; }
#hist-list.swap-out { opacity: 0; transform: translateY(6px); }
#hist-list.swap-in > * { animation: zmUp .5s var(--ease) both; animation-delay: calc(var(--i, 0) * .045s); }
.bars-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 13.5px; }
.bars-foot span { color: var(--text2); }
.bars-foot b { font-variant-numeric: tabular-nums; }
.sec-head { margin-top: 38px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head .h2 { font-size: 30px; }
.sec-head span { font-size: 13px; color: var(--text3); white-space: nowrap; }
.list { margin-top: 14px; overflow: hidden; background: linear-gradient(180deg, var(--surf2), var(--surf)); border: 1px solid var(--line); border-radius: var(--r); }
.hist-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 150px; align-items: center; gap: 18px;
  padding: 16px 22px; border-bottom: 1px solid var(--line); transition: background .2s;
}
.hist-row:last-child { border-bottom: 0; }
.hist-row:hover { background: color-mix(in srgb, var(--acc) 5%, transparent); }
.hist-row .total { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.prod-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--accSoft); color: var(--acc2); font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.prod-pill .material-symbols-outlined { font-size: 15px; }
.list-empty { padding: 28px; text-align: center; color: var(--text3); font-size: 14px; }
.hist-month-wrap { border-bottom: 1px solid var(--line); }
.hist-month-wrap:last-child { border-bottom: 0; }
.hist-month { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 22px; text-align: left; transition: background .2s; }
.hist-month:hover { background: color-mix(in srgb, var(--acc) 5%, transparent); }
.hist-month .m-name { flex: 1; font-family: var(--fd); font-weight: 600; font-size: 24px; white-space: nowrap; }
.hist-month .m-count { font-size: 13px; color: var(--text3); }
.hist-month b { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hist-month .material-symbols-outlined { font-size: 22px; color: var(--text3); transition: transform .3s; }
.hist-month.open .material-symbols-outlined { transform: rotate(180deg); }
.hist-month-body { padding: 0 22px 14px; animation: zmFade .35s both; }
.hist-day-row {
  display: grid; grid-template-columns: 170px minmax(0, 1fr) 160px 150px; align-items: center; gap: 16px;
  padding: 11px 0; border-top: 1px solid var(--line); font-size: 13.5px;
}
.hist-day-row > span:first-child { font-weight: 700; }
.hist-day-row .split-txt { color: var(--text3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-day-row .dbar { height: 6px; border-radius: 3px; background: var(--surf3); overflow: hidden; }
.hist-day-row .dbar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gB), var(--acc), var(--gA)); }
.hist-day-row b { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------------- Mahsulotlar ---------------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(236px, 100%), 1fr)); gap: 20px; }
.prod-grid > .empty-state { grid-column: 1 / -1; }
.prod-wrap { perspective: 900px; }
.prod-tile {
  position: relative; display: block; width: 100%; text-align: left; padding: 24px; border-radius: var(--r);
  background: linear-gradient(180deg, var(--surf2), var(--surf)); border: 1px solid var(--line); box-shadow: var(--shadow);
  transform-style: preserve-3d; transition: transform .35s var(--ease), border-color .3s;
}
.prod-tile:hover { border-color: var(--line2); }
.prod-tile .tc-sheen { background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), var(--hi), transparent 50%); }
.prod-top { display: flex; align-items: flex-start; justify-content: space-between; transform: translateZ(34px); }
.prod-ic {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--acc) 30%, var(--surf3)), var(--surf3));
  color: var(--acc2); border: 1px solid var(--line2); box-shadow: 0 14px 30px -12px var(--glow);
}
.prod-ic .material-symbols-outlined { font-size: 28px; }
.top-pill {
  height: 24px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--grad); color: var(--accInk);
}
.top-pill .material-symbols-outlined { font-size: 14px; font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 24; }
.prod-name { display: block; margin-top: 22px; font-weight: 700; font-size: 16px; transform: translateZ(22px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-price { display: block; margin-top: 6px; font-family: var(--fd); font-weight: 600; font-size: 30px; line-height: 1; color: var(--acc2); white-space: nowrap; transform: translateZ(26px); }
.prod-sold { display: block; margin-top: 20px; transform: translateZ(14px); }
.prod-sold small { display: block; font-size: 12.5px; color: var(--text3); }
.prod-sold .meter { display: block; margin-top: 8px; height: 4px; border-radius: 2px; background: var(--surf3); overflow: hidden; }
.prod-sold .meter i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--gB), var(--acc), var(--gA)); }
.prod-add {
  min-height: 236px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border-radius: var(--r); border: 1px dashed var(--line2); color: var(--acc2); font-weight: 700; font-size: 14.5px;
  transition: background .2s, border-color .2s;
}
.prod-add:hover { background: var(--accSoft); border-color: var(--acc); }
.prod-add span:first-child { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accSoft); }
.prod-add .material-symbols-outlined { font-size: 26px; }

/* ---------------- Profil ---------------- */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
/* Kompyuterda: chapda profil + sozlamalar, o'ngda uslub kartasi (ikki qatorni egallaydi). Telefonda tartib: profil → uslub → sozlamalar */
@media (min-width: 1280px) {
  .profile-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto 1fr; grid-template-areas: "card theme" "settings theme"; }
  .profile-card { grid-area: card; }
  .profile-theme { grid-area: theme; }
  .profile-theme .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-settings { grid-area: settings; }
}
.profile-card { overflow: hidden; padding: 36px 28px 28px; text-align: center; border-color: var(--line2); }
.profile-glow { position: absolute; left: 50%; top: -140px; width: 420px; height: 300px; margin-left: -210px; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 22%, transparent), transparent); }
.profile-ava { position: relative; width: 112px; height: 112px; margin: 0 auto; }
.profile-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--gB), var(--gA), var(--acc), var(--gB)); animation: zmSpin 8s linear infinite; }
.profile-avatar { position: absolute; inset: 3px; border-radius: 50%; display: grid; place-items: center; background: var(--surf2); font-family: var(--fd); font-weight: 600; font-size: 48px; color: var(--acc2); text-transform: uppercase; }
.profile-name { position: relative; margin-top: 18px; font-family: var(--fd); font-weight: 600; font-size: 34px; line-height: 1.05; overflow-wrap: anywhere; }
.profile-login { position: relative; margin-top: 6px; color: var(--text2); font-size: 14px; overflow-wrap: anywhere; }
.role-pill { position: relative; margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--accSoft); color: var(--acc2); font-size: 12px; font-weight: 800; }
.role-pill .material-symbols-outlined { font-size: 15px; }
.profile-edit { margin-top: 28px; }
.profile-logout { margin-top: 10px; }
.profile-settings { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.theme-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.theme-card {
  position: relative; text-align: left; padding: 10px; border-radius: calc(var(--rs) + 4px);
  background: var(--bg); border: 1px solid var(--line); transition: border-color .3s, transform .25s;
}
.theme-card:hover { transform: translateY(-3px); }
.theme-card.active { border-color: var(--acc); }
.theme-prev {
  position: relative; display: block; height: 132px; padding: 14px; overflow: hidden; border-radius: var(--r);
  background: radial-gradient(ellipse 80% 90% at 50% 0%, color-mix(in srgb, var(--acc) 32%, transparent), transparent 70%), var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.theme-prev-t { display: block; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 32px; line-height: 1; color: var(--text); }
.theme-prev-bar { margin-top: 12px; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--surf2); }
.theme-prev-bar i:first-child { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--glow); }
.theme-prev-bar i:last-child { flex: 1; height: 5px; border-radius: 3px; opacity: .5; background: var(--text3); }
.theme-prev-btn { position: absolute; right: 14px; bottom: 14px; height: 26px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--grad); color: var(--accInk); }
.seg.theme-mode { margin-top: 18px; display: inline-flex; }
.theme-mode button { display: inline-flex; align-items: center; gap: 7px; }
.theme-mode .material-symbols-outlined { font-size: 17px; }
.theme-info { display: block; padding: 12px 6px 4px; }
.theme-info b { display: block; font-weight: 800; font-size: 14.5px; }
.theme-info small { display: block; margin-top: 3px; font-size: 12px; color: var(--text3); line-height: 1.4; }
.theme-check { position: absolute; top: 18px; right: 18px; font-size: 22px !important; color: var(--acc2); opacity: 0; transition: opacity .3s; font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 24 !important; }
.theme-card.active .theme-check { opacity: 1; }
.setting-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 24px 28px; box-shadow: none; }
.setting-ic { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accSoft); color: var(--acc2); border: 1px solid var(--line2); }
.setting-ic .material-symbols-outlined { font-size: 24px; }
.setting-text { flex: 1 1 200px; min-width: 0; }
.setting-title { font-weight: 800; font-size: 15.5px; }
.setting-sub { margin-top: 4px; font-size: 13px; color: var(--text2); line-height: 1.5; }
.switch { position: relative; flex-shrink: 0; width: 50px; height: 30px; border-radius: 999px; background: var(--surf3); border: 1px solid var(--line2); transition: background .3s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: left .35s var(--spring); }
.switch[aria-checked="true"] { background: var(--grad); }
.switch[aria-checked="true"] i { left: 23px; background: #fff; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text2); }
.seg button.active { background: var(--grad); color: var(--accInk); }
/* Qo'llab-quvvatlash */
.support-card { display: flex; flex-direction: column; gap: 18px; }
.support-sub { font-size: 13.5px; color: var(--text2); line-height: 1.55; }
.support-person { display: flex; align-items: center; gap: 14px; }
.support-ava { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--accInk); font-family: var(--fd); font-weight: 700; font-size: 17px; }
.support-person-text { min-width: 0; }
.support-name { font-weight: 800; font-size: 15.5px; }
.support-role { margin-top: 3px; font-size: 13px; color: var(--text3); }
.support-rows { display: flex; flex-direction: column; gap: 14px; }
.support-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--rs); background: var(--surf3); }
.support-row .setting-ic { width: 44px; height: 44px; }
.support-row .setting-ic .material-symbols-outlined { font-size: 22px; }
.support-val { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.support-copy { width: 42px; padding: 0; flex-shrink: 0; }

/* Kirgan qurilmalar (profil) — support-row tuzilishidan foydalanadi */
.device-row .setting-text { min-width: 0; }
.device-row .setting-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-tag { flex-shrink: 0; padding: 7px 12px; border-radius: 999px; background: var(--accSoft); color: var(--acc2); border: 1px solid var(--line2); font-size: 12px; font-weight: 700; }
.devices-all { margin-top: 18px; }

.app-version { margin-top: 40px; text-align: center; font-size: 12px; color: var(--text3); letter-spacing: .14em; text-transform: uppercase; }

/* ---------------- Sheet (kompyuterda — o'rtada karta, telefonda — pastdan) ---------------- */
.overlay#sheet { position: fixed; inset: 0; z-index: 40; background: var(--overlay); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: zmFade .35s both; }
.sheet {
  position: fixed; z-index: 41; inset: 0; margin: auto;
  width: min(560px, calc(100vw - 48px)); height: -webkit-fit-content; height: fit-content; max-height: calc(100dvh - 48px);
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--surf2), var(--surf) 35%); border: 1px solid var(--line2);
  border-radius: calc(var(--r) + 4px); box-shadow: var(--shadowLg);
  animation: zmPop .45s cubic-bezier(.16, 1, .3, 1) both;
}
.overlay#sheet.closing { animation: zmFadeOut .32s both; pointer-events: none; }
.overlay#sheet.closing .sheet { animation: zmPopOut .25s cubic-bezier(.4, 0, 1, 1) both; }
.sheet-handle { display: none; }
.sheet-head { display: flex; align-items: flex-start; gap: 16px; padding: 28px 28px 8px; flex-shrink: 0; }
.sheet-head-ic {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--acc) 30%, var(--surf3)), var(--surf3));
  color: var(--acc2); border: 1px solid var(--line2); box-shadow: 0 14px 30px -12px var(--glow);
}
.sheet-head-ic .material-symbols-outlined { font-size: 28px; }
.sheet-head-text { flex: 1; min-width: 0; }
.sheet-title { margin-top: 8px; font-family: var(--fd); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.sheet-title--sm { font-size: 34px; }
.sheet-close {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--surf3); border: 1px solid var(--line); color: var(--text2);
  transition: transform .35s var(--spring), color .2s;
}
.sheet-close:hover { transform: rotate(90deg); color: var(--text); }
.sheet-content { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 12px 28px 24px; overscroll-behavior: contain; }
.sheet-actions { display: flex; align-items: center; gap: 10px; padding: 18px 28px 28px; border-top: 1px solid var(--line); flex-shrink: 0; }
.sheet-actions .btn--acc { flex: 1; height: 56px; font-size: 15.5px; }
.sheet-actions .btn--danger-soft { width: 56px; height: 56px; padding: 0; flex-shrink: 0; }
.sheet-actions .btn--danger-soft .material-symbols-outlined { font-size: 22px; }
.sec-label { margin-top: 26px; margin-bottom: 12px; }
.sec-label:first-child { margin-top: 0; }
/* Stol ko'rinishi (sheet tepasida) */
.stage {
  position: relative; height: 176px; border-radius: var(--r); display: grid; place-items: center; overflow: hidden; perspective: 800px;
  background: radial-gradient(ellipse 60% 90% at 50% -10%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 70%), var(--bg);
  border: 1px solid var(--line);
}
.stage--sm { height: 150px; }
.stage-float { animation: zmFloat 6s ease-in-out infinite; }
.stage-t { position: relative; width: 220px; height: 114px; transform: rotateX(28deg); transition: all .4s; }
.stage--sm .stage-t { width: 200px; height: 104px; }
/* Rejim kartalari */
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.mode-card {
  position: relative; text-align: left; padding: 18px; border-radius: var(--rs); background: var(--bg);
  border: 1px solid var(--line2); transition: background .25s, border-color .25s, transform .2s;
}
.mode-card:hover { transform: translateY(-2px); }
.mode-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surf3); color: var(--text2); }
.mode-card b { display: block; margin-top: 14px; font-weight: 800; font-size: 15.5px; }
.mode-card small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text2); line-height: 1.4; }
.mode-check { position: absolute; top: 14px; right: 14px; color: var(--acc2); opacity: 0; transition: opacity .25s; font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 24 !important; }
.mode-card.active { background: var(--accSoft); border-color: var(--acc); }
.mode-card.active .mode-ic { background: var(--grad); color: var(--accInk); }
.mode-card.active .mode-check { opacity: 1; }
.duration-box { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--rs); background: var(--bg); border: 1px solid var(--line); }
.step-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surf3); border: 1px solid var(--line); transition: border-color .2s; flex-shrink: 0; }
.step-btn:hover:not(:disabled) { border-color: var(--acc); }
.step-btn:disabled { opacity: .35; }
.step-btn .material-symbols-outlined { font-size: 22px; }
.duration-val { flex: 1; text-align: center; font-family: var(--fd); font-weight: 600; font-size: 30px; line-height: 1; }
.presets { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.preset { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text2); border: 1px solid var(--line2); transition: all .2s; }
.preset:hover { color: var(--text); }
.preset.active { background: var(--acc); border-color: var(--acc); color: var(--accInk); }
.estimate { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--rs); background: linear-gradient(90deg, var(--accSoft), transparent); border: 1px solid var(--line); }
.estimate span { font-size: 13.5px; color: var(--text2); }
.estimate b { font-size: 18px; color: var(--acc2); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Faol sessiya: halqa taymer */
.dial-wrap { display: flex; flex-direction: column; align-items: center; padding: 18px 0 4px; }
.dial { position: relative; width: 240px; height: 240px; }
.dial-dash { position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed var(--line2); animation: zmSpin 50s linear infinite; }
.dial-track, .dial-ring {
  position: absolute; inset: 0; border-radius: 50%;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
}
.dial-track { background: var(--line); }
.dial-glow { position: absolute; inset: 0; filter: drop-shadow(0 0 10px var(--sc)); }
.dial-ring { background: conic-gradient(var(--sc) var(--p, 0%), transparent 0); }
.st-over .dial-ring { animation: zmAlarm 1.1s ease-in-out infinite; }
.dial-core { position: absolute; inset: 24px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--sc) 16%, var(--surf2)), var(--surf) 72%); box-shadow: inset 0 1px 0 var(--hi), var(--shadow); }
.dial-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.dial-inner .st-tag { height: 24px; }
.dial-inner .st-tag i { box-shadow: 0 0 8px var(--sc); }
.dial-time { font-size: 46px; font-weight: 300; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.st-over .dial-time { color: var(--danger); }
.dial-label { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text3); font-weight: 700; white-space: nowrap; }
.times { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; font-size: 13px; color: var(--text2); }
.times span { padding: 8px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.times b { color: var(--text); }
.extend { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.extend button { height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surf3); border: 1px solid var(--line); font-size: 13px; font-weight: 700; transition: border-color .2s, color .2s; }
.extend button:hover { border-color: var(--sc); color: var(--sc); }
/* Hisob */
.bill { border-radius: var(--rs); background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.bill-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.bill-row:first-child { border-top: 0; padding: 14px 16px; }
.bill-ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surf3); color: var(--acc2); }
.bill-ic--acc { background: var(--accSoft); }
.bill-ic .material-symbols-outlined { font-size: 18px; }
.bill-main { flex: 1; min-width: 0; }
.bill-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bill-sub { font-size: 12px; color: var(--text3); margin-top: 2px; }
.bill-amt { min-width: 80px; text-align: right; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bill-empty { padding: 14px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text3); text-align: center; }
.stepper { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surf2); border: 1px solid var(--line); flex-shrink: 0; }
.stepper button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--text2); }
.stepper button:hover { background: var(--surf3); color: var(--text); }
.stepper .material-symbols-outlined { font-size: 16px; }
.stepper .qty { min-width: 22px; text-align: center; font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pick-search { position: relative; display: block; margin-bottom: 12px; }
.pick-search .material-symbols-outlined { position: absolute; left: 14px; top: 13px; color: var(--text3); }
.pick-search input { width: 100%; height: 46px; padding: 0 14px 0 44px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line2); color: var(--text); font-size: 14px; }
.pick-search input:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--accSoft); }
.pick-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pick {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: var(--rs);
  background: var(--bg); border: 1px solid var(--line); text-align: left; transition: transform .15s, border-color .2s, background .2s;
}
.pick:hover { border-color: var(--acc); transform: translateY(-2px); }
.pick:active { transform: scale(.96); }
.pick.in { background: var(--accSoft); border-color: var(--line2); }
.pick-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surf3); color: var(--acc2); }
.pick-ic .material-symbols-outlined { font-size: 18px; }
.pick-text { flex: 1; min-width: 0; }
.pick-name { display: block; font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-price { display: block; font-size: 12px; color: var(--text3); margin-top: 2px; }
.pick-qty {
  position: absolute; top: -7px; right: -7px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center;
  background: var(--grad); color: var(--accInk); font-size: 12px; font-weight: 800; box-shadow: 0 6px 14px -4px var(--glow);
  animation: zmPop .35s cubic-bezier(.3, 1.6, .5, 1) both;
}
.pick-empty { grid-column: 1 / -1; padding: 18px; text-align: center; color: var(--text3); font-size: 13px; }
.danger-zone { margin-top: 24px; display: flex; justify-content: center; }
.btn-link-danger { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; color: var(--danger); font-size: 13.5px; font-weight: 700; transition: background .2s; }
.btn-link-danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.btn-link-danger .material-symbols-outlined { font-size: 18px; }
.pay-total { flex: 1; min-width: 0; }
.pay-total b { display: block; margin-top: 6px; font-family: var(--fd); font-weight: 600; font-size: 30px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.sheet-actions .pay-total + .btn--acc { flex: none; height: 58px; padding: 0 26px; font-size: 16px; }
/* Stol turi / belgi tanlash */
.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--rs); background: var(--bg); border: 1px solid var(--line2); font-weight: 700; font-size: 14.5px; transition: all .25s; text-align: left; }
.type-card .mini-t { width: 40px; height: 24px; border-radius: 5px; box-shadow: none; }
.type-card.active { background: var(--accSoft); border-color: var(--acc); }
.hint { margin-top: 14px; font-size: 13px; color: var(--text3); line-height: 1.5; }
.icon-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.icon-opt { height: 52px; border-radius: var(--rs); display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--text2); transition: all .2s; }
.icon-opt:hover { transform: translateY(-2px); }
.icon-opt .material-symbols-outlined { font-size: 22px; }
.icon-opt.active { background: var(--accSoft); border-color: var(--acc); color: var(--acc2); }

/* ---------------- Modal oynalar ---------------- */
.overlay--center {
  position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px; overflow-y: auto;
  background: var(--overlay); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: zmFade .25s both;
}
.sys-overlay { z-index: 70; }
.alert-box { width: 440px; max-width: 100%; min-width: 0; animation: zmPop .45s cubic-bezier(.2, 1.2, .3, 1) both; }
.alert-box.pop-out { animation: zmPopOut .22s ease-in both; }
.modal-card {
  position: relative; overflow: hidden; padding: 36px 30px 28px; border-radius: var(--r); text-align: center;
  background: linear-gradient(180deg, var(--surf2), var(--surf)); border: 1px solid var(--line2); box-shadow: var(--shadowLg);
}
.modal-card--danger { border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.alert-ic {
  width: 68px; height: 68px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center;
  background: var(--accSoft); color: var(--acc2); border: 1px solid var(--line2); box-shadow: 0 0 40px -6px var(--glow);
}
.alert-ic .material-symbols-outlined { font-size: 30px; }
.alert-ic--danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); border-color: transparent; box-shadow: 0 0 40px -8px var(--danger); }
.alert-ic--warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); border-color: transparent; box-shadow: 0 0 40px -8px var(--warn); }
.alert-title { margin-top: 18px; font-family: var(--fd); font-weight: 600; font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; }
.alert-sub { margin-top: 8px; font-size: 14px; color: var(--text2); }
.alert-text { margin-top: 10px; font-size: 14px; color: var(--text2); line-height: 1.5; }
.alert-warn-box { margin-top: 16px; padding: 12px 14px; border-radius: var(--rs); font-size: 13px; text-align: left; line-height: 1.5; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 24%, transparent); }
.alert-btns { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alert-btns .btn { height: 52px; }
.alert-fields { margin-top: 20px; text-align: left; }
.access-email { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--acc2); overflow-wrap: anywhere; }
.sys-alert-btn { margin-top: 12px; }
.sys-alert-btn:first-of-type { margin-top: 24px; }
/* Chek (yakunlash) */
.receipt-wrap { filter: drop-shadow(0 30px 50px var(--overlay)); }
.receipt {
  padding: 34px 32px 42px; border: 1px solid var(--line2); border-bottom: 0; border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(180deg, var(--surf2), var(--surf));
  -webkit-mask: radial-gradient(circle 8px at 10px 100%, transparent 7.5px, #000 8px) 0 0 / 20px 100% repeat-x;
  mask: radial-gradient(circle 8px at 10px 100%, transparent 7.5px, #000 8px) 0 0 / 20px 100% repeat-x;
}
.receipt-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.receipt-head .alert-title { font-size: 30px; }
.receipt-rows { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; }
.receipt-row span { color: var(--text2); }
.receipt-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt-sep { border-top: 1px dashed var(--line2); margin: 6px 0; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.receipt-total span:first-child { font-weight: 800; }
.receipt-total span:last-child { font-family: var(--fd); font-weight: 600; font-size: 32px; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--acc2); }
.modal-btns { margin-top: 16px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.modal-btns .btn { height: 54px; }
/* Yakunlandi */
.done-card { padding: 44px 32px 38px; }
.done-glow { position: absolute; left: 50%; top: -130px; width: 420px; height: 300px; margin-left: -210px; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 30%, transparent), transparent); }
.done-ic { position: relative; width: 92px; height: 92px; margin: 0 auto; }
.done-ic .rip { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--acc); animation: zmRipple 1.6s ease-out infinite; }
.done-ic .rip + .rip { animation-delay: .5s; }
.done-ic .core { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--accInk); box-shadow: 0 14px 40px -10px var(--glow); animation: zmPop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.done-ic .core .material-symbols-outlined { font-size: 46px; font-variation-settings: 'FILL' 0, 'wght' 600, 'opsz' 48; }
.done-title { position: relative; margin-top: 26px; font-family: var(--fd); font-weight: 600; font-size: 32px; line-height: 1.05; }
.done-sum { position: relative; margin-top: 14px; font-family: var(--fd); font-weight: 600; font-size: 42px; line-height: 1; white-space: nowrap; }
.done-note { position: relative; margin-top: 12px; font-size: 13.5px; color: var(--text2); }

/* ---------------- Toast ---------------- */
.toasts {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 80;
  display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; width: max-content; max-width: calc(100vw - 24px);
}
body.in-app .toasts { left: calc(50% + 134px); }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; max-width: 100%;
  background: color-mix(in srgb, var(--surf2) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line2); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600; animation: zmToast .45s cubic-bezier(.2, 1.2, .3, 1) both;
}
.toast-ic { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; color: var(--tc, var(--acc2)); background: color-mix(in srgb, var(--tc, var(--acc)) 16%, transparent); }
.toast-ic .material-symbols-outlined { font-size: 18px; }
.toast-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.toast--out { animation: zmToastOut .3s both; }

/* ---------------- Telefon (<760px) ---------------- */
@media (max-width: 759px) {
  .view--login { grid-template-columns: minmax(0, 1fr); }
  /* telefonda: 3D stol, logo va sarlavha ko'rsatilmaydi — uslublar va forma darhol */
  .login-art { display: none; }
  .login-form > .eyebrow, .login-title, .login-sub { text-align: center; }
  .login-side { padding: 72px 20px 48px; align-items: flex-start; }
  .login-title { font-size: 42px; }

  .page-head { padding-top: 22px; padding-bottom: 16px; }
  .page-ctrl { flex: 1 1 100%; }
  #view-history .page-head { column-gap: 12px; }
  .hist-ctrl { flex: 0 1 auto; }
  .seg-btn { height: 38px; padding: 0 12px; font-size: 12.5px; max-width: 130px; }
  /* Stollar: zona tanlovi — bitta qatorda, butun enida, tugmalar teng */
  .zone-ctrl { width: 100%; }
  .zone-ctrl .seg { width: 100%; border-radius: 16px; }
  .zone-ctrl .seg-btn { flex: 1 1 0; max-width: none; height: 42px; padding: 0 8px; }
  .search { flex: 1 1 0; }
  .search input { width: 100%; }
  .btn--head { height: 46px; padding: 0 16px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
  .stat { padding: 18px; }
  .stat--live { grid-column: 1 / -1; min-height: 0; }
  .orbit { display: none; }
  .stat-row, .busy-dots { margin-top: 12px; }
  .stat-num { font-size: 34px; }
  .stat-num--money { font-size: 22px; }
  .stat-of { font-size: 16px; }
  .stat-foot { margin-top: 12px; }
  .stat-live-row { margin-top: 12px; }
  .stat-note { margin-top: 10px; font-size: 12.5px; }

  .legend, .toolbar-fill { display: none; }
  .toolbar { gap: 10px; margin-bottom: 18px; }
  /* Mobil: filtr — bitta qutidagi toggle (segment) */
  .chips {
    position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; padding: 4px; gap: 0;
    border-radius: 16px; background: var(--surf); border: 1px solid var(--line);
  }
  .chips-ind {
    display: block; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 12px;
    background: var(--text); box-shadow: var(--shadow);
    transform: translateX(calc(var(--seg, 0) * 100%)); transition: transform .35s var(--ease);
  }
  .chip { position: relative; z-index: 1; justify-content: center; height: 42px; padding: 0 8px; gap: 8px; border: 0; border-radius: 12px; background: transparent; min-width: 0; }
  .chip.active { background: transparent; border-color: transparent; }
  .grid { gap: 16px; }
  .tc { height: 306px; }
  .tc-vis { width: min(62%, 230px); }

  .zone-grid { gap: 16px; }
  .t-row { padding: 14px 18px; gap: 12px; }

  .hist-hero { padding: 22px 20px; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-stats > :last-child { grid-column: 1 / -1; }
  .chart-card { padding: 20px 18px 18px; }
  .chart-val { font-size: 24px; }
  .bars { gap: 6px; }
  .bar-val { font-size: 9.5px; }
  .sec-head .h2, .h2 { font-size: 24px; }
  .hist-row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; padding: 14px 16px; }
  .hist-row .prod-cell { display: none; }
  .hist-month { padding: 18px 16px; }
  .hist-month .m-name { font-size: 19px; }
  .hist-month .m-count { display: none; }
  .hist-month-body { padding: 0 16px 12px; }
  .hist-day-row { grid-template-columns: minmax(0, 1fr) auto; }
  .hist-day-row .split-txt, .hist-day-row .dbar { display: none; }

  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .prod-tile { padding: 16px; }
  .prod-ic { width: 48px; height: 48px; }
  .prod-ic .material-symbols-outlined { font-size: 24px; }
  .prod-name { margin-top: 16px; font-size: 14.5px; }
  .prod-price { font-size: 19px; }
  .prod-add { min-height: 180px; }

  .card--pad { padding: 22px 20px; }
  .setting-row { padding: 20px; }
  .support-row { padding: 14px; gap: 12px; }
  .support-row .setting-text { flex-basis: 150px; }  /* ikonka bilan bir qatorda qolsin */
  .theme-prev { height: 96px; }
  .theme-prev-t { font-size: 24px; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-meta { display: none; }

  .sheet {
    top: 7vh; left: 0; right: 0; bottom: 0; margin: 0; width: auto; height: auto; max-height: none; max-width: none; border-bottom: 0;
    border-radius: calc(var(--r) + 6px) calc(var(--r) + 6px) 0 0;
    animation: zmRise .5s cubic-bezier(.16, 1, .3, 1) both;
  }
  .overlay#sheet.closing .sheet { animation: zmDown .3s cubic-bezier(.4, 0, 1, 1) both; }
  .sheet-handle { display: block; flex-shrink: 0; padding: 10px 0 2px; cursor: pointer; }
  .sheet-handle::before { content: ''; display: block; width: 44px; height: 5px; margin: 0 auto; border-radius: 3px; background: var(--line2); }
  .sheet-head { padding: 14px 18px 6px; }
  .sheet-title { font-size: 32px; }
  .sheet-title--sm { font-size: 28px; }
  .sheet-content { padding: 10px 18px 22px; }
  .sheet-actions { padding: 14px 18px calc(22px + env(safe-area-inset-bottom)); }
  .stage { height: 120px; }
  .stage--sm { height: 120px; }
  .stage-t { transform: rotateX(28deg) scale(.8); }
  .pay-total b { font-size: 24px; }
  .sheet-actions .pay-total + .btn--acc { padding: 0 18px; }
  .dial { width: 220px; height: 220px; }
  .dial-time { font-size: 42px; }

  .toasts, body.in-app .toasts { left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); }
  .overlay--center { padding: 16px; }
  .receipt { padding: 26px 20px 36px; }
  .receipt-head .alert-title { font-size: 24px; }
  .receipt-row b { min-width: 0; text-align: right; white-space: normal; }
  .receipt-total span:last-child { font-size: 26px; }
  .modal-card { padding: 30px 20px 24px; }
  .alert-ic { width: 58px; height: 58px; }
  .alert-title { font-size: 24px; }
  .done-sum { font-size: 34px; }
}
@media (min-width: 760px) and (max-width: 899px) {
  .toasts, body.in-app .toasts { left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .nav-btn { font-size: 9.5px; }
  .chip { padding: 0 4px; gap: 5px; font-size: 12.5px; }
  .prod-grid { gap: 10px; }
}

/* ---------------- Harakatni kamaytirish ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .shimmer { animation: none !important; }
}
