/* ═══════════════════════════════════════════════════════════════════
   MEERAN — DIREKTOR PANELI · v1.20.0 "Aurora"
   Telefon ilovasi bilan bitta dizayn tili:
     • fon — Aurora Mesh: marvarid-oq asos, chap-tepada zumrad, o'ng-tepada osmon-moviy nur, tepada nozik nuqtali to'r
     • asosiy ko'rsatkichlar — rangli "shisha" plitkalar (ilovadagi gradTile)
     • qolgani sokin: oq kartalar, ingichka chiziqlar, bitta yumshoq soya
   Shriftlar o'z serverimizda (CDN yo'q): Space Grotesk (sarlavha, raqam) · Inter (matn) · JetBrains Mono (hisob raqami, IP)
   ═══════════════════════════════════════════════════════════════════ */

/* ---------- Shriftlar ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.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: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght-normal.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: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-cyrillic-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(fonts/space-grotesk-latin-wght-normal.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: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(fonts/space-grotesk-latin-ext-wght-normal.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: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(fonts/jetbrains-mono-latin-wght-normal.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: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800;
  src: url(fonts/jetbrains-mono-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- Ranglar (yorug') ---------- */
:root {
  color-scheme: light;
  --bg: #F4F7FB; --bg-top: #EAF0F8;
  --card: #FFFFFF; --card-2: #F6F8FB; --card-3: #EEF2F7;
  --ink: #13202B; --soft: #5A6B78; --muted: #8796A3;
  --line: #E2E8EF; --line-soft: #EEF2F6;
  --brand: #107569; --brand-d: #0B5A50; --brand-l: #2ED3BC; --brand-tint: #E4F2EF; --brand-ink: #0B5A50;
  --red: #D7301C; --red-tint: #FCE9E6; --gold: #B47308; --gold-tint: #FBF0DA; --green: #138A3F; --green-tint: #E3F5EA;
  --blue: #2563A8; --blue-tint: #E6EEF7; --violet: #5B49D0; --violet-tint: #ECEAFB; --pink: #B4236A; --pink-tint: #FBE7F0;
  --plate: #1E4FA3;
  --glow-a: rgba(16, 185, 129, .20); --glow-b: rgba(59, 130, 246, .18); --dot: rgba(30, 58, 95, .075);
  --shadow-sm: 0 1px 2px rgba(19, 32, 43, .05);
  --shadow: 0 1px 2px rgba(20, 40, 63, .04), 0 14px 32px -18px rgba(20, 40, 63, .22);
  --shadow-lg: 0 28px 70px -24px rgba(12, 30, 48, .38);
  --focus: 0 0 0 3px rgba(16, 117, 105, .22);
  /* grafik ranglari (validatsiyadan o'tgan: kontrast ≥ 3:1, rang ko'rlik uchun ajralib turadi) */
  --chart-1: #0f8f7d; --cat-1: #2a78d6; --cat-2: #eb6834; --grid: #E7ECF1; --axis: #C9D2DB;
  --side-a: #0C3B35; --side-b: #0B4F47; --side-c: #0E6B5F;
  --r-xl: 24px; --r-lg: 20px; --r-md: 14px; --r-sm: 11px;
  --font-disp: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --side-w: 268px;
}
/* ---------- Ranglar (qorong'i) — tizim sozlamasi yoki qo'lda tanlangan ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0E141A; --bg-top: #121A22; --card: #151B22; --card-2: #1A222B; --card-3: #202A34;
    --ink: #E8EEF2; --soft: #95A3AF; --muted: #6F7E8B; --line: #26303A; --line-soft: #1C242D;
    --brand: #17B79F; --brand-d: #0FA38C; --brand-l: #2ED3BC; --brand-tint: #0D2723; --brand-ink: #5FE0CB;
    --red: #F7745C; --red-tint: #2E1512; --gold: #EBB24A; --gold-tint: #2A2210; --green: #3DD68C; --green-tint: #0E2419;
    --blue: #6AAAF0; --blue-tint: #0F2138; --violet: #A096F0; --violet-tint: #1E1A3A; --pink: #F28AB6; --pink-tint: #2E1422;
    --plate: #2A5CB8;
    --glow-a: rgba(16, 185, 129, .16); --glow-b: rgba(59, 130, 246, .14); --dot: rgba(255, 255, 255, .055);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 34px -18px rgba(0, 0, 0, .7);
    --shadow-lg: 0 28px 70px -24px rgba(0, 0, 0, .8);
    --focus: 0 0 0 3px rgba(23, 183, 159, .3);
    --chart-1: #14a38e; --cat-1: #3987e5; --cat-2: #d95926; --grid: #222B34; --axis: #35414C;
    --side-a: #0A1F1E; --side-b: #0B2A28; --side-c: #0D3833;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E141A; --bg-top: #121A22; --card: #151B22; --card-2: #1A222B; --card-3: #202A34;
  --ink: #E8EEF2; --soft: #95A3AF; --muted: #6F7E8B; --line: #26303A; --line-soft: #1C242D;
  --brand: #17B79F; --brand-d: #0FA38C; --brand-l: #2ED3BC; --brand-tint: #0D2723; --brand-ink: #5FE0CB;
  --red: #F7745C; --red-tint: #2E1512; --gold: #EBB24A; --gold-tint: #2A2210; --green: #3DD68C; --green-tint: #0E2419;
  --blue: #6AAAF0; --blue-tint: #0F2138; --violet: #A096F0; --violet-tint: #1E1A3A; --pink: #F28AB6; --pink-tint: #2E1422;
  --plate: #2A5CB8;
  --glow-a: rgba(16, 185, 129, .16); --glow-b: rgba(59, 130, 246, .14); --dot: rgba(255, 255, 255, .055);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 34px -18px rgba(0, 0, 0, .7);
  --shadow-lg: 0 28px 70px -24px rgba(0, 0, 0, .8);
  --focus: 0 0 0 3px rgba(23, 183, 159, .3);
  --chart-1: #14a38e; --cat-1: #3987e5; --cat-2: #d95926; --grid: #222B34; --axis: #35414C;
  --side-a: #0A1F1E; --side-b: #0B2A28; --side-c: #0D3833;
}

/* ---------- Asos ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-disp); letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--ink); }
img { max-width: 100%; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.hide { display: none !important; }
::selection { background: rgba(46, 211, 188, .28); }
:focus-visible { outline: none; box-shadow: var(--focus); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--card-3); border-radius: 8px; border: 2px solid var(--bg); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- AURORA MESH (ilovadagi fon bilan bir xil) ---------- */
.aurora { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 460px); }
.aurora::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(640px 460px at 0% 0%, var(--glow-a), transparent 72%),
              radial-gradient(640px 460px at 100% 2%, var(--glow-b), transparent 72%); }
.aurora::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 360px;
  background-image: radial-gradient(circle, var(--dot) 1.05px, transparent 1.35px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.4) 55%, transparent 100%); }

/* ---------- Ikonkalar ---------- */
.ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }
.ic svg { width: 100%; height: 100%; display: block; }
.ic.lg { width: 22px; height: 22px; }
.ic.sm { width: 15px; height: 15px; vertical-align: -2px; }

/* ---------- Tugmalar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border: 0; border-radius: 12px; font-weight: 700; font-size: 13.5px; letter-spacing: .01em; white-space: nowrap;
  color: #fff; background: linear-gradient(135deg, #2ED3BC, #13917F);
  box-shadow: 0 10px 20px -10px rgba(19, 145, 127, .7), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.04); box-shadow: 0 14px 26px -12px rgba(19, 145, 127, .8), inset 0 1px 0 rgba(255,255,255,.22); text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn.busy { opacity: .55; cursor: not-allowed; transform: none; filter: none; }
.btn.block { width: 100%; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 10px; gap: 6px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn.gold { background: linear-gradient(135deg, #FFC14D, #D9840B); box-shadow: 0 10px 20px -10px rgba(217, 132, 11, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.green { background: linear-gradient(135deg, #3DD68C, #128A58); box-shadow: 0 10px 20px -10px rgba(18, 138, 88, .7), inset 0 1px 0 rgba(255,255,255,.22); }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); filter: none; box-shadow: var(--shadow-sm); }
.btn.soft { background: var(--brand-tint); color: var(--brand-ink); box-shadow: none; }
.btn.soft:hover { filter: brightness(.98); box-shadow: none; }
.btn.danger { background: var(--red-tint); color: var(--red); box-shadow: none; }
.btn.danger:hover { filter: brightness(.97); box-shadow: none; }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.sm { width: 32px; }
.btn.white { background: #fff; color: #0B5A50; box-shadow: 0 10px 22px -12px rgba(0,0,0,.45); }
.btn.glass { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); box-shadow: none; }
.btn.glass:hover { background: rgba(255,255,255,.2); box-shadow: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand-ink); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.red { color: var(--red); }

/* ---------- Kiritish maydonlari ---------- */
.inp, select.inp, textarea.inp { width: 100%; height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--ink); font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.inp { height: auto; min-height: 96px; padding: 11px 13px; line-height: 1.55; resize: vertical; }
.inp:hover { border-color: color-mix(in srgb, var(--soft) 35%, var(--line)); }
.inp:focus { border-color: var(--brand); box-shadow: var(--focus); }
.inp::placeholder { color: var(--muted); }
.inp.big { height: 52px; font-size: 20px; font-weight: 700; font-family: var(--font-disp); }
.inp.pin { height: 54px; text-align: center; font-size: 24px; letter-spacing: 10px; font-weight: 700; font-family: var(--mono); }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238796A3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
select.inp.sm, .inp.sm { height: 32px; font-size: 12.5px; border-radius: 10px; padding-left: 10px; }
select.inp.sm { padding-right: 28px; background-position: right 9px center; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
input[type=file].inp { height: auto; padding: 8px; cursor: pointer; color: var(--soft); }
input[type=file].inp::file-selector-button { font: 600 13px var(--font); border: 0; border-radius: 10px; padding: 9px 14px; margin-right: 12px; background: var(--brand-tint); color: var(--brand-ink); cursor: pointer; }
input[type=file].inp:hover::file-selector-button { background: color-mix(in srgb, var(--brand) 18%, var(--brand-tint)); }
.fld > label, .lbl { font-size: 12.5px; font-weight: 600; color: var(--soft); }
.fld .hint, .hint-s { font-size: 12px; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--soft); cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.searchbox { position: relative; }
.searchbox .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.searchbox .inp { padding-left: 40px; }

/* ---------- Chiplar, pill (holat) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--soft); font-size: 12.5px; font-weight: 600; cursor: pointer; user-select: none; transition: .12s; }
.chip:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .n { font-family: var(--font-disp); font-weight: 700; opacity: .85; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  white-space: nowrap; background: var(--card-3); color: var(--soft); vertical-align: middle; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill.nodot::before { display: none; }
.pill.red { background: var(--red-tint); color: var(--red); }
.pill.gold { background: var(--gold-tint); color: var(--gold); }
.pill.green { background: var(--green-tint); color: var(--green); }
.pill.blue { background: var(--blue-tint); color: var(--blue); }
.pill.violet { background: var(--violet-tint); color: var(--violet); }
.pill.brand { background: var(--brand-tint); color: var(--brand-ink); }
.pill.pink { background: var(--pink-tint); color: var(--pink); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--card-3); color: var(--soft); }

/* ---------- KIRISH ekrani ---------- */
.gate { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); overflow: auto;
  background: linear-gradient(150deg, #0A2E2A 0%, #0B4F47 46%, #0F7466 100%); }
.gate::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(720px 520px at 8% 4%, rgba(16, 185, 129, .38), transparent 70%),
              radial-gradient(640px 480px at 92% 6%, rgba(59, 130, 246, .30), transparent 70%),
              radial-gradient(520px 420px at 60% 110%, rgba(46, 211, 188, .22), transparent 70%); }
.gate::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1.05px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.gate-hero { position: relative; z-index: 1; color: #EAFDFA; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.gate-brand { display: flex; align-items: center; gap: 14px; }
.mark { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; flex: none;
  background: linear-gradient(225deg, #22B8A2, #0B5A50); color: #fff; font: 700 22px/1 var(--font-disp);
  box-shadow: 0 12px 24px -12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.35); }
.mark.sm { width: 38px; height: 38px; border-radius: 12px; font-size: 18px; }
.gate-brand b { font: 700 22px/1 var(--font-disp); letter-spacing: -.02em; display: block; }
.gate-brand span { font-size: 12.5px; color: rgba(234, 253, 250, .7); }
.gate-title { font: 700 clamp(34px, 4.4vw, 54px)/1.04 var(--font-disp); letter-spacing: -.035em; max-width: 12ch; }
.gate-lead { margin-top: 16px; font-size: 16px; line-height: 1.6; color: rgba(234, 253, 250, .78); max-width: 46ch; }
.gate-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 620px; }
.gate-fact { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); border-radius: 16px; padding: 14px; }
.gate-fact .ic { color: #5FE0CB; }
.gate-fact b { display: block; margin-top: 8px; font: 600 14px/1.3 var(--font-disp); }
.gate-fact span { font-size: 12px; color: rgba(234,253,250,.66); line-height: 1.45; display: block; margin-top: 3px; }
.gate-side { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 32px; }
.gate-card { width: 100%; max-width: 420px; background: var(--card); color: var(--ink); border-radius: 26px; padding: 30px 28px 26px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); border: 1px solid rgba(255,255,255,.4); }
.gate-card h2 { font-size: 24px; }
.gate-card .sub { color: var(--soft); font-size: 13.5px; margin: 6px 0 20px; }
.gate-card .fld + .fld { margin-top: 14px; }
.gate-msg { margin-top: 14px; font-size: 13px; font-weight: 600; min-height: 18px; }
.gate-msg.err { color: var(--red); }
.gate-msg.ok { color: var(--green); }
.gate-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.5; }
.gate-foot .ic { color: var(--brand); margin-top: 1px; }
.pin-card { max-width: 380px; text-align: center; }
.pin-av { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(225deg, #22B8A2, #0B5A50); font: 700 26px/1 var(--font-disp); }
@media (max-width: 960px) { .gate { grid-template-columns: 1fr; } .gate-hero { padding: 32px 24px 0; gap: 22px; } .gate-facts { display: none; } .gate-title { font-size: 34px; } .gate-side { padding: 20px 16px 32px; align-items: flex-start; } }

/* ---------- QOBIQ: yon menyu + tepa panel ---------- */
.shell { position: relative; z-index: 1; min-height: 100vh; }
.side { position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; width: var(--side-w); display: flex; flex-direction: column;
  color: #E3F5F1; background: linear-gradient(170deg, var(--side-a) 0%, var(--side-b) 55%, var(--side-c) 100%); overflow: hidden; }
.side::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px 280px at 0% 0%, rgba(16,185,129,.30), transparent 70%), radial-gradient(300px 260px at 110% 100%, rgba(59,130,246,.16), transparent 70%); }
.side::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1.3px); background-size: 22px 22px; }
.side > * { position: relative; z-index: 1; }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 14px; }
.side-brand b { display: block; font: 700 18px/1.1 var(--font-disp); letter-spacing: -.02em; color: #fff; }
.side-brand span { font-size: 11.5px; color: rgba(227, 245, 241, .62); }
.nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-color: transparent; }
.nav-g { margin: 12px 10px 4px; font-size: 11.5px; font-weight: 600; color: rgba(227, 245, 241, .48); }
.nav-g:first-child { margin-top: 4px; }
.nav-i { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; height: 38px; padding: 0 12px; margin: 1px 0;
  border: 0; border-radius: 12px; background: none; color: rgba(227, 245, 241, .78); font-size: 13.5px; font-weight: 600; text-align: left;
  transition: background .15s, color .15s; }
.nav-i:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-i.on { background: linear-gradient(90deg, rgba(46, 211, 188, .24), rgba(255, 255, 255, .07)); color: #fff; }
.nav-i.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: #2ED3BC; }
.nav-i .ic { opacity: .9; }
.nav-i .cnt { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); font-size: 11px; font-weight: 700; }
.nav-i .cnt.red { background: #E5484D; color: #fff; }
.side-user { display: flex; align-items: center; gap: 11px; margin: 0 12px 14px; padding: 11px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; font: 700 15px/1 var(--font-disp);
  background: linear-gradient(225deg, #2ED3BC, #0A4A42); }
.side-user .u { min-width: 0; flex: 1; }
.side-user b { display: block; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user span { display: block; font-size: 11.5px; color: rgba(227,245,241,.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .btn.icon { width: 34px; height: 34px; border-radius: 10px; }
.scrim { position: fixed; inset: 0; z-index: 25; background: rgba(8, 20, 24, .5); backdrop-filter: blur(2px); }

.main { margin-left: var(--side-w); min-width: 0; padding: 0 32px 48px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; margin: 0 -32px 22px; padding: 16px 32px 14px;
  background: color-mix(in srgb, var(--bg-top) 78%, transparent); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.topbar .ttl { min-width: 0; flex: 1; }
.topbar h1 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .crumb { font-size: 12.5px; color: var(--soft); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .tools { display: flex; align-items: center; gap: 8px; }
.tb-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line);
  background: var(--card); color: var(--soft); box-shadow: var(--shadow-sm); transition: color .15s, border-color .15s; }
.tb-btn:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.tb-btn .dot { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center;
  background: #E5484D; color: #fff; font-size: 10.5px; font-weight: 800; border: 2px solid var(--bg-top); }
.bsk-pick { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 4px 0 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); box-shadow: var(--shadow-sm); color: var(--soft); }
.bsk-pick select { border: 0; background-color: transparent; height: 36px; min-width: 150px; max-width: 240px; font-weight: 700; color: var(--ink);
  box-shadow: none !important; padding-left: 0; }
.menu-btn { display: none; }
@media (max-width: 1100px) {
  .side { transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .shell.nav-open .side { transform: none; }
  .main { margin-left: 0; padding: 0 16px 40px; }
  .topbar { margin: 0 -16px 18px; padding: 12px 16px 10px; flex-wrap: wrap; }
  .menu-btn { display: grid; }
  .topbar h1 { font-size: 20px; }
}
@media (max-width: 640px) {
  .topbar .tools { width: 100%; order: 3; }
  .bsk-pick { flex: 1; min-width: 0; }
  .bsk-pick select { min-width: 0; max-width: none; width: 100%; }
  .hide-sm { display: none !important; }
}

/* ---------- Bo'lim, kartalar, setka ---------- */
.view { animation: viewIn .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.span2 { grid-column: span 2; }
.full { grid-column: 1 / -1; }
@media (max-width: 1280px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) { .g2, .g3, .g-21, .g-12 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.grow-txt { flex: 1 1 260px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.muted { color: var(--muted); } .soft { color: var(--soft); } .small { font-size: 12.5px; } .xs { font-size: 11.5px; }
.red-t { color: var(--red); } .green-t { color: var(--green); } .gold-t { color: var(--gold); } .brand-t { color: var(--brand-ink); } .blue-t { color: var(--blue); }
.b { font-weight: 700; }
.num { font-family: var(--font-disp); font-weight: 700; letter-spacing: -.01em; }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card.pad0 { padding: 0; }
.card.flat { box-shadow: none; }
.card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h .t { min-width: 0; flex: 1; }
.card-h h3 { font-size: 16px; font-weight: 700; }
.card-h .s { font-size: 12.5px; color: var(--soft); margin-top: 2px; }
.card-h .acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--b1) 22%, transparent), color-mix(in srgb, var(--b2) 20%, transparent)); color: var(--b2); }
:root[data-theme="dark"] .badge { color: color-mix(in srgb, var(--b1) 70%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: color-mix(in srgb, var(--b1) 70%, #fff); } }
.sec-label { display: flex; align-items: center; gap: 10px; margin: 26px 2px 12px; font-size: 13px; font-weight: 600; color: var(--soft); }
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .ic { width: 34px; height: 34px; color: var(--muted); opacity: .7; }
.empty b { display: block; margin-top: 10px; color: var(--soft); font-size: 14px; }
.empty span { display: block; margin-top: 4px; font-size: 12.5px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line);
  color: var(--soft); font-size: 13px; line-height: 1.55; }
.note .ic { color: var(--brand); margin-top: 1px; }
.note.warn { background: var(--gold-tint); border-color: transparent; color: color-mix(in srgb, var(--gold) 80%, var(--ink)); }
.note.warn .ic { color: var(--gold); }
.note.err { background: var(--red-tint); border-color: transparent; color: var(--red); }
.note.err .ic { color: var(--red); }
.note b { color: var(--ink); }
.out { margin-top: 14px; padding: 14px 16px; border-radius: 14px; font: 500 12.5px/1.65 var(--mono); white-space: pre-wrap; word-break: break-word;
  background: #0D1F1C; color: #A6EEDF; border: 1px solid rgba(127, 227, 208, .14); max-height: 420px; overflow: auto; }
.out .ok { color: #4ADE80; } .out .err { color: #FF9A9E; }
.out details summary { cursor: pointer; color: #7FE3D0; }
.out b { color: #fff; }

/* ---------- 🎨 SHISHA PLITKALAR (ilovadagi gradTile) ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1280px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.gt { position: relative; overflow: hidden; min-height: 118px; padding: 16px 16px 14px; border-radius: 20px; color: #fff; text-align: left;
  background: linear-gradient(135deg, var(--g1), var(--g2)); border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 16px 30px -18px var(--g2); display: flex; flex-direction: column; justify-content: flex-end; }
button.gt { cursor: pointer; font: inherit; transition: transform .14s ease, box-shadow .14s ease; }
button.gt:hover { transform: translateY(-2px); box-shadow: 0 22px 36px -18px var(--g2); }
.gt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,0) 55%); pointer-events: none; }
.gt::after { content: ""; position: absolute; right: -22px; top: -22px; width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.30), rgba(255,255,255,0) 70%); pointer-events: none; }
.gt > * { position: relative; z-index: 1; }
.gt .gi { position: absolute; right: 14px; top: 14px; opacity: .75; }
.gt .v { font: 700 27px/1.08 var(--font-disp); letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt .v small { font-size: 14px; font-weight: 600; opacity: .85; margin-left: 3px; }
.gt .l { margin-top: 4px; font-size: 12.5px; font-weight: 600; opacity: .93; line-height: 1.35; }
.g-teal { --g1: #2ED3BC; --g2: #0B7A6B; } .g-green { --g1: #3DD68C; --g2: #128A58; } .g-amber { --g1: #FFC14D; --g2: #D9840B; }
.g-blue { --g1: #5BA5F5; --g2: #2458B3; } .g-indigo { --g1: #8C7CF9; --g2: #4A3DB8; } .g-red { --g1: #FF7A6E; --g2: #C9302C; }
.g-pink { --g1: #F77FAE; --g2: #B4236A; } .g-slate { --g1: #8A9BB2; --g2: #4A586B; } .g-orange { --g1: #FF9A5C; --g2: #D9541E; } .g-cyan { --g1: #4FD1E0; --g2: #117A8B; }
.b-teal { --b1: #2ED3BC; --b2: #0B7A6B; } .b-green { --b1: #3DD68C; --b2: #128A58; } .b-amber { --b1: #FFC14D; --b2: #B86E00; } .b-blue { --b1: #5BA5F5; --b2: #2458B3; }
.b-indigo { --b1: #8C7CF9; --b2: #4A3DB8; } .b-red { --b1: #FF7A6E; --b2: #C9302C; } .b-pink { --b1: #F77FAE; --b2: #B4236A; } .b-slate { --b1: #8A9BB2; --b2: #4A586B; }
.b-orange { --b1: #FF9A5C; --b2: #C2461A; } .b-cyan { --b1: #4FD1E0; --b2: #117A8B; }

/* Oq plitka (ilovadagi whiteTile) */
.wt { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 15px 16px; box-shadow: var(--shadow); min-width: 0; text-align: left; }
button.wt { cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, transform .14s; }
button.wt:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); transform: translateY(-1px); }
.wt .top { display: flex; align-items: center; gap: 10px; }
.wt .top .badge { width: 34px; height: 34px; border-radius: 11px; }
.wt .top .l { font-size: 12.5px; color: var(--soft); font-weight: 600; flex: 1; min-width: 0; }
.wt .v { margin-top: 12px; font: 700 24px/1.1 var(--font-disp); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wt .v small { font-size: 13px; color: var(--soft); font-weight: 600; margin-left: 3px; }
.wt .s { margin-top: 5px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.meter { height: 7px; border-radius: 6px; background: var(--card-3); overflow: hidden; margin-top: 10px; }
.meter > i { display: block; height: 100%; border-radius: 6px; background: var(--chart-1); }
.meter.gold > i { background: #D9840B; } .meter.red > i { background: var(--red); } .meter.green > i { background: var(--green); }

/* Salomlashish (hero) */
.hello { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 22px 24px; color: #EAFDFA; margin-bottom: 16px;
  background: linear-gradient(135deg, #0C3B35 0%, #0B5A50 52%, #0F7466 100%); box-shadow: 0 24px 46px -26px rgba(11, 90, 80, .9); }
.hello::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 260px at 0% 0%, rgba(16,185,129,.42), transparent 72%), radial-gradient(420px 280px at 100% 0%, rgba(59,130,246,.32), transparent 72%); }
.hello::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.hello > * { position: relative; z-index: 1; }
.hello h2 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.hello .sub { margin-top: 6px; color: rgba(234, 253, 250, .76); font-size: 13.5px; }
.hello .acts { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Jadvallar ---------- */
.tw { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.card.pad0 .tw { margin: 0; padding: 0; }
.zt .who { min-width: 190px; max-width: 270px; }
.zt .who .w b, .zt .who .w span { white-space: normal; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card); position: sticky; top: 0; z-index: 1; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .1s; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--brand-tint) 45%, transparent); }
.tbl tr[data-act] { cursor: pointer; }
.tbl .r { text-align: right; }
.tbl td.r, .tbl td.num-c { font-variant-numeric: tabular-nums; }
.tbl .muted-row td { color: var(--muted); }
.tbl tr.alert td { background: color-mix(in srgb, var(--red-tint) 65%, transparent); }
.tbl tr.warn td { background: color-mix(in srgb, var(--gold-tint) 65%, transparent); }
.tbl .t2 { display: block; font-size: 12px; color: var(--soft); margin-top: 2px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 0 0; }
.pager .pg { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }

/* Uy raqami lavhasi (ilovadagi housePlate — ko'chadagi ko'k lavha) */
.plate { width: 44px; height: 44px; border-radius: 11px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--plate); color: #fff; border: 1.5px solid rgba(255, 255, 255, .7); box-shadow: 0 6px 12px -6px var(--plate); line-height: 1; }
.plate b { font: 800 16px/1 var(--font-disp); letter-spacing: -.02em; max-width: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate b.long { font-size: 12px; }
.plate span { font-size: 8.5px; font-weight: 700; opacity: .85; margin-top: 2px; }
.plate.sm { width: 36px; height: 36px; border-radius: 9px; } .plate.sm b { font-size: 13px; } .plate.sm span { font-size: 7.5px; }
.who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.who .w { min-width: 0; }
.who .w b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .w span { display: block; font-size: 12px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }

/* Mahalla kartalari */
.mah-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.mah { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 15px 16px; cursor: pointer; transition: .15s; box-shadow: var(--shadow-sm); font: inherit; color: inherit; }
.mah:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); transform: translateY(-2px); box-shadow: var(--shadow); }
.mah .nm { display: flex; align-items: center; gap: 9px; font: 700 15px/1.25 var(--font-disp); }
.mah .nm .ic { color: var(--brand); }
.mah .mt { margin-top: 5px; font-size: 12.5px; color: var(--soft); }
.mah .dv { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; min-width: 0; }
.mah .dv b { font: 700 22px/1 var(--font-disp); letter-spacing: -.02em; white-space: nowrap; }
.mah .dv span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.mah .meter { margin-top: 10px; }

/* Abonent profili */
.debt-card { border-radius: var(--r-lg); padding: 20px 22px; color: #fff; position: relative; overflow: hidden; box-shadow: 0 22px 40px -24px rgba(0,0,0,.7); }
.debt-card.pos { background: linear-gradient(135deg, #8E2E26, #45140F); }
.debt-card.neg, .debt-card.zero { background: linear-gradient(135deg, #17A385, #0A4B41); }
.debt-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }
.debt-card > * { position: relative; z-index: 1; }
.debt-card .k { font-size: 12.5px; font-weight: 600; opacity: .8; }
.debt-card .v { margin-top: 6px; font: 700 34px/1.05 var(--font-disp); letter-spacing: -.03em; }
.debt-card .v small { font-size: 15px; opacity: .8; font-weight: 600; }
.debt-card { display: flex; flex-direction: column; }
.dc-facts { margin-top: auto; padding-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dc-facts > div { background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 11px 13px; min-width: 0; }
.dc-facts span { display: block; font-size: 11.5px; font-weight: 600; opacity: .78; }
.dc-facts b { display: block; margin-top: 4px; font: 700 17px/1.15 var(--font-disp); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-facts b small { font-size: 12px; opacity: .8; font-weight: 600; }
.dc-facts em { display: block; font-style: normal; font-size: 12px; opacity: .8; margin-top: 2px; }
@media (max-width: 640px) { .dc-facts { grid-template-columns: 1fr 1fr; } }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--soft); }
.kv > b { text-align: right; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Modal oynalar ---------- */
.mbg { position: fixed; inset: 0; z-index: 80; background: rgba(8, 20, 24, .52); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .16s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; background: var(--card); border-radius: 24px; padding: 22px 22px 20px;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: popIn .2s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { max-width: 720px; }
.modal.xwide { max-width: 980px; }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-h { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-h .t { flex: 1; min-width: 0; }
.modal-h h3 { font-size: 18px; }
.modal-h .s { font-size: 13px; color: var(--soft); margin-top: 3px; }
.modal-x { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--card-2); color: var(--soft); display: grid; place-items: center; flex: none; }
.modal-x:hover { color: var(--ink); }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.modal .body-t { font-size: 13.5px; color: var(--soft); line-height: 1.6; white-space: pre-line; }
.chek { font: 500 12.5px/1.6 var(--mono); white-space: pre-wrap; background: var(--card-2); border: 1.5px dashed var(--line); border-radius: 14px; padding: 16px 18px; margin: 12px 0; color: var(--ink); }
.lightbox img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 14px; background: #000; }

/* ---------- Bildirishnomalar paneli ---------- */
.pop { position: fixed; z-index: 70; top: 66px; right: 24px; width: 400px; max-width: calc(100vw - 24px); max-height: min(560px, calc(100vh - 90px));
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; animation: popIn .16s ease; }
.pop-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pop-h b { font: 700 15px/1 var(--font-disp); }
.pop-l { overflow: auto; }
.ni { display: flex; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: background .1s; }
.ni:hover { background: var(--card-2); }
.ni.un { background: color-mix(in srgb, var(--brand-tint) 55%, transparent); }
.ni .nd { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: transparent; }
.ni.un .nd { background: var(--brand); }
.ni .nt { font-weight: 700; font-size: 13px; }
.ni .nb { font-size: 12.5px; color: var(--soft); margin-top: 2px; line-height: 1.45; }
.ni .nm { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Bildirish (toast) ---------- */
.toasts { position: fixed; z-index: 95; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; background: #13202B; color: #fff; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 16px 34px -14px rgba(0,0,0,.6); animation: toastIn .22s cubic-bezier(.2, .9, .3, 1.2); max-width: 560px; }
.toast .ic { color: #5FE0CB; }
.toast.err .ic { color: #FF9A9E; }
:root[data-theme="dark"] .toast { background: #26323C; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Grafiklar ---------- */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .ax text, .chart text.ax { fill: var(--muted); font: 500 11px var(--font); }
.chart .lbl-v { fill: var(--soft); font: 700 11.5px var(--font); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:focus { outline: none; }
.chart .bar { transition: opacity .12s; }
.chart.hovering .bar { opacity: .55; }
.chart.hovering .bar.on { opacity: 1; }
.chart .xh { stroke: var(--axis); stroke-width: 1; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px;
  box-shadow: var(--shadow-lg); font-size: 12.5px; min-width: 120px; transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; }
.tip .tv { font: 700 15px/1.2 var(--font-disp); color: var(--ink); }
.tip .tl { color: var(--soft); margin-top: 2px; }
.tip .tr { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.tip .tr i { width: 14px; height: 2.5px; border-radius: 2px; flex: none; }
.tip .tr b { font-family: var(--font-disp); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--soft); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.legend i.box { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- Jonli xarita ---------- */
.live-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: stretch; }
@media (max-width: 1180px) { .live-wrap { grid-template-columns: 1fr; } }
.map-box { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card-2); min-height: 560px; }
#liveMap { position: absolute; inset: 0; }
.map-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; z-index: 2; color: var(--soft); }
.map-bar { position: absolute; z-index: 500; left: 12px; right: 12px; top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.map-legend { position: absolute; z-index: 400; left: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 24px); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; color: var(--soft); box-shadow: var(--shadow-sm); }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; }
.wl { display: flex; flex-direction: column; min-height: 0; }
.wl-list { flex: 1; overflow: auto; max-height: 520px; margin: 0 -8px; padding: 0 8px; }
.wi { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px; border: 0; border-radius: 14px; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.wi:hover { background: var(--card-2); }
.wi .sd { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.wi .w { flex: 1; min-width: 0; }
.wi .w b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wi .w span { display: block; font-size: 12px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wi .ago { font-size: 12px; font-weight: 700; white-space: nowrap; }
.leaflet-container { font-family: var(--font); background: var(--card-2); }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; line-height: 1.5; }
.lp b { font-size: 14px; }
.lp .s { color: #5A6B78; }

/* ---------- Media (zayavka rasmlari) ---------- */
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.th { position: relative; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--card-3); padding: 0; cursor: zoom-in; flex: none; }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th .k { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; font-weight: 800; color: #fff; text-align: center; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent); padding: 6px 0 2px; }
.th.vid::after, .th.aud::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 14px; background: rgba(0,0,0,.25); }
.gal { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.gal .th { width: 100%; height: auto; aspect-ratio: 1; }

/* ---------- Skelet (birinchi yuklanish) ---------- */
.sk { background: linear-gradient(90deg, var(--card-3) 0%, var(--card-2) 50%, var(--card-3) 100%); background-size: 200% 100%; border-radius: 10px; animation: sk 1.4s ease-in-out infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-row { height: 14px; margin: 12px 0; }
.sk-tile { height: 118px; border-radius: 20px; }
.loading-dim { opacity: .55; transition: opacity .2s; pointer-events: none; }

/* ---------- Yorliq (tab) ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--card-3); flex-wrap: wrap; }
.tab { height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--soft); font-weight: 700; font-size: 13px; }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Xavfsizlik ---------- */
.gauge { position: relative; width: 150px; height: 150px; margin: 4px auto 0; }
.gauge svg { transform: rotate(-90deg); }
.gauge .c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge .c b { font: 700 34px/1 var(--font-disp); letter-spacing: -.03em; }
.gauge .c span { font-size: 12px; color: var(--muted); margin-top: 2px; }
.checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ck { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); font-size: 13px; }
.ck .ok-i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--green-tint); color: var(--green); }
.ck .no-i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--red-tint); color: var(--red); }
.ck .wait-i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--card-3); color: var(--muted); }
.ck b { display: block; font-size: 13px; }
.ck span { display: block; font-size: 12px; color: var(--soft); margin-top: 1px; }
/* E-IMZO kalit kartasi */
.keyc { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card);
  text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.keyc + .keyc { margin-top: 8px; }
.keyc:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.keyc.sel { border-color: var(--brand); background: var(--brand-tint); }
.keyc .w { flex: 1; min-width: 0; }
.keyc .w b { display: block; font-size: 14px; }
.keyc .w span { display: block; font-size: 12px; color: var(--soft); margin-top: 2px; overflow-wrap: anywhere; }
.notes-box { max-height: 200px; overflow: auto; white-space: pre-line; font-size: 12.5px; line-height: 1.6; color: var(--soft);
  background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 13px; }
.err-item { border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; background: var(--card); }
.err-item + .err-item { margin-top: 10px; }
.err-item pre { margin: 8px 0 0; font: 500 11.5px/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; color: var(--soft); max-height: 160px; overflow: auto;
  background: var(--card-2); border-radius: 10px; padding: 9px 11px; }

/* ---------- Kichik ekranlar ---------- */
@media (max-width: 640px) {
  .card { padding: 16px; border-radius: 18px; }
  .tw { margin: 0 -16px; padding: 0 16px; }
  .gt { min-height: 98px; padding: 13px 13px 12px; border-radius: 18px; }
  .gt .v { font-size: 21px; }
  .gt .v small { font-size: 12px; }
  .gt .l { font-size: 11.5px; }
  .gt .gi { right: 11px; top: 11px; }
  .hello { padding: 18px; } .hello h2 { font-size: 21px; }
  /* jadvallar telefonda: har qator — alohida karta (gorizontal aylantirish shart emas) */
  .tbl.stack-sm thead { display: none; }
  .tbl.stack-sm, .tbl.stack-sm tbody, .tbl.stack-sm tr, .tbl.stack-sm td { display: block; width: 100%; }
  .tbl.stack-sm tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tbl.stack-sm tr:last-child { border-bottom: 0; }
  .tbl.stack-sm td { padding: 3px 0; border: 0; min-width: 0 !important; max-width: none !important; text-align: left; }
  .tbl.stack-sm td.nowrap { white-space: normal; }
  .tbl.stack-sm tbody tr:hover td { background: none; }
  .tbl.stack-sm tr.alert, .tbl.stack-sm tr.warn { border-radius: 12px; padding: 10px; margin: 4px 0; }
  .tbl.stack-sm tr.alert { background: color-mix(in srgb, var(--red-tint) 65%, transparent); }
  .tbl.stack-sm tr.alert td, .tbl.stack-sm tr.warn td { background: none; }
  .tbl.stack-sm td:empty { display: none; }
  .card.pad0 .tbl.stack-sm { padding: 0 16px; }
  .zt .who { max-width: none; }
  .modal { padding: 18px 16px 16px; border-radius: 20px; }
  .pop { right: 12px; top: 60px; }
  .map-box { min-height: 440px; }
}

/* ---------- Chop etish ---------- */
@media print {
  .side, .topbar, .aurora, .toasts, .no-print { display: none !important; }
  .main { margin: 0; padding: 0; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  body { background: #fff; color: #000; }
}
