/* SMMGO — palitra atlas (abr) matosidan: siyoh, indigo, za'faron, anor, zumrad.
   Yorqinlik bitta joyda: balans tasmasidagi atlas naqshi. Qolgani tinch. */
:root {
  --paper: #f4f5f9;
  --surface: #ffffff;
  --ink: #1e1b4b;
  --muted: #64638a;
  --line: #e3e4ef;
  --indigo: #3b2fa6;
  --indigo-soft: #ecebfc;
  --saffron: #f0a81e;
  --saffron-soft: #fdf3de;
  --saffron-ink: #8a5a00;
  --pomegranate: #c2303e;
  --pomegranate-soft: #f9e6e8;
  --emerald: #138a5e;
  --emerald-soft: #e2f3ec;
  --ink-soft: #e9e8f1;
  --on-indigo: #ffffff;
  --radius-l: 20px;
  --radius-m: 16px;
  --radius-s: 12px;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #13122a; --surface: #1c1a38; --ink: #eeedf7; --muted: #a4a2c4; --line: #2d2b50;
    --indigo: #8c83f2; --indigo-soft: #2a2758; --saffron-soft: #3a2f1c; --saffron-ink: #f3c062;
    --pomegranate-soft: #3a1e2a; --emerald-soft: #173a33; --ink-soft: #26244a; --on-indigo: #13122a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #13122a; --surface: #1c1a38; --ink: #eeedf7; --muted: #a4a2c4; --line: #2d2b50;
  --indigo: #8c83f2; --indigo-soft: #2a2758; --saffron-soft: #3a2f1c; --saffron-ink: #f3c062;
  --pomegranate-soft: #3a1e2a; --emerald-soft: #173a33; --ink-soft: #26244a; --on-indigo: #13122a; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink); font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: 6px; }
.app { max-width: 1080px; margin: 0 auto; min-height: 70vh; padding: 0 16px 104px; }

/* ---------- yuqori panel ---------- */
.head { position: sticky; top: 0; z-index: 15; background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.head-in { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 2px; }
.logo svg { width: 28px; height: 28px; }
.logo span { font: 600 24px/1 var(--display); letter-spacing: -.05em; }
.back { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); margin-right: -2px; }
.back svg { width: 20px; height: 20px; }
.topnav { display: none; gap: 4px; margin-left: 24px; }
.topnav button { background: none; border: 0; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.topnav button[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.pill-bal { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 15px; white-space: nowrap; }
.pill-bal i { width: 10px; height: 10px; transform: rotate(45deg); background: var(--saffron); border-radius: 2px; }

/* ---------- balans tasmasi (atlas naqshi — yagona yorqin joy) ---------- */
.band {
  position: relative; margin: 8px 0 24px; padding: 22px 22px 22px; border-radius: var(--radius-l);
  color: #fff; overflow: hidden; background: #1e1b4b;
}
.band::before {
  content: ""; position: absolute; inset: -10px; opacity: .95;
  background:
    linear-gradient(135deg, #f0a81e 22%, transparent 22%) 0 0 / 64px 64px,
    linear-gradient(225deg, #f0a81e 22%, transparent 22%) 0 0 / 64px 64px,
    linear-gradient(315deg, #f0a81e 22%, transparent 22%) 0 0 / 64px 64px,
    linear-gradient(45deg, #f0a81e 22%, transparent 22%) 0 0 / 64px 64px,
    linear-gradient(135deg, #c2303e 34%, transparent 34%) 32px 0 / 64px 64px,
    linear-gradient(225deg, #c2303e 34%, transparent 34%) 32px 0 / 64px 64px,
    linear-gradient(315deg, #c2303e 34%, transparent 34%) 32px 0 / 64px 64px,
    linear-gradient(45deg, #c2303e 34%, transparent 34%) 32px 0 / 64px 64px,
    #3b2fa6;
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 3px, rgba(0,0,0,.6) 3px 4px),
                repeating-linear-gradient(90deg, #000 0 5px, rgba(0,0,0,.82) 5px 6px);
  -webkit-mask-composite: source-in;
          mask: repeating-linear-gradient(0deg, #000 0 3px, rgba(0,0,0,.6) 3px 4px),
                repeating-linear-gradient(90deg, #000 0 5px, rgba(0,0,0,.82) 5px 6px);
          mask-composite: intersect;
  filter: blur(1.1px);
}
.band::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,19,43,.95) 0 46%, rgba(20,19,43,.5) 72%, rgba(20,19,43,.12)); }
.band > * { position: relative; z-index: 1; }
.band .who { font-size: 15px; opacity: .85; }
.band .amount { font: 600 34px/1.1 var(--display); letter-spacing: -.03em; margin: 6px 0 18px; }
.band .amount small { font: 500 16px var(--body); opacity: .75; margin-left: 8px; letter-spacing: 0; }
.band .acts { display: flex; gap: 8px; }
.band .acts .btn { flex: 1 1 auto; padding: 11px 14px; font-size: 15px; white-space: nowrap; }
.band .btn { background: #fff; color: #1e1b4b; }
.band .btn.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }

/* ---------- sarlavhalar ---------- */
.title { font: 600 24px/1.25 var(--display); letter-spacing: -.03em; margin: 12px 0 6px; display: flex; align-items: center; gap: 12px; }
.sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; max-width: 62ch; }
.h2 { font: 600 17px/1.3 var(--display); letter-spacing: -.02em; margin: 30px 0 12px; }
.group-title { font-weight: 600; margin: 26px 0 10px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.group-sub { margin: -6px 0 10px; font-size: 14px; }

/* ---------- bo'lim belgilari ---------- */
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex: none; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.smm { background: var(--saffron-soft); color: var(--saffron-ink); }
.ico.telegram { background: var(--indigo-soft); color: var(--indigo); }
.ico.numbers { background: var(--emerald-soft); color: var(--emerald); }
.ico.subs { background: var(--pomegranate-soft); color: var(--pomegranate); }
.ico.games { background: var(--ink-soft); color: var(--ink); }
.title .ico { width: 40px; height: 40px; border-radius: 12px; }

/* bosh sahifadagi bo'limlar */
.sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sec {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; padding: 16px;
  border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface); min-height: 132px;
}
.sec:active { transform: scale(.985); }
.sec div { display: grid; gap: 4px; }
.sec b { font-size: 17px; line-height: 1.2; }
.sec span { color: var(--muted); font-size: 14px; line-height: 1.35; }
.sec.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 0; }

/* ko'p olinadi */
.picks { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.picks::-webkit-scrollbar { display: none; }
.pick {
  flex: none; width: 176px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 14px; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface);
}
.pick small { color: var(--muted); font-size: 13px; }
.pick b { font-size: 16px; line-height: 1.25; min-height: 2.5em; }
.pick .price { margin-top: auto; font-weight: 600; }
.pick .price em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 13px; }

/* ---------- xizmatlar ro'yxati ---------- */
.svc-list { display: grid; gap: 8px; }
.svc {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left;
  border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface);
}
.svc:active { background: var(--indigo-soft); }
.svc .main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.svc .name { font-weight: 600; line-height: 1.3; }
.svc .hint { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.svc .side { text-align: right; white-space: nowrap; font-weight: 600; }
.svc .side small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.chev { color: var(--muted); flex: none; }

/* mahsulot plitkalari (Stars, Premium, obunalar, o'yinlar) */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile {
  display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 16px; min-height: 124px;
  border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface);
}
.tile:active { background: var(--indigo-soft); }
.tile b { font: 600 18px/1.2 var(--display); letter-spacing: -.02em; }
.tile span { color: var(--muted); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .price { margin-top: auto; font-weight: 600; font-size: 16px; }

/* ---------- chiplar ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- xavf ---------- */
.risk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.risk::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: currentColor; border-radius: 1px; }
.risk.low { color: var(--emerald); } .risk.mid { color: var(--saffron-ink); } .risk.high { color: var(--pomegranate); }
.tag { font-size: 13px; color: var(--muted); }

/* ---------- tugmalar va maydonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  padding: 12px 18px; border-radius: var(--radius-s); font-weight: 600; background: var(--indigo); color: var(--on-indigo);
  min-height: 44px;
}
.btn.wide { width: 100%; padding: 15px 18px; font-size: 17px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.danger { background: transparent; color: var(--pomegranate); border-color: var(--line); }
.btn:disabled { opacity: .5; cursor: default; }
.field { display: block; margin: 0 0 14px; }
.field span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--paper); font-size: 16px; color: inherit; font-family: inherit; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.45; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }
.amounts { display: flex; gap: 8px; margin: -4px 0 16px; flex-wrap: wrap; }
.amounts .chip { padding: 7px 14px; font-size: 14px; }

/* ---------- pastki oyna / modal ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(19,18,42,.5); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--surface);
  border-radius: var(--radius-l) var(--radius-l) 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(32px); } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } .sec:active { transform: none; } }
.grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 16px; }
.sheet h2 { font: 600 20px/1.3 var(--display); margin: 0 0 6px; letter-spacing: -.02em; }
.sheet p { margin: 0 0 14px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.total b { font: 600 24px var(--display); letter-spacing: -.02em; }
.rules { padding-left: 20px; margin: 0 0 18px; }
.rules li { margin-bottom: 10px; font-size: 15px; }

/* ---------- raqam ekrani ---------- */
.number-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; text-align: center; max-width: 520px; }
.phone { font: 600 26px/1.2 var(--display); letter-spacing: .01em; margin: 10px 0 4px; word-break: break-all; }
.code { font: 600 44px/1.1 var(--display); letter-spacing: .14em; color: var(--emerald); margin: 10px 0 4px; }
.wait { color: var(--muted); }
.copy { background: none; border: 0; color: var(--indigo); font-weight: 600; padding: 8px; min-height: 40px; }
.actions { display: grid; gap: 10px; margin-top: 16px; max-width: 520px; }

/* ---------- buyurtmalar ---------- */
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--indigo-soft); color: var(--indigo); white-space: nowrap; }
.pill.ok { background: var(--emerald-soft); color: var(--emerald); }
.pill.bad { background: var(--pomegranate-soft); color: var(--pomegranate); }
.orders { display: grid; gap: 8px; max-width: 760px; }
.order { display: flex; gap: 14px; padding: 14px 16px; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--surface); }
.order .ico { width: 40px; height: 40px; border-radius: 12px; }
.order .ico svg { width: 20px; height: 20px; }
.order .body { flex: 1; min-width: 0; }
.order .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.order .top b { line-height: 1.3; }
.order .meta { color: var(--muted); font-size: 14px; word-break: break-all; margin-top: 2px; }
.order .btn { margin-top: 10px; padding: 8px 14px; font-size: 14px; min-height: 40px; }

/* ---------- hisob ---------- */
.split { display: grid; gap: 8px 32px; }
.paybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px; }
.cardbox { border-radius: var(--radius-m); background: var(--paper); padding: 14px 16px; margin: 0 0 14px; }
.card-no { font: 600 18px var(--display); letter-spacing: .02em; margin: 2px 0; white-space: nowrap; }
.steps { margin: 0 0 16px; padding-left: 20px; color: var(--muted); font-size: 14px; }
.steps li { margin-bottom: 4px; }

/* ---------- pastki menyu (telefon) ---------- */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: center;
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs nav { display: flex; width: 100%; max-width: 560px; }
.tab { flex: 1; padding: 10px 4px 12px; background: none; border: 0; color: var(--muted); font-size: 12.5px; display: grid; justify-items: center; gap: 3px; }
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--indigo); font-weight: 600; }

/* ---------- boshqalar ---------- */
.empty { text-align: center; color: var(--muted); padding: 48px 12px; }
.empty .btn { margin-top: 14px; }
.toast { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 30; max-width: 90vw;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--radius-s); font-size: 15px; box-shadow: 0 8px 24px rgba(19,18,42,.25); }
.toast.err { background: var(--pomegranate); color: #fff; }
.note { background: var(--indigo-soft); border-radius: var(--radius-s); padding: 12px 14px; font-size: 14px; margin: 0 0 14px; }
.skeleton { height: 68px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; }
.file { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: var(--radius-s);
  border: 1px dashed var(--line); background: var(--paper); cursor: pointer; margin: 0 0 14px; min-height: 48px; }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file:focus-within { border-color: var(--indigo); }
.file b { color: var(--indigo); font-weight: 600; white-space: nowrap; }
.file span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot { margin: 40px 0 0; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot button, .foot a { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- kirish sahifasi ---------- */
.login { max-width: 440px; margin: 0 auto; padding: 12vh 0 40px; text-align: center; }
.login .mark { width: 88px; height: 88px; margin: 0 auto 18px; display: block; }
.login h1 { font: 600 56px/1 var(--display); letter-spacing: -.05em; margin: 0 0 8px; }
.login .sub { margin: 0 auto 24px; }
.perks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; text-align: left; }
.perks li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.perks .ico { width: 36px; height: 36px; border-radius: 10px; }
.perks .ico svg { width: 18px; height: 18px; }

/* ---------- admin: narxlar jadvali (trekerlardek) ---------- */
.adm .title { margin-bottom: 14px; }
.adm-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; margin: 0 0 18px; }
.adm-strip .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stat { background: var(--surface); padding: 11px 14px 12px; display: grid; gap: 1px; min-width: 0; align-content: start; }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { font: 600 17px/1.3 var(--display); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12.5px; color: var(--muted); }
.stat.warn b { color: var(--saffron-ink); }
.stat.muted b { color: var(--muted); font: 500 15px/1.5 var(--body); letter-spacing: 0; }

.adm-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 -16px 14px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs button { flex: none; background: none; border: 0; padding: 10px 14px 11px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.adm-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--indigo); }
.adm-tabs .short { display: none; }
@media (max-width: 480px) {
  .adm-tabs { gap: 0; }
  .adm-tabs button { flex: 1; padding: 10px 6px 11px; }
  .adm-tabs .full { display: none; }
  .adm-tabs .short { display: inline; }
}

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 8px; }
.toolbar .search { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border-radius: var(--radius-s); border: 1px solid var(--line);
  background: var(--surface); font-size: 16px; }
.toolbar .search:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }
.toolbar > .btn.sm:last-child { margin-left: auto; }
.btn.sm { padding: 8px 14px; min-height: 40px; font-size: 15px; }
.chips.flat { margin: 0 0 12px; padding: 0; flex-wrap: wrap; overflow: visible; }
.toolbar .chips.flat { margin: 0; }
.chips.flat .chip { padding: 7px 13px; font-size: 14px; }
.hint-line { color: var(--muted); font-size: 13.5px; margin: 4px 0 12px; max-width: 86ch; }

.grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface);
  margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
.grid-wrap.narrow { max-width: 780px; }
.grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.grid th, .grid td { border-bottom: 1px solid var(--line); padding: 0; text-align: left; vertical-align: middle; white-space: nowrap; position: relative; }
.grid tbody tr:last-child > * { border-bottom: 0; }
.grid thead th { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 9px 10px; background: var(--paper); }
.grid .r { text-align: right; }
.grid .ctr { text-align: center; }
.grid .stick { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); min-width: 136px; max-width: 168px; }
.grid thead .stick { background: var(--paper); z-index: 2; }
.grid th.stick small { display: block; padding: 0 10px 8px; margin-top: -6px; color: var(--muted); font-weight: 400; font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; }
.grid th.plain { padding: 10px; font-weight: 500; }
.grp th { background: var(--paper); padding: 0; }
.grp .gl { position: sticky; left: 0; display: inline-flex; align-items: baseline; gap: 10px; padding: 14px 10px 6px; font-weight: 600; font-size: 14px; }
.grp .gl small { color: var(--muted); font-weight: 400; font-size: 13px; }
.grid .none { padding: 28px 14px; text-align: center; color: var(--muted); white-space: normal; }

.cell { display: block; width: 100%; min-width: 0; border: 0; border-radius: 0; background: transparent; padding: 10px;
  font: inherit; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cell.num { text-align: right; width: 100%; min-width: 88px; padding-right: 12px; }
.cell.txt { min-width: 136px; font-weight: 600; text-overflow: ellipsis; }
.cell.muted { color: var(--muted); }
.cell:hover { background: var(--paper); }
.cell:focus { outline: 2px solid var(--indigo); outline-offset: -2px; background: var(--surface); border-radius: 4px; }
.cell.busy { opacity: .45; }
select.cell { -webkit-appearance: none; appearance: none; width: auto; min-width: 108px; padding-right: 26px; cursor: pointer; font-weight: 500;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 14px center, right 9px center; background-size: 5px 5px; background-repeat: no-repeat; }
select.risk-low { color: var(--emerald); }
select.risk-mid { color: var(--saffron-ink); }
select.risk-high { color: var(--pomegranate); }
.grid .calc { padding: 10px 12px; text-align: right; color: var(--muted); }
.grid .calc small { display: block; font-size: 12px; }
.grid .calc.pos { color: var(--emerald); font-weight: 600; }
.grid .calc.neg { color: var(--pomegranate); font-weight: 600; }
.grid .calc.strong { color: var(--ink); font-weight: 600; }
.reset { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center;
  border: 0; border-radius: 50%; padding: 0; background: var(--indigo-soft); color: var(--indigo); z-index: 1; }
tr.off th .cell, tr.off td:not(:last-child) { opacity: .45; }

@keyframes okflash { from { background-color: var(--emerald-soft); } }
@keyframes errflash { from { background-color: var(--pomegranate-soft); } }
.saved { animation: okflash 1.4s ease-out; }
.failed { animation: errflash 1.8s ease-out; }
@media (prefers-reduced-motion: reduce) { .saved, .failed { animation-duration: .01s; } }

.switch { position: relative; display: inline-block; width: 40px; height: 24px; margin: 8px 12px; vertical-align: middle; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background-color .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(19,18,42,.25); transition: transform .15s; }
.switch input:checked + i { background: var(--emerald); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--indigo); outline-offset: 2px; }

.grid.form th { padding: 10px 12px; font-weight: 600; white-space: normal; }
.grid.form th small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; line-height: 1.4; margin-top: 2px; }
.grid.form td { width: 132px; }
.grid.form td.ctr { text-align: right; }

.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; margin: 4px 6px; padding: 0; border: 0;
  border-radius: 10px; background: transparent; color: var(--muted); }
.icon-btn:hover { background: var(--paper); color: var(--ink); }
.icon-btn.del:hover { background: var(--pomegranate-soft); color: var(--pomegranate); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 780px; margin: 22px 0 10px; }
.sec-head .group-title { margin: 0; }
details.manual { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
details.manual summary { cursor: pointer; color: var(--indigo); font-weight: 600; margin-bottom: 12px; }
.sheet .actions { margin-top: 6px; max-width: none; }
.found { display: grid; gap: 8px; }
.found .tag { margin: 0; }
.found-row { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.found-row .main { flex: 1; min-width: 0; display: grid; gap: 2px; align-content: start; }
.found-row .main b { font-size: 14.5px; line-height: 1.3; font-weight: 600; }
.found-row .main span { color: var(--muted); font-size: 13px; }
.found-row .side { text-align: right; display: grid; gap: 4px; justify-items: end; align-content: start; white-space: nowrap; }
.found-row .side small { color: var(--muted); font-size: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field select, select.input { width: 100%; padding: 13px 14px; border-radius: var(--radius-s); border: 1px solid var(--line);
  background: var(--paper); font: inherit; font-size: 16px; color: var(--ink); }
.field .chips.flat { margin: 0; }

/* ---------- kompyuter ---------- */
@media (min-width: 900px) {
  .app { padding: 0 32px 64px; }
  .head-in { padding: 14px 32px; }
  .topnav { display: flex; }
  .tabs { display: none; }
  .band { padding: 32px 36px; margin-top: 16px; }
  .band .amount { font-size: 48px; }
  .band .acts .btn { flex: 0 0 auto; padding: 12px 20px; font-size: 16px; }
  .sections { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
  .sec.wide { grid-column: auto; flex-direction: column; align-items: flex-start; min-height: 132px; }
  .picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .pick { width: auto; }
  .chips { margin: 0; padding: 2px 0 16px; flex-wrap: wrap; }
  .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .sheet-bg { align-items: center; }
  .sheet { border-radius: var(--radius-l); padding: 26px 28px 28px; max-width: 500px; }
  .grip { display: none; }
  .title { font-size: 30px; margin-top: 20px; }
  .adm-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .adm-strip .stat:last-child:nth-child(odd) { grid-column: auto; }
  .adm-tabs { margin: 0 0 16px; padding: 0; }
  .cell { font-size: 14.5px; }
  .cell.txt { min-width: 190px; }
  .grid .stick { min-width: 200px; max-width: 300px; }
  .grid.form td { width: 160px; }
  .grid { font-size: 14px; }
}

/* mavzu tugmasi (avto / yorug' / tungi) */
.theme-btn { margin-left: auto; width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); flex: none; }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.theme-btn + .pill-bal { margin-left: 0; }
.cell.txt[data-col="group"] { min-width: 112px; font-weight: 500; }
.grid td.mk { white-space: nowrap; }
.grid td.mk .cell.num { min-width: 96px; }
.cell.txt[data-col="group"] { min-width: 132px; }
/* nakrutka: platforma ichidagi xizmat turlari */
.sub-chips { margin-top: -4px; }
.sub-chips .chip { font-size: 14px; padding: 7px 12px; background: transparent; }
.sub-chips .chip[aria-pressed="true"] { background: var(--surface); color: var(--ink); border-color: var(--indigo); box-shadow: inset 0 0 0 1px var(--indigo); }
/* nakrutka filtrlari: «Turi» (guruh) va «Xavf» qatorlari */
.filter-row { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; min-width: 0; }
.filter-label { flex: none; width: 34px; font-size: 13px; color: var(--muted); }
.filter-row .chips { margin: 0 -16px 0 0; padding: 2px 16px 2px 0; flex: 1; min-width: 0; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 12px;
  border-radius: 999px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button:focus-visible { outline: 2px solid var(--indigo); outline-offset: 1px; }
.dot { width: 7px; height: 7px; border-radius: 1px; transform: rotate(45deg); flex: none; }
.dot.low { background: var(--emerald); } .dot.mid { background: var(--saffron-ink); } .dot.high { background: var(--pomegranate); }
/* mahsulot tavsifi: qatorlar va ro'yxatlar saqlanadi */
#sheet p.desc { white-space: pre-line; line-height: 1.5; }
