:root {
  --bg: #0c0e1a;
  --card: #161829;
  --card2: #1e2136;
  --border: #343858;
  --text: #f2f3fa;
  --muted: #868bab;
  --accent: #7c5cff;
  --accent2: #6b46ff;
  --danger: #ff5c72;
  --ok: #2ecc82;
  --warn: #ffb020;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

:root[data-theme="light"] {
  --bg: #f4f5fb;
  --card: #ffffff;
  --card2: #eef0f8;
  --border: #d9dcee;
  --text: #14151f;
  --muted: #676c82;
  --shadow: 0 6px 20px rgba(20, 21, 40, 0.08);
}
:root[data-theme="light"] .bottom-nav { background: rgba(255,255,255,.94); border-color: var(--border); box-shadow: 0 12px 28px rgba(20,21,40,.16); }

html.reduce-motion, html.reduce-motion * {
  transition: none !important;
  animation: none !important;
}

/* Keng ekranda (kompyuter, planshet) kontent chetgacha yoyiladi va grid'lar
   ko'proq ustunga bo'linadi — aks holda kartochkalar cho'zilib ketardi. */
@media (min-width: 620px) {
  .games { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .packages { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Banner rasm nisbatini saqlaydi (16:9) — keng ekranda u butun sahifani
     egallab ketmasligi uchun balandligi cheklanadi. Rasm `cover` bo'lgani
     uchun cho'zilmaydi, faqat qirqiladi. */
  .promo-banner { aspect-ratio: auto; height: 300px; }
}
@media (min-width: 900px) {
  .games { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .packages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wrap, .subbody { padding-left: 20px; padding-right: 20px; }
  .promo-banner { height: 360px; }

  /* Balans kartasi va tezkor tugmalar cheksiz cho'zilmasin */
  .balance-card, .quick-row { max-width: 720px; }
}
@media (min-width: 1300px) {
  .promo-banner { height: 420px; }
  .games { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .packages { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Pinch-zoom va ikki marta bosib kattalashtirish o'chirilgan; skroll ishlaydi */
html, body { touch-action: pan-x pan-y; }
/* Sahifa yon tomonga surilmasin va chetida "rezina" kabi cho'zilmasin */
/* overflow-x:hidden html'ga ham qo'yilsa iOS WebView'da skroll qotib qolishi mumkin —
   shuning uchun faqat body'ga beriladi. */
html { overscroll-behavior-y: none; }
body { overflow-x: hidden; }

/* ---------- Animatsiyalar ----------
   Faqat transform va opacity ishlatiladi — ular kompozitor qatlamida
   bajariladi va telefonni qiynamaydi. "Animatsiyalarni kamaytirish"
   yoqilganda yuqoridagi qoida hammasini o'chiradi. */
@keyframes viewEnterRight {
  from { opacity: 0; transform: translate3d(18px, 0, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes viewEnterLeft {
  from { opacity: 0; transform: translate3d(-18px, 0, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes cardEnter {
  from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* Bo'limlar orasida o'tish — bosilgan tugma yo'nalishiga qarab suriladi */
.view.enter-right { animation: viewEnterRight .17s cubic-bezier(.22, 1, .36, 1) both; }
.view.enter-left  { animation: viewEnterLeft  .17s cubic-bezier(.22, 1, .36, 1) both; }

/* Kartochkalar birin-ketin suzib chiqadi (delay JS'da beriladi) */
.game-item.card-enter,
.pkg.card-enter { animation: cardEnter .2s cubic-bezier(.22, 1, .36, 1) both; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 130px;
  /* Matnni belgilash/nusxalash o'chirilgan — nusxalash faqat maxsus
     tugmalar (karta raqami, referal havola) orqali ishlaydi. */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Kiritish maydonlari bundan mustasno — aks holda yozib/qo'yib bo'lmaydi. */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.icon { width: 20px; height: 20px; display: block; }

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  /* Telegram Desktop'da oyna keng bo'ladi — panel ham kontent ustuni
     (.wrap, 480px) bilan bir xil kenglikda markazda tursin, aks holda
     "Salom" chap chekkada, kartalar markazda qolib ketardi. */
  margin: 0 auto;
}

.user-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  min-width: 0;
}
.greet { min-width: 0; }
.greet-hi { font-size: 13px; font-weight: 700; color: var(--muted); }
.greet-name {
  font-size: 15px;
  font-weight: 800;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.lang-pill {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .4px;
  padding: 8px 12px;
  cursor: pointer;
  flex-shrink: 0;
}
.lang-pill:active { transform: scale(.94); }

/* Sarlavhadagi valyuta tanlagich (til tugmasi o'rnida) */
.cur-pick { position: relative; flex-shrink: 0; }

.cur-pill {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .4px;
  padding: 8px 12px;
  min-width: 52px;
  cursor: pointer;
}
.cur-pill:active { transform: scale(.94); }
.cur-pill.open { border-color: var(--accent); color: var(--accent); }


.cur-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 168px;
  padding: 6px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform-origin: top right;
  animation: cur-drop-in .14s ease-out;
}
@keyframes cur-drop-in {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}

.cur-drop button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.cur-drop button:active { background: var(--card2); }
.cur-drop button.active { color: var(--accent); font-weight: 800; }

/* Belgi joyi har doim band turadi — tanlov almashganda qatorlar siljimasin. */
.cur-tick {
  width: 14px;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
}
.cur-drop button.active .cur-tick::before { content: '✓'; }

/* Balans kartasi (bosh sahifa) */
.balance-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.bc-ic {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--card2);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bc-ic img, .bc-ic svg { width: 24px; height: 24px; display: block; }
.bc-text { flex: 1; min-width: 0; }
.bc-label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .6px; }
.bc-amount {
  font-size: 20px;
  font-weight: 800;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bc-amount [data-i18n="currency"] { font-size: 14px; color: var(--muted); font-weight: 700; }
.bc-topup {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 12px;
  color: #fff;
}
/* "+" belgisi Inter'da harflardan pastroq/kichikroq chiqadi — tenglashtiramiz. */
.bc-plus { font-size: 15px; font-weight: 700; line-height: 1; }

/* Tezkor tugmalar: Promokodlar / Yordam */
.quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.quick-card {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  min-width: 0;
}
.quick-card:active { transform: scale(.97); }
.quick-card > span:last-child:not(.qc-text) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-ic { display: flex; color: var(--accent); flex-shrink: 0; }
.q-ic .icon { width: 19px; height: 19px; }

/* Valyuta tugmasi — bosilganda so'm va rubl o'rtasida almashadi */
.cur-switch {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--accent);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .2px;
  padding: 6px 13px;
  min-width: 46px;
  cursor: pointer;
  flex-shrink: 0;
}
.cur-switch:active { transform: scale(.94); }

.icon-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn .icon { width: 17px; height: 17px; }

.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  flex-shrink: 0;
}
.avatar-ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.avatar-photo { background-size: cover; background-position: center; }
.avatar-lg { width: 56px; height: 56px; font-size: 22px; margin: 0 auto 8px; }

/* Layout */
.wrap { width: 100%; margin: 0 auto; padding: 14px; position: relative; z-index: 5; }
.view-title { font-size: 16px; margin: 14px 2px 12px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 2px 8px; }
.sec-title { font-size: 17px; font-weight: 800; }
/* "Barchasi" — bo'lim sarlavhasi yonidagi havola */
.sec-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 2px;
}
.sec-link:active { opacity: .7; }

/* Promo hero banner (karusel) */
.promo-banner {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 1672 / 941;
  background: #0a0d1a;
}
.promo-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.promo-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
#promo-slide-a, #promo-slide-stars { cursor: pointer; }
.promo-banner-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 75% center;
}
.promo-banner-bg-fit { object-position: center; }
.promo-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,8,20,.96) 25%, rgba(6,8,20,.6) 58%, rgba(6,8,20,.12) 92%);
}
.promo-overlay-amber { background: linear-gradient(100deg, rgba(30,20,4,.96) 25%, rgba(60,42,8,.62) 58%, rgba(60,42,8,.12) 92%); }
.promo-banner-content { position: relative; z-index: 2; padding: 16px; max-width: 78%; }
.promo-banner-logo {
  display: inline-block;
  font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  padding: 4px 8px; border-radius: 6px;
  margin-bottom: 9px;
}
.promo-banner-title { font-size: 19px; font-weight: 800; line-height: 1.25; color: #fff; }
.promo-banner-sub { font-size: 12.5px; color: rgba(255,255,255,.65); margin-top: 4px; }
.promo-banner-cta {
  margin-top: 13px;
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(180deg, #35e08f, #1fb56e);
  color: #04170c;
  border: none; border-radius: 999px;
  padding: 7px 13px; font-size: 11.5px; font-weight: 800;
  box-shadow: 0 4px 10px rgba(31, 181, 110, .35);
  cursor: pointer;
}
.promo-banner-cta:active { transform: scale(0.96); }
.promo-cta-amber { background: linear-gradient(180deg, #a48cff, var(--accent)); color: #fff; box-shadow: 0 4px 10px rgba(124,92,255,.35); }
.pb-arrow { font-weight: 700; }
.promo-banner-dots { position: absolute; bottom: 10px; right: 14px; z-index: 3; display: flex; gap: 5px; cursor: pointer; padding: 4px; }
.promo-banner-dots .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.35); transition: width .25s, background .25s; }
.promo-banner-dots .dot.active { width: 14px; border-radius: 3px; background: var(--ok); }

/* Games grid */
/* Tekshiruv mavjud bo'lmagan o'yinlar uchun ogohlantirish */
.no-verify-note {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #ffcf7a;
  background: rgba(255,176,32,.10);
  border: 1px solid rgba(255,176,32,.28);
  border-radius: 10px;
  padding: 9px 11px;
}

/* Mintaqa tanlash tugmalari (Global / RU / PH ...) */
.region-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 4px;
}
.region-chip {
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, color .12s ease;
}
.region-chip:active { transform: scale(.96); }
.region-chip.active {
  background: rgba(124,92,255,.16);
  border-color: var(--accent);
  color: var(--text);
}

/* O'yin qidiruvi — katalog katta bo'lgani uchun */
.game-search { margin-bottom: 12px; }
.game-search input {
  width: 100%;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.game-search input:focus { outline: none; border-color: var(--accent); }

.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.game-item { cursor: pointer; }
.game-item:active { transform: scale(0.98); }
.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.game-media {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.game-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.game-media-ic {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.game-media-ic .icon { width: 24px; height: 24px; stroke-width: 2; }
.game-name { font-size: 10.5px; font-weight: 700; letter-spacing: .1px; text-transform: uppercase; text-align: center; padding: 8px 2px 0; line-height: 1.25; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card + .sec-head { margin-top: 4px; }

/* Xarid subview — o'yin sarlavha kartasi */
.game-head-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.game-head-card img {
  width: 52px; height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.ghc-text { min-width: 0; }
.ghc-title { font-size: 15px; font-weight: 800; letter-spacing: .2px; text-transform: uppercase; }
.ghc-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.game-head-card .cur-switch { margin-left: auto; }

.label { font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.packages-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.delivery-time { font-size: 12px; font-weight: 600; color: var(--accent, #7c5cff); text-transform: none; white-space: nowrap; }
.row { display: flex; gap: 8px; }

input {
  flex: 1;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  width: 100%;
}
input:focus { border-color: var(--accent); }

.btn {
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; }
.btn-sm { padding: 11px 14px; font-size: 14px; white-space: nowrap; }
.btn-sec { background: var(--card2); color: var(--text); border: 1px solid var(--border); }
.player-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(46, 204, 130, .1);
  border: 1px solid rgba(46, 204, 130, .35);
  border-radius: 16px;
  font-size: 14px;
}
.pi-check {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ok);
  color: #05150c;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pi-check .icon { width: 16px; height: 16px; }
.pi-text { flex: 1; min-width: 0; }
.pi-name {
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .2px;
  line-height: 1.3;
  /* Bezakli belgili uzun niklar kartochkadan chiqib ketmasin */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.pi-id { font-size: 11.5px; color: var(--ok); margin-top: 2px; font-family: monospace; }
.pi-change {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  padding: 4px;
}

.error { margin-top: 10px; color: var(--danger); font-size: 13px; }

.packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pkg {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  text-align: left;
  cursor: pointer;
}
.pkg:active { transform: scale(0.97); }

/* Paket kartochkasi: rasm + (nom / narx) yonma-yon */
.pkg { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pkg-head { display: flex; align-items: center; gap: 8px; width: 100%; }
.pkg-thumb {
  width: 38px; height: 38px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}
.pkg-text { min-width: 0; flex: 1; }
.pkg .price { overflow: hidden; text-overflow: ellipsis; }
.pkg.selected { border-color: var(--accent); background: rgba(124,92,255,.16); }
/* Tashqi katalogda paket nomlari uzun ("Golden Spin", "3 Golden Shots",
   "51 + 5 Diamonds") — bitta qatorga sig'masa kesib tashlash o'rniga ikki
   qatorga o'tadi. Kataklar bir xil balandlikda qolishi uchun min-height. */
.pkg .uc {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  /* Balandlik oldindan band qilinmaydi: nom bir qator bo'lsa narx darhol
     ostida turadi, uzun nom ikki qatorga o'tsa narx pastga suriladi.
     Bir qatordagi kataklar grid'da baribir bir xil balandlikda cho'ziladi. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Chegirmadagi eski narx — chizilgan holda, narxning yonida */
.price-old {
  margin-left: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: line-through;
}

/* Reseller chegirmasi nishoni */
.discount-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(46,204,130,.14);
  border: 1px solid rgba(46,204,130,.35);
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
}

.pkg .price { margin-top: 2px; font-size: 13px; color: var(--text); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Birlik ("so'm" / "₽") — raqamdan kichik va xira, e'tibor summaga qaratilsin */
.pkg .price .cur { margin-left: 3px; font-size: 9.5px; font-weight: 700; color: var(--muted); }
.pkg.selected .uc { color: var(--text); }
.pkg.selected .uc { color: var(--text); }

/* Savat qadamchisi: bir xil paketdan bir nechta olish uchun (60 UC x 5).
   Faqat UC mahsulotida chiziladi. */
/* Savat qadamchisi kartochkaning o'ng chetida turadi. Rasm + nom + narx +
   qadamchi ikki ustunga sig'magani uchun savatli mahsulotlar BIR ustunda
   chiziladi (.packages.cart-mode). */
.pkg-step {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.packages.cart-mode { grid-template-columns: 1fr; }
.packages.cart-mode .pkg-head { flex: 1; min-width: 0; }
.step-btn {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.step-btn:active { transform: scale(.9); }
.pkg.selected .step-btn { border-color: rgba(124,92,255,.45); }
.step-qty {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 20px;
  text-align: center;
}
.pkg.selected .step-qty { color: var(--accent); }

/* Savat xulosasi — nima tanlangani va umumiy summa */
.cart-summary {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 16px;
}
.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 5px 0;
}
.cart-name { color: var(--muted); font-weight: 600; }
.cart-val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-total {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  font-weight: 800;
}
.cart-total span:last-child { color: var(--accent); font-variant-numeric: tabular-nums; }

/* Player ID tekshirilmagunicha paketlar qulflangan holatda turadi */
#packages-block.locked .packages { opacity: .38; pointer-events: none; }
#packages-block.locked .pkg { cursor: default; }

/* Filter tabs */
.filter-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
.filter-tab {
  flex-shrink: 0;
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 20px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.filter-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Lists (history/news) */
.list { display: flex; flex-direction: column; gap: 8px; }
.list-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
}
.li-left .li-title { font-size: 14px; font-weight: 700; }
.li-left .li-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.li-right { text-align: right; flex-shrink: 0; }
.li-right .li-amount { font-size: 14px; font-weight: 700; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; margin-top: 4px; }
.b-pending { background: rgba(255,176,32,.16); color: var(--warn); }
.b-paid { background: rgba(46,204,130,.16); color: var(--ok); }
.b-delivered { background: rgba(46,204,130,.16); color: var(--ok); }
.b-failed { background: rgba(255,92,114,.16); color: var(--danger); }

/* Uzcard/Humo — to'lov ko'rsatmasi kartasi */
.uc-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 16px; }
.uc-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,92,255,.14);
  color: var(--accent);
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 16px;
}
.uc-timer-pill .icon { width: 14px; height: 14px; }
.uc-timer-pill.uc-timer-warn { background: rgba(255,92,114,.14); color: var(--danger); }
.uc-amount { font-size: 34px; font-weight: 900; color: var(--accent); letter-spacing: -.5px; margin: 2px 0 18px; }
.uc-divider { width: 100%; height: 1px; background: var(--border); margin-bottom: 18px; }
.uc-card-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  cursor: pointer;
}
.uc-card-chip:active { transform: scale(0.97); }
.uc-card-chip:hover { border-color: var(--accent); }
.uc-card-chip .icon { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.uc-card-chip.uc-copied .icon { color: var(--ok); }
.uc-karta-num { font-size: 19px; font-weight: 800; letter-spacing: 1.5px; color: var(--text); }

/* Bir nechta karta ro'yxati — mijoz istalganiga o'tkaza oladi */
.uc-cards { display: flex; flex-direction: column; gap: 8px; }
.uc-cards .uc-card-chip { justify-content: space-between; text-align: left; }
.uc-chip-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.uc-cards .uc-karta-num { font-size: 17px; letter-spacing: 1.2px; }
.uc-karta-egasi { font-size: 11.5px; color: var(--muted); font-weight: 600; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }

/* Profile / Settings */
.profile-card { text-align: center; padding: 20px 14px 18px; }
.profile-card .avatar-lg { width: 76px; height: 76px; font-size: 28px; margin-bottom: 12px; }
.p-name { font-weight: 800; font-size: 17px; }
/* @username + Telegram ID — bitta ixcham "pill" ichida */
.p-idpill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--card2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
}
.p-idpill .p-id-label { color: var(--muted); font-weight: 700; }
.p-idpill .mono { font-size: 12px; color: var(--muted); }
.mono { font-family: monospace; font-size: 13px; }

.menu-list { padding: 4px 14px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.menu-item:last-child { border-bottom: none; }
.menu-text { flex: 1; }
.menu-title { font-size: 14px; font-weight: 600; }
.menu-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.menu-arrow { color: var(--muted); flex-shrink: 0; }
/* Bosilganda almashadigan qator (valyuta) — joriy qiymat o'ng tomonda. */
.menu-value {
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.menu-value .icon { width: 15px; height: 15px; color: var(--muted); }
.menu-arrow .icon { width: 16px; height: 16px; }
.menu-value { color: var(--muted); font-size: 13px; }

.menu-icon-bg {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.menu-icon-bg .icon { width: 18px; height: 18px; }
.mi-bg-purple { background: rgba(123,63,253,.16); color: #a53ffd; }
.mi-bg-amber { background: rgba(124,92,255,.16); color: var(--accent); }
.mi-bg-green { background: rgba(46,204,130,.16); color: var(--ok); }
.mi-bg-blue { background: rgba(23,185,120,.16); color: #17b978; }
.mi-bg-pink { background: rgba(255,61,138,.16); color: #ff3d8a; }
.mi-bg-indigo { background: rgba(123,63,253,.16); color: #7b3ffd; }

/* Telefon karta — menu-item bilan bir xil ko'rinish, lekin alohida card */
.phone-card { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.phone-card:active { transform: scale(0.99); }

/* Referal */
.ref-header { display: flex; align-items: center; gap: 12px; margin: 14px 2px 16px; }
.ref-header-ic {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: linear-gradient(160deg, #a53ffd, #7b3ffd);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(123,63,253,.35);
}
.ref-header-ic .icon { width: 24px; height: 24px; }
.ref-header-text { flex: 1; min-width: 0; }
.ref-header-title { font-size: 22px; font-weight: 800; }
.ref-header-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ref-info-btn { font-style: italic; font-family: Georgia, serif; font-weight: 700; font-size: 15px; flex-shrink: 0; }

.ref-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ref-stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--border);
}
.ref-stat-purple { background: linear-gradient(160deg, rgba(165,63,253,.14), var(--card) 65%); border-color: rgba(165,63,253,.3); }
.ref-stat-amber { background: linear-gradient(160deg, rgba(124,92,255,.14), var(--card) 65%); border-color: rgba(124,92,255,.3); }
.ref-stat-bg-ic { position: absolute; right: -8px; bottom: -8px; opacity: .1; pointer-events: none; }
.ref-stat-bg-ic .icon { width: 64px; height: 64px; }
.ref-stat-purple .ref-stat-bg-ic { color: #a53ffd; }
.ref-stat-amber .ref-stat-bg-ic { color: var(--accent); }
.ref-stat-ic {
  width: 40px; height: 40px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}
.ref-stat-ic .icon { width: 19px; height: 19px; }
.ref-stat-ic-purple { background: linear-gradient(160deg, #a53ffd, #7b3ffd); }
.ref-stat-ic-amber { background: linear-gradient(180deg, #a48cff, var(--accent)); }
.ref-stat-n { font-size: 24px; font-weight: 800; position: relative; }
.ref-stat-l { font-size: 12px; color: var(--muted); margin-top: 3px; position: relative; }

.ref-link-card { padding: 16px; }
.ref-link-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ref-link-head-ic {
  width: 30px; height: 30px;
  border-radius: 10px;
  background: rgba(124,92,255,.16);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ref-link-head-ic .icon { width: 15px; height: 15px; }
.ref-link-head .label { margin-bottom: 0; }
.ref-link-row { align-items: stretch; }
.ref-link-text {
  flex: 1; min-width: 0;
  display: flex; align-items: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 11px;
  font-family: monospace;
  color: var(--text);
}
.ref-copy-btn {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.ref-copy-btn:active { transform: scale(0.92); }
.ref-copy-btn .icon { width: 17px; height: 17px; }
.ref-link-caption { font-size: 12px; color: var(--muted); margin-top: 10px; }

.ref-info-card { display: flex; align-items: center; gap: 14px; }
.ref-info-ic {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(150deg, #7c5cff, #c06bff);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 0 0 8px rgba(123,63,253,.08);
}
.ref-sparkle { position: absolute; font-size: 12px; }
.ref-sparkle-1 { top: -6px; right: -8px; }
.ref-sparkle-2 { bottom: 2px; right: -12px; font-size: 9px; }
.ref-info-text { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ref-info-text b { color: var(--text); font-size: 14.5px; }
.ref-info-text span { color: var(--accent); font-weight: 800; }

.ref-share-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ref-share-btn .icon { width: 18px; height: 18px; }
.ref-share-arrow { font-weight: 700; }

/* Til tanlash (segmented control) */
.segmented {
  display: flex;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 12px;
  gap: 4px;
}
.segmented-btn {
  flex: 1;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 9px 4px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.segmented-btn.active {
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #fff;
}

/* To'lov usullari — ikki ustunli kartochkalar */
/* ---------- To'ldirish: 1-qadam — usul tanlash ----------
   Usul bosilishi bilan 2-qadam (summa) ochiladi, shuning uchun har
   kartochkada "davom etish" strelkasi turadi. */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (min-width: 620px) { .method-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Qatorda ikkitadan turgani uchun kartochka ustma-ust joylashadi: logotip
   tepada, ostida nom va izoh. Strelka burchakda — enni yemasin. */
.method-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px 13px 14px;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.method-card:active { transform: scale(.98); }
.method-card.active { border-color: var(--accent); }
.mc-logo {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--card2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.mc-logo .icon { width: 22px; height: 22px; }
/* Brend logotiplari oq maydonchada turadi — Uzcard'ning to'q ko'ki va
   Visa'ning ko'ki qora fonda ko'rinmay ketmasin. */
.mc-logo-img { background: #fff; padding: 6px; }
.mc-logo-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mc-text { display: flex; flex-direction: column; min-width: 0; width: 100%; }
.mc-name {
  font-size: 14.5px; font-weight: 700; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mc-sub {
  font-size: 11.5px; color: var(--muted); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mc-go {
  position: absolute; top: 14px; right: 11px;
  width: 17px; height: 17px; color: var(--muted);
}
.mc-go .icon { width: 17px; height: 17px; }

/* Havolalar bo'limi (support) */
.topup-links-head { margin-top: 22px; letter-spacing: .6px; font-size: 11.5px; text-transform: uppercase; }
.topup-link {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.topup-link:active { transform: scale(.98); }
.tl-ic {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
  background: rgba(46,204,130,.14); color: var(--ok);
  display: flex; align-items: center; justify-content: center;
}
.tl-ic .icon { width: 20px; height: 20px; }
.tl-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tl-name { font-size: 14.5px; font-weight: 700; }
.tl-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.tl-go { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.tl-go .icon { width: 18px; height: 18px; }

/* ---------- 2-qadam: tanlangan usul sarlavhasi ---------- */
.method-picked {
  display: flex; align-items: center; gap: 12px; width: 100%;
  /* .mc-text bu yerda gorizontal qatorda — qolgan joyni egallaydi */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.method-picked:active { transform: scale(.98); }
.method-picked .mc-text { flex: 1; }
.mp-change {
  font-size: 12.5px; font-weight: 700; color: var(--accent);
  flex-shrink: 0; white-space: nowrap;
}

.topup-min { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* Toggle switch */
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.switch-track {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 20px;
}
.switch-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }

/* Sub-views (topup) */
/* Ichki sahifa ochiq bo'lganda orqadagi asosiy sahifa siljimasin — aks holda
   ikkita scroll paydo bo'ladi (biri ichki sahifaniki, ikkinchisi orqadagi). */
html.subview-open, html.subview-open body { overflow: hidden; }

.subview {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 40;
  overflow-y: auto;
}
.subhead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  margin: 0 auto;
}
.subtitle { font-size: 15px; font-weight: 700; }
/* Telegram'ning o'z "orqaga" strelkasi (BackButton) borida ikkita strelka
   birga ko'rinmasin deb — bu tugma yashiriladi. Eski/qo'llab-quvvatlamaydigan
   mijozlarda app.js zaxira sifatida qayta ko'rsatadi (.subhead-back-fallback). */
.subhead-back { display: none; }
.subhead-back-fallback .subhead-back { display: flex; }
/* "O'yin xaridi" sarlavhasi olib tashlangani uchun bu ekranda orqaga tugmasi
   (faqat zaxira holatida) o'zi mustaqil, kontent ustida suzib turadi. */
.subhead-back-floating { position: fixed; top: 12px; left: 14px; z-index: 45; }
.subbody { width: 100%; margin: 0 auto; padding: 16px 14px 40px; }

/* To'ldirish sahifasi pastki menyudan pastda turadi (z-index 30 dan kichik),
   shunda menyu ko'rinib qoladi va undan boshqa bo'limga o'tish mumkin. */
#view-topup { z-index: 20; }
#view-topup .subbody { padding-bottom: 120px; }

.preset-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.preset {
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 4px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.preset:active { transform: scale(0.96); }
/* Rublda to'ldirishda balansga qo'shiladigan so'm ekvivalenti. */
.topup-convert { margin-top: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.preset.active { border-color: var(--accent); background: rgba(124,92,255,.16); color: var(--text); }

.stars-input-wrap { position: relative; }
.stars-input-wrap input { padding-right: 42px; font-size: 20px; font-weight: 700; }
.stars-input-star { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; pointer-events: none; }
.stars-narx-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding: 11px 13px;
  background: var(--card2); border-radius: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .3px; color: var(--muted);
}
.stars-narx-row span:last-child { color: var(--text); font-weight: 800; font-size: 14px; letter-spacing: 0; }
.stars-hint { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* Modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(20,22,45,.45);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 50;
}
.modal-card {
  background: var(--card);
  border-radius: 18px 18px 0 0;
  padding: 18px;
  width: 100%;
  max-width: 520px;
}
.modal-actions { display: flex; gap: 8px; margin-top: 12px; }
.modal-actions .btn { flex: 1; }

.modal-center { align-items: center; padding: 20px; animation: modalFade .18s ease; }
.modal-center .modal-card {
  border-radius: 22px;
  max-width: 340px;
  margin: 0 auto;
  text-align: center;
  animation: modalPop .28s cubic-bezier(.34,1.56,.64,1);
}
/* Pastdan chiqadigan panel (bottom sheet) */
.modal-sheet { animation: modalFade .2s ease; }
.modal-sheet .sheet-card {
  position: relative;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--border);
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
  max-height: 86vh;
  overflow-y: auto;
  animation: sheetUp .32s cubic-bezier(.22,1,.36,1);
}
/* Yopilish: fon so'nadi, panel pastga siljiydi */
.modal-sheet.closing { animation: modalFadeOut .22s ease forwards; }
.modal-sheet.closing .sheet-card { animation: sheetDown .22s cubic-bezier(.4,0,1,1) forwards; }

.sheet-grip {
  width: 38px; height: 4px;
  border-radius: 4px;
  background: var(--border);
  margin: 0 auto 14px;
}
.sheet-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
}
.sheet-close .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.sheet-close:active { transform: scale(.9); }

@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sheetDown { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes modalFadeOut { from { opacity: 1; } to { opacity: 0; } }

.bm-warn-ic {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 176, 32, .16);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(255, 176, 32, .08);
}
.bm-warn-ic .icon { width: 30px; height: 30px; stroke-width: 2.2; }
.bm-title { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.bm-row { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.bm-row b { color: var(--text); }
.bm-price { color: var(--danger) !important; }

/* Buyurtma/to'lov tafsilotlari */
.tx-head { display: flex; align-items: center; gap: 10px; padding-right: 42px; }
.tx-title { font-size: 17px; font-weight: 800; min-width: 0; }
.tx-head .badge { margin-top: 0; flex-shrink: 0; }
.tx-amount {
  font-size: 26px;
  font-weight: 800;
  margin: 10px 0 14px;
  font-variant-numeric: tabular-nums;
}
.tx-rows { display: flex; flex-direction: column; }
.tx-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.tx-row:last-child { border-bottom: none; }
.tx-row .k { color: var(--muted); flex-shrink: 0; }
.tx-row .v { font-weight: 700; text-align: right; word-break: break-word; }
.tx-row .v.mono { font-family: monospace; font-weight: 600; font-size: 12.5px; }
.tx-row .v.err { color: var(--danger); font-weight: 600; }

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: scale(.85) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: calc(100% - 24px);
  max-width: 560px;
  display: flex;
  gap: 2px;
  background: rgba(27, 30, 51, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid #3a3e63;
  border-radius: 22px;
  padding: 5px;
  box-shadow: 0 12px 28px rgba(0,0,0,.55);
  z-index: 30;
}
.nav-btn {
  flex: 1 1 0;
  min-width: 0;
  background: none;
  border: none;
  border-radius: 17px;
  color: var(--muted);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 3px 6px;
  margin: 0;
  cursor: pointer;
  transition: transform .14s ease, background-color .14s ease, color .14s ease;
}
.nav-btn:active { transform: scale(0.94); }
.nav-icon { display: flex; }
.nav-icon .icon { width: 20px; height: 20px; }
.nav-icon img { width: 22px; height: 22px; display: block; object-fit: contain; }
.nav-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .1px;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-btn.active {
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 6px 18px rgba(124,92,255,.5);
}
.nav-btn.active .nav-label {
  font-size: 10px; font-weight: 700; }
/* iOS'dagidek: tanlangan bo'lim ikonkasi qalinlashadi va bir marta "sakraydi" */
.nav-btn.active .nav-icon .icon { stroke-width: 2.2; }
.nav-btn.active .nav-icon { animation: navPop .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes navPop {
  0% { transform: scale(.82); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Toast (native alert/popup o'rniga yengil frontend bildirishnoma) */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(10px);
  max-width: min(440px, calc(100% - 40px));
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.hidden { display: none !important; }

/* Ilova ochilganda ko'rsatiladigan splash ekran */
#app-splash {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s ease;
}
#app-splash.app-splash-out { opacity: 0; pointer-events: none; }
/* Oddiy aylanma yuklagich — boshqa hech narsa yo'q */
.app-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Chegaralar va hover holatlari
   Hover faqat sichqonchali qurilmalarda — telefonda "yopishib qolgan" hover
   holati bo'lmasligi uchun. Animatsiya faqat transform/opacity bo'yicha,
   qolgan o'zgarishlar (rang, chegara) bir zumda qo'llanadi.
   ========================================================================== */

/* Ko'proq ajralib turadigan chegaralar */
.promo-banner { border: 1px solid var(--border); }
.list-item, .game-card, .pkg, .quick-card, .balance-card,
.card, .filter-tab, .preset, .cur-switch, .lang-pill, .cur-pill, .icon-btn {
  transition: transform .14s ease, border-color .14s ease, background-color .14s ease;
}
.btn { transition: transform .14s ease, opacity .14s ease, box-shadow .14s ease; }

@media (hover: hover) and (pointer: fine) {
  /* Kartochka-tugmalar: chegara accent rangga kiradi va biroz ko'tariladi */
  .pkg:hover,
  .quick-card:hover,
  .list-item:hover,
  .preset:hover,
  .filter-tab:hover:not(.active),
  .uc-card-chip:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
  }
  .game-item:hover .game-card {
    border-color: var(--accent);
    transform: translateY(-3px);
  }
  .game-item .game-card { transition: transform .14s ease, border-color .14s ease; }

  /* Yumaloq tugmalar va pill'lar */
  .cur-drop button:hover { background: var(--card2); }
  .icon-btn:hover,
  .lang-pill:hover,
  .cur-pill:hover,
  .cur-switch:hover,
  .ref-copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  /* Asosiy tugmalar: ko'tariladi va soyasi kuchayadi */
  .btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124, 92, 255, .35);
  }
  .btn:disabled { cursor: not-allowed; }


  /* Menyu qatorlari */
  /* Hover foni kartaning chetigacha yetishi kerak. Qator karta paddingi
     (yonlarda 14px, tepa-pastda 4px) ichida turgani uchun manfiy margin bilan
     chetga cho'ziladi va o'sha miqdor padding'ga qo'shiladi — shu sababli
     matn joyidan qimirlamaydi, faqat fon kengayadi.
     Birinchi/oxirgi qatorda burchaklar karta radiusiga moslanadi. */
  .menu-item:hover {
    background: var(--card2);
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .menu-list .menu-item:first-child:hover {
    margin-top: -4px;
    padding-top: 17px;
    border-radius: 15px 15px 0 0;
  }
  .menu-list .menu-item:last-child:hover {
    margin-bottom: -4px;
    padding-bottom: 17px;
    border-radius: 0 0 15px 15px;
  }

  /* Pastki menyu: faol bo'lmagan tugmalar yorishadi */
  .nav-btn:hover:not(.active) { color: var(--text); background: rgba(124, 92, 255, .12); }

  /* Qulflangan paketlarda hover ishlamaydi */
  #packages-block.locked .pkg:hover { border-color: var(--border); transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  .sheet-close:hover { border-color: var(--accent); color: var(--accent); }
}

/* ---------- Profil sahifasi ---------- */
/* Kartochka ichidagi bo'lim sarlavhasi (ikonka + nom) */
.sec-row { display: flex; align-items: center; gap: 9px; }
.sec-row-ic { display: flex; color: var(--accent); flex-shrink: 0; }
.sec-row-ic .icon { width: 18px; height: 18px; }

/* Ikki qatorli tezkor kartochkalar (referal / yordam) */
/* Profil sahifasidagi baland kataklar (Referal / Qo'llab-quvvatlash).
   Icon yonma-yon turganda matn ikki qatorga o'tsa tekislanish buziladi —
   shuning uchun ustma-ust: icon tepada, matn ostida. Kataklar bir xil
   balandlikda cho'ziladi (grid stretch), matn esa doim tepadan boshlanadi. */
.qc-tall {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px;
  text-align: left;
}
.qc-tall .q-ic {
  width: 34px; height: 34px;
  border-radius: 11px;
  align-items: center; justify-content: center;
  background: rgba(124,92,255,.16);
}
.qc-tall .q-ic .icon { width: 18px; height: 18px; }
.qc-text { display: flex; flex-direction: column; min-width: 0; }
.qc-title { font-size: 13px; font-weight: 700; line-height: 1.3; }
.qc-sub { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 3px; line-height: 1.35; }

/* Kichik segmentli tanlagich (til / valyuta / mavzu) */
.seg-mini {
  display: flex;
  gap: 2px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2px;
  flex-shrink: 0;
}
.seg-mini button {
  background: none;
  border: none;
  border-radius: 11px;
  color: var(--muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .2px;
  padding: 5px 10px;
  min-width: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seg-mini button .icon { width: 14px; height: 14px; }
.seg-mini button.active { background: var(--accent); color: #fff; }
.seg-mini button:active { transform: scale(.94); }

/* Savol-javob ro'yxati (akkordeon) */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  padding: 14px 0;
  cursor: pointer;
}
.faq-n { color: var(--muted); font-size: 11px; font-weight: 800; flex-shrink: 0; }
.faq-qt { flex: 1; min-width: 0; }
.faq-plus { color: var(--accent); font-size: 18px; font-weight: 700; flex-shrink: 0; line-height: 1; }
.faq-item.open .faq-plus { transform: rotate(45deg); }
.faq-plus { transition: transform .16s ease; }
.faq-a {
  display: none;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  padding: 0 0 14px 26px;
}
.faq-item.open .faq-a { display: block; }

@media (hover: hover) and (pointer: fine) {
  .faq-q:hover { color: var(--accent); }
  .seg-mini button:hover:not(.active) { color: var(--text); }
}

/* ── Telegram autentifikatsiyasi yo'q ekrani ─────────────────────────────────
   Imzo bo'lmasa yoki 24 soatdan eskirsa server 401 qaytaradi. Ilgari bunda
   ilova bo'sh ko'rinardi — endi nima qilish kerakligi aytiladi. */
#auth-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg, #0b0b0d);
}
#auth-gate.hidden { display: none; }

.gate-card {
  width: min(300px, 100%);
  padding: 26px 22px 24px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(160deg, #1a1710 0%, #12100c 100%);
  border: 1px solid rgba(232, 160, 28, .18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  animation: gate-in .34s cubic-bezier(.2, .8, .3, 1) both;
}

.gate-art { margin: 0 auto 14px; }
.gate-art img {
  width: auto;
  height: 116px;
  display: block;
  margin: 0 auto;
  /* Stiker ataylab harakatsiz (bitta kadr) — ekran diqqatni tortmasin */
}

.gate-title {
  font-size: 17px;
  font-weight: 800;
  color: #f4efe6;
  letter-spacing: -.2px;
}

.gate-text {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.45;
  color: #8d857a;
}

@keyframes gate-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.reduce-motion .gate-card { animation: none; }

/* ── Paket kategoriyalari (Olmoslar / Obuna / Level Up ...) ────────────────
   Bir nechta turdagi mahsulot bitta ro'yxatda kelganda ajratib turadi.
   Ko'rinishi mintaqa tugmalari bilan bir xil — ilova yagona uslubda qolsin. */
.pack-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 2px 10px;
}
.pack-tabs.hidden { display: none; }

.pack-tab {
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, color .12s ease;
}
.pack-tab:active { transform: scale(.96); }
.pack-tab.active {
  background: rgba(124, 92, 255, .16);
  border-color: var(--accent);
  color: var(--text);
}

/* ── ID kiritish joyidagi "i" tugmasi va ma'lumot oynasi ───────────────────── */
.input-wrap { position: relative; flex: 1; min-width: 0; display: flex; }
.input-wrap input { padding-right: 38px; }

.input-info {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color .12s ease, border-color .12s ease, transform .12s ease;
}
.input-info:hover { color: var(--text); border-color: var(--accent); }
.input-info:active { transform: translateY(-50%) scale(.9); }
.input-info.hidden { display: none; }

.info-title { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.info-body { text-align: left; }
.info-p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0 0 10px; }
.info-p:last-child { margin-bottom: 0; }

/* O'yinga xos qo'shimcha (yetkazish muddati) — ko'zga tashlanib tursin */
.info-hl {
  color: var(--text);
  background: rgba(124, 92, 255, .12);
  border: 1px solid rgba(124, 92, 255, .3);
  border-radius: 10px;
  padding: 9px 11px;
}


/* ═══════════ To'lov ekrani (Uzcard/Humo ko'rsatmasi) ═══════════ */

/* Yuqoridagi ikki chip: ogohlantirish va support */
.pay-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pay-chip {
  display: flex; align-items: center; gap: 9px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 11px;
  color: var(--text);
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  min-width: 0;
}
.pay-chip:active { transform: scale(.97); }
.pc-ic {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.pc-ic .icon { width: 17px; height: 17px; }
.pc-ic-warn { background: rgba(255,176,32,.16); color: var(--warn); }
.pc-ic-ok { background: rgba(46,204,130,.14); color: var(--ok); }
.pc-text { display: flex; flex-direction: column; min-width: 0; }
.pc-name {
  font-size: 13px; font-weight: 700; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pc-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* "Aynan ... o'tkazing" — ekrandagi eng muhim raqam. Bosilsa nusxalanadi. */
.pay-amount {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 100%;
  background: linear-gradient(160deg, rgba(124,92,255,.20), rgba(124,92,255,.07));
  border: 1px solid rgba(124,92,255,.35);
  border-radius: 20px;
  padding: 16px 14px 14px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 12px;
}
.pay-amount:active { transform: scale(.99); }
.pa-top, .pa-bot { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pa-mid { display: flex; align-items: baseline; gap: 7px; margin: 2px 0; }
.pa-value { font-size: 33px; font-weight: 900; letter-spacing: -1px; color: var(--accent); }
.pa-cur { font-size: 15px; font-weight: 700; color: var(--accent); opacity: .85; }
.pa-copy { width: 17px; height: 17px; color: var(--muted); align-self: center; }
.pa-copy .icon { width: 17px; height: 17px; }
.pay-amount.pa-copied .pa-copy { color: var(--ok); }

/* Taymer + tugab boruvchi progress chizig'i */
.pay-timer {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.pt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pt-label { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.pt-ic { width: 16px; height: 16px; display: block; color: var(--muted); }
.pt-ic .icon { width: 16px; height: 16px; }
.pt-value { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pt-bar { height: 5px; border-radius: 3px; background: var(--card2); margin-top: 10px; overflow: hidden; }
.pt-fill {
  display: block; height: 100%; width: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transform-origin: left center;
  transition: transform 1s linear;
}
.pay-timer.uc-timer-warn { border-color: rgba(255,92,114,.5); }
.pay-timer.uc-timer-warn .pt-value { color: var(--danger); }
.pay-timer.uc-timer-warn .pt-fill { background: var(--danger); }

/* Karta bloki — har doim to'q rangda (bank kartasi taassuroti) */
.pay-card {
  background: linear-gradient(150deg, #1b1f38, #12142a);
  border: 1px solid #2e3358;
  border-radius: 18px;
  padding: 16px 16px 14px;
  margin-bottom: 10px;
}
.phc-num {
  font-size: 21px; font-weight: 800; letter-spacing: 1.5px;
  color: #fff; font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.phc-meta { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.phc-badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: .8px;
  background: rgba(46,204,130,.18); color: #4ade9b;
  border-radius: 7px; padding: 4px 8px;
  flex-shrink: 0;
}
.phc-badge.phc-uzcard { background: rgba(90,140,255,.2); color: #8fb0ff; }
.phc-badge.phc-humo { background: rgba(255,176,32,.18); color: #ffca6b; }
.phc-owner {
  font-size: 12.5px; font-weight: 700; color: #b9bed8;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.phc-copy-ic { width: 17px; height: 17px; color: #7e84a8; flex-shrink: 0; }
.phc-copy-ic .icon { width: 17px; height: 17px; }
.phc-copy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 11px;
  color: #fff; font-family: inherit; font-size: 14.5px; font-weight: 700;
  cursor: pointer;
}
.phc-copy:active { transform: scale(.98); }
.pay-card.phc-copied .phc-copy { background: rgba(46,204,130,.18); border-color: rgba(46,204,130,.4); }
.phc-copy-btn-ic { width: 17px; height: 17px; display: block; }
.phc-copy-btn-ic .icon { width: 17px; height: 17px; }

/* To'lov qoidalari */
.pay-rules-head { margin-top: 20px; }
.pay-rules {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 14px;
  box-shadow: var(--shadow);
}
.pr-item { display: flex; align-items: center; gap: 11px; padding: 11px 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.pr-ic { width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.pr-ic .icon { width: 14px; height: 14px; }
.pr-ok .pr-ic { background: rgba(46,204,130,.16); color: var(--ok); }
.pr-no .pr-ic { background: rgba(255,92,114,.14); color: var(--danger); }
.pr-sep { height: 1px; background: var(--border); }

/* "To'lov kutilmoqda" holati — nuqta sekin lipillaydi */
.pay-status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 16px 0 4px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.ps-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: psPulse 1.6s ease-in-out infinite; }
@keyframes psPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.pay-status.ps-checking .ps-dot { background: var(--warn); }
.pay-status.ps-checking { color: var(--warn); }

.uc-cancel-btn { width: 100%; margin-top: 10px; }

/* Pastdagi tasdiq tugmasi — kontent ustida yopishib turadi */
.pay-footer {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 100%; max-width: 560px;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--bg) 32%);
  z-index: 42;
}
.btn-paid {
  width: 100%;
  background: linear-gradient(180deg, #2ecc82, #22a86a);
  box-shadow: 0 8px 22px rgba(46,204,130,.28);
  padding: 14px 16px;
  font-size: 15.5px;
  border-radius: 14px;
}
.btn-paid:disabled { box-shadow: none; }

/* To'lov ekrani ochilganda pastki menyu yashiriladi — foydalanuvchi
   e'tibori faqat to'lovda bo'lsin (chiqish uchun "Bekor qilish" bor). */
html.topup-paying .bottom-nav { display: none; }
html.topup-paying #view-topup { z-index: 40; }
html.topup-paying #view-topup .subbody { padding-bottom: 96px; }

.uc-cards:not(:empty) { margin-bottom: 4px; }

/* Sarlavhada ikki qator: bo'lim nomi + izoh (to'lov ekranida) */
.subhead-titles { display: flex; flex-direction: column; min-width: 0; }
.subsub { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* Qo'shimcha kartalar ro'yxati */
.uc-others-head { margin: 14px 2px 8px; font-size: 12px; }
.uc-chip-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .6px;
  color: var(--muted); background: var(--card2);
  border-radius: 6px; padding: 3px 7px;
  flex-shrink: 0;
}

/* Paynet: chek rasmini tanlash maydoni */
.mc-logo-paynet { color: var(--accent); }
.pn-pick {
  width: 100%; margin-top: 14px; min-height: 120px; padding: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 2px dashed var(--border); border-radius: 16px; background: transparent;
  color: var(--muted); font: inherit; font-weight: 600; cursor: pointer;
}
.pn-pick img { max-width: 100%; max-height: 260px; border-radius: 10px; object-fit: contain; }
.pn-pick.pn-done { pointer-events: none; opacity: .8; }
