/* ═══════════════════════════════════════════════════════════════
   STARS BAZAAR — Mini App dizayn tizimi
   Qora (default) + Oq-sariq (light) mavzular, iOS liquid-glass
   ═══════════════════════════════════════════════════════════════ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* ── Dark theme (default): qora + sariq ── */
  --bg: #09090B;
  --bg2: #111318;
  --card: #171612;
  --card-hover: #201E17;
  --primary: #FFC53D;
  --grad-a: #E8A400;
  --grad-b: #FFD25E;
  --accent-rgb: 255, 197, 61;
  --glow: rgba(255, 197, 61, .28);
  --cta: #FFD43B;
  --cta2: #FFC107;
  --cta-pressed: #F5B800;
  --cta-text: #241A00;
  --text: #FFFFFF;
  --subtitle: #C4BFAF;
  --secondary: #98937F;
  --disabled: #5E5B4E;
  --border: #33302A;
  --selected: #FFC53D;
  --success: #34D399;
  --error: #FF5C5C;
  --warning: #FFB020;
  --badge-stars: #FFD43B;
  --badge-premium: #9B5CFF;
  --badge-gifts: #FF5DB1;
  --badge-give: #34C759;
  --pay-click: #00A3FF;
  --pay-humo: #00C853;
  --pay-uzcard: #1E88E5;
  --pay-admin: #8B5CF6;
  --bal-grad-a: #6E5200;
  --bal-grad-b: #B8860B;
  --banner-a: #3D3200;
  --banner-b: #8A6D1A;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-glow: 0 0 20px rgba(255, 197, 61, .20);
  --shadow-btn: 0 8px 25px rgba(255, 212, 59, .25);

  /* glass */
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03));
  --glass-border: rgba(255, 255, 255, .13);
  --glass-highlight: rgba(255, 255, 255, .18);
  --glass-cta-bg: linear-gradient(160deg, rgba(255, 212, 59, .92), rgba(255, 193, 7, .82));
  --glass-cta-border: rgba(255, 230, 140, .55);
  --glass-primary-bg: linear-gradient(160deg, rgba(255, 197, 61, .34), rgba(255, 160, 0, .14));
  --glass-primary-border: rgba(255, 210, 94, .45);
  --sheet-bg: rgba(20, 19, 15, .92);
  --nav-bg: rgba(15, 14, 11, .78);
  --input-bg: rgba(255, 255, 255, .04);
  --scrim: rgba(0, 0, 0, .6);
  --skeleton: rgba(255, 255, 255, .06);
}

/* ── Light theme: oq-sariq aralash (krem fon, iliq kartalar) ── */
[data-theme="light"] {
  --bg: #F7F2E4;
  --bg2: #F2ECDA;
  --card: #FFFDF6;
  --card-hover: #FFF7E0;
  --primary: #7C4DFF;
  --grad-a: #6D4AFF;
  --grad-b: #9A6CFF;
  --accent-rgb: 124, 77, 255;
  --selected: #7C4DFF;
  --subtitle: #565B66;
  --bal-grad-a: #6D4AFF;
  --bal-grad-b: #8A5DFF;
  --banner-a: #5E35B1;
  --banner-b: #7C4DFF;
  --glow: rgba(124, 77, 255, .18);
  --cta-text: #241A00;
  --text: #17171F;
  --subtitle: #565B66;
  --secondary: #7F8490;
  --disabled: #ABB0BA;
  --border: #E7DFC8;
  --shadow-card: 0 10px 30px rgba(140, 110, 30, .12);
  --shadow-glow: 0 0 20px rgba(124, 77, 255, .12);
  --shadow-btn: 0 8px 25px rgba(224, 168, 0, .28);

  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 250, 230, .55));
  --glass-border: rgba(190, 160, 80, .28);
  --glass-highlight: rgba(255, 255, 255, .9);
  --glass-cta-bg: linear-gradient(160deg, rgba(255, 208, 48, .95), rgba(255, 184, 0, .88));
  --glass-cta-border: rgba(200, 150, 0, .35);
  --glass-primary-bg: linear-gradient(160deg, rgba(124, 77, 255, .9), rgba(109, 74, 255, .75));
  --glass-primary-border: rgba(124, 77, 255, .35);
  --sheet-bg: rgba(255, 252, 242, .94);
  --nav-bg: rgba(255, 251, 238, .82);
  --input-bg: rgba(120, 95, 20, .05);
  --scrim: rgba(40, 32, 8, .38);
  --skeleton: rgba(120, 95, 20, .08);
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

body::before {
  /* yumshoq nur — orqa fonda. O'z GPU qatlamida turadi (translateZ) — banner
     videosi ishlaganda qayta chizilib miltillamasligi uchun. */
  content: '';
  position: fixed;
  inset: -20% -20% auto -20%;
  height: 55vh;
  background: radial-gradient(ellipse at 50% 0%, var(--glow), transparent 65%);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

[data-theme="light"] body::before {
  opacity: .35;
}

#app {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 14px 14px calc(92px + env(safe-area-inset-bottom));
}

/* ── Apple emoji rasmlari ── */
img.emo {
  width: 1.22em;
  height: 1.22em;
  display: inline-block;
  vertical-align: -0.24em;
  object-fit: contain;
  pointer-events: none;
}

/* ── Mahsulot ikonkalari (stars/premium SVG) ── */
.pic {
  width: 1.3em;
  height: 1.3em;
  display: inline-block;
  vertical-align: -0.26em;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .2));
}

.g-e .pic {
  width: 1em;
  height: 1em;
}

/* Animatsion emoji (Telegram Stars/Premium) — BIR MARTA o'ynaydi va to'xtaydi.
   O'lchami statik rasm bilan bir xil (.pic dan meros), shuning uchun yuklanganda
   kontent joyidan siljimaydi. */
span.anim-ic {
  overflow: hidden;
  line-height: 0;
  filter: none;
}
span.anim-ic > svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ── To'lov tizimi logolari (Payme/Click/Humo-Uzcard) ── */
img.pm-logo {
  width: 34px;
  height: 24px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  pointer-events: none;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
}

/* GPU qatlamlari doimiy bo'lsin — banner siljiganda glass elementlar
   miltillamasligi (rang o'ynamasligi) uchun */
.card,
.opt-row,
.seg button,
.prod-card,
.chip,
.wallet-chip,
.bottom-nav {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ── Boot loader ── */
.boot-loader {
  display: grid;
  place-items: center;
  height: 80vh;
}

.boot-star {
  font-size: 56px;
  animation: pulse 1.1s ease-in-out infinite;
  filter: drop-shadow(0 0 24px var(--glow));
}

@keyframes pulse {
  50% {
    transform: scale(1.18);
    opacity: .75;
  }
}

/* ═══ GLASS (жидкое стекло) ═══ */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-card);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 18px;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(.97) translateZ(0);
}

.btn::after {
  /* ust qismidagi shisha yaltirash */
  content: '';
  position: absolute;
  inset: 0 0 55% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent);
  border-radius: 999px 999px 45% 45%;
  pointer-events: none;
}

.btn-cta {
  background: var(--glass-cta-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-cta-border);
  color: var(--cta-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), var(--shadow-btn);
}

.btn-cta:active {
  background: var(--cta-pressed);
}

.btn-primary {
  background: var(--glass-primary-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-primary-border);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), var(--shadow-glow);
}

.btn-ghost {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.btn-danger {
  background: linear-gradient(160deg, rgba(255, 92, 92, .85), rgba(220, 60, 60, .7));
  border: 1px solid rgba(255, 140, 140, .4);
  color: #fff;
}

.btn-sm {
  width: auto;
  padding: 9px 14px;
  font-size: 13px;
  border-radius: 999px;
}

.btn:disabled {
  filter: grayscale(.6) opacity(.55);
  pointer-events: none;
}

/* ═══ Kartalar ═══ */
.card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-card);
}

.card+.card,
.section+.section {
  margin-top: 12px;
}

/* ═══ Header ═══ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.header .title {
  font-size: 20px;
  font-weight: 800;
}

/* ═══════════ Tranzaksiya tafsiloti ═══════════ */
.tx-row.tappable { cursor: pointer; border-radius: 12px; transition: background .15s; }
.tx-row.tappable:active { background: rgba(var(--accent-rgb), .1); }

.txd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--border);
}
.txd-lbl { color: var(--secondary); font-size: 14.5px; flex-shrink: 0; }
.txd-val {
  font-size: 14.5px;
  font-weight: 700;
  text-align: right;
  min-width: 0;
  word-break: break-word;
}
/* To'lov turi — logo bilan kapsula */
.txd-pm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 7px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .14);
  border: 1px solid rgba(var(--accent-rgb), .3);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}
.txd-pm img.pm-logo { width: 26px; height: 18px; margin: 0; }
.txd-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--subtitle);
  white-space: pre-wrap;
  user-select: all;
}
/* Summasi — pastda, kattaroq */
.txd-row.txd-total { border-bottom: none; padding-top: 18px; }
.txd-total .txd-lbl { font-size: 15px; }
.txd-amount { font-size: 24px; font-weight: 900; white-space: nowrap; }
.txd-amount.in { color: var(--success); }

/* ═══════════ GIVEAWAY (konkurs) ═══════════ */
.gw-card {
  background: var(--glass-bg);
  border: 1px solid var(--selected);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  cursor: pointer;
  box-shadow: 0 0 18px var(--glow), inset 0 1px 0 var(--glass-highlight);
}
.gw-card.finished { border-color: var(--border); box-shadow: var(--shadow-card); }
.gw-title { font-size: 20px; font-weight: 900; }
.gw-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .16);
  border: 1px solid rgba(var(--accent-rgb), .35);
  color: var(--selected);
  white-space: nowrap;
  flex-shrink: 0;
}
.gw-badge.on { color: var(--success); background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.4); }
.gw-badge.off { color: var(--secondary); background: rgba(255,255,255,.06); border-color: var(--border); }
.gw-desc-wrap { position: relative; margin-top: 8px; }
.gw-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--secondary);
  max-height: 42px;
  overflow: hidden;
  transition: max-height .28s ease;
}
.gw-desc.open { max-height: 600px; }
.gw-desc-arrow {
  position: absolute; right: 0; bottom: -4px;
  font-size: 13px; color: var(--selected); font-weight: 800;
  background: var(--bg); padding: 0 4px; border-radius: 6px;
}

/* Podium: 2 — 1 — 3 */
.gw-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 8px;
  align-items: end;
  margin-bottom: 16px;
}
.gw-pod { text-align: center; min-width: 0; }
.gw-pod-box {
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  margin-bottom: 7px;
}
.gw-pod.p1 .gw-pod-box {
  height: 118px;
  /* Tungi rejim (asosiy): oltin/sariq. Kunduzgi rejimda pastda binafshaga qaytadi. */
  background: linear-gradient(160deg, #FFC53D, #E8A400);
  border-color: rgba(255,197,61,.55);
  box-shadow: 0 8px 26px rgba(255,197,61,.4);
}
[data-theme="light"] .gw-pod.p1 .gw-pod-box {
  background: linear-gradient(160deg, #8A5DFF, #6D3AF0);
  border-color: rgba(180,150,255,.5);
  box-shadow: 0 8px 26px rgba(124,77,255,.45);
}
.gw-pod.p2 .gw-pod-box {
  height: 92px;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
}
.gw-pod.p3 .gw-pod-box {
  height: 92px;
  background: linear-gradient(160deg, #E5484D, #B3282C);
  border-color: rgba(255,140,140,.4);
}
.gw-pod-emoji { font-size: 40px; line-height: 1; }
.gw-pod.p1 .gw-pod-emoji { font-size: 48px; }

/* Podium ichidagi animatsion sovrin (Stars/Premium/NFT).
   NFT model animatsiyasi FONSIZ va UZORSIZ keladi — shuning uchun shunchaki
   shaffof ustida turadi. */
.gw-pod-ic {
  display: block;
  width: 72px;
  height: 72px;
  pointer-events: none;
  background: none;
  filter: none;
}
.gw-pod.p1 .gw-pod-ic { width: 92px; height: 92px; }
.gw-pod-ic > svg { display: block; width: 100% !important; height: 100% !important; }
.gw-pod-box.nft { cursor: pointer; }
.gw-pod-box.nft:active { transform: scale(.96); }
.gw-pod-name.nft-link { color: var(--grad-b); cursor: pointer; text-decoration: underline dotted; }
.gw-prize.nft-link { cursor: pointer; border-color: rgba(var(--accent-rgb), .4); }
.gw-prize.nft-link:active { opacity: .75; }
.gw-pod-name {
  font-size: 12.5px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gw-pod.p1 .gw-pod-name { color: var(--grad-b); font-size: 14px; }
.gw-pod-user {
  font-size: 11px; color: var(--secondary); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Teskari hisob */
.gw-cd-wrap { margin-bottom: 6px; }
.gw-cd { display: flex; align-items: center; justify-content: center; gap: 4px; }
.gw-cd-cell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 4px 8px;
  text-align: center;
  min-width: 66px;
  flex: 1;
  max-width: 82px;
}
.gw-cd-val { font-size: 25px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.gw-cd-lbl { font-size: 10.5px; color: var(--secondary); margin-top: 5px; font-weight: 600; }
.gw-cd-sep { font-size: 18px; font-weight: 900; color: var(--disabled); }

/* Reyting qatorlari */
.gw-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 7px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.gw-row.r1 {
  /* Tungi rejim (asosiy): oltin/sariq. Kunduzgi rejimda pastda binafshaga qaytadi. */
  background: linear-gradient(100deg, #FFC53D, #FFD86B);
  border-color: rgba(255,197,61,.55);
  box-shadow: 0 6px 20px rgba(255,197,61,.35);
}
[data-theme="light"] .gw-row.r1 {
  background: linear-gradient(100deg, #7C4DFF, #A66BFF);
  border-color: rgba(190,160,255,.5);
  box-shadow: 0 6px 20px rgba(124,77,255,.35);
}
.gw-row.r2 { background: linear-gradient(100deg, rgba(255,255,255,.15), rgba(255,255,255,.06)); }
.gw-row.r3 { background: linear-gradient(100deg, rgba(229,72,77,.42), rgba(229,72,77,.14)); border-color: rgba(255,140,140,.35); }
.gw-rank {
  width: 30px; flex-shrink: 0; text-align: center;
  font-size: 15px; font-weight: 800; color: var(--secondary);
}
.gw-row.r1 .gw-rank, .gw-row.r1 .gw-user, .gw-row.r1 .gw-amt { color: #17150E; }
[data-theme="light"] .gw-row.r1 .gw-rank, [data-theme="light"] .gw-row.r1 .gw-user, [data-theme="light"] .gw-row.r1 .gw-amt { color: #fff; }
.gw-user {
  flex: 1; min-width: 0; font-weight: 700; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gw-amt { font-weight: 800; font-size: 13.5px; white-space: nowrap; flex-shrink: 0; }

/* Sovrinlar ro'yxati (4–10) */
.gw-prizes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gw-prize {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  min-width: 0;
}
.gw-prize-place { font-size: 13px; font-weight: 800; color: var(--secondary); flex-shrink: 0; }
.gw-prize-emoji { font-size: 18px; flex-shrink: 0; }
.gw-prize-name {
  font-size: 12.5px; font-weight: 700; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Pastdagi "Siz" paneli */
.gw-mebar {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 40;
  max-width: 520px;
  margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 16px 16px 0 0;
  background: var(--sheet-bg);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 -8px 26px rgba(0,0,0,.3);
}
.gw-me-rank {
  font-size: 12px; font-weight: 800; color: var(--selected);
  background: rgba(var(--accent-rgb), .16);
  border: 1px solid rgba(var(--accent-rgb), .35);
  border-radius: 999px; padding: 5px 9px; flex-shrink: 0;
}
.gw-me-ava {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff; font-weight: 800; font-size: 13px;
}
.gw-me-ava img { width: 100%; height: 100%; object-fit: cover; }
.gw-me-main { flex: 1; min-width: 0; }
.gw-me-name {
  font-size: 13.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gw-me-hint { font-size: 11px; color: var(--selected); font-weight: 600; margin-top: 1px; }
.gw-me-amt { font-size: 13.5px; font-weight: 800; white-space: nowrap; flex-shrink: 0; }

/* "Siz" paneli oxirgi kontentni to'sib qo'ymasligi uchun bo'sh joy */
.gw-spacer { height: 64px; }

/* Raqamli klaviaturani yopish tugmasi (iOS keypad'da "Return" yo'q).
   Ikki klass bilan yozilgan — asosiy `input[type=...]` qoidasidan ustun bo'lishi uchun,
   aks holda uzun karta raqami "Tayyor" tugmasi ostiga kirib ketadi. */
.input-wrap.kb-wrap input { padding-right: 88px; }
.kb-done {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-primary-border);
  background: var(--glass-primary-bg);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.kb-done:active { transform: translateY(-50%) scale(.95); }

/* Header chapidagi foydalanuvchi: rasm + nickname (ID ko'rsatilmaydi) */
.me-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
  padding: 3px 6px 3px 3px;
  border-radius: 999px;
}
.me-chip:active { opacity: .7; }
.me-ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid var(--glass-border);
}
.me-ava img { width: 100%; height: 100%; object-fit: cover; }
.me-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.wallet-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
}

.wallet-chip .plus {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cta);
  color: var(--cta-text);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

/* ═══ Banner ═══ */
.banner-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 0 auto 14px;
  max-width: 100%;
  height: 160px;
  width: 100%;
  /* Video banner o'z kompozit qatlamiga to'liq yopiladi — repaint'lar tashqariga
     (orqa fon + glass elementlarga) tarqalmaydi, shu tufayli glitch bo'lmaydi. */
  isolation: isolate;
  contain: layout paint style;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  z-index: 1;
}

.banner-track {
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.banner video {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.banner {
  flex: 0 0 100%;
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  padding: 20px;
  cursor: pointer;
  background: linear-gradient(115deg, var(--banner-a), var(--banner-b));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 30%, rgba(255, 255, 255, .22), transparent 42%),
    radial-gradient(circle at 70% 80%, rgba(255, 212, 59, .18), transparent 38%);
}

.banner .b-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 1px;
  position: relative;
  color: #fff;
}

.banner .b-sub {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #CBB8FF;
  margin-top: 6px;
  position: relative;
}

.banner .b-art {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 58px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35));
}

.banner .b-art .spark {
  position: absolute;
  font-size: 20px;
}

.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.banner-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  transition: .2s;
}

.banner-dots i.on {
  background: #fff;
  width: 16px;
  border-radius: 3px;
}

/* ═══ Segment tabs (STARS | PREMIUM | GIFTS | OBUNALAR) ═══ */
.seg {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

/* 4 ta kategoriya bo'lganda — 2×2 to'r (bir qatorda 4 tasi siqilib ketardi:
   nomlar o'qilmay qolardi). Uch va undan kam bo'lsa avvalgidek bir qator. */
.seg.grid2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.seg button {
  flex: 1;
  padding: 13px 8px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--subtitle);
  cursor: pointer;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  transition: .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.seg button.on {
  color: var(--text);
  border-color: var(--selected);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .28), rgba(var(--accent-rgb), .10));
  box-shadow: 0 0 18px var(--glow), inset 0 1px 0 var(--glass-highlight);
}

[data-theme="light"] .seg button.on {
  color: #4B21B8;
}

/* ═══ Ro'yxat qatorlari (radio tanlash) ═══ */
.opt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
  margin-bottom: 9px;
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-card);
}

.opt-row:active {
  background: rgba(255, 255, 255, 0.15);
}

.opt-row.sel {
  border-color: var(--selected);
  box-shadow: 0 0 16px var(--glow), inset 0 1px 0 var(--glass-highlight);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.05));
}

.radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--disabled);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: .15s;
}

.opt-row.sel .radio {
  border-color: var(--selected);
}

.opt-row.sel .radio::after {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--selected);
  box-shadow: 0 0 8px var(--glow);
}

.opt-ic {
  font-size: 24px;
  width: 34px;
  text-align: center;
  flex-shrink: 0;
}

.opt-main {
  flex: 1;
  min-width: 0;
}

.opt-title {
  font-weight: 700;
  font-size: 15.5px;
}

.opt-sub {
  font-size: 12.5px;
  color: var(--secondary);
  margin-top: 2px;
}

.opt-price {
  text-align: right;
}

.opt-price .p1 {
  font-weight: 800;
  font-size: 15.5px;
}

.opt-price .p2 {
  font-size: 12px;
  color: var(--secondary);
  margin-top: 2px;
}

.badge {
  display: inline-block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(var(--accent-rgb), .16);
  color: var(--grad-b);
  border: 1px solid rgba(var(--accent-rgb), .3);
}

.badge.gold {
  background: rgba(255, 212, 59, .13);
  color: var(--badge-stars);
  border-color: rgba(255, 212, 59, .3);
}

[data-theme="light"] .badge.gold {
  color: #9A7B00;
}

[data-theme="light"] .badge {
  color: #6A3FE0;
}

/* ═══ Yangilik oynasidagi rasm/video ═══ */
.news-media {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--glass-border);
  background: var(--card);
}

/* ═══ SOON... rejimi (yopiq bo'limlar) ═══ */
.soon-wrap {
  position: relative;
  min-height: 300px;
}

.soon-blur {
  filter: blur(9px) saturate(.75);
  opacity: .55;
  pointer-events: none !important;
  user-select: none;
}

.soon-blur * {
  pointer-events: none !important;
}

.soon-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  cursor: not-allowed;
}

.soon-text {
  font-size: 46px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  color: var(--text);
  text-shadow: 0 6px 30px rgba(0, 0, 0, .55);
  animation: soonPulse 1.7s ease-in-out infinite;
}

@keyframes soonPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.08);
    opacity: .75;
  }
}

/* ═══ Qabul qiluvchi: username input + "O'zimga" tugma + profil kartasi ═══ */
.recip-wrap input {
  padding-right: 104px;
}

.self-chip {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--glass-primary-bg);
  border: 1px solid var(--glass-primary-border);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}

.self-chip:active {
  transform: translateY(-50%) scale(.95);
}

.recip-preview {
  margin-bottom: 10px;
}

.recip-card {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-radius: 16px;
  padding: 10px 13px;
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  animation: toastIn .25s ease;
}

.recip-ava {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  border: 2px solid var(--glass-border);
}

.recip-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══ Inputlar ═══ */
.input-wrap {
  position: relative;
  margin-bottom: 10px;
}

.input-wrap .ic {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary);
  font-size: 16px;
}

input[type=text],
input[type=number],
input[type=date],
input[type=url],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.input-wrap .ic+input {
  padding-left: 40px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--selected);
  box-shadow: 0 0 14px var(--glow);
}

input::placeholder,
textarea::placeholder {
  color: var(--disabled);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

label.fld {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--subtitle);
  margin: 12px 0 6px;
}

/* ═══ Pastki panel: summa + CTA ═══ */
.paybar {
  margin-top: 16px;
}

.paybar .sumrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}

.paybar .sumrow .lbl {
  color: var(--subtitle);
  font-weight: 600;
  font-size: 15px;
}

.paybar .sumrow .val {
  font-weight: 800;
  font-size: 18px;
}

/* ═══ Bottom nav ═══ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid var(--glass-border);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}

.bottom-nav button {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary);
  padding: 6px 0;
  transition: color .15s;
}

.bottom-nav button .nic {
  font-size: 21px;
  line-height: 1;
  filter: grayscale(1) opacity(.6);
  transition: .15s;
}

.bottom-nav button.on {
  color: var(--cta);
}

[data-theme="light"] .bottom-nav button.on {
  color: #B8860B;
}

.bottom-nav button.on .nic {
  filter: none;
  transform: translateY(-1px);
}

/* ═══ Bottom sheet / modal ═══ */
.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s;
}

.sheet-scrim.show {
  opacity: 1;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  max-width: 520px;
  margin: 0 auto;
  background: var(--sheet-bg);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid var(--glass-border);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1);
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, .4);
}

.sheet.show {
  transform: translateY(0);
}

.sheet .grab {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--disabled);
  margin: 4px auto 14px;
  opacity: .5;
}

.sheet h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet h3 .x {
  cursor: pointer;
  font-size: 20px;
  color: var(--secondary);
  padding: 2px 8px;
}

/* ═══ Toast ═══ */
#toasts {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  background: var(--sheet-bg);
  color: var(--text);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  animation: toastIn .25s ease;
  max-width: 88%;
}

.toast.ok {
  border-color: rgba(52, 211, 153, .5);
}

.toast.err {
  border-color: rgba(255, 92, 92, .5);
}

@keyframes toastIn {
  from {
    transform: translateY(-16px);
    opacity: 0;
  }
}

/* ═══ Tranzaksiyalar ═══ */
.tx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
}

.tx-row:last-child {
  border-bottom: none;
}

.tx-ic {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.tx-ic.stars {
  background: rgba(255, 212, 59, .12);
}

.tx-ic.premium {
  background: rgba(155, 92, 255, .14);
}

.tx-ic.gift {
  background: rgba(255, 93, 177, .13);
}

.tx-ic.topup {
  background: rgba(52, 211, 153, .13);
}

.tx-ic.referral {
  background: rgba(52, 199, 89, .13);
}

.tx-ic.adjust {
  background: rgba(255, 176, 32, .13);
}

.tx-main {
  flex: 1;
  min-width: 0;
}

.tx-title {
  font-weight: 700;
  font-size: 14.5px;
}

.tx-sub {
  font-size: 12px;
  color: var(--secondary);
  margin-top: 2px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.tx-amount {
  text-align: right;
  font-weight: 800;
  font-size: 14.5px;
  white-space: nowrap;
}

.tx-amount.in {
  color: var(--success);
}

.tx-amount .st {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

.st-completed {
  color: var(--success);
}

.st-pending,
.st-processing {
  color: var(--warning);
}

.st-rejected,
.st-failed {
  color: var(--error);
}

.pm-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Filtr chiplar */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--subtitle);
  cursor: pointer;
  white-space: nowrap;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.chip.on {
  border-color: var(--selected);
  color: var(--text);
  box-shadow: 0 0 12px var(--glow);
}

/* ═══ Bo'sh holat ═══ */
.empty {
  text-align: center;
  padding: 48px 20px;
}

.empty .e-ic {
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .25), rgba(var(--accent-rgb), .08));
  display: grid;
  place-items: center;
  font-size: 40px;
  box-shadow: 0 0 30px var(--glow);
}

.empty .e-t {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
}

.empty .e-s {
  color: var(--secondary);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ═══ Balans kartasi (profil) ═══ */
/* Balans kartasidagi amal tugmalari — ixcham, orasida bo'shliq bilan.
   Eski WebView'da flex `gap` ishlamaydi — shuning uchun MARGIN ishlatamiz. */
.bal-actions { display: flex; }
.bal-actions .bal-btn { flex: 1; padding: 12px 12px; font-size: 14px; white-space: nowrap; }
.bal-actions .bal-btn + .bal-btn { margin-left: 12px; }

.balance-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px 20px;
  background: linear-gradient(130deg, var(--bal-grad-a), var(--bal-grad-b));
  box-shadow: var(--shadow-glow), var(--shadow-card);
  color: #fff;
  margin-bottom: 14px;
}

.balance-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .25), transparent 45%);
}

.balance-card .b-lbl {
  font-size: 12.5px;
  font-weight: 700;
  opacity: .75;
  letter-spacing: .5px;
}

.balance-card .b-val {
  font-size: 32px;
  font-weight: 900;
  margin: 4px 0 16px;
  position: relative;
}

.balance-card .b-val small {
  font-size: 16px;
  font-weight: 700;
  opacity: .8;
}

/* ═══ Profil ro'yxati ═══ */
.plist {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.plist-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}

.plist-row:last-child {
  border-bottom: none;
}

.plist-row:active {
  background: var(--card-hover);
}

.plist-row .p-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: rgba(var(--accent-rgb), .14);
}

.plist-row .p-t {
  flex: 1;
  font-weight: 700;
  font-size: 14.5px;
}

.plist-row .p-v {
  color: var(--secondary);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.plist-row .p-v::after {
  content: '›';
  font-size: 18px;
  color: var(--disabled);
}

.profile-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 20px;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  border: 3px solid var(--glass-border);
  box-shadow: 0 0 26px var(--glow);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-head .nm {
  font-size: 19px;
  font-weight: 800;
  margin-top: 12px;
}

.profile-head .un {
  font-size: 13px;
  color: var(--secondary);
  margin-top: 3px;
}

/* ═══ Grid kartalar (bozor/giftlar) ═══ */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.prod-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  box-shadow: inset 0 1px 0 var(--glass-highlight), var(--shadow-card);
}

.prod-card:active {
  background: rgba(255, 255, 255, 0.15);
}

.prod-card.sel {
  border-color: var(--selected);
  box-shadow: 0 0 16px var(--glow), inset 0 1px 0 var(--glass-highlight);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.05));
}

.prod-card .g-e {
  font-size: 34px;
  line-height: 1.2;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25));
}

.prod-card .g-n {
  font-weight: 700;
  font-size: 12.5px;
  margin-top: 7px;
}

.prod-card .g-p {
  font-size: 11.5px;
  color: var(--secondary);
  margin-top: 3px;
}

.prod-card .g-pr {
  font-weight: 800;
  font-size: 14px;
  margin-top: 6px;
}

.prod-card .g-s {
  font-size: 10.5px;
  color: var(--badge-stars);
  font-weight: 700;
  margin-top: 2px;
}

[data-theme="light"] .prod-card .g-s {
  color: #9A7B00;
}

/* ═══ Sozlash (toggle) ═══ */
.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}

.toggle input {
  display: none;
}

.toggle .tr {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  cursor: pointer;
  background: var(--border);
  transition: .2s;
}

.toggle .tr::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: .2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}

.toggle input:checked+.tr {
  background: var(--success);
}

.toggle input:checked+.tr::after {
  left: 23px;
}

/* ═══ Admin ═══ */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.stat-card .s-v {
  font-size: 22px;
  font-weight: 900;
}

.stat-card .s-l {
  font-size: 11.5px;
  color: var(--secondary);
  font-weight: 600;
  margin-top: 4px;
}

.stat-card.hl {
  border-color: var(--selected);
  box-shadow: 0 0 14px var(--glow);
}

.admin-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s;
}

.admin-item:active {
  background: var(--card-hover);
  border-color: var(--selected);
}

.admin-item .a-e {
  font-size: 26px;
}

.admin-item .a-t {
  font-weight: 700;
  font-size: 13px;
  margin-top: 8px;
}

.admin-item .a-b {
  display: inline-block;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 800;
  background: var(--error);
  color: #fff;
  border-radius: 8px;
  padding: 2px 7px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--subtitle);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 0;
  margin-bottom: 10px;
}

.row-между {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.muted {
  color: var(--secondary);
  font-size: 13px;
}

.small {
  font-size: 12px;
}

.mt8 {
  margin-top: 8px;
}

.mt12 {
  margin-top: 12px;
}

.mt16 {
  margin-top: 16px;
}

.mb8 {
  margin-bottom: 8px;
}

.mb12 {
  margin-bottom: 12px;
}

.sect-title {
  font-size: 16px;
  font-weight: 800;
  margin: 18px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sect-title .see {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--grad-b);
  font-weight: 700;
  cursor: pointer;
}

.skel {
  background: var(--skeleton);
  border-radius: 12px;
  animation: skel 1.2s ease-in-out infinite;
}

@keyframes skel {
  50% {
    opacity: .45;
  }
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

/* success check animatsiyasi */
.big-check {
  width: 92px;
  height: 92px;
  margin: 10px auto 16px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(52, 211, 153, .25), rgba(52, 211, 153, .08));
  border: 1px solid rgba(52, 211, 153, .45);
  display: grid;
  place-items: center;
  font-size: 44px;
  animation: pop .4s cubic-bezier(.3, 1.6, .6, 1);
  box-shadow: 0 0 34px rgba(52, 211, 153, .3);
}

@keyframes pop {
  from {
    transform: scale(.4);
    opacity: 0;
  }
}

.ban-screen {
  text-align: center;
  padding: 30vh 24px 0;
}

@media (min-width: 521px) {
  .bottom-nav {
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
  }
}

/* Tekstlarni belgilab bo'lmaydigan va rasmlarni sudrab bo'lmaydigan qilish */
*,
*::before,
*::after {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

input,
textarea,
input *,
textarea * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Banner cursor drag amali */
.banner-wrap {
  cursor: grab;
}

.banner-wrap:active {
  cursor: grabbing;
}