:root {
  /* Telegram fullscreen rejimidagi yuqori panel balandligi. app.js uni
     contentSafeAreaInset'dan yangilaydi; Telegram tashqarisida 0 qoladi. */
  --tg-safe-top: 0px;
  --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:not(.one-col) { 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:not(.one-col) { 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:not(.one-col) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- 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;
  /* Yuqori padding'ga Telegram panelining balandligi qo'shiladi — fullscreen
     rejimida topbar soat/⋯ tugmasi ostida qolib ketmasin. */
  padding: calc(12px + var(--tg-safe-top)) 14px 12px;
  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; }
.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; }
/* Tanlangan paket: chegara accent rangda va QALINROQ, fon sezilarli darajada
   binafshalashadi, atrofida yengil nur — kartochka aniq ajralib tursin.
   box-shadow ichki chiziq bilan berilgan: chegarani 2px qilish o'lchamni
   o'zgartirib, qatorni sakratib yuborardi. */
.pkg.selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(124,92,255,.30), rgba(124,92,255,.18));
  box-shadow: inset 0 0 0 1px var(--accent), 0 4px 14px rgba(124,92,255,.28);
}
/* 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); }

/* Qo'lda bajariladigan paket belgisi — mijoz kutish borligini xariddan oldin
   bilsin. Rang ogohlantirish (amber), lekin kartochka ko'rinishi buzilmaydi. */
.pkg-manual {
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--warn);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pkg-is-manual { border-color: rgba(255,176,32,.35); }
.pkg-is-manual.selected { border-color: var(--accent); }
.pkg.selected .price { color: var(--text); }

/* Gift karta kodi: bosilganda nusxalanadi, matn ham belgilanadi (sayt bo'ylab
   nusxalash o'chirilgan — bu yerda ataylab qaytariladi). */
.tx-code-row { cursor: pointer; }
.tx-code {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
  letter-spacing: .5px;
  color: var(--accent);
  font-weight: 800;
}
.tx-code-row:active .tx-code { opacity: .6; }
.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; }
/* Gift kartalar (Roblox, Standoff 2) — bitta ustun: nominal nomi uzun. */
.packages.one-col { 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 */
/* ID kiritilmaganda paketlar so'niq, lekin TANLANADI — bosish to'silmaydi,
   xaridni faqat "Sotib olish" tugmasi to'sadi. */
#packages-block.locked .packages { opacity: .55; }

/* 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 .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);
}
/* Ketma-ket havolalar yopishib qolmasin — birinchisidan keyingilari orasida
   oraliq (birinchisiga tegmaydi, "HAVOLALAR" sarlavhasi bilan masofa o'ziniki). */
.topup-link + .topup-link { margin-top: 10px; }
.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;
  /* .topbar bilan bir xil sabab — bu ekranlarda topbar yo'q, shuning uchun
     Telegram panelining balandligini subhead o'zi qoplaydi. */
  padding: calc(12px + var(--tg-safe-top)) 14px 12px;
  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 bosish javobi
   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; }

/* Hover holatlari ATAYLAB yo'q: bosilganda beriladigan javob (:active) yetarli,
   hover esa sichqonchali qurilmalarda ortiqcha harakat qilardi. */
.btn:disabled { cursor: not-allowed; }


/* ---------- 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; }

/* ── 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: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 bilan to'ldirish
   ══════════════════════════════════════════════════════════════════════ */

/* Paynet uchun rasmli logotip yo'q — brend rangidagi harf maydonchasi. */
.mc-logo-paynet { background: linear-gradient(180deg, #24c07a, #12a05f); color: #fff; }
.mc-logo-text { font-size: 20px; font-weight: 800; line-height: 1; }

.pn-pick-btn { width: 100%; margin-top: 14px; }

/* Tanlangan chek — yuborishdan oldin ko'rinadi, shunda noto'g'ri rasm
   admin qo'liga borib qolmaydi. */
.pn-preview {
  position: relative;
  margin-top: 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card2);
}
.pn-preview img { display: block; width: 100%; max-height: 320px; object-fit: contain; }
.pn-preview-x {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(0,0,0,.6); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.pn-preview-x .icon { width: 16px; height: 16px; }

.pay-status.ps-ok .ps-dot { background: var(--ok); animation: none; }
.pay-status.ps-ok { color: var(--ok); }

.b-review { background: rgba(124,92,255,.16); color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════════
   TOP reyting
   ══════════════════════════════════════════════════════════════════════ */

.top-list { margin-top: 4px; }

.top-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 8px;
}
.top-rank {
  width: 32px; flex-shrink: 0;
  text-align: center;
  font-size: 15px; font-weight: 800;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.top-row-medal .top-rank { font-size: 19px; }
.top-name {
  flex: 1; min-width: 0;
  font-size: 14.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.top-count { flex-shrink: 0; font-size: 13px; color: var(--muted); }
.top-count b { font-size: 15px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }

/* O'z qatori ajralib tursin — ro'yxatda o'zini qidirib yurmasin. */
.top-row-me { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.top-row-me .top-name { color: var(--accent); font-weight: 800; }

.top-me { margin: 10px 0 14px; }
.top-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 14px; }

/* ══════════════════════════════════════════════════════════════════════
   Izohlar
   ══════════════════════════════════════════════════════════════════════ */

.rv-summary {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 14px;
}
.rv-sum-score { font-size: 34px; font-weight: 800; line-height: 1; }
.rv-sum-text { display: flex; flex-direction: column; gap: 5px; }
.rv-sum-count { font-size: 13px; color: var(--muted); }

.rv-star, .rv-sum-stars > span { display: inline-flex; color: var(--border); }
.rv-star .icon, .rv-sum-stars .icon { width: 15px; height: 15px; }
.rv-star.on, .rv-sum-stars > span.on { color: var(--warn); }

.rv-write-btn { width: 100%; margin-bottom: 16px; }

.rv-pending { margin-bottom: 16px; }
.rv-pending-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 12px 14px; margin-bottom: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}
.rv-pending-item:active { transform: scale(.98); }
.rvp-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.rvp-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvp-sub { font-size: 12.5px; color: var(--muted); }
.rvp-go { display: flex; color: var(--muted); flex-shrink: 0; }
.rvp-go .icon { width: 18px; height: 18px; }

.rv-item {
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
}
.rv-item-me { border-color: var(--accent); }
.rv-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv-item-name { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-item-stars { display: flex; gap: 2px; flex-shrink: 0; }
.rv-item-body { margin-top: 8px; font-size: 14px; line-height: 1.45; word-break: break-word; }
.rv-item-meta {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 8px; font-size: 12px; color: var(--muted);
}

/* ── Izoh yozish oynasi ───────────────────────────────────────────────── */

.rv-head { text-align: center; margin: 2px 0 14px; }
.rv-head-title { font-size: 19px; font-weight: 800; }
.rv-head-sub { margin-top: 4px; font-size: 13.5px; color: var(--muted); }

/* Qaysi xaridga izoh yozilayotgani */
.rv-target {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-size: 13px; font-weight: 600; color: var(--muted);
}

/* Yulduzlar — quticha emas, faqat belgi: bosishga qulay, chalg'itmaydi */
.rv-stars { display: flex; justify-content: center; gap: 6px; }
.rv-star-btn {
  width: 48px; height: 48px;
  padding: 0;
  border: none;
  background: none;
  color: var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .12s ease, color .12s ease;
}
.rv-star-btn .icon { width: 34px; height: 34px; }
.rv-star-btn.on { color: var(--warn); }
.rv-star-btn.on .icon { fill: var(--warn); }
.rv-star-btn:active { transform: scale(.88); }

.rv-rating-label {
  text-align: center;
  margin: 6px 0 16px;
  font-size: 14px; font-weight: 700; color: var(--warn);
  min-height: 19px;
}

/* textarea saytda umuman uslublanmagan edi — brauzerning standart
   monoshirift ko'rinishi chiqib turardi. */
.rv-field { position: relative; }
#rv-body {
  width: 100%;
  min-height: 104px;
  resize: none;
  padding: 12px 14px 26px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  outline: none;
  transition: border-color .15s ease;
}
#rv-body::placeholder { color: var(--muted); }
#rv-body:focus { border-color: var(--accent); }
.rv-counter {
  position: absolute; right: 12px; bottom: 10px;
  font-size: 11.5px; color: var(--muted);
  pointer-events: none;
}

.rv-submit-btn { width: 100%; margin-top: 16px; }

/* ── Xarid natijasidagi izoh taklifi ──────────────────────────────────── */

.sm-review { margin-top: 18px; text-align: center; }
.sm-review-stars { display: flex; justify-content: center; gap: 3px; margin-bottom: 8px; }
.sm-star { display: inline-flex; color: var(--warn); }
.sm-star .icon { width: 17px; height: 17px; fill: var(--warn); }
.sm-review-title { font-size: 15px; font-weight: 800; }
.sm-review-sub { margin-top: 3px; font-size: 13px; color: var(--muted); }
.sm-review-actions { display: flex; gap: 8px; margin-top: 14px; }
.sm-review-actions .btn { flex: 1; }

/* ── Uchtalik sahna (TOP bo'limi) ─────────────────────────────────────── */

/* Uchtalik sahna: 2-1-3 tartibida, birinchisi balandroq */
.podium { display: flex; align-items: flex-end; gap: 8px; }
.podium-card {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 8px 12px;
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card2);
  text-align: center;
}
.podium-chip {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .3px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
}
.podium-ava {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #1a1205;
  background: var(--border);
}
.podium-name {
  font-size: 12.5px; font-weight: 700;
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.podium-count { font-size: 11.5px; font-weight: 700; color: var(--muted); }

/* Oltin — o'rtada, balandroq va yorqinroq */
.podium-gold {
  padding-top: 32px;
  border-color: rgba(255,176,32,.45);
  background: linear-gradient(180deg, rgba(255,176,32,.16), rgba(255,176,32,.04));
  box-shadow: 0 6px 20px rgba(255,176,32,.14);
}
.podium-gold .podium-chip { color: #1a1205; background: linear-gradient(180deg, #ffd166, var(--warn)); border-color: transparent; }
.podium-gold .podium-ava { width: 54px; height: 54px; font-size: 17px; background: linear-gradient(180deg, #ffd166, #f5a623); }
.podium-gold .podium-count { color: var(--warn); }

.podium-silver {
  border-color: rgba(190,196,220,.4);
  background: linear-gradient(180deg, rgba(190,196,220,.14), rgba(190,196,220,.03));
}
.podium-silver .podium-chip { color: #14151f; background: linear-gradient(180deg, #e2e6f2, #b9bfd4); border-color: transparent; }
.podium-silver .podium-ava { background: linear-gradient(180deg, #e2e6f2, #aeb5cc); }

.podium-bronze {
  border-color: rgba(214,138,74,.45);
  background: linear-gradient(180deg, rgba(214,138,74,.14), rgba(214,138,74,.03));
}
.podium-bronze .podium-chip { color: #2a1405; background: linear-gradient(180deg, #e8a76a, #cd7f32); border-color: transparent; }
.podium-bronze .podium-ava { background: linear-gradient(180deg, #e8a76a, #c9762c); }

/* O'zi sahnaga tushgan bo'lsa — ajralib tursin */
.podium-me { outline: 2px solid var(--accent); outline-offset: 1px; }

/* TOP bo'limidagi sahna ro'yxatdan biroz uzoqroq turadi */
#top-podium { margin: 18px 0 20px; }

/* ── Reytingdagi avatarlar ────────────────────────────────────────────── */

/* Profil rasmi kelganda doira to'liq rasm bo'ladi — buni umumiy .avatar-photo
   sinfi qiladi. Rasm yo'q bo'lsa bosh harf, u ham chiqmasa odam ikonkasi. */
.podium-ava.ava-ic .icon, .top-ava.ava-ic .icon { width: 20px; height: 20px; opacity: .75; }

.top-ava {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  /* Sahnadagidan farqli: bu yerda fon to'q, shuning uchun harf ochiq rangda —
     aks holda bosh harf fonga singib ko'rinmay ketadi. */
  color: var(--text);
  background: var(--card2);
  border: 1px solid var(--border);
}
.top-row-me .top-ava { box-shadow: 0 0 0 2px var(--accent); }

/* ---------- Shisha (glass) suzuvchi menyu — 2026-09-26 ----------
   Fon yarim shaffof + blur/saturate, yuqorida yorug' chiziq. Tanlangan
   bo'lim fonini alohida `.nav-pill` beradi (app.js yaratadi) — u tugmalar
   orasida suriladi. Pastga aylantirilganda menyu biroz pasayib, xiralashadi;
   tepaga aylantirilsa qaytadi (html.nav-tucked). */
.bottom-nav {
  --nav-y: 0px;
  transform: translateX(-50%) translate3d(0, var(--nav-y), 0);
  background: linear-gradient(180deg, rgba(40, 43, 72, .52), rgba(22, 24, 42, .62));
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, .45),
    0 2px 8px rgba(0, 0, 0, .25),
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -1px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
  isolation: isolate;
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .25s ease;
  animation: navFloatIn .5s cubic-bezier(.22, 1, .36, 1) backwards;
}
/* Yuqori chetdagi shisha yaltirog'i */
.bottom-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
  z-index: -1;
}
:root[data-theme="light"] .bottom-nav {
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(245, 246, 252, .62));
  border-color: rgba(255, 255, 255, .75);
  box-shadow:
    0 16px 36px rgba(20, 21, 40, .16),
    0 2px 6px rgba(20, 21, 40, .06),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}
:root[data-theme="light"] .bottom-nav::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 50%);
}
html.nav-tucked .bottom-nav { --nav-y: 14px; opacity: .55; }

/* Suriluvchi tanlov "tomchisi" */
.nav-pill {
  position: absolute;
  top: 5px; bottom: 5px; left: 0;
  width: 0;
  border-radius: 17px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  box-shadow: 0 6px 18px rgba(124, 92, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
  transform: translate3d(var(--pill-x, 0), 0, 0);
  /* Harakatni app.js (Web Animations) boshqaradi — CSS transition
     animatsiyadan ustun turib uni buzardi, shuning uchun faqat opacity. */
  transition: opacity .2s ease;
  transform-origin: center;
  will-change: transform;
  z-index: 0;
  pointer-events: none;
}
.nav-pill.no-anim { transition: none; }
.nav-pill.off { opacity: 0; }
.bottom-nav.has-pill .nav-btn.active { background: none; box-shadow: none; }
.nav-btn { position: relative; z-index: 1; }

@keyframes pillStretch {
  0%   { border-radius: 17px; }
  40%  { border-radius: 20px / 14px; filter: brightness(1.12); }
  100% { border-radius: 17px; }
}
@keyframes navFloatIn {
  from { opacity: 0; transform: translateX(-50%) translate3d(0, 24px, 0) scale(.96); }
  to   { opacity: 1; transform: translateX(-50%) translate3d(0, 0, 0); }
}

/* Bosh sahifa bloklari birin-ketin suzib chiqadi */
@keyframes homeRise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: none; }
}
#view-home.home-rise > * { animation: homeRise .45s cubic-bezier(.22, 1, .36, 1) both; }
#view-home.home-rise > :nth-child(1) { animation-delay: 0s; }
#view-home.home-rise > :nth-child(2) { animation-delay: .06s; }
#view-home.home-rise > :nth-child(3) { animation-delay: .12s; }
#view-home.home-rise > :nth-child(4) { animation-delay: .18s; }
#view-home.home-rise > :nth-child(n+5) { animation-delay: .22s; }

/* Balans kartasidagi "To'ldirish" tugmasida yengil yaltiroq o'tib turadi */
.bc-topup { position: relative; overflow: hidden; }
.bc-topup::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg);
  animation: btnShine 4.5s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes btnShine {
  0%   { left: -60%; }
  22%  { left: 130%; }
  100% { left: 130%; }
}

html.reduce-motion .bc-topup::after { animation: none !important; display: none; }
@media (prefers-reduced-motion: reduce) {
  .nav-pill, .bottom-nav { transition: none; }
  .bottom-nav, #view-home.home-rise > *, .bc-topup::after { animation: none; }
}
/* Shisha ustida rangli kontent bo'lsa ham o'qilsin */
:root:not([data-theme="light"]) .bottom-nav .nav-btn:not(.active) { color: #aeb2cf; }

/* ================= Reyting (2026-09-26, noldan) ================= */
.rk { --gold1: #ffd76a; --gold2: #f3a31d; --silv1: #eef1f9; --silv2: #a7aec6; --brz1: #f3b67f; --brz2: #c46f2a; }

/* Sarlavha kartasi */
.rk-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 12px 0 18px; padding: 18px 16px 14px;
  border-radius: 24px;
  background: linear-gradient(135deg, #8a63ff 0%, #6b46ff 45%, #3d2bb8 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(107, 70, 255, .35), inset 0 1px 0 rgba(255,255,255,.25);
}
.rk-hero-glow {
  position: absolute; z-index: -1; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 106, .55), rgba(255, 215, 106, 0) 65%);
  animation: rkGlow 6s ease-in-out infinite alternate;
}
.rk-hero::after {
  content: ""; position: absolute; z-index: -1; left: -30px; bottom: -70px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), rgba(255,255,255,0) 70%);
}
.rk-hero-head { display: flex; align-items: center; gap: 12px; }
.rk-hero-ic {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--gold1);
}
.rk-hero-ic .icon { width: 26px; height: 26px; }
.rk-hero-text { min-width: 0; }
.rk-title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.rk-sub { font-size: 12.5px; opacity: .82; margin-top: 3px; }

/* Davr tanlagich — shisha, suriluvchi pill bilan */
.rk-seg {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; padding: 4px;
  border-radius: 14px; background: rgba(12, 8, 40, .28); border: 1px solid rgba(255,255,255,.16);
}
.rk-seg-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: 10px;
  transform: translateX(calc(100% * var(--i, 2)));
  background: #fff; box-shadow: 0 4px 14px rgba(20, 10, 70, .3);
  transition: transform .38s cubic-bezier(.34, 1.4, .64, 1);
}
.rk-seg-btn {
  position: relative; z-index: 1; border: 0; background: none; font: inherit; cursor: pointer;
  padding: 9px 2px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .25s ease;
}
.rk-seg-btn.active { color: #4b2fd6; }

/* Sahna */
.rk-stage { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 8px; margin: 30px 0 16px; }
.rk-slot { display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.rk-ava-wrap { position: relative; margin-bottom: 8px; }
.rk-ring {
  display: block; padding: 3px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--c1), var(--c2), var(--c1), var(--c2), var(--c1));
  box-shadow: 0 8px 22px var(--sh);
}
.rk-gold   { --c1: var(--gold1); --c2: var(--gold2); --sh: rgba(243, 163, 29, .45); }
.rk-silver { --c1: var(--silv1); --c2: var(--silv2); --sh: rgba(167, 174, 198, .35); }
.rk-bronze { --c1: var(--brz1);  --c2: var(--brz2);  --sh: rgba(196, 111, 42, .38); }
.rk-ava {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--card2) center / cover no-repeat; border: 3px solid var(--bg);
  font-size: 17px; font-weight: 800; color: var(--text); overflow: hidden;
}
.rk-gold .rk-ava { width: 76px; height: 76px; font-size: 22px; }
.rk-ava.ava-ic .icon { width: 22px; height: 22px; opacity: .7; }
.rk-medal {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 800; color: #241603;
  background: linear-gradient(180deg, var(--c1), var(--c2)); border: 2px solid var(--bg);
}
.rk-silver .rk-medal { color: #1c2030; }
.rk-crown {
  position: absolute; left: 50%; top: -24px; width: 30px; height: 30px; margin-left: -15px;
  color: var(--gold1); filter: drop-shadow(0 3px 6px rgba(243, 163, 29, .6));
  animation: rkCrown 2.8s ease-in-out infinite;
}
.rk-crown svg { width: 100%; height: 100%; display: block; }
.rk-pname {
  max-width: 100%; margin-top: 6px; font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rk-pcount { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.rk-pcount b { color: var(--text); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rk-gold .rk-pcount b { color: var(--gold2); }
.rk-block {
  position: relative; width: 100%; margin-top: 10px; border-radius: 16px 16px 8px 8px;
  display: flex; justify-content: center; padding-top: 10px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 34%, var(--card)) 0%, var(--card) 100%);
  border: 1px solid color-mix(in srgb, var(--c1) 40%, var(--border));
  border-bottom: 0;
  transform-origin: bottom;
}
.rk-block::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}
.rk-gold .rk-block   { height: 96px; }
.rk-silver .rk-block { height: 70px; }
.rk-bronze .rk-block { height: 54px; }
.rk-block-tier { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: var(--c2); }
.rk-slot-me .rk-pname { color: var(--accent); }
.rk-slot-empty { opacity: .35; }
.rk-slot-empty .rk-ring { box-shadow: none; }

/* O'z o'rni */
.rk-me { margin: 0 0 14px; }
.rk-me-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--card)), var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border));
}
.rk-me-rank {
  flex-shrink: 0; min-width: 52px; height: 44px; padding: 0 8px; border-radius: 13px; display: grid; place-items: center;
  grid-auto-flow: column; gap: 1px;
  background: linear-gradient(180deg, var(--accent), var(--accent2)); color: #fff;
  font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 16px rgba(124, 92, 255, .4);
}
.rk-me-rank small { font-size: 12px; opacity: .75; }
.rk-me-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rk-me-label { font-size: 14px; font-weight: 800; }
.rk-me-hint { font-size: 12px; color: var(--muted); }

/* Ro'yxat */
.rk-list {
  border-radius: 20px; background: var(--card); border: 1px solid var(--border); overflow: hidden;
}
.rk-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.rk-row + .rk-row { border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.rk-rank {
  width: 22px; flex-shrink: 0; text-align: center; font-size: 14px; font-weight: 800; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rk-ava-sm { width: 38px; height: 38px; font-size: 13px; border: 0; flex-shrink: 0; }
.rk-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rk-row-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-bar { display: block; height: 4px; border-radius: 3px; background: var(--card2); overflow: hidden; }
.rk-bar i {
  display: block; height: 100%; border-radius: inherit; transform-origin: left; transform: scaleX(var(--w));
  background: linear-gradient(90deg, var(--accent2), var(--accent));
}
.rk-row-count { flex-shrink: 0; text-align: right; font-size: 11.5px; color: var(--muted); line-height: 1.2; }
.rk-row-count b { display: block; font-size: 16px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.rk-row-me { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.rk-row-me .rk-row-name, .rk-row-me .rk-rank { color: var(--accent); }

.rk-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 16px;
  color: var(--muted); font-size: 14px; border-radius: 20px; border: 1px dashed var(--border);
}
.rk-empty.hidden { display: none; }
.rk-empty-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--card2); color: var(--gold2); }
.rk-empty-ic .icon { width: 26px; height: 26px; }
.rk-note { text-align: center; color: var(--muted); font-size: 12px; margin: 14px 0 4px; }

:root[data-theme="light"] .rk-ava { border-color: #fff; }
:root[data-theme="light"] .rk-medal { border-color: #fff; }

/* Animatsiyalar */
@keyframes rkGlow { from { transform: translate3d(0,0,0) scale(1); opacity: .8; } to { transform: translate3d(-20px,16px,0) scale(1.15); opacity: 1; } }
@keyframes rkCrown { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(4deg); } }
@keyframes rkBlock { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rkPop { 0% { opacity: 0; transform: translateY(14px) scale(.7); } 70% { opacity: 1; transform: translateY(-3px) scale(1.05); } 100% { opacity: 1; transform: none; } }
@keyframes rkFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rkRow { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes rkBar { from { transform: scaleX(0); } to { transform: scaleX(var(--w)); } }
@keyframes rkRing { to { transform: rotate(360deg); } }

.rk-play .rk-block { animation: rkBlock .55s cubic-bezier(.22, 1, .36, 1) both; }
.rk-play .rk-ava-wrap { animation: rkPop .55s cubic-bezier(.34, 1.4, .64, 1) both; }
.rk-play .rk-pname, .rk-play .rk-pcount { animation: rkFade .4s ease both; }
.rk-play .rk-gold .rk-block   { animation-delay: .05s; }
.rk-play .rk-gold .rk-ava-wrap { animation-delay: .3s; }
.rk-play .rk-gold .rk-pname, .rk-play .rk-gold .rk-pcount { animation-delay: .4s; }
.rk-play .rk-silver .rk-block { animation-delay: .15s; }
.rk-play .rk-silver .rk-ava-wrap { animation-delay: .4s; }
.rk-play .rk-silver .rk-pname, .rk-play .rk-silver .rk-pcount { animation-delay: .5s; }
.rk-play .rk-bronze .rk-block { animation-delay: .22s; }
.rk-play .rk-bronze .rk-ava-wrap { animation-delay: .48s; }
.rk-play .rk-bronze .rk-pname, .rk-play .rk-bronze .rk-pcount { animation-delay: .58s; }
.rk-play .rk-me-card { animation: rkRow .45s .45s cubic-bezier(.22, 1, .36, 1) both; }
.rk-play .rk-row { animation: rkRow .4s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(.5s + var(--d, 0ms)); }
.rk-play .rk-bar i { animation: rkBar .8s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(.65s + var(--d, 0ms)); }
/* Oltin halqa sekin aylanib yaltiraydi */
.rk-gold .rk-ring { position: relative; }
.rk-gold .rk-ring::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 236, 170, .9) 80%, transparent 90%);
  animation: rkRing 3.2s linear infinite;
}
html.reduce-motion .rk-gold .rk-ring::before, html.reduce-motion .rk-hero-glow { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .rk-play *, .rk-crown, .rk-hero-glow, .rk-gold .rk-ring::before { animation: none !important; }
}

/* ================= Profil (2026-09-26, noldan) ================= */
.pf { padding-top: 6px; }
.pf-hero {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  margin: 8px 0 12px; padding: 0 14px 14px; border-radius: 26px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
.pf-hero-cover {
  position: absolute; inset: 0 0 auto 0; height: 92px; z-index: -1; overflow: hidden;
  background: linear-gradient(120deg, #8a63ff 0%, #6b46ff 50%, #3d2bb8 100%);
}
.pf-hero-cover::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.12));
}
.pf-hero-cover i {
  position: absolute; border-radius: 50%; filter: blur(2px);
  animation: pfFloat 7s ease-in-out infinite alternate;
}
.pf-hero-cover i:nth-child(1) { width: 140px; height: 140px; right: -30px; top: -60px; background: radial-gradient(circle, rgba(255, 215, 106, .55), transparent 65%); }
.pf-hero-cover i:nth-child(2) { width: 120px; height: 120px; left: -30px; top: -20px; background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%); animation-delay: -3s; }
.pf-ava-ring {
  display: inline-block; margin-top: 44px; padding: 4px; border-radius: 50%;
  background: conic-gradient(from 210deg, #ffd76a, #b18cff, #6b46ff, #ffd76a);
  box-shadow: 0 10px 26px rgba(107, 70, 255, .45);
}
.pf .pf-ava-ring .avatar-lg {
  width: 84px; height: 84px; margin: 0; font-size: 30px;
  border: 4px solid var(--card); background-size: cover; background-position: center;
}
.pf-name { margin-top: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.pf-idpill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card2);
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text); cursor: pointer;
  transition: transform .15s ease, border-color .2s ease;
}
.pf-idpill:active { transform: scale(.96); }
.pf-idpill #p-username:empty { display: none; }
.pf-idpill #p-username { color: var(--accent); }
.pf-idpill .p-id-label { color: var(--muted); font-size: 11px; }
.pf-idpill .mono { color: var(--muted); font-size: 12px; }
.pf-copy { display: flex; color: var(--muted); }
.pf-copy .icon { width: 14px; height: 14px; }

.pf-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px;
  border-radius: 18px; background: var(--card2); padding: 12px 4px;
}
.pf-stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 0 6px; }
.pf-stat + .pf-stat { border-left: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.pf-stat b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-stat span { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-stat:nth-child(3) b { color: var(--warn); }

/* Hamyon kartasi — gradient chegarali */
.pf .pf-wallet {
  position: relative; margin: 0 0 12px; border-radius: 22px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, rgba(138, 99, 255, .9), rgba(255, 215, 106, .6), rgba(138, 99, 255, .25)) border-box;
}

/* Tezkor amallar — 4 ustun */
.pf-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.pf-act {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px;
  border-radius: 18px; background: var(--card); border: 1px solid var(--border);
  color: var(--text); font: inherit; text-decoration: none; cursor: pointer; min-width: 0;
  transition: transform .15s ease, border-color .2s ease;
}
.pf-act:active { transform: scale(.94); }
.pf-act-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; }
.pf-act-ic .icon { width: 21px; height: 21px; }
.pf-act-t { font-size: 12px; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-c-violet { background: rgba(124, 92, 255, .16); color: #9b82ff; }
.pf-c-gold   { background: rgba(255, 176, 32, .16); color: #ffb020; }
.pf-c-pink   { background: rgba(255, 61, 138, .15); color: #ff5c9d; }
.pf-c-teal   { background: rgba(23, 185, 160, .16); color: #19c2a6; }

/* Promokod — tugma maydon ichida */
.pf-promo {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; margin-bottom: 6px;
  border-radius: 18px; background: var(--card); border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--border));
}
.pf-promo-ic { display: flex; color: var(--accent); flex-shrink: 0; }
.pf-promo-ic .icon { width: 20px; height: 20px; }
.pf .pf-promo input {
  flex: 1; min-width: 0; margin: 0; padding: 10px 2px; border: 0; background: none; box-shadow: none;
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--text); outline: none;
}
.pf .pf-promo .btn { flex-shrink: 0; margin: 0; border-radius: 13px; padding: 10px 14px; }
.pf-promo-err { margin: 0 4px 8px; }

.pf-group-title {
  margin: 18px 6px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.pf .menu-list { border-radius: 20px; }
.pf .menu-icon-bg { border-radius: 11px; }

:root[data-theme="light"] .pf-hero { box-shadow: 0 12px 28px rgba(20, 21, 40, .08); }

/* Kirish animatsiyasi — bloklar birin-ketin */
@keyframes pfFloat { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-14px, 10px, 0) scale(1.12); } }
@keyframes pfRise { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes pfAva { 0% { opacity: 0; transform: scale(.6) rotate(-20deg); } 70% { opacity: 1; transform: scale(1.06) rotate(3deg); } 100% { opacity: 1; transform: none; } }
.pf.pf-play .pf-ava-ring { animation: pfAva .6s cubic-bezier(.34, 1.4, .64, 1) both; }
.pf.pf-play .pf-name, .pf.pf-play .pf-idpill { animation: pfRise .45s .12s cubic-bezier(.22, 1, .36, 1) both; }
.pf.pf-play .pf-stats { animation: pfRise .45s .2s cubic-bezier(.22, 1, .36, 1) both; }
.pf.pf-play > .pf-wallet { animation: pfRise .45s .26s cubic-bezier(.22, 1, .36, 1) both; }
.pf.pf-play > .pf-actions .pf-act { animation: pfRise .4s cubic-bezier(.22, 1, .36, 1) both; }
.pf.pf-play > .pf-actions .pf-act:nth-child(1) { animation-delay: .32s; }
.pf.pf-play > .pf-actions .pf-act:nth-child(2) { animation-delay: .37s; }
.pf.pf-play > .pf-actions .pf-act:nth-child(3) { animation-delay: .42s; }
.pf.pf-play > .pf-actions .pf-act:nth-child(4) { animation-delay: .47s; }
.pf.pf-play > .pf-promo { animation: pfRise .45s .5s cubic-bezier(.22, 1, .36, 1) both; }
.pf.pf-play > .menu-list, .pf.pf-play > .pf-group-title { animation: pfRise .45s .56s cubic-bezier(.22, 1, .36, 1) both; }
html.reduce-motion .pf-hero-cover i { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .pf *, .pf-hero-cover i { animation: none !important; } }

/* ===== Profil: sozlamalar / FAQ / ilova haqida (2026-09-26) ===== */
.pf .pf-settings, .pf .pf-faq { padding: 4px 6px; border-radius: 22px; }
.pf .pf-settings .menu-item {
  gap: 12px; padding: 12px 10px; border-radius: 16px; border-bottom: 0; position: relative;
  transition: background-color .2s ease;
}
.pf .pf-settings .menu-item + .menu-item::before {
  content: ""; position: absolute; top: 0; left: 58px; right: 10px; height: 1px;
  background: color-mix(in srgb, var(--border) 65%, transparent);
}
.pf .pf-settings .menu-item:active { background: var(--card2); }
.pf .pf-settings .menu-icon-bg {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent);
}
.pf .pf-settings .menu-icon-bg .icon { width: 19px; height: 19px; }
.pf .pf-settings .menu-title { font-size: 14.5px; font-weight: 700; }
.pf #lang-icon     { background: rgba(23, 185, 120, .15); color: #1fc98a; }
.pf #currency-icon { background: rgba(255, 176, 32, .15); color: #ffb020; }
.pf #mi-theme-icon { background: rgba(124, 92, 255, .16); color: #9b82ff; }
.pf #mi-sound-icon { background: rgba(56, 152, 255, .15); color: #4aa3ff; }
.pf #mi-motion-icon{ background: rgba(255, 61, 138, .14); color: #ff5c9d; }

/* Segment tanlagich — suriluvchi pill */
.pf .seg-mini { position: relative; border-radius: 12px; padding: 3px; gap: 0; }
.pf .seg-mini button { position: relative; z-index: 1; border-radius: 9px; padding: 6px 11px; transition: color .25s ease; }
.pf .seg-mini.glide-ready button.active { background: none; }
.seg-glide {
  position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 9px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  box-shadow: 0 3px 10px rgba(124, 92, 255, .45);
  transition: transform .38s cubic-bezier(.34, 1.4, .64, 1), width .3s ease, opacity .2s;
  pointer-events: none;
}

/* Kalit (switch) — kattaroq, prujinali */
.pf .switch { width: 48px; height: 28px; }
.pf .switch-track { border-radius: 999px; background: color-mix(in srgb, var(--border) 90%, var(--card2)); transition: background-color .25s ease, box-shadow .25s ease; }
.pf .switch-track::after {
  top: 3px; left: 3px; width: 22px; height: 22px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .35s cubic-bezier(.34, 1.5, .64, 1), width .2s ease;
}
.pf .switch input:active + .switch-track::after { width: 26px; }
.pf .switch input:checked + .switch-track {
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  box-shadow: 0 3px 12px rgba(124, 92, 255, .4);
}
.pf .switch input:checked + .switch-track::after { transform: translateX(20px); }
.pf .switch input:checked:active + .switch-track::after { transform: translateX(16px); }

/* FAQ — silliq ochiladi */
.pf .pf-faq .faq-item { border-bottom: 0; border-radius: 16px; margin: 2px 0; transition: background-color .25s ease; }
.pf .pf-faq .faq-item + .faq-item { border-top: 1px solid color-mix(in srgb, var(--border) 65%, transparent); }
.pf .pf-faq .faq-item.open { background: var(--card2); border-top-color: transparent; }
.pf .pf-faq .faq-item.open + .faq-item { border-top-color: transparent; }
.pf .faq-q { padding: 14px 10px; gap: 12px; font-size: 14px; }
.pf .faq-n {
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 11px;
}
.pf .faq-plus {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card2); color: var(--accent);
  transition: transform .35s cubic-bezier(.34, 1.4, .64, 1), background-color .25s ease, color .25s ease;
}
.pf .faq-plus .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.pf .faq-item.open .faq-plus { transform: rotate(135deg); background: var(--accent); color: #fff; }
.pf .faq-a {
  display: grid; grid-template-rows: 0fr; padding: 0;
  transition: grid-template-rows .35s cubic-bezier(.22, 1, .36, 1);
}
.pf .faq-item.open .faq-a { grid-template-rows: 1fr; }
.pf .faq-a-in {
  overflow: hidden; min-height: 0; padding: 0 12px 0 50px; opacity: 0;
  transition: opacity .25s ease, padding .35s ease;
}
.pf .faq-item.open .faq-a-in { opacity: 1; padding-bottom: 14px; }

/* Ilova haqida */
.pf-about {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--border); margin-bottom: 8px;
}
.pf-about-logo {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(135deg, #8a63ff, #3d2bb8); box-shadow: 0 6px 16px rgba(107, 70, 255, .35);
}
.pf-about-logo img { width: 34px; height: 34px; object-fit: contain; }
.pf-about-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pf-about-name { font-size: 15px; font-weight: 800; }
.pf-about-ver {
  font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 3px 9px; border-radius: 999px; background: var(--card2);
}
.pf.pf-play > .pf-about { animation: pfRise .45s .6s cubic-bezier(.22, 1, .36, 1) both; }
html.reduce-motion .seg-glide, html.reduce-motion .pf .faq-a { transition: none !important; }

/* ================= Tarix (2026-09-26, noldan) ================= */
.hs-head { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 4px 12px; }
.hs-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.hs-count { font-size: 12.5px; font-weight: 700; color: var(--muted); }

.hs-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.hs-summary.hidden { display: none; }
.hs-sum {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px;
  padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--border);
}
.hs-sum::after {
  content: ""; position: absolute; right: -26px; top: -26px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, var(--hs-c), transparent 70%); opacity: .35;
}
.hs-sum-buy { --hs-c: #7c5cff; }
.hs-sum-top { --hs-c: #2ecc82; }
.hs-sum-ic {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 4px;
  background: color-mix(in srgb, var(--hs-c) 16%, transparent); color: var(--hs-c);
}
.hs-sum-ic .icon { width: 18px; height: 18px; }
.hs-sum-t { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.hs-sum b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Filtr — suriluvchi pill */
.hs-seg {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; margin-bottom: 6px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--border);
}
.hs-seg-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 12px;
  background: linear-gradient(180deg, var(--accent), var(--accent2)); box-shadow: 0 4px 14px rgba(124, 92, 255, .4);
  transform: translateX(calc(100% * var(--i, 0)));
  transition: transform .38s cubic-bezier(.34, 1.4, .64, 1);
}
.hs-seg-btn {
  position: relative; z-index: 1; border: 0; background: none; font: inherit; cursor: pointer;
  padding: 10px 4px; font-size: 13px; font-weight: 700; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .25s ease;
}
.hs-seg-btn.active { color: #fff; }

/* Kun guruhlari */
.hs-day { margin: 16px 6px 8px; font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .02em; }
.hs-card { border-radius: 20px; background: var(--card); border: 1px solid var(--border); overflow: hidden; }
.hs-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px;
  background: none; border: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer;
  position: relative; transition: background-color .2s ease;
}
.hs-row + .hs-row::before {
  content: ""; position: absolute; top: 0; left: 70px; right: 14px; height: 1px;
  background: color-mix(in srgb, var(--border) 65%, transparent);
}
.hs-row:active { background: var(--card2); }
.hs-ic {
  position: relative; width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, var(--card2)); color: var(--accent);
}
.hs-ic > .icon { width: 21px; height: 21px; }
.hs-ic.has-img { background: var(--card2); }
.hs-ic > img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.hs-topup .hs-ic { background: color-mix(in srgb, var(--ok) 15%, var(--card2)); color: var(--ok); }
.hs-ic-badge {
  position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; border: 2px solid var(--card);
  background: var(--accent); color: #fff;
}
.hs-topup .hs-ic-badge { background: var(--ok); }
.hs-ic-badge .icon { width: 10px; height: 10px; stroke-width: 3; }
.hs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hs-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.hs-amt { font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hs-st {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; color: var(--st); background: color-mix(in srgb, var(--st) 14%, transparent);
}
.hs-st i { width: 6px; height: 6px; border-radius: 50%; background: var(--st); }
.hs-row.b-delivered, .hs-row.b-paid { --st: var(--ok); }
.hs-row.b-pending, .hs-row.b-review { --st: var(--warn); }
.hs-row.b-failed { --st: var(--danger); }
.hs-row.b-pending .hs-st i, .hs-row.b-review .hs-st i { animation: hsPulse 1.4s ease-in-out infinite; }

/* Skelet */
.hs-skel { pointer-events: none; }
.hs-skel .hs-ic, .hs-skel i {
  background: linear-gradient(90deg, var(--card2) 0%, color-mix(in srgb, var(--card2) 55%, var(--border)) 50%, var(--card2) 100%);
  background-size: 200% 100%; animation: hsShimmer 1.2s linear infinite;
}
.hs-skel .hs-main i { display: block; height: 11px; border-radius: 6px; width: 70%; }
.hs-skel .hs-main i + i { width: 40%; }
.hs-skel .hs-side i { display: block; width: 64px; height: 12px; border-radius: 6px; }

/* Bo'sh holat */
.hs-empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  margin-top: 14px; padding: 34px 20px; border-radius: 22px; border: 1px dashed var(--border); background: var(--card);
}
.hs-empty.hidden { display: none; }
.hs-empty-ic {
  width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 6px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  animation: hsFloat 3s ease-in-out infinite;
}
.hs-empty-ic .icon { width: 28px; height: 28px; }
.hs-empty-t { font-size: 15px; font-weight: 800; }
.hs-empty-s { font-size: 12.5px; color: var(--muted); }
.hs-empty-btn { margin-top: 12px; padding: 11px 22px; border-radius: 14px; }

/* Animatsiyalar */
@keyframes hsPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes hsShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes hsFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes hsIn { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
.hs-play .hs-day { animation: hsIn .35s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d, 0ms); }
.hs-play .hs-group { animation: hsIn .4s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d, 0ms); }
.hs-play .hs-row { animation: hsIn .4s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(60ms + var(--d, 0ms)); }
html.reduce-motion .hs-empty-ic, html.reduce-motion .hs-st i { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .hs-play *, .hs-empty-ic, .hs-st i, .hs-skel * { animation: none !important; } }

/* ================= O'yinlar katalogi (2026-09-26, noldan) ================= */
.gm-head { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 4px 10px; }
.gm-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.gm-count { font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* Yopishqoq shisha qidiruv */
.gm-search-wrap {
  position: sticky; top: var(--topbar-h, 70px); z-index: 12;
  margin: 0 -14px 6px; padding: 8px 14px 10px;
  background: linear-gradient(180deg, var(--bg) 70%, color-mix(in srgb, var(--bg) 0%, transparent));
}
.gm .gm-search {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 6px 0 14px; height: 48px;
  border-radius: 16px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  transition: border-color .2s ease, box-shadow .25s ease;
}
.gm .gm-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), 0 8px 22px rgba(0,0,0,.18); }
.gm-search-ic { display: flex; color: var(--muted); flex-shrink: 0; transition: color .2s ease; }
.gm .gm-search:focus-within .gm-search-ic { color: var(--accent); }
.gm-search-ic .icon { width: 19px; height: 19px; }
.gm .gm-search input {
  flex: 1; min-width: 0; height: 100%; padding: 0; margin: 0; border: 0; background: none; box-shadow: none;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--text); outline: none;
}
.gm .gm-search input::-webkit-search-cancel-button { display: none; }
.gm-clear {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--card2); color: var(--muted);
  animation: gmPop .25s cubic-bezier(.34, 1.5, .64, 1);
}
.gm-clear.hidden { display: none; }
.gm-clear .icon { width: 15px; height: 15px; }

.gm-sec-t { margin: 12px 4px 10px; font-size: 15px; font-weight: 800; }
.gm-sec-t.hidden, .gm-sec.hidden { display: none; }

/* Mashhurlar — gorizontal lenta */
.gm-pop {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -14px; padding: 2px 14px 8px; scroll-padding: 0 14px;
}
.gm-pop::-webkit-scrollbar { display: none; }
.gm-card-pop { flex: 0 0 116px; scroll-snap-align: start; }
.gm-card-pop .gm-media { border-radius: 20px; }

/* Panjara */
.gm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; margin-bottom: 14px; }
@media (min-width: 620px) { .gm-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 900px) { .gm-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.gm-card {
  display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 0; border: 0; background: none;
  font: inherit; color: var(--text); text-align: center; cursor: pointer;
  transition: transform .18s cubic-bezier(.34, 1.4, .64, 1);
}
.gm-card:active { transform: scale(.94); }
.gm-media {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden;
  border-radius: 18px; background: var(--card2);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.gm-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gm-card:hover .gm-media img { transform: scale(1.05); }
.gm-media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), transparent 40%);
}
.gm-media-ic { color: #fff; opacity: .9; }
.gm-media-ic .icon { width: 30px; height: 30px; }
.gm-reg {
  position: absolute; top: 6px; right: 6px; z-index: 1; display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 6px; border-radius: 999px; font-size: 10px; font-weight: 800; color: #fff;
  background: rgba(10, 10, 25, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.gm-reg .icon { width: 10px; height: 10px; }
.gm-name {
  font-size: 12px; font-weight: 700; line-height: 1.25; padding: 0 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
:root[data-theme="light"] .gm-media { box-shadow: 0 6px 14px rgba(20, 21, 40, .1), inset 0 0 0 1px rgba(20, 21, 40, .05); }
:root[data-theme="light"] .gm .gm-search { box-shadow: 0 6px 18px rgba(20, 21, 40, .07); }

/* Bo'sh natija */
.gm-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 40px 20px; margin-top: 8px; border-radius: 22px; border: 1px dashed var(--border);
}
.gm-empty.hidden { display: none; }
.gm-empty-ic {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 6px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  animation: gmWiggle 2.4s ease-in-out infinite;
}
.gm-empty-ic .icon { width: 26px; height: 26px; }
.gm-empty b { font-size: 15px; }
.gm-empty span:last-child { font-size: 12.5px; color: var(--muted); }

/* Animatsiyalar */
@keyframes gmIn { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes gmPop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gmWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.gm-play .gm-grid .gm-card { animation: gmIn .4s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d, 0ms); }
.gm-play .gm-pop .gm-card { animation: gmIn .45s cubic-bezier(.22, 1, .36, 1) both; }
.gm-play .gm-pop .gm-card:nth-child(2) { animation-delay: .05s; }
.gm-play .gm-pop .gm-card:nth-child(3) { animation-delay: .1s; }
.gm-play .gm-pop .gm-card:nth-child(4) { animation-delay: .15s; }
.gm-play .gm-pop .gm-card:nth-child(n+5) { animation-delay: .2s; }
html.reduce-motion .gm-empty-ic { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .gm-play *, .gm-empty-ic, .gm-clear { animation: none !important; } }

/* ================= Xarid oynasi (2026-09-26, namuna bo'yicha) =================
   Faqat uslub: id/sinflar o'zgarmagan. Yupqa chegarali kartalar, rangli narx,
   pastga yopishgan yorqin "Sotib olish". */
#view-buy { --bd: color-mix(in srgb, var(--border) 75%, transparent); --bd-hi: color-mix(in srgb, var(--accent) 70%, transparent); }
#view-buy .subbody { padding-bottom: 24px; }

/* O'yin sarlavhasi */
#view-buy .game-head-card {
  gap: 14px; padding: 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--bd);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}
#view-buy .game-head-card img {
  width: 58px; height: 58px; border-radius: 16px; object-fit: cover;
  border: 1px solid var(--bd); box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}
#view-buy .ghc-title { font-size: 17px; font-weight: 800; letter-spacing: .01em; }
#view-buy .ghc-sub { font-size: 12.5px; font-weight: 600; margin-top: 3px; }

/* Player ID kartasi */
#view-buy #player-id-card {
  margin-top: 12px; padding: 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--bd);
}
#view-buy #player-id-card > .label, #view-buy #packages-block > .label, #view-buy #stars-qty-title {
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
#view-buy #player-id-row { gap: 8px; }
#view-buy .input-wrap input, #view-buy #topup-fields input {
  height: 48px; border-radius: 14px; background: var(--bg); border: 1px solid var(--bd);
  font-size: 15px; font-weight: 600; padding-right: 44px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
#view-buy .input-wrap input:focus, #view-buy #topup-fields input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
#view-buy .input-info {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--accent); background: none; font-weight: 800; font-size: 12px;
}
#view-buy #verify-btn {
  height: 48px; border-radius: 14px; padding: 0 16px; font-weight: 800;
  background: color-mix(in srgb, var(--accent) 16%, var(--card)); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: none;
}
#view-buy #verify-btn:not(:disabled) {
  background: linear-gradient(180deg, var(--accent), var(--accent2)); color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(124, 92, 255, .4);
}
#view-buy .player-info { border-radius: 14px; }

/* Mintaqa va filtr chiplari */
#view-buy .region-row { gap: 8px; margin-top: 12px; }
#view-buy .region-chip, #view-buy .pack-tab {
  border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 12.5px;
  background: var(--card); border: 1px solid var(--bd); color: var(--muted);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
#view-buy .region-chip.active, #view-buy .pack-tab.active {
  background: linear-gradient(180deg, var(--accent), var(--accent2)); color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(124, 92, 255, .38);
}

/* Paket kartalari */
#view-buy .packages { gap: 10px; }
#view-buy .pkg {
  gap: 10px; padding: 12px; min-height: 64px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--bd); box-shadow: none;
  transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease, transform .15s cubic-bezier(.34, 1.4, .64, 1);
}
#view-buy .pkg-thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; flex-shrink: 0; }
#view-buy .pkg .uc { font-size: 14px; font-weight: 800; color: var(--text); }
#view-buy .pkg .price { margin-top: 3px; font-size: 13px; font-weight: 800; color: var(--accent); }
#view-buy .pkg .price .cur { color: color-mix(in srgb, var(--accent) 70%, var(--muted)); }
#view-buy .pkg .price-old { color: var(--muted); }
#view-buy .pkg.selected {
  border-color: var(--bd-hi);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, var(--card)), var(--card));
  box-shadow: 0 0 0 1px var(--bd-hi), 0 8px 22px rgba(124, 92, 255, .28);
}
#view-buy .pkg.selected .price { color: var(--accent); }
#view-buy .pkg:active { transform: scale(.96); }
#view-buy .step-btn { border-radius: 10px; border: 1px solid var(--bd); background: var(--bg); }
#view-buy .cart-summary { border-radius: 18px; border: 1px solid var(--bd-hi); }
#view-buy #stars-qty-card { border-radius: 22px; border: 1px solid var(--bd); }

/* Pastga yopishgan "Sotib olish" */
#view-buy #buy-submit-btn {
  position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 5;
  height: 56px; border-radius: 999px; font-size: 16px; font-weight: 800; letter-spacing: .01em;
  background: linear-gradient(180deg, #8a63ff, var(--accent2));
  border: 1px solid color-mix(in srgb, #fff 18%, transparent);
  box-shadow: 0 12px 30px rgba(107, 70, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
#view-buy #buy-submit-btn:disabled {
  opacity: 1; color: color-mix(in srgb, #fff 55%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 45%, var(--card)), color-mix(in srgb, var(--accent2) 40%, var(--card)));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
#view-buy #buy-submit-btn:not(:disabled):active { transform: scale(.98); }

:root[data-theme="light"] #view-buy .game-head-card { box-shadow: 0 8px 22px rgba(20, 21, 40, .07); }
:root[data-theme="light"] #view-buy .input-wrap input, :root[data-theme="light"] #view-buy #topup-fields input { background: var(--card2); }
:root[data-theme="light"] #view-buy .step-btn { background: var(--card2); }

/* ===== "i" — Player ID ma'lumoti (2026-09-26): pastdan chiquvchi varaq ===== */
#view-buy .input-info {
  width: 28px; height: 28px; border: 0; background: none; padding: 0; font-style: normal;
  display: grid; place-items: center; color: var(--accent);
}
#view-buy .input-info .icon { width: 20px; height: 20px; stroke-width: 2; }
#info-modal.modal-center { align-items: flex-end; padding: 0 10px calc(10px + env(safe-area-inset-bottom)); }
#info-modal .modal-card {
  width: 100%; max-width: 560px; text-align: left; padding: 18px 16px 16px; border-radius: 26px;
  background: var(--card); border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .35);
  animation: sheetUp .32s cubic-bezier(.22, 1, .36, 1);
}
#info-modal .info-title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 12px; }
.info-title-ic {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.info-title-ic .icon { width: 19px; height: 19px; }
.info-steps { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.info-steps li::marker { color: var(--accent); font-weight: 800; }
#info-modal .info-hl { margin-top: 10px; }
#info-modal .modal-actions { margin-top: 16px; }
#info-modal #info-modal-close {
  width: 100%; height: 52px; border-radius: 999px; font-size: 15px; font-weight: 800;
  background: linear-gradient(180deg, #8a63ff, var(--accent2)); box-shadow: 0 10px 26px rgba(107, 70, 255, .4);
}

/* ================= Bosh sahifa (2026-09-26, noldan) ================= */
/* Yuqori panel — shisha */
.topbar {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: color-mix(in srgb, var(--border) 60%, transparent);
}

/* Hamyon kartasi */
.hm .hm-wallet {
  position: relative; overflow: hidden; isolation: isolate; display: block;
  margin: 6px 0 14px; padding: 18px 16px 16px; border-radius: 26px; border: 0;
  background: linear-gradient(135deg, #8a63ff 0%, #6b46ff 48%, #3d2bb8 100%);
  color: #fff; box-shadow: 0 18px 40px rgba(107, 70, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.hm-wallet-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hm-wallet-glow i { position: absolute; border-radius: 50%; animation: pfFloat 8s ease-in-out infinite alternate; }
.hm-wallet-glow i:nth-child(1) { width: 190px; height: 190px; right: -50px; top: -80px; background: radial-gradient(circle, rgba(255, 215, 106, .5), transparent 65%); }
.hm-wallet-glow i:nth-child(2) { width: 170px; height: 170px; left: -50px; bottom: -90px; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); animation-delay: -4s; }
.hm-wallet-top { display: flex; align-items: center; gap: 12px; }
.hm .hm-wallet .bc-ic {
  width: 48px; height: 48px; border-radius: 16px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hm .hm-wallet .bc-ic img, .hm .hm-wallet .bc-ic svg { width: 28px; height: 28px; }
.hm .hm-wallet .bc-label { color: rgba(255, 255, 255, .75); letter-spacing: .12em; }
.hm .hm-wallet .bc-amount { font-size: 28px; letter-spacing: -.02em; color: #fff; margin-top: 2px; }
.hm .hm-wallet .bc-amount [data-i18n="currency"] { color: rgba(255, 255, 255, .75); font-size: 15px; }
.hm-wallet-actions { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; margin-top: 16px; }
.hm .hm-wallet .bc-topup {
  justify-content: center; height: 44px; padding: 0 10px; border-radius: 14px; font-size: 13.5px; font-weight: 800;
  background: #fff; color: #4b2fd6; box-shadow: 0 6px 16px rgba(20, 10, 70, .25);
}
.hm .hm-wallet .bc-topup::after { background: linear-gradient(100deg, transparent, rgba(124, 92, 255, .25), transparent); }
.hm-chip {
  display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-width: 0; padding: 0 8px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font: inherit; font-size: 12.5px; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease;
}
.hm-chip > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-chip:active { transform: scale(.95); background: rgba(255, 255, 255, .2); }
.hm-chip-ic { display: flex; flex-shrink: 0; }
.hm-chip-ic .icon { width: 17px; height: 17px; }

/* Banner */
.hm .promo-banner { border-radius: 24px; border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); box-shadow: 0 12px 30px rgba(0, 0, 0, .22); margin-bottom: 6px; }
.hm .promo-banner-dots { right: 50%; transform: translateX(50%); bottom: 10px; padding: 5px 7px; border-radius: 999px; background: rgba(10, 10, 25, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hm .promo-banner-dots .dot { width: 6px; height: 6px; background: rgba(255, 255, 255, .5); }
.hm .promo-banner-dots .dot.active { width: 18px; background: #fff; }

/* Top o'yinlar */
.hm .hm-sec-head { margin: 20px 4px 12px; }
.hm .hm-sec-head .sec-title { font-size: 19px; letter-spacing: -.02em; }
.hm-all {
  display: inline-flex; align-items: center; gap: 2px; padding: 6px 10px 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); font-weight: 800;
}
.hm-all-ic { display: flex; }
.hm-all-ic .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.hm .hm-games { margin-bottom: 14px; }
.hm .hm-games .gm-card { animation: gmIn .4s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d, 0ms); }

:root[data-theme="light"] .hm .promo-banner { box-shadow: 0 10px 24px rgba(20, 21, 40, .1); }
html.reduce-motion .hm-wallet-glow i { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .hm-wallet-glow i, .hm .hm-games .gm-card { animation: none !important; } }
/* Hamyon ikonkasi gradient ustida ko'rinsin — oq */
.hm .hm-wallet .bc-ic img, .hm .hm-wallet .bc-ic svg { filter: brightness(0) invert(1); opacity: .95; }
/* Yordam bosh sahifadan olib tashlandi (2026-09-26) — ikki tugma teng */
.hm-wallet-actions { grid-template-columns: 1fr 1fr; }

.sm-codes { margin: 12px 0 4px; width: 100%; }
.sm-codes.hidden { display: none; }


/* Paynet: balansga tushadigan summa (komissiya ushlangandan keyin). */
.pn-fee { margin: 10px 2px 16px; padding: 10px 12px; border-radius: 12px; background: rgba(46,204,130,.12); color: var(--ok); font-size: 13.5px; font-weight: 600; line-height: 1.35; text-align: center; }
.pn-fee.hidden { display: none; }
