/* ============================================================
   SaraStars · Tez Star uslubidagi toza dizayn
   Slate-navy fon · jonli ko'k aksent
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Native TMA: Telegram theme adaptive variables, optimized with rich fallbacks */
  --bg:        var(--tg-theme-bg-color, #080C14);            /* obsidian deep space */
  --surface:   var(--tg-theme-secondary-bg-color, #131A26);  /* sleek container surfaces */
  --surface-2: #1D2636;   /* hover/active state surfaces */
  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.12);

  /* Premium Golden Accents */
  --gold:      #FFD700;
  --gold-d:    #E5A93B;
  --gold-bg:   rgba(255,215,0,0.06);
  --gold-glow: rgba(255,215,0,0.14);
  --on-gold:   #1A1100;

  --text:   var(--tg-theme-text-color, #FFFFFF);   
  --text2:  #94A3B8;   /* slate-400 */
  --text3:  #64748B;   /* slate-500 */

  --green:  #10B981;   /* Emerald 500 */
  --red:    #EF4444;   /* Red 500 */

  --r:   16px;         /* slightly rounder for premium modern feel */
  --r-pill: 30px;
  --t:   0.24s cubic-bezier(.34,1.56,.64,1); /* spring-like micro-interaction animation curve */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body { height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  background:
    radial-gradient(130% 60% at 50% 10%, rgba(245,166,35,0.14), transparent 50%),
    radial-gradient(100% 50% at 100% 15%, rgba(46,139,240,0.07), transparent 45%),
    radial-gradient(90% 60% at 0% 25%, rgba(124,78,204,0.06), transparent 50%),
    linear-gradient(180deg, #080C14 0%, #06090F 50%, #030508 100%);
}

body::before {
  content: '';
  position: fixed;
  top: -40%; left: -40%;
  width: 180%; height: 180%;
  background: radial-gradient(circle at 75% 25%, rgba(255, 215, 0, 0.04) 0%, transparent 40%),
              radial-gradient(circle at 25% 75%, rgba(46, 139, 240, 0.03) 0%, transparent 45%);
  z-index: -1;
  pointer-events: none;
  animation: spaceNebula 35s ease-in-out infinite alternate;
}

@keyframes spaceNebula {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-4%, 3%) scale(1.08) rotate(8deg); }
  100% { transform: translate(4%, -3%) scale(1.02) rotate(-8deg); }
}

@keyframes shimmerGlare {
  0% { left: -150%; }
  35% { left: 150%; }
  100% { left: 150%; }
}

@keyframes goldenShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Nozik yulduz zarralari foni */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
input, button { font-family: inherit; color: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }
svg { display: block; flex-shrink: 0; }

/* ── Shell ─────────────────────────────── */
.app { position: fixed; inset: 0; display: flex; flex-direction: column; z-index: 1; }
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 203, 46, 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 203, 46, 0.3);
}
.wrap { width: 100%; max-width: 460px; margin: 0 auto; padding: 14px 16px 28px; }

/* ── Title ─────────────────────────────── */
.head { text-align: center; padding: 12px 8px 20px; }
.head h1 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.4px; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.head h1 .h-star { height: 24px; }
.head p { font-size: 13.5px; color: var(--text2); line-height: 1.55; margin-top: 8px; }

/* ── Block ─────────────────────────────── */
.block { margin-bottom: 18px; }
.block-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 11px; padding: 0 2px;
}
.block-title { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }

/* "O'zimga" gold pill */
.myself-pill {
  background: var(--gold); color: var(--on-gold);
  font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px;
  transition: all var(--t);
}
.myself-pill:active { background: var(--gold-d); transform: scale(.95); }

/* ── Input ─────────────────────────────── */
.input {
  display: flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all var(--t);
}
.input:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.input-ic { display: flex; color: var(--text3); transition: color var(--t); }
.input:focus-within .input-ic { color: var(--gold); filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.3)); }
.input-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.input-ic.star { font-size: 17px; }
.input input { flex: 1; min-width: 0; height: 100%; font-size: 15px; font-weight: 500; color: var(--text); background: transparent; }
.input input::placeholder { color: var(--text3); font-weight: 400; }

.inp-clear {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 0;
  display: none; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.06); color: var(--text3);
  transition: all var(--t);
}
.inp-clear.on { display: flex; }
.inp-clear svg { width: 11px; height: 11px; }
.inp-clear:hover { color: var(--text); background: rgba(255, 255, 255, 0.12); }
.inp-clear:active { transform: scale(.88); }
.input input[type=number] { -moz-appearance: textfield; }
.input input[type=number]::-webkit-inner-spin-button,
.input input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Hint ─────────────────────────────── */
.hint { min-height: 18px; margin-top: 8px; padding: 0 4px; font-size: 12.5px; font-weight: 500; color: var(--text3); display: flex; align-items: center; gap: 6px; }
.hint.ok { color: var(--green); } .hint.err { color: var(--red); }
.hint:not(:empty) { animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.hint-spin { width: 12px; height: 12px; border: 2px solid rgba(255,255,255,0.2); border-top-color: var(--gold); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Recipient pill (filled) ─────────────── */
.pill {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  animation: pillIn .24s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pillIn { from { opacity: 0; transform: scale(.96) translateY(2px); } to { opacity: 1; transform: none; } }
.pill-av { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: linear-gradient(135deg, #1C2636, #0E131C); border: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 700; font-size: 14px; text-transform: uppercase; }
.pill-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pill-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--text); display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.pill-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pill-top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-you { font-size: 12px; color: var(--text3); font-weight: 500; flex-shrink: 0; }
.pill-sub { font-size: 12px; color: var(--text3); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-sub:empty { display: none; }
.pill-x { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; background: rgba(255,255,255,0.04); color: var(--text3); display: flex; align-items: center; justify-content: center; transition: all var(--t); }
.pill-x:active { background: rgba(255,255,255,0.12); color: var(--text); }
.pill-x svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }

/* ── Packages ─────────────────────────────── */
.pkgs { display: flex; flex-direction: column; gap: 10px; }
.pkg {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--r);
  cursor: pointer; transition: all var(--t);
  position: relative; overflow: visible;
  -webkit-user-select: none; user-select: none;
}
.pkg:active { transform: scale(.98); }
.pkg.sel {
  border-color: var(--gold);
  background: var(--gold-bg);
  box-shadow: 0 4px 20px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.pkg-pop { border-color: rgba(255, 215, 0, 0.22); }
.pkg-pop.sel { border-color: var(--gold); }

.pkg-badge {
  position: absolute; top: -9px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  color: var(--on-gold); background: linear-gradient(135deg, #FFE27A, #FFB800);
  box-shadow: 0 4px 12px rgba(229,148,0,0.3);
  overflow: hidden;
}
.pkg-badge::after {
  content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg); animation: shimmerGlare 3s infinite ease-in-out;
}
.pkg-badge svg { width: 10px; height: 10px; }

.pkg-radio {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
}
.pkg.sel .pkg-radio, .prem-card.sel .pkg-radio { border-color: var(--gold); background: var(--gold); }
.pkg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--on-gold); transform: scale(0); transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.pkg.sel .pkg-dot, .prem-card.sel .pkg-dot { transform: scale(1); }

.pkg-stars { display: flex; align-items: center; min-width: 40px; flex-shrink: 0; }
.pkg-lbl { flex: 1; font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }
.pkg-price { font-size: 15px; font-weight: 800; color: var(--text); white-space: nowrap; transition: color var(--t); }
.pkg.sel .pkg-price { color: var(--gold); }

/* Limit indicators with shimmer glare */
.lim-badge {
  font-size: 11px; font-weight: 700; color: var(--gold); background: var(--gold-bg);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid rgba(255,215,0,0.1);
  position: relative; overflow: hidden;
}
.lim-badge::after {
  content: ''; position: absolute; top: 0; left: -150%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg); animation: shimmerGlare 3s infinite ease-in-out;
}
.lim-badge:empty { display: none; }
.lim-badge.sold { color: var(--red); background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.15); }

/* Balans yetmaydigan to'plam/muddat — o'chirilgan */
.pkg.dis, .prem-card.dis { opacity: .35; pointer-events: none; filter: grayscale(.8); }
.pkg.dis .pkg-price, .prem-card.dis .prem-price { color: var(--text3); }

/* ── Expander ─────────────────────────────── */
.expander {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; margin-top: 10px;
  background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--r);
  color: var(--gold); font-size: 14px; font-weight: 700;
  transition: all var(--t);
}
.expander:active { background: rgba(255, 255, 255, 0.05); transform: scale(.98); }
.expander svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t); }
.expander.open svg { transform: rotate(180deg); }
.custom-wrap { margin-top: 10px; animation: fade .22s ease; }

/* ── CTA ─────────────────────────────── */
.cta {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 54px; margin-top: 20px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #FFE066 0%, #FFB900 50%, #E59400 100%);
  color: var(--on-gold); font-size: 16px; font-weight: 800; letter-spacing: -0.2px;
  box-shadow: 0 6px 24px rgba(229, 148, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all var(--t);
  position: relative; overflow: hidden;
}
.cta:active { transform: scale(.97); box-shadow: 0 3px 12px rgba(229, 148, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.cta:disabled { background: rgba(255, 255, 255, 0.02); color: var(--text3); border: 1px solid rgba(255,255,255,0.05); box-shadow: none; cursor: default; transform: none; }

.history { display: block; text-align: center; color: var(--gold); font-size: 13.5px; font-weight: 600; padding: 14px 0 4px; cursor: pointer; transition: opacity var(--t); }
.history:active { opacity: .6; }
.footer { text-align: center; color: var(--text3); font-size: 12px; padding: 8px 0 0; letter-spacing: 0.2px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;   /* kontent ustida suzadi */
  display: flex; align-items: center; justify-content: space-between;
  height: 54px; padding: 0 16px;
  background: transparent; border-bottom: none;   /* full-screen: orqasida hech narsa yo'q */
  pointer-events: none;                            /* orasidagi bo'sh joy scrollga o'tadi */
}
.topbar > * { pointer-events: auto; }              /* segment va balans bosiladi */
.tb-left { display: flex; align-items: center; gap: 10px; }
.tb-logo {
  width: 30px; height: 30px; border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, #FFD15C, #F0A714);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(240,167,20,0.35);
}
.tb-name { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }

/* Top-bar segment: Stars / Premium / Gift */
.tb-seg {
  position: relative; display: flex; gap: 2px;
  flex-shrink: 0;
  background: rgba(19, 26, 38, 0.6); border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 12px; padding: 3px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.tb-seg-btn {
  position: relative; z-index: 1; flex: 0 0 auto; text-align: center;
  padding: 7px 14px; border-radius: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--text2);
  white-space: nowrap;
  transition: color var(--t);
}
.tb-seg-btn.active { color: var(--on-gold); font-weight: 800; }
.tb-seg-thumb {
  position: absolute; top: 3px; left: 0; z-index: 0;
  height: calc(100% - 6px); width: 0; border-radius: 8px;
  background: linear-gradient(135deg, #FFE066 0%, #FFB900 100%);
  box-shadow: 0 2px 10px rgba(229,148,0,0.35); opacity: 0;
  transform: translateX(0);
  transition: transform .26s cubic-bezier(.34,1.56,.64,1), width .26s cubic-bezier(.34,1.56,.64,1), opacity .18s;
}

/* Tor ekranlar (kichik telefon) — biroz ixchamroq */
@media (max-width: 360px) {
  .tb-seg-btn { padding: 7px 8px; font-size: 12px; }
  .topbar { padding: 0 12px; }
  .tb-right { padding-left: 8px; }
}
.tb-support {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface); color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), color var(--t);
}
.tb-support:active { background: var(--surface-2); color: var(--text); }
.tb-right { display: flex; align-items: center; gap: 8px; margin-left: auto; padding-left: 10px; }
.tb-support.muted { color: var(--text3); }

/* ============================================================
   VIEWS
   ============================================================ */
.container { width: 100%; max-width: 460px; margin: 0 auto; padding: 68px 16px 24px; }
.view { display: none; }
.view.active { display: block; animation: viewEntrance 0.35s cubic-bezier(0.25, 1, 0.5, 1) both; }
.view-back {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text2); font-size: 14.5px; font-weight: 600;
  padding: 0 6px 16px 0; transition: color var(--t);
}
.view-back:active { color: var(--text); }
.view-back svg { stroke: currentColor; fill: none; }

.promo-strip {
  flex-shrink: 0; text-align: center;
  font-size: 11.5px; font-weight: 700; color: var(--on-gold);
  background: linear-gradient(90deg, #E5A93B, #FFD700 50%, #E5A93B);
  padding: 7px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============================================================
   HOME · LANDING HERO
   ============================================================ */
.hero2 { padding: 16px 4px 8px; text-align: left; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--green);
  background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: 0.5px;
  animation: pillPulse 2.5s infinite ease-in-out;
}
@keyframes pillPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}
.hero-h1 {
  font-size: 32px; font-weight: 800; line-height: 1.15; letter-spacing: -0.8px;
  background: linear-gradient(135deg, #FFFFFF 20%, #E2E8F0 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-h1 .g {
  background: linear-gradient(90deg, #FFD700, #FFA500, #FFE680, #FFD700);
  background-size: 300% 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 10px rgba(255, 215, 0, 0.25));
  animation: goldenShine 4s ease infinite;
}

.hero-p { font-size: 14.5px; color: var(--text2); line-height: 1.6; margin-top: 14px; font-weight: 500; }
.hero-cta { display: flex; gap: 12px; margin-top: 22px; }
.btn-gold, .btn-dark {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; border-radius: var(--r); font-size: 14.5px;
  transition: all var(--t);
  position: relative; overflow: hidden;
}
.btn-gold {
  background: linear-gradient(135deg, #FFE066 0%, #FFB900 50%, #E59400 100%);
  color: var(--on-gold);
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(229, 148, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-gold::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: none;
}
.btn-gold:hover::after {
  left: 100%; transition: left 0.75s ease-in-out;
}
.btn-gold:active { transform: scale(.96); box-shadow: 0 3px 10px rgba(229, 148, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-dark {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-dark:active { background: rgba(255, 255, 255, 0.07); transform: scale(.96); }
.hero-cta svg { flex-shrink: 0; }

.hero-stats {
  display: flex; margin-top: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r); overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 24px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hstat { flex: 1; padding: 16px 5px; text-align: center; border-right: 1px solid rgba(255, 255, 255, 0.06); }
.hstat:last-child { border-right: none; }
.hstat-n { font-size: 16px; font-weight: 800; color: var(--gold); letter-spacing: -0.3px; white-space: nowrap; filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.15)); }
.hstat-l { font-size: 10px; color: var(--text3); margin-top: 4px; line-height: 1.25; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }

/* ============================================================
   HOME · PRODUCTS
   ============================================================ */
.sec-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px; color: var(--text3);
  margin: 24px 2px 14px; text-transform: uppercase; opacity: 0.85;
}
.svc-list { display: flex; flex-direction: column; gap: 12px; }
.svc-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: var(--r); text-align: left; color: #fff;
  transition: all var(--t);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.svc-card::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
  pointer-events: none;
  transition: all 0.5s ease;
}
.svc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.svc-card:hover::after {
  transform: scale(1.2);
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
}
.svc-card:active { transform: translateY(0) scale(.985); }
.svc-ic {
  width: 50px; height: 50px; border-radius: 12px; flex-shrink: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  transition: all var(--t);
}
.svc-ic svg { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.svc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; z-index: 1; }
.svc-name { font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }
.svc-desc { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.4; }
.svc-arrow { flex-shrink: 0; color: rgba(255,255,255,0.4); display: flex; z-index: 1; transition: all var(--t); }
.svc-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.svc-card:hover .svc-arrow { transform: translateX(4px); color: #FFF; }

.svc-stars {
  background: linear-gradient(135deg, #1A1305 0%, #0F0B03 100%);
  border: 1px solid rgba(255, 215, 0, 0.16);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 215, 0, 0.03);
}
.svc-stars:hover { border-color: rgba(255, 215, 0, 0.35); box-shadow: 0 8px 24px rgba(255, 215, 0, 0.08); }
.svc-stars .svc-ic { background: rgba(255, 215, 0, 0.06); border: 1px solid rgba(255, 215, 0, 0.12); color: var(--gold); }

.svc-gift {
  background: linear-gradient(135deg, #1C0A18 0%, #10050E 100%);
  border: 1px solid rgba(230, 80, 150, 0.16);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(230, 80, 150, 0.03);
}
.svc-gift:hover { border-color: rgba(230, 80, 150, 0.35); box-shadow: 0 8px 24px rgba(230, 80, 150, 0.08); }
.svc-gift .svc-ic { background: rgba(230, 80, 150, 0.06); border: 1px solid rgba(230, 80, 150, 0.12); color: #F472B6; }

.svc-premium {
  background: linear-gradient(135deg, #110B24 0%, #090514 100%);
  border: 1px solid rgba(140, 100, 230, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(140, 100, 230, 0.03);
}
.svc-premium:hover { border-color: rgba(140, 100, 230, 0.35); box-shadow: 0 8px 24px rgba(140, 100, 230, 0.08); }
.svc-premium .svc-ic { background: rgba(140, 100, 230, 0.06); border: 1px solid rgba(140, 100, 230, 0.12); color: #A78BFA; }

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bnav {
  flex-shrink: 0; display: flex; position: relative;
  border-top: 1px solid var(--line);
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.bnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #94A3B8; font-size: 10.5px; font-weight: 700; letter-spacing: -.1px;
  position: relative; z-index: 1;
  padding: 7px 0;
  border-radius: 16px;
  transition: all var(--t);
  touch-action: none;
}
.bnav-item svg { width: 22px; height: 22px; transition: transform var(--t); }
.bnav-item.active { color: var(--gold); }
.bnav-item.thumb-hover { color: var(--gold); }
.bnav-item:active svg { transform: scale(0.88); }

/* Raqam rejimi pastki menyusi */
.num-bnav { display: none; }
body.in-numbers .bnav:not(.num-bnav) { display: none; }
body.in-numbers .num-bnav { display: flex; }
.num-bnav .bnav-item .ic { display: flex; }
.num-bnav .bnav-item.nb-exit { color: #ef6d6a; }

/* Tunnel o'tish animatsiyasi */
.tunnel {
  position: fixed; inset: 0; z-index: 400; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
  background: radial-gradient(circle at center, rgba(30,107,255,.14), #0E131B 62%);
  transition: opacity .18s ease;
}
.tunnel.show { opacity: 1; }
.tunnel-ring { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; border: 2px solid #19C8FF; opacity: 0; box-shadow: 0 0 24px rgba(25,200,255,.5); }
.tunnel-core { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: 0; box-shadow: 0 0 30px 10px rgba(25,200,255,.9); }
.tunnel.anim .tunnel-ring { animation: tunnelZoom .66s cubic-bezier(.4,0,.6,1) forwards; }
.tunnel.anim .tunnel-ring:nth-child(1) { animation-delay: 0s; }
.tunnel.anim .tunnel-ring:nth-child(2) { animation-delay: .09s; border-color: #2D7FFF; }
.tunnel.anim .tunnel-ring:nth-child(3) { animation-delay: .18s; }
.tunnel.anim .tunnel-ring:nth-child(4) { animation-delay: .27s; border-color: #FFC83D; }
.tunnel.anim .tunnel-ring:nth-child(5) { animation-delay: .36s; }
.tunnel.anim .tunnel-core { animation: tunnelCore .66s ease-out forwards; }
@keyframes tunnelZoom { 0% { transform: scale(.02); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes tunnelCore { 0% { transform: scale(0); opacity: 0; } 30% { transform: scale(1.6); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }

/* Draggable faol indikator ("kvadrat") — Telegram uslubi */
.bnav-thumb {
  position: absolute; left: 0; top: 0; z-index: 0;
  border-radius: 16px; pointer-events: none;
  background: rgba(255,200,61,0.14);
  border: 1px solid rgba(255,200,61,0.22);
  transition: transform .34s cubic-bezier(.34,1.28,.5,1), width .2s, height .2s, background var(--t);
}
.bnav-thumb.dragging { transition: none; background: rgba(255,200,61,0.22); cursor: grabbing; }

/* ── Liquid Glass: suzuvchi dumaloq shisha menyu (sozlamadan yoqilsa) ── */
body.glass-on .bnav {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: calc(100% - 24px); max-width: 470px;
  border: 1px solid rgba(255,255,255,0.18);
  border-top-color: rgba(255,255,255,0.42);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.02) 40%, rgba(255,255,255,0.07) 100%),
    rgba(16,20,28,0.16);
  -webkit-backdrop-filter: blur(3px) saturate(190%) brightness(1.04) contrast(1.06);
  backdrop-filter: blur(3px) saturate(190%) brightness(1.04) contrast(1.06);
  padding: 7px 7px;
  box-shadow:
    0 16px 42px rgba(0,0,0,0.50),
    0 2px 8px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -10px 22px rgba(0,0,0,0.10),
    inset 0 -14px 28px rgba(255,255,255,0.05);
  overflow: hidden;
  z-index: 20;
  transition: background var(--t), box-shadow var(--t);
}
/* yuqori "gloss" yorug'lik chizig'i — shisha refleksi */
body.glass-on .bnav::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.04) 26%, rgba(255,255,255,0) 50%);
}
body.glass-on .bnav-item {
  border-radius: 18px; position: relative; z-index: 1;
  padding: 8px 0 7px;
  transition: background var(--t), color var(--t);
}
/* faol tab matni oltin; "pufakcha"ni esa draggable thumb beradi */
body.glass-on .bnav-item.active { color: #FFD15C; }
body.glass-on .bnav-item.thumb-hover { color: #FFD15C; }
body.glass-on .bnav-item.active svg { filter: drop-shadow(0 0 6px rgba(255,200,61,0.55)); }
/* glass rejimida thumb — alohida shisha pufakcha */
body.glass-on .bnav-thumb {
  border-radius: 18px;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), inset 0 -1px 2px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.18);
}
body.glass-on .bnav-thumb.dragging { background: rgba(255,255,255,0.22); }
/* kontent suzuvchi menyu ostiga kirib ketmasligi uchun bo'shliq */
body.glass-on .scroll { padding-bottom: calc(94px + env(safe-area-inset-bottom)); }

/* ── Liquid Glass: BUTUN SAHIFA (kartalar, inputlar, topbar, modallar) ── */
/* Sirt o'zgaruvchilarini shaffof "shisha"ga aylantiramiz — barcha kartalar avtomatik shaffof bo'ladi */
body.glass-on {
  --surface:   rgba(255,255,255,0.035);
  --surface-2: rgba(255,255,255,0.09);
  --line:      rgba(255,255,255,0.13);
  --line-2:    rgba(255,255,255,0.20);
}
/* Barcha sirtlarga shisha blur (fon o'tib ko'rinadi, rang to'yingan) */
body.glass-on .input,
body.glass-on .pkg,
body.glass-on .prem-card,
body.glass-on .gift-card,
body.glass-on .order-item,
body.glass-on .lrow,
body.glass-on .faq-item,
body.glass-on .settings,
body.glass-on .hero-stats,
body.glass-on .pstat-root,
body.glass-on .profile-card,
body.glass-on .expander,
body.glass-on .pill,
body.glass-on .btn-dark,
body.glass-on .tb-support,
body.glass-on .svc-card,
body.glass-on .contest-banner,
body.glass-on .period-tabs,
body.glass-on .seg {
  -webkit-backdrop-filter: blur(8px) saturate(220%) brightness(1.08);
  backdrop-filter: blur(8px) saturate(220%) brightness(1.08);
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.022'/%3E%3C/svg%3E");
  border-color: rgba(255, 255, 255, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.16);
}
/* Reyting/buyurtma tablari va segmentlar — shisha qirra */
body.glass-on .period-tabs,
body.glass-on .seg {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 6px 20px rgba(0,0,0,0.22);
}
/* Segment konteyneri (Standard/Qiz, UZ/RU) — menyu uslubidagi liquid glass */
body.glass-on .seg {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.02) 40%, rgba(255,255,255,0.07) 100%),
    rgba(16,20,28,0.16);
  -webkit-backdrop-filter: blur(3px) saturate(190%) brightness(1.04) contrast(1.06);
  backdrop-filter: blur(3px) saturate(190%) brightness(1.04) contrast(1.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-top-color: rgba(255,255,255,0.40);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), 0 6px 20px rgba(0,0,0,0.26);
}
/* Faol segment — shisha pufakcha + oltin matn (segmentlarda thumb yo'q) */
body.glass-on .seg-btn.active {
  background: rgba(255,255,255,0.15);
  color: #FFD15C;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.30), inset 0 -1px 2px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.18);
}
/* Reyting/buyurtma tab konteyneri — pastki menyu bilan TO'LIQ 1:1 (sticky → ostidan kontent o'tadi, blur ko'rinadi) */
body.glass-on .period-tabs {
  position: sticky; top: 6px; z-index: 6;
  border: 1px solid rgba(255,255,255,0.18);
  border-top-color: rgba(255,255,255,0.42);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.02) 40%, rgba(255,255,255,0.07) 100%),
    rgba(16,20,28,0.16);
  -webkit-backdrop-filter: blur(3px) saturate(190%) brightness(1.04) contrast(1.06);
  backdrop-filter: blur(3px) saturate(190%) brightness(1.04) contrast(1.06);
  padding: 7px;
  box-shadow:
    0 16px 42px rgba(0,0,0,0.50),
    0 2px 8px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -10px 22px rgba(0,0,0,0.10),
    inset 0 -14px 28px rgba(255,255,255,0.05);
  overflow: hidden;
}
/* Yuqori "gloss" yorug'lik chizig'i — pastki menyudagidek (::before) */
body.glass-on .period-tabs::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.04) 26%, rgba(255,255,255,0) 50%);
}
body.glass-on .ptab { padding: 9px 4px; border-radius: 18px; }
/* Reyting/buyurtma tablari faol matni — fonni surma "thumb" beradi (pastki menyudagidek) */
body.glass-on .ptab.active { color: #FFD15C; }
body.glass-on .tab-thumb {
  border-radius: 18px;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), inset 0 -1px 2px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.18);
}
/* Yuqori "rim" yorug'lik — .sel/.focus holatlari yo'q sirtlarga (konflikt bo'lmasin) */
body.glass-on .settings,
body.glass-on .faq-item,
body.glass-on .lrow,
body.glass-on .order-item,
body.glass-on .hero-stats,
body.glass-on .pstat-root,
body.glass-on .profile-card,
body.glass-on .expander,
body.glass-on .pill,
body.glass-on .btn-dark,
body.glass-on .svc-card,
body.glass-on .contest-banner {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 6px 20px rgba(0,0,0,0.26);
}
/* Yumshoqroq (dumaloqroq) shisha burchaklar */
body.glass-on .pkg,
body.glass-on .prem-card,
body.glass-on .input,
body.glass-on .order-item,
body.glass-on .lrow,
body.glass-on .gift-card,
body.glass-on .faq-item { border-radius: 18px; }
/* Input fokus halqasi shisha bilan birga saqlanadi */
body.glass-on .input:focus-within {
  border-color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 0 0 3px var(--gold-bg);
}

/* Rangli xizmat kartalari — rangini saqlab, shaffof frostatlangan shisha */
body.glass-on .svc-stars   { background: linear-gradient(120deg, rgba(245,166,35,0.22), rgba(245,166,35,0.06)); border-color: rgba(245,166,35,0.34); }
body.glass-on .svc-gift    { background: linear-gradient(120deg, rgba(230,80,150,0.22), rgba(230,80,150,0.06)); border-color: rgba(230,80,150,0.34); }
body.glass-on .svc-premium { background: linear-gradient(120deg, rgba(140,100,230,0.24), rgba(140,100,230,0.07)); border-color: rgba(140,100,230,0.34); }

/* Topbar — kuchliroq shisha */
body.glass-on .topbar {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
/* Modal — shaffof shisha varaq */
body.glass-on .modal-sheet {
  background: rgba(18,22,30,0.38);
  -webkit-backdrop-filter: blur(6px) saturate(200%) brightness(1.05);
  backdrop-filter: blur(6px) saturate(200%) brightness(1.05);
  border-radius: 26px 26px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20);
}
body.glass-on .modal-overlay { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* ============================================================
   PAGE VIEWS (Buyurtmalar / Giftlar / Profil / Yordam)
   ============================================================ */
.page-head { padding: 6px 2px 16px; }
.page-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.page-head p { font-size: 13px; color: var(--text2); margin-top: 5px; }

.list-empty { text-align: center; padding: 44px 20px; display: flex; flex-direction: column; align-items: center; }
.le-ic { display: flex; align-items: center; justify-content: center; width: 78px; height: 78px; margin-bottom: 14px;
  border-radius: 22px; background: var(--surface); border: 1px solid var(--line); color: var(--text3); }
.le-ic svg { width: 38px; height: 38px; }
.le-t { font-size: 15.5px; font-weight: 800; color: var(--text2); }
.le-s { font-size: 13px; color: var(--text3); margin-top: 5px; max-width: 240px; }
.le-btn { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 11px 20px;
  border-radius: var(--r-pill); font-size: 14px; font-weight: 800; color: var(--on-gold);
  background: linear-gradient(180deg, #FFD64A, var(--gold-d)); box-shadow: 0 5px 16px rgba(240,167,20,0.3);
  transition: filter var(--t), transform var(--t); }
.le-btn:active { filter: brightness(.95); transform: scale(.97); }
.le-btn svg { width: 15px; height: 15px; }
.list-spin { display: flex; justify-content: center; padding: 44px; }
.list-spin .btn-spin { border-top-color: var(--gold); border-color: rgba(255,255,255,0.18); border-top-color: var(--gold); }

/* Orders */
.order-item {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px; margin-bottom: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer; transition: background var(--t), transform var(--t);
}
.order-item:active { background: var(--surface-2); transform: scale(.99); }

/* Order detail sheet */
.od-hero { text-align: center; padding: 8px 8px 2px; }
.od-ico {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFD15C, #F0A714); color: var(--on-gold);
  box-shadow: 0 8px 22px rgba(240,167,20,0.4);
}
.od-amount { font-size: 26px; font-weight: 800; color: var(--gold); margin-top: 4px; letter-spacing: -0.5px; }
.od-hero .order-st { margin-top: 10px; font-size: 11.5px; padding: 4px 14px; }
#odRows { margin-top: 16px; }
.od-id-row { cursor: pointer; }
.od-id { display: inline-flex; align-items: center; gap: 6px; }
.od-copy { display: inline-flex; color: var(--text3); transition: color var(--t); }
.od-id-row:active .od-copy { color: var(--gold); }
.order-ic { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--surface-2); }
.order-mid { flex: 1; min-width: 0; }
.order-name { font-size: 14.5px; font-weight: 700; }
.order-date { font-size: 11.5px; color: var(--text3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-right { text-align: right; flex-shrink: 0; }
.order-amt { font-size: 14px; font-weight: 700; white-space: nowrap; }
.order-st { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.st-paid { background: rgba(62,209,124,0.15); color: #3ED17C; }
.st-pending { background: rgba(255,203,46,0.15); color: #FFCB2E; }
.st-cancelled, .st-failed { background: rgba(255,90,90,0.15); color: #FF5A5A; }
.st-delivered { background: rgba(46,139,240,0.15); color: #2E8BF0; }
.st-delivering { background: rgba(245,166,35,0.16); color: #F5A623; }   /* yetkazilmoqda (jarayonda) */

/* Gifts */
.gift-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.gift-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  cursor: pointer; transition: transform var(--t), border-color var(--t);
}
.gift-card:active { transform: scale(.95); border-color: var(--gold-bg); }
.gift-card { position: relative; }
.gift-emoji { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; }
.gift-emoji.is-emoji { font-size: 32px; line-height: 1; }
.gift-img { width: 56px; height: 56px; object-fit: contain; display: block; -webkit-user-select: none; user-select: none; pointer-events: none; }
.gift-exc { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #3B9CFF; box-shadow: 0 0 0 2px var(--surface); }
.gift-price { font-size: 12.5px; font-weight: 700; color: var(--gold); white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.gift-price svg { flex-shrink: 0; }
.gift-som { font-size: 10.5px; color: var(--text3); }
.gift-card.sel { border-color: var(--gold); background: var(--gold-bg); box-shadow: 0 0 0 1px var(--gold); }

/* ── Segment (gift profil) ── */
.seg { display: flex; gap: 6px; background: var(--surface); padding: 5px; border-radius: 14px; border: 1px solid var(--line); }
.seg-btn { flex: 1; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--text2); transition: background var(--t), color var(--t); }
.seg-btn.active { background: var(--gold); color: var(--on-gold); }

/* ── Yuboruvchi profil kartasi ── */
.sender-card { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 9px; padding: 11px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: background var(--t), transform var(--t); }
.sender-card:active { background: var(--surface-2); transform: scale(.99); }
.sender-av { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: var(--gold-bg); color: var(--gold); font-size: 16px; font-weight: 800; overflow: hidden; }
.sender-av.has-img { background: none; }
.sender-av img { width: 100%; height: 100%; object-fit: cover; }
.sender-info { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.sender-label { font-size: 11px; color: var(--text3); font-weight: 600; }
.sender-name { font-size: 14.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sender-arr { width: 18px; height: 18px; color: var(--text3); flex-shrink: 0; }

/* ── Yaqinda (recent recipients) ── */
.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 9px; }
.recent:empty { display: none; }
.recent-lbl { font-size: 12px; color: var(--text3); margin-right: 2px; }
.recent-chip { font-size: 13px; font-weight: 600; color: var(--text2); background: var(--surface); border: 1px solid var(--line-2); padding: 6px 11px; border-radius: 999px; transition: background var(--t), color var(--t); }
.recent-chip:active { background: var(--gold-bg); color: var(--gold); }

/* Skeleton loader shimmer */
.sk { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.03); border-radius: 8px; }
.sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(110deg, transparent 30%, rgba(255, 215, 0, 0.1) 50%, transparent 70%); animation: shimmer 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-order { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 9px; }
.sk-ic { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.sk-mid { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sk-right { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.sk-line { height: 11px; display: block; }
.sk-h16 { height: 16px; }
.sk-w60 { width: 60%; } .sk-w40 { width: 40%; } .sk-w55 { width: 56px; } .sk-w34 { width: 36px; }
.sk-w70 { width: 70%; } .sk-w50 { width: 50%; }
.sk-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.sk-gift { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.sk-gimg { width: 56px; height: 56px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .sk::after { animation: none; } }
body.glass-on .sk {
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
body.glass-on .sk::after {
  background: linear-gradient(110deg, transparent 30%, rgba(255, 215, 0, 0.16) 50%, transparent 70%);
}

/* ── Sozlamalar ── */
.settings { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: none; }
.set-label { font-size: 14.5px; font-weight: 600; color: var(--text); }
.seg-sm { padding: 3px; gap: 3px; }
.seg-sm .seg-btn { padding: 6px 14px; font-size: 13px; }

/* ── NFT namuna kartasi (showcase) ── */
.nft-card { display: flex; flex-direction: column; align-items: center; gap: 11px; width: 100%; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: background var(--t), transform var(--t); }
.nft-card:active { background: var(--surface-2); transform: scale(.99); }
.nft-stage { width: 156px; height: 156px; border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #0f1620; }
.nft-anim { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.nft-anim canvas, .nft-anim svg, .nft-img { width: 100% !important; height: 100% !important; object-fit: contain; display: block; }
.nft-meta { display: flex; align-items: baseline; gap: 7px; }
.nft-name { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.nft-num { font-size: 13px; font-weight: 600; color: var(--text3); }
.nft-back { font-size: 12.5px; color: var(--text3); margin-top: -4px; }

/* ── Switch (anonim) ── */
.gift-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.gift-row-t { font-size: 14.5px; font-weight: 700; color: var(--text); }
.gift-row-s { font-size: 12px; color: var(--text3); margin-top: 2px; }
.switch { width: 46px; height: 28px; border-radius: 999px; background: #3A4250; flex-shrink: 0; position: relative; transition: background var(--t); }
.switch.on { background: var(--gold); }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform var(--t); }
.switch.on .switch-knob { transform: translateX(18px); }

/* ── Komment textarea ── */
.opt { font-size: 12px; font-weight: 500; color: var(--text3); }
.input.textarea { height: auto; align-items: flex-start; padding: 12px 14px; }
.input.textarea textarea { width: 100%; resize: none; background: transparent; border: none; outline: none; color: var(--text); font-size: 15px; font-family: inherit; line-height: 1.45; }
.input.textarea textarea::placeholder { color: var(--text3); }

/* Profile */
.profile-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 14px;
}
.pf-av { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #FFD15C, #F0A714); display: flex; align-items: center; justify-content: center; color: #2A1B00; font-weight: 800; font-size: 22px; text-transform: uppercase; }
.pf-info { min-width: 0; }
.pf-name { font-size: 17px; font-weight: 800; }
.pf-sub { font-size: 13px; color: var(--text2); margin-top: 2px; }
/* ── Profil statistikasi: hammasi BITTA tashqi tree ichida ── */
.profile-stats { margin-bottom: 4px; }
.pstat-root { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pstat-root-head { display: flex; align-items: center; gap: 9px; padding: 14px; cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; }
.pstat-root-head::-webkit-details-marker { display: none; }
.pstat-root-head::marker { content: ''; }
.pstat-root-head:active { background: rgba(255,255,255,0.03); }
.ps-root-ic { background: rgba(255,255,255,0.06); }
.pstat-root-head .pstat-title { font-size: 12px; font-weight: 800; letter-spacing: 0.6px; color: var(--text2); text-transform: uppercase; }
.pstat-root-body { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 12px; }
.pstat-card { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.pstat-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 800; color: var(--text); -webkit-user-select: none; user-select: none; }
.pstat-head::-webkit-details-marker { display: none; }
.pstat-head::marker { content: ''; }
.pstat-head:active { background: rgba(255,255,255,0.03); }
.pstat-ic { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; font-size: 15px; flex-shrink: 0; }
.pstat-ic svg { width: 16px; height: 16px; }
.pstat-title { flex: 1; min-width: 0; }
.pstat-sum { font-size: 13px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pstat-chev { width: 16px; height: 16px; stroke: var(--text3); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t); flex-shrink: 0; }
.pstat-card[open] .pstat-chev { transform: rotate(180deg); }
.pstat-card[open] .pstat-head { padding-bottom: 8px; }
.pstat-rows { display: flex; flex-direction: column; gap: 6px; padding: 0 14px 12px; }
.pstat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.pstat-l { color: var(--text2); }
.pstat-v { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pstat-star { display: inline-flex; align-items: center; gap: 3px; }
.pstat-star svg { display: block; }
/* Mavzu ranglari */
.ps-stars   { border-left-color: #F5A623; } .ps-stars   .pstat-ic { background: rgba(245,166,35,0.16); color: #FFC83D; }
.ps-premium { border-left-color: #8C64E6; } .ps-premium .pstat-ic { background: rgba(140,100,230,0.18); color: #A98AF0; }
.ps-gift    { border-left-color: #E65096; } .ps-gift    .pstat-ic { background: rgba(230,80,150,0.16); color: #F06EA0; }
.ps-extra   { border-left-color: #3ED17C; } .ps-extra   .pstat-ic { background: rgba(62,209,124,0.14); }
.ps-rank    { border-left-color: #FFC83D; } .ps-rank    .pstat-ic { background: rgba(255,200,61,0.16); color: #FFC83D; }

/* Row list (settings / support) */
.row-list { display: flex; flex-direction: column; gap: 9px; }
.lrow { display: flex; align-items: center; gap: 13px; padding: 14px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: background var(--t); }
.lrow:active { background: var(--surface-2); }
.lrow-ic { font-size: 20px; flex-shrink: 0; width: 24px; text-align: center; }
.lrow-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lrow-t { font-size: 14.5px; font-weight: 600; color: var(--text); }
.lrow-d { font-size: 12px; color: var(--text3); }
.lrow-arr { width: 18px; height: 18px; stroke: var(--text3); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 9px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-item summary { padding: 14px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--text3); font-size: 19px; font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 14px 14px; font-size: 13px; color: var(--text2); line-height: 1.55; }

/* ============================================================
   CONFIRM MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 6, 10, 0.65);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-sheet {
  width: 100%; max-width: 460px;
  max-height: 94vh; max-height: 94dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: rgba(19, 26, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08); border-bottom: none;
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  border-radius: 28px 28px 0 0; padding: 0 18px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .32s cubic-bezier(.32,.72,0,1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.sheet-handle { width: 44px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); margin: 12px auto 4px; }
.sheet-star { display: flex; align-items: center; justify-content: center; min-height: 56px; margin-bottom: 6px; }
.sheet-title { text-align: center; font-size: 19px; font-weight: 800; color: #FFF; }
.sheet-sub { text-align: center; font-size: 13px; color: var(--text2); margin-top: 4px; }
.sheet-rows {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r); padding: 2px 16px; margin: 18px 0;
}
.sheet-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.sheet-row:last-child { border-bottom: none; }
.sheet-row > span { color: var(--text2); flex-shrink: 0; }
.sheet-row strong { color: var(--text); font-weight: 700; }

.sheet-row strong#mQty, .sheet-row strong#mMth { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
#mQty svg, #mMth svg { display: inline-block !important; flex-shrink: 0; vertical-align: middle; }
.sheet-total strong { color: var(--gold); font-size: 17px; filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.15)); }

/* Recipient details inside sheet */
.m-rcp { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.m-rcp-av { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--gold-bg); color: var(--gold); font-size: 14px; font-weight: 800; }
.m-rcp-av img { width: 100%; height: 100%; object-fit: cover; }
.m-rcp-txt { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.m-rcp-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.m-rcp-u { font-size: 11.5px; font-weight: 500; color: var(--text3); }
.sheet-pay {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 52px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, #FFE066 0%, #FFB900 50%, #E59400 100%);
  color: var(--on-gold);
  font-size: 15.5px; font-weight: 800;
  box-shadow: 0 6px 20px rgba(229, 148, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all var(--t);
}
.sheet-pay:active { transform: scale(.97); box-shadow: 0 3px 10px rgba(229, 148, 0, 0.15); }
.sheet-pay:disabled { opacity: .5; pointer-events: none; }

.sheet-pay.sheet-pay-2 {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.03); color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.06); box-shadow: none;
}
.sheet-pay.sheet-pay-2 .ic { display: flex; align-items: center; color: var(--gold); }
.sheet-pay.sheet-pay-2:active { background: rgba(255, 255, 255, 0.06); transform: scale(.97); }

.sheet-row strong#mMth .pay-bal { display: inline-flex; align-items: center; gap: 5px; }
.sheet-row strong#mMth .ic-in { color: var(--gold); }
#sheetPayBalance .ic { display: inline-flex; align-items: center; }
.sheet-cancel { display: block; width: 100%; text-align: center; padding: 12px 0 2px; font-size: 14px; font-weight: 600; color: var(--text2); }
.sheet-cancel:active { color: var(--red); }
.btn-spin { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin .55s linear infinite; }

/* ============================================================
   BALANS (hamyon) kartasi + to'ldirish sheet
   ============================================================ */
/* Topbar balance card */
.tb-balance {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px 0 10px; border-radius: var(--r-pill);
  background: rgba(19, 26, 38, 0.55); border: 1px solid rgba(255, 215, 0, 0.15);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: all var(--t);
}
.tb-balance:active { transform: scale(.95); border-color: var(--gold); box-shadow: 0 4px 20px rgba(255, 215, 0, 0.12); }
.tb-balance .tbb-ic { display: flex; align-items: center; color: var(--gold); filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.25)); }
.tb-balance .tbb-amount { font-size: 13.5px; font-weight: 800; color: var(--text); white-space: nowrap; }
.tb-balance .tbb-amount b { font-weight: 800; color: var(--gold); }
.tb-balance .tbb-cur { font-weight: 600; color: var(--text2); font-size: 11.5px; }

/* Frozen Balance Overlay */
.tb-balance { position: relative; overflow: hidden; }
.tbb-frost { display: none; }
.tb-balance.frozen {
  /* "MUZLATILGAN" yorlig'i to'liq sig'ishi uchun (aks holda tor balans qutisi kesib qo'yadi) */
  min-width: 142px; justify-content: center;
  background: linear-gradient(135deg, #1C2636 0%, #0E131C 100%);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.08);
}
.tb-balance.frozen .tbb-ic,
.tb-balance.frozen .tbb-amount { opacity: .2; filter: blur(.8px); }
.tb-balance.frozen .tbb-frost {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  position: absolute; inset: 0; z-index: 2;
  padding: 0 10px;
  color: #FCA5A5;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(15, 23, 42, 0.85));
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  border-radius: inherit;
  overflow: hidden;
}
.tb-balance.frozen .tbb-frost svg { flex-shrink: 0; animation: frostSpin 8s linear infinite; }
.tbb-frost-lbl { font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.tb-balance.frozen .tbb-frost::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-18deg); left: -50%;
  animation: frostShine 3s ease-in-out infinite;
}
@keyframes frostSpin { to { transform: rotate(360deg); } }
@keyframes frostShine { 0% { left: -50%; } 55%,100% { left: 130%; } }
body:not(.light-mode) .tb-balance.frozen {
  background: linear-gradient(135deg, #1C2636 0%, #0E131C 100%);
  border-color: rgba(239, 68, 68, 0.35);
}
body:not(.light-mode) .tb-balance.frozen .tbb-frost {
  color: #FCA5A5;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(15, 23, 42, 0.85));
}
body:not(.light-mode) .tb-balance.frozen .tbb-frost::after {
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.18), transparent);
}

/* ── Desktop hover: yengil ko'tarilish + oltin nur. @media (hover:hover) MUHIM —
   aks holda mobil sensorda bosilgach hover "yopishib" qoladi. ── */
@media (hover: hover) {
  .pkg, .prem-card, .gift-card, .svc-card, .nft-card, .order-item,
  .sender-card, .recent-chip, .lrow {
    transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t);
  }
  .pkg:hover, .prem-card:hover, .gift-card:hover, .svc-card:hover,
  .nft-card:hover, .sender-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,203,46,0.15);
    border-color: rgba(255,203,46,0.28);
  }
  .order-item:hover, .lrow:hover { background: var(--surface-2); }
  .recent-chip:hover { border-color: rgba(255,203,46,0.35); color: var(--text); }
  .cta:hover:not(:disabled), .btn-gold:hover { filter: brightness(1.05); box-shadow: 0 6px 22px rgba(255,203,46,0.28); }
  .btn-dark:hover { background: var(--surface-2); }
  /* Light rejim: oltin nurni mos rangga moslaymiz */
  body.light-mode .pkg:hover, body.light-mode .prem-card:hover,
  body.light-mode .gift-card:hover, body.light-mode .svc-card:hover,
  body.light-mode .nft-card:hover, body.light-mode .sender-card:hover {
    box-shadow: 0 6px 20px rgba(217,119,6,0.16);
    border-color: rgba(217,119,6,0.30);
  }
}

.topup-ic { display: flex; align-items: center; justify-content: center; color: #F0A714; margin: 6px 0 8px; }
.topup-cur { text-align: center; font-size: 13px; color: var(--text2); margin-top: 4px; }
.topup-cur b { color: var(--text); font-weight: 700; }
.topup-amt {
  display: flex; align-items: center; gap: 8px; margin: 18px 0 0;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 14px 16px;
}
.topup-amt input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--text); font-size: 22px; font-weight: 800; letter-spacing: .3px;
}
.topup-amt input::placeholder { color: var(--text3); }
.topup-unit { flex-shrink: 0; font-size: 15px; font-weight: 700; color: var(--text3); }
.topup-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 18px; }
.topup-presets button {
  padding: 11px 4px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--text); font-size: 13.5px; font-weight: 700;
  transition: transform var(--t), filter var(--t);
}
.topup-presets button:active { transform: scale(.96); filter: brightness(1.1); }

/* ── Karta bilan to'ldirish paneli ── */
/* Web app ichki tasdiqlash oynasi (alert) — topup ustida ochiladi */
.confirm-ov { z-index: 320; align-items: center; }
.confirm-sheet {
  max-width: 380px; border-radius: 24px; border-bottom: 1px solid rgba(255,255,255,0.08);
  transform: translateY(20px) scale(.96);
  padding: 4px 20px calc(18px + env(safe-area-inset-bottom));
  text-align: center;
}
.confirm-ov.open .confirm-sheet { transform: translateY(0) scale(1); }
.confirm-sheet .sheet-handle { display: none; }
.cf-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 18px auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-bg); color: var(--gold);
}
.cf-msg {
  font-size: 14px; line-height: 1.55; color: var(--text2);
  margin: 10px 4px 20px;
}
.cf-msg b { color: var(--gold); font-weight: 800; }
.confirm-sheet .cf-ok { height: 50px; }

.card-pay { margin-top: 6px; }

/* Summa hero — eng muhim, tepada, katta */
.card-pay-hero {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 14px 14px; border-radius: 16px; margin-bottom: 12px;
  background: var(--gold-bg);
  border: 1.5px solid var(--gold);           /* fallback */
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  text-align: center;
}
.cph-label {
  font-size: 12px; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: .7px;
}
.cph-value {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  color: var(--gold); background: none; border: none; cursor: pointer;
}
.cph-value b { font-size: 30px; font-weight: 900; letter-spacing: .3px; line-height: 1.1; }
.cph-value .ic { flex-shrink: 0; display: flex; opacity: .9; }
.cph-value:active { transform: scale(.97); }
.cph-exact {
  font-size: 11.5px; line-height: 1.4; font-weight: 600;
  color: var(--gold); opacity: .95; margin-top: 2px;
}

.card-pay-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 12px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--line-2);
}
.card-pay-k { font-size: 12.5px; font-weight: 600; color: var(--text2); flex-shrink: 0; }
.card-pay-v { font-size: 14px; font-weight: 700; color: var(--text); }
.card-pay-copy {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: .5px;
}
.card-pay-copy b { font-weight: 800; }
.card-pay-copy .ic { color: var(--gold); flex-shrink: 0; display: flex; }
.card-pay-copy:active { transform: scale(.96); }
.card-pay-wait {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: 12px; margin-bottom: 10px;
  background: var(--gold-bg); color: var(--gold); font-size: 13px; font-weight: 700;
}
.card-cd { font-weight: 800; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
/* Buyurtma detalida pending karta to'lov bloki */
.od-cardpay { margin-top: 14px; }
.od-cardpay .card-pay-wait { margin-bottom: 0; }

/* ── Click brend logosi ── */
.click-mk { width: 1em; height: 1em; display: block; }
.click-mk-wrap { display: inline-flex; align-items: center; }
.click-mk-wrap .click-mk { width: 19px; height: 19px; }
.click-wm { font-weight: 800; letter-spacing: -.02em; }
/* To'lov tugmasidagi belgi (oltin fon — squircle oq halqa bilan ajralib tursin) */
.sheet-pay .click-mk-wrap .click-mk { width: 20px; height: 20px; }
/* Buyurtma oynasidagi "To'lov usuli: click" qatori */
.sheet-row strong.click-logo { display: inline-flex; align-items: center; gap: 5px; }
.sheet-row strong.click-logo .click-mk { width: 16px; height: 16px; }
/* Balansdan to'langan buyurtma — "Balans" + oltin hamyon */
.sheet-row strong.pay-bal { display: inline-flex; align-items: center; gap: 5px; }
.sheet-row strong.pay-bal .pay-bal-ic { display: flex; color: #F0A714; }
/* Matn ichidagi kichik inline logo (hero / FAQ) */
.click-inline { display: inline-flex; align-items: center; gap: 3px; vertical-align: -.16em; }
.click-inline .click-mk { width: 14px; height: 14px; }
.click-inline .click-wm { font-size: .92em; color: var(--text2); }

/* ============================================================
   VIRTUAL RAQAM (TG-Lion)
   ============================================================ */
.svc-number .svc-ic { color: #34d399; }
.num-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 11px 14px; margin-bottom: 12px; }
.num-search-ic { display: flex; color: var(--text3); width: 18px; height: 18px; flex-shrink: 0; }
.num-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-size: 14px; }
.num-search input::placeholder { color: var(--text3); }
.num-list { display: flex; flex-direction: column; gap: 8px; }
.num-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; }
.num-row-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
/* Mamlakat bayrog'i (rasm) */
.num-flag { width: 30px; height: 22px; border-radius: 4px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.08); background: var(--surface-2); }
.num-flag-x { display: inline-block; width: 30px; height: 22px; border-radius: 4px; flex-shrink: 0; background: var(--surface-2); }
.num-row-name { font-size: 14.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num-row-dial { font-size: 12px; color: var(--text3); }
.num-buy { flex-shrink: 0; padding: 9px 14px; border-radius: var(--r-pill); background: linear-gradient(180deg, #FFD64A, var(--gold-d)); color: var(--on-gold); font-size: 13.5px; font-weight: 800; white-space: nowrap; transition: filter var(--t), transform var(--t); }
.num-buy:active { transform: scale(.97); filter: brightness(.95); }
.num-buy:disabled { background: var(--surface-2); color: var(--text3); opacity: .7; }
.num-empty { padding: 26px; text-align: center; color: var(--text3); font-size: 13.5px; }
.num-err { color: #ef5350; }
.num-active { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.num-active-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.num-active-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14.5px; color: var(--text); }
.num-x { display: inline-flex; align-items: center; background: none; border: none; color: var(--text3); }
.num-active-number { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: .5px; color: var(--text); }
.num-active-sub { font-size: 12.5px; color: var(--text3); margin-top: 4px; }
.num-code-box { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; margin: 12px 0; text-align: center; }
.num-code-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; }
.num-code-val { font-size: 26px; font-weight: 800; color: #FFD64A; margin: 4px 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.num-code-status { font-size: 12.5px; color: var(--text3); }
.num-locked { margin-top: 8px; font-size: 11.5px; line-height: 1.4; color: #ffb4b1; background: rgba(239,83,80,.1); border: 1px solid rgba(239,83,80,.25); border-radius: 10px; padding: 7px 10px; }

/* Level belgisi — profil o'ng tomonida (katta, glow bilan) */
.pf-level-big { margin-left: auto; flex-shrink: 0; padding-left: 10px; display: flex; align-items: center; }
.pf-level-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pf-level-inner svg { display: block; position: relative; z-index: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); }
.pf-level-inner.warn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #ef6d6a; }
.pf-level-inner.warn svg { filter: drop-shadow(0 2px 6px rgba(239,109,106,.45)); }
.pf-level-inner::before { content: ''; position: absolute; top: -3px; left: 50%; transform: translateX(-50%); width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle, var(--lc, #FFC83D) 0%, transparent 68%); opacity: .18; z-index: 0; }
.pf-level-lbl { font-size: 9px; font-weight: 800; letter-spacing: .5px; }

/* Level (AML) kartasi + muzlatilgan banner */
.frozen-banner { display: flex; align-items: center; gap: 8px; background: rgba(239,83,80,.12); border: 1px solid rgba(239,83,80,.3); color: #ffb4b1; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.4; margin-bottom: 12px; }
.frozen-banner .ic { display: flex; flex-shrink: 0; }
.level-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 16px; margin-bottom: 6px; }
.lvl-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lvl-badge { font-size: 15px; font-weight: 800; color: #04240f; background: linear-gradient(180deg, #FFD64A, var(--gold-d)); padding: 5px 12px; border-radius: var(--r-pill); }
.lvl-sub { font-size: 12.5px; color: var(--text3); font-weight: 600; }
.lvl-limits { display: flex; gap: 10px; margin-bottom: 4px; }
.lvl-lim { flex: 1; background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 11px; }
.lvl-lim-k { display: block; font-size: 11px; color: var(--text3); margin-bottom: 2px; }
.lvl-lim-v { font-size: 13px; color: var(--text2); }
.lvl-lim-v b { color: var(--text); font-weight: 800; }
.lvl-prog { margin-top: 12px; }
.lvl-prog-title { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text3); margin-bottom: 8px; }
.lvl-row { margin-bottom: 9px; }
.lvl-row-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.lvl-row.done .lvl-row-top { color: #34d399; }
.lvl-bar { height: 6px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.lvl-bar > span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2D7FFF, #19C8FF); transition: width .4s ease; }
.lvl-row.done .lvl-bar > span { background: #34d399; }
/* Tablar (Raqam olish / Mening raqamlarim) */
.num-tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 4px; margin-bottom: 14px; }
.num-tab { flex: 1; padding: 9px 0; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 700; color: var(--text3); transition: background var(--t), color var(--t); }
.num-tab.active { background: var(--gold-bg); color: var(--gold); }
/* Kirish ma'lumotlari (kod + 2FA) */
.num-cred { border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 15px; margin: 12px 0; display: flex; flex-direction: column; gap: 13px; }
.num-cred-item { display: flex; flex-direction: column; gap: 3px; }
.num-cred-k { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .4px; }
.num-cred-v { font-size: 22px; font-weight: 800; color: #FFD64A; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; letter-spacing: .5px; }
#num2faVal { color: #34d399; }
.num-active-actions { display: flex; gap: 10px; }
.num-act { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 1; padding: 11px; border-radius: 12px; background: var(--gold-bg); color: var(--gold); font-weight: 700; font-size: 13.5px; border: 1px solid var(--line-2); }
.num-act.ghost { background: transparent; color: var(--text2); }
.num-copy { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--gold); font-size: 12px; }
/* Mening raqamlarim */
.num-mine-wrap { margin-bottom: 18px; }
.num-mine { display: flex; flex-direction: column; gap: 8px; }
.num-mine-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; transition: filter var(--t), transform var(--t); }
.num-mine-row:active { transform: scale(.99); filter: brightness(1.06); }
.num-mine-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.num-mine-num { font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: .3px; }
.num-mine-sub { font-size: 12px; color: var(--text3); }
.num-mine-st { flex-shrink: 0; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text3); }
.num-mine-st.ok { background: rgba(52,211,153,.15); color: #34d399; }
/* Saralash / filtr tugmalari */
.num-sort { display: flex; gap: 6px; margin-bottom: 12px; }
.num-sort-btn { flex: 1; padding: 8px 4px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text3); font-size: 12.5px; font-weight: 700; transition: background var(--t), color var(--t); }
.num-sort-btn.active { background: var(--gold-bg); color: var(--gold); }
/* Mening raqamlarim — qidiruv/filtr */
.num-mine-tools { margin-bottom: 4px; }
.num-mine-item { display: block; }
.num-mine-arrow { flex-shrink: 0; display: flex; align-items: center; color: var(--text3); opacity: .55; transition: transform var(--t), opacity var(--t); }
.num-mine-row:active .num-mine-arrow { transform: translateX(2px); opacity: 1; }
/* Foydalanish shartlari oynasi */
.num-terms-head { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 4px 0 12px; }
.num-terms-head .sheet-title { text-align: left; }
.num-terms-ic { display: inline-flex; align-items: center; color: #f5a524; }
/* Inline ikonka (matn ichida) */
.ic-in { display: inline-flex; align-items: center; vertical-align: -.15em; }
.ic-in svg { display: block; }
.sheet-cancel .ic { display: inline-flex; align-items: center; vertical-align: -3px; margin-right: 2px; }
.num-terms-warn { background: rgba(239,83,80,.12); border: 1px solid rgba(239,83,80,.3); color: #ffb4b1; border-radius: 12px; padding: 11px 13px; font-size: 12.5px; line-height: 1.5; margin-bottom: 12px; }
.num-terms-body { max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; }
.num-terms-item { font-size: 12.8px; line-height: 1.55; color: var(--text2); }
.num-terms-item b { color: var(--text); font-weight: 700; }
.num-terms-note { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 13px; font-size: 12px; line-height: 1.5; color: var(--text3); margin: 12px 0 4px; }
.sheet-pay.num-terms-agree { background: linear-gradient(180deg, #3ddc84, #16a34a); color: #04240f; box-shadow: 0 5px 16px rgba(22,163,74,.3); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; top: 62px; left: 12px; right: 12px; z-index: 400;
  max-width: 460px; margin: 0 auto;
  transform: translateY(-16px) scale(.98);
  display: flex; align-items: center; gap: 11px;
  padding: 12px 16px 12px 13px; border-radius: 16px;
  background: rgba(32,40,52,0.97); border: 1px solid var(--line-2); border-top-color: rgba(255,255,255,0.18);
  font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.35;
  opacity: 0; pointer-events: none;
  box-shadow: 0 14px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: opacity .25s ease, transform .32s cubic-bezier(.34,1.4,.5,1);
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }
.toast-ic { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.toast-ic svg { width: 14px; height: 14px; }
#toastMsg { flex: 1; min-width: 0; }
.toast.t-success .toast-ic { background: rgba(62,209,124,0.18); color: #3ED17C; }
.toast.t-error   .toast-ic { background: rgba(255,90,90,0.18);  color: #FF5A5A; }
.toast.t-info    .toast-ic { background: rgba(255,203,46,0.18); color: #FFCB2E; }
/* Liquid glass — frostatlangan shisha toast */
body.glass-on .toast {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.02) 42%, rgba(255,255,255,0.07) 100%),
    rgba(26,32,42,0.55);
  -webkit-backdrop-filter: blur(10px) saturate(190%) brightness(1.06);
  backdrop-filter: blur(10px) saturate(190%) brightness(1.06);
  border-top-color: rgba(255,255,255,0.42);
  box-shadow: 0 16px 42px rgba(0,0,0,0.46), inset 0 1px 0 rgba(255,255,255,0.42);
}

/* ============================================================
   IKONKALAR (emoji o'rniga SVG)
   ============================================================ */
.ic { display: inline-flex; align-items: center; justify-content: center; }
.ic svg, .order-ic svg, .od-ico svg, .le-ic svg, .gift-price svg, #mQty svg, #mMth svg { display: block; }

/* inline (matn yonidagi) ikonkalar */
.promo-strip .ic, .hero-pill .ic { vertical-align: -2px; }
.gift-price svg, #mQty svg, #mMth svg, .hint svg { display: inline-block; vertical-align: -2px; }

/* Xizmat kartalari ikonlari (rangli) */
.svc-ic svg { width: 26px; height: 26px; }
.svc-stars   .svc-ic { color: #FFC83D; }
.svc-gift    .svc-ic { color: #F06EA0; }
.svc-premium .svc-ic { color: #A98AF0; }

/* Input star ikoni — oltin */
.input-ic.star { color: #FFC83D; }

/* Row list (kanal/menejer/bot) */
.lrow-ic { color: var(--text2); }
.lrow-ic svg { width: 20px; height: 20px; }

/* Buyurtma / detal ikonlari */
.order-ic { color: #FFC83D; }
.od-ico svg { width: 32px; height: 32px; }
.le-ic { color: var(--text3); }

/* ============================================================
   ANIMATSIYALAR
   ============================================================ */
@keyframes riseIn { from { opacity: 0; transform: translateY(11px); } to { opacity: 1; transform: none; } }

/* Bosqichma-bosqich kirish */
.stagger > * { animation: riseIn .45s cubic-bezier(.22,1,.36,1) both; }
.stagger > *:nth-child(1){ animation-delay: .03s; }
.stagger > *:nth-child(2){ animation-delay: .09s; }
.stagger > *:nth-child(3){ animation-delay: .15s; }
.stagger > *:nth-child(4){ animation-delay: .21s; }
.stagger > *:nth-child(5){ animation-delay: .27s; }
.stagger > *:nth-child(6){ animation-delay: .33s; }
.stagger > *:nth-child(7){ animation-delay: .39s; }
.stagger > *:nth-child(8){ animation-delay: .45s; }
.stagger > *:nth-child(n+9){ animation-delay: .5s; }

/* Hero elementlari ketma-ket */
.hero2 > * { animation: riseIn .5s cubic-bezier(.22,1,.36,1) both; }
.hero2 > *:nth-child(1){ animation-delay: .02s; }
.hero2 > *:nth-child(2){ animation-delay: .08s; }
.hero2 > *:nth-child(3){ animation-delay: .14s; }
.hero2 > *:nth-child(4){ animation-delay: .20s; }
.hero2 > *:nth-child(5){ animation-delay: .26s; }

/* Oltin tugmalarda yorug'lik yugurishi */
.btn-gold, .cta { position: relative; overflow: hidden; }
.btn-gold::after, .cta::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 38%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); pointer-events: none;
  animation: shine 3.4s ease-in-out infinite;
}
@keyframes shine { 0% { left: -60%; } 26% { left: 150%; } 100% { left: 150%; } }

/* Kutilmoqda — to'lov tugmasi pulse (e'tibor tortadi) */
#odPayBtn { animation: payPulse 1.9s ease-in-out infinite; }
@keyframes payPulse {
  0%, 100% { box-shadow: 0 5px 16px rgba(240,167,20,.30); }
  50%      { box-shadow: 0 6px 24px rgba(240,167,20,.55); }
}

/* ── View Entrance Transition ── */
@keyframes viewEntrance {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Loyalty Level Badges ── */
.lvl-badge.lvl-bronze {
  background: linear-gradient(135deg, #a75e3b, #733c20);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 10px rgba(115, 60, 32, 0.35);
}
.lvl-badge.lvl-silver {
  background: linear-gradient(135deg, #e3e7ed, #9ca3af);
  color: #1f2937;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 10px rgba(156, 163, 175, 0.35);
}
.lvl-badge.lvl-gold {
  background: linear-gradient(135deg, #FFD64A, #F0A714);
  color: #2A1B00;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 10px rgba(240, 167, 20, 0.35);
}
.lvl-badge.lvl-diamond {
  background: linear-gradient(135deg, #a5f3fc, #818cf8, #c084fc);
  color: #1e1b4b;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.45);
  animation: diamondShine 3s ease infinite alternate;
}
@keyframes diamondShine {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.2); }
}

/* Bosishda micro-feedback */
.svc-card, .pkg, .order-item, .gift-card, .lrow, .btn-gold, .btn-dark, .cta, .expander, .bnav-item {
  transition: transform .22s cubic-bezier(0.34, 1.56, 0.64, 1), filter .2s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

/* Harakatni kamaytirish (accessibility) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================
   REYTING
   ============================================================ */
.rating-head { display: flex; align-items: center; justify-content: space-between; }
.refresh-btn { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; background: var(--surface); border: 1px solid var(--line-2); color: var(--text2); display: flex; align-items: center; justify-content: center; transition: background var(--t), color var(--t); }
.refresh-btn:active { background: var(--surface-2); color: var(--text); }
.refresh-btn.spinning svg { animation: spin .65s linear; }

.period-tabs { display: flex; gap: 6px; position: relative; background: rgba(12,16,23,0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 13px; padding: 4px; margin-bottom: 14px; -webkit-tap-highlight-color: transparent; }
.ptab { flex: 1; position: relative; z-index: 1; padding: 8px 4px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text2); transition: color var(--t); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.ptab.active { color: #FFC83D; font-weight: 700; }
/* Surma (swipe) indikator — pastki menyudagidek */
.tab-thumb {
  position: absolute; left: 0; top: 0; z-index: 0;
  border-radius: 10px; pointer-events: none;
  background: rgba(255,200,61,0.14);
  border: 1px solid rgba(255,200,61,0.22);
  transition: transform .34s cubic-bezier(.34,1.28,.5,1), width .2s, height .2s, opacity .15s;
}
.tab-thumb.dragging { transition: none; background: rgba(255,200,61,0.22); }

.rrow { display: flex; align-items: center; gap: 12px; padding: 11px 13px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.rrow.me { border-color: var(--gold); background: var(--gold-bg); }
.rrank { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: var(--surface-2); color: var(--text2); }
.rrank.r1 { background: linear-gradient(135deg,#FFD75C,#F0A714); color: #2A1B00; }
.rrank.r2 { background: linear-gradient(135deg,#D8DEE8,#A8B2C0); color: #1A2230; }
.rrank.r3 { background: linear-gradient(135deg,#E0A878,#C17C46); color: #2A1300; }
.rmid { flex: 1; min-width: 0; }
.rname { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rme { font-size: 11px; font-weight: 700; color: var(--gold); background: var(--gold-bg); padding: 1px 7px; border-radius: 999px; }
.rsub { font-size: 12px; color: var(--text3); margin-top: 1px; }
.ramt { font-size: 14px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.rating-me-label { font-size: 12px; font-weight: 700; color: var(--text2); margin: 14px 2px 8px; }

/* Profile additions */
.pf-id { font-size: 11.5px; color: var(--text3); margin-top: 3px; }
.pf-av { overflow: hidden; }
.pf-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   PREMIUM (muddat tanlash)
   ============================================================ */
.h-crown { color: #A98AF0; vertical-align: -3px; }
.prem-list { display: flex; flex-direction: column; gap: 9px; }
.prem-card {
  display: flex; align-items: center; gap: 13px; padding: 14px;
  background: var(--surface); border: 1.5px solid transparent; border-radius: var(--r);
  cursor: pointer; transition: border-color var(--t), background var(--t), transform var(--t);
  -webkit-user-select: none; user-select: none;
}
.prem-card:active { transform: scale(.99); }
.prem-card.sel { border-color: var(--gold); background: var(--gold-bg); box-shadow: 0 0 0 1px var(--gold), 0 0 14px rgba(255, 203, 46, 0.22); }
.prem-mid { flex: 1; min-width: 0; }
.prem-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.prem-sub { font-size: 12px; color: var(--text3); margin-top: 2px; }
.prem-price { font-size: 15px; font-weight: 800; color: var(--text); white-space: nowrap; }
.prem-card.sel .prem-price { color: var(--gold); }
.prem-badge { font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: rgba(62,209,124,0.15); color: #3ED17C; }
.prem-badge.pop { background: rgba(245,166,35,0.18); color: #FFCB2E; }

/* ── Telegram gate (brauzerdan kirilganda botga yo'naltirish) ── */
.tg-gate {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  align-items: center; justify-content: center; padding: 24px;
}
.tg-gate-box { text-align: center; max-width: 320px; animation: fade .3s ease; }
.tg-gate-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 22px; margin-bottom: 18px;
  background: var(--gold-bg); color: var(--gold);
}
.tg-gate-t { font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -0.4px; }
.tg-gate-s { font-size: 14px; color: var(--text3); line-height: 1.55; margin: 10px 0 22px; }
.tg-gate-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 52px; border-radius: var(--r);
  background: var(--gold); color: var(--on-gold);
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: background var(--t), transform var(--t);
}
.tg-gate-btn:active { background: var(--gold-d); transform: scale(.98); }

/* ── Maintenance gate (web app vaqtincha o'chirilganda) ── */
.maint-gate { z-index: 9800; }
.maint-ic {
  position: relative; width: 100px; height: 100px; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255,203,46,0.22), rgba(255,203,46,0.05));
  color: var(--gold);
}
.maint-ic svg { position: relative; z-index: 1; animation: maintSpin 9s linear infinite; }
.maint-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(255,203,46,0.30); animation: maintPulse 2.6s ease-out infinite;
}
.maint-ring2 { animation-delay: 1.3s; }
@keyframes maintSpin  { to { transform: rotate(360deg); } }
@keyframes maintPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.55); opacity: 0; } }
.maint-status {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 22px; background: rgba(62,209,124,0.12);
  color: var(--green); font-size: 13px; font-weight: 700;
}
.maint-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: maintBlink 1.6s ease-in-out infinite;
}
@keyframes maintBlink { 0%, 100% { box-shadow: 0 0 0 0 rgba(62,209,124,0.5); } 50% { box-shadow: 0 0 0 6px rgba(62,209,124,0); } }

/* ── Splash (yuklash animatsiyasi) ── */
.splash {
  position: fixed; inset: 0; z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity .4s ease, visibility .4s ease;
}
.splash.hide { opacity: 0; visibility: hidden; }
.splash-box { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.splash-star {
  width: 92px; height: 92px; border-radius: 26px;
  display: flex; align-items: center; justify-content: center;
  color: var(--on-gold);
  background: linear-gradient(135deg, #FFD15C, #F0A714);
  box-shadow: 0 10px 40px rgba(240,167,20,0.45);
  animation: splashPop .5s cubic-bezier(.34,1.56,.64,1), splashFloat 2.4s ease-in-out .5s infinite;
}
.splash-star svg { animation: splashSpin 2.4s ease-in-out infinite; }
.splash-name { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.4px; opacity: 0; animation: fadeUp .5s ease .15s forwards; }
.splash-dots { display: flex; gap: 6px; }
.splash-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); opacity: .35; animation: splashDot 1.1s ease-in-out infinite; }
.splash-dots span:nth-child(2) { animation-delay: .18s; }
.splash-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes splashPop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes splashFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes splashSpin { 0%,100% { transform: rotate(0); } 50% { transform: rotate(18deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes splashDot { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .splash-star, .splash-star svg, .splash-dots span { animation: none; }
}

/* ── Konkurs banneri (bosh sahifa) ── */
.contest-banner {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; margin-bottom: 14px; border-radius: 16px;
  background: linear-gradient(120deg, rgba(255,203,46,0.16), rgba(124,78,204,0.15));
  border: 1px solid rgba(255,203,46,0.3);
  text-align: left; position: relative; overflow: hidden;
  animation: riseIn .4s ease; transition: transform var(--t);
}
.contest-banner:active { transform: scale(.99); }
.cb-prize { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.28); color: var(--gold); }
.cb-prize img { width: 100%; height: 100%; object-fit: contain; }
.cb-prize svg { width: 24px; height: 24px; }
.cb-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cb-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: 0.6px; color: var(--gold); }
.cb-dot { width: 6px; height: 6px; border-radius: 50%; background: #3ED17C; animation: cbPulse 1.6s infinite; }
@keyframes cbPulse { 0% { box-shadow: 0 0 0 0 rgba(62,209,124,0.5); } 70% { box-shadow: 0 0 0 6px rgba(62,209,124,0); } 100% { box-shadow: 0 0 0 0 rgba(62,209,124,0); } }
.cb-title { font-size: 14.5px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-sub { font-size: 11.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-time { flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; background: rgba(0,0,0,0.28); padding: 6px 9px; border-radius: 10px; white-space: nowrap; }
/* Banner — yakunlangan holat */
.contest-banner.ended .cb-dot { background: #FFD75C; animation: none; }
.contest-banner.ended .cb-tag { color: #FFD75C; }
.contest-banner.ended .cb-time { display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.15; }
.cb-time .cb-done { color: #FFD75C; font-size: 11.5px; }
.cb-time .cb-doneat { color: var(--text2); font-size: 9.5px; font-weight: 600; }

/* ══════════ Xizmatlar reklama karuseli (avto-aylanuvchi) ══════════ */
.promo { position: relative; width: 100%; margin-bottom: 14px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 6px 22px rgba(0,0,0,0.28); animation: riseIn .4s ease; }
.promo-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); will-change: transform; }
.promo-slide { flex: 0 0 100%; min-width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 13px; padding: 15px 15px 20px; min-height: 92px; cursor: pointer; position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.promo-slide::after { content: ''; position: absolute; top: -55%; right: -8%; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 68%); pointer-events: none; }
.promo-slide:active { transform: scale(0.985); }
.promo-ic { flex-shrink: 0; width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.promo-ic svg { width: 30px; height: 30px; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
.promo-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.promo-t { display: block; font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-d { display: block; font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,0.74); margin-top: 3px; line-height: 1.3; }
.promo-cta { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.16); position: relative; z-index: 1; }
.promo-cta svg { width: 17px; height: 17px; display: block; fill: none; stroke: #fff; }
/* Har xizmat uchun brend gradienti */
.promo-stars   { background: linear-gradient(115deg, #4A360F 0%, #241905 100%); }
.promo-gift    { background: linear-gradient(115deg, #48193A 0%, #260D1F 100%); }
.promo-premium { background: linear-gradient(115deg, #372868 0%, #1D1435 100%); }
.promo-boost   { background: linear-gradient(115deg, #2B2660 0%, #16122E 100%); }
.promo-number  { background: linear-gradient(115deg, #0E3D31 0%, #07211B 100%); }
.promo-stars   .promo-ic { background: rgba(245,166,35,0.22); color: #FFC83D; }
.promo-gift    .promo-ic { background: rgba(230,80,150,0.22); color: #F06EA0; }
.promo-premium .promo-ic { background: rgba(140,100,230,0.24); color: #A98AF0; }
.promo-boost   .promo-ic { background: rgba(167,139,250,0.24); color: #a78bfa; }
.promo-number  .promo-ic { background: rgba(52,211,153,0.22); color: #34d399; }
.promo-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.promo-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.32); transition: width var(--t), background var(--t); }
.promo-dot.on { width: 16px; border-radius: 3px; background: rgba(255,255,255,0.92); }

/* ── Konkurs reytingi (reyting bo'limida) ── */
.crat { background: linear-gradient(150deg, rgba(255,203,46,0.10), rgba(124,78,204,0.10)); border: 1px solid rgba(255,203,46,0.25); border-radius: 16px; padding: 14px; margin-bottom: 16px; }
.crat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.crat-title { font-size: 16px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crat-time { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; background: rgba(0,0,0,0.28); padding: 5px 8px; border-radius: 9px; white-space: nowrap; }
.crat-time.ended { color: var(--text2); }
.crat-time.ended .cdone { color: #FFD75C; }
.crat-plabel { font-size: 11px; font-weight: 800; letter-spacing: 0.6px; color: var(--text2); margin-bottom: 9px; }
.crat-prizes { display: flex; gap: 11px; overflow-x: auto; padding: 2px 2px 6px; margin-bottom: 10px; scrollbar-width: none; }
.crat-prizes::-webkit-scrollbar { display: none; }
.cprize { position: relative; flex-shrink: 0; }
.cprize-img { width: 62px; height: 62px; border-radius: 14px; overflow: hidden; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; color: var(--gold); border: 1px solid var(--line-2); }
.cprize-img img { width: 100%; height: 100%; object-fit: contain; }
.cprize-rank { position: absolute; top: -7px; left: -7px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--surface-2); color: var(--text); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); }
.cprize-rank.r1 { background: linear-gradient(135deg,#FFD75C,#F0A714); color: #2A1B00; border-color: transparent; }
.cprize-rank.r2 { background: linear-gradient(135deg,#D8DEE8,#A8B2C0); color: #1A2230; border-color: transparent; }
.cprize-rank.r3 { background: linear-gradient(135deg,#E0A878,#C17C46); color: #2A1300; border-color: transparent; }
.crat-list .rrow { background: rgba(255,255,255,0.03); }
.rrow.win { border-color: rgba(255,203,46,0.35); }
.rprize { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; }
.rprize img { width: 100%; height: 100%; object-fit: contain; }
/* NFT sovrin + "Sovrin" yorlig'i — summadan ajratish uchun (narx deb tushunilmasin) */
.rprize-col { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; }
.rprize-col[data-nft] { cursor: pointer; }
.rprize-tag { font-size: 8.5px; font-weight: 800; letter-spacing: 0.3px; color: #FFD15C; line-height: 1; text-transform: uppercase; }
.crat-empty { text-align: center; color: var(--text3); font-size: 13px; padding: 14px; }
/* Tasodifiy konkurs: ishtirok holati (qatnashyapsizmi?) */
.crat-join {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
  padding: 14px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line-2);
}
.crat-join.on  { border-color: rgba(62,209,124,0.35); background: rgba(62,209,124,0.08); }
.crat-join.off { border-color: rgba(255,203,46,0.30); background: var(--gold-bg); }
.cj-ic {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.crat-join.on  .cj-ic { background: rgba(62,209,124,0.16); color: var(--green); }
.crat-join.off .cj-ic { background: rgba(255,203,46,0.16); color: var(--gold); }
.cj-body { flex: 1; min-width: 0; display: block; }
.cj-title { display: block; font-size: 14.5px; font-weight: 800; color: var(--text); }
.cj-sub { display: block; font-size: 12px; font-weight: 500; color: var(--text2); margin-top: 3px; line-height: 1.45; }

/* ── Konkurs sovrinlari podiumi ── */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 16px; margin: 10px 0 18px; }
.pod { position: relative; display: flex; flex-direction: column; align-items: center; }
.pod-img { border-radius: 16px; overflow: hidden; background: rgba(0,0,0,0.3); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.pod-img img { width: 100%; height: 100%; object-fit: contain; }
/* Oddiy gift sovrini: rasm hali yuklanmagan bo'lsa — emoji ko'rsatiladi */
.pod-emo { font-size: 30px; line-height: 1; }
.prest-img .pod-emo { font-size: 22px; }
.pod-1 .pod-img { width: 110px; height: 110px; border-color: rgba(255,215,92,0.55); box-shadow: 0 8px 28px rgba(240,167,20,0.3); }
.pod-2 .pod-img, .pod-3 .pod-img { width: 78px; height: 78px; }
.pod-rank { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); z-index: 2; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--surface-2); color: var(--text); font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); }
.pod-rank.r1 { background: linear-gradient(135deg,#FFD75C,#F0A714); color: #2A1B00; border-color: transparent; }
.pod-rank.r2 { background: linear-gradient(135deg,#D8DEE8,#A8B2C0); color: #1A2230; border-color: transparent; }
.pod-rank.r3 { background: linear-gradient(135deg,#E0A878,#C17C46); color: #2A1300; border-color: transparent; }
/* Tugagan konkurs — 1-o'rin g'olibiga qirol toji */
.pod-crown {
  position: absolute; top: -17px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: #FFD75C; line-height: 0;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
  animation: crownPop .4s cubic-bezier(.34,1.56,.64,1) both;
}
.pod-win .pod-img { border-color: rgba(255,215,92,0.7); box-shadow: 0 8px 30px rgba(240,167,20,0.42); }
@keyframes crownPop { from { transform: translateX(-50%) translateY(6px) scale(.5); opacity: 0; } to { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; } }
.prest { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 4px; }
.prest-i { position: relative; }
.prest-img { width: 54px; height: 54px; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,0.3); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.prest-img img { width: 100%; height: 100%; object-fit: contain; }
.prest-rank { position: absolute; top: -7px; left: -7px; z-index: 2; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); }
/* Konkurs tab + tablar scrolli */
.period-tabs { overflow-x: auto; scrollbar-width: none; }
.period-tabs::-webkit-scrollbar { display: none; }
.ptab { white-space: nowrap; }
/* Konkurs tab — alohida qatorda, kenglik bo'yicha */
.ptab-contest {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; margin-bottom: 10px; padding: 11px;
  border-radius: 12px; font-size: 13.5px; font-weight: 800; color: var(--gold);
  background: linear-gradient(120deg, rgba(255,203,46,0.14), rgba(124,78,204,0.13));
  border: 1px solid rgba(255,203,46,0.30);
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.ptab-contest svg { width: 14px; height: 14px; }
.ptab-contest:active { transform: scale(.99); }
.ptab-contest.active {
  background: linear-gradient(120deg, rgba(255,203,46,0.26), rgba(124,78,204,0.22));
  border-color: rgba(255,203,46,0.55);
  box-shadow: 0 4px 16px rgba(240,167,20,0.18);
}

/* ── NFT animatsiya konteyneri (podium/sovrinlar) ── */
.nft-stage-anim { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.pod-img canvas, .prest-img canvas, .rprize canvas, .nft-stage-anim canvas { width: 100% !important; height: 100% !important; display: block; }
.pod, .prest-i { cursor: pointer; transition: transform var(--t); }
.pod:active, .prest-i:active { transform: scale(.95); }
.rprize[data-nft] { cursor: pointer; }

/* Konkurs reytingi: summa ustidagi bitta sarlavha-yorliq */
.crat-listhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 14px; }
.crat-amthead { font-size: 10.5px; font-weight: 700; color: var(--text3); white-space: nowrap; letter-spacing: 0.2px; }
/* Konkurs tugagach — NFT bosib bo'lmaydi (Telegram'da ochilmaydi) */
.nft-noclick, .nft-noclick[data-nft] { cursor: default !important; }

/* Buyurtma avto-kuzatuvi: tugamagan holat belgisi nozik "jonli" pulsatsiya bilan */
.order-st.st-pending, .order-st.st-delivering { animation: ordPulse 1.6s ease-in-out infinite; }
@keyframes ordPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

/* Konkurs — hisobga olinadigan buyurtma turlari (badge'lar) */
.crat-types { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 9px 0 2px; }
.crat-types-l { font-size: 12px; color: var(--text2); font-weight: 600; }
.crat-pt { font-size: 11.5px; font-weight: 700; color: var(--text);
  background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
body.glass-on .crat-pt { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.16); }


/* Purchase celebration overlay: celebrate */
.celebrate { position: fixed; inset: 0; z-index: 300; pointer-events: none; display: none; }
.celebrate.on { display: block; }
.celebrate-check {
  position: absolute; top: 40%; left: 50%; width: 110px; height: 110px;
  transform: translate(-50%,-50%) scale(.4); opacity: 0;
  animation: ccPop .6s cubic-bezier(.34,1.56,.64,1) forwards, ccFade .38s 1.1s forwards;
  filter: drop-shadow(0 12px 30px rgba(16,185,129,0.5)) drop-shadow(0 0 16px rgba(255,215,0,0.2));
}
.celebrate-check svg { width: 100%; height: 100%; }
.cc-circle { fill: rgba(16,185,129,0.06); stroke: #10B981; stroke-width: 2.5;
  stroke-dasharray: 151; stroke-dashoffset: 151; animation: ccCircle .6s ease forwards; }
.cc-tick { fill: none; stroke: #10B981; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40; animation: ccTick .38s .45s ease forwards; }
@keyframes ccPop { to { transform: translate(-50%,-50%) scale(1); opacity: 1; } }
@keyframes ccFade { to { opacity: 0; } }
@keyframes ccCircle { to { stroke-dashoffset: 0; } }
@keyframes ccTick { to { stroke-dashoffset: 0; } }

.confetti { position: absolute; inset: 0; overflow: hidden; }
.confetti i {
  position: absolute; top: 40%; left: 50%; width: 9px; height: 15px; border-radius: 2px; opacity: 0;
  animation: confettiFly 1.35s cubic-bezier(.15,.65,.3,1) forwards;
}
@keyframes confettiFly {
  0% { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(0) rotateX(0) rotateY(0); }
  60% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.55) rotate(var(--dr)) rotateX(360deg) rotateY(180deg); }
}
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

/* ══════════ Jonli ijtimoiy isbot (pulse) ══════════ */
.hstat-n.hstat-live { color: #34d399; }
.pulse-ticker {
  display: flex; align-items: center; gap: 9px; margin: 12px 0 4px;
  padding: 9px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.pt-live { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 800; letter-spacing: .4px; color: #34d399; }
.pt-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: ptPulse 1.8s ease-out infinite; }
@keyframes ptPulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); } 70%,100% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } }
.pt-item { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--text2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .18s ease; }

/* ══════════ Hamyon tarixi (topup oynasida) ══════════ */
.wh-wrap { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.wh-head { font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--text3); margin-bottom: 8px; }
.wh-list { max-height: 210px; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 6px; }
.wh-list::-webkit-scrollbar { display: none; }
.wh-row { display: flex; align-items: center; gap: 11px; padding: 9px 4px; }
.wh-ic { flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.wh-ic.in { background: rgba(52,211,153,0.14); color: #34d399; }
.wh-ic.out { background: var(--surface-2); color: var(--text2); }
.wh-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wh-t { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-d { font-size: 11.5px; color: var(--text3); }
.wh-amt { flex-shrink: 0; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wh-amt.in { color: #34d399; }
.wh-amt.out { color: var(--text2); }

/* ══════════ Reyting — top-3 g'oliblar sahnasi (podium) ══════════ */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin: 8px 0 20px; }
.pod-slot { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pod-slot.pod-empty { opacity: 0; }
.pod-ava { position: relative; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800;
  color: var(--text); background: var(--surface-2); border: 2px solid var(--line-2); margin-bottom: 8px; }
.pod-medal { position: absolute; bottom: -6px; right: -4px; font-size: 18px; line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.pod-name { font-size: 12.5px; font-weight: 800; color: var(--text); max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-amt { font-size: 12.5px; font-weight: 800; color: #FFC83D; margin-top: 2px; font-variant-numeric: tabular-nums; }
.pod-sub { font-size: 10.5px; color: var(--text3); margin-top: 1px; }
.pod-bar {
  width: 100%;
  margin-top: 9px;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  font-size: 18px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 8px 24px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}
.pod-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, transparent 100%);
  pointer-events: none;
}
.p1 .pod-ava { width: 66px; height: 66px; font-size: 22px; border-color: #FFD15C; box-shadow: 0 0 0 3px rgba(255,209,92,0.22); }
.p1 .pod-bar {
  height: 76px;
  background: linear-gradient(180deg, #FFE07D 0%, #F5A623 50%, #D37D00 100%);
  color: #3b2400;
  border-color: rgba(255, 224, 125, 0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 8px 30px rgba(245,166,35,0.22);
}
.p2 .pod-bar {
  height: 58px;
  background: linear-gradient(180deg, #E6ECF5 0%, #A3B1C2 50%, #7A899C 100%);
  color: #1a222d;
  border-color: rgba(230, 236, 245, 0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 8px 24px rgba(163,177,194,0.14);
}
.p3 .pod-bar {
  height: 44px;
  background: linear-gradient(180deg, #F0C49E 0%, #C78354 50%, #945226 100%);
  color: #2b1404;
  border-color: rgba(240, 196, 158, 0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 8px 20px rgba(199,131,84,0.12);
}
.pod-slot.me .pod-name { color: #34d399; }
.pod-slot.me .pod-ava { border-color: #34d399; }

/* ══════════ Xarid cheki (rasm) modali ══════════ */
.rcpt-preview { display: flex; justify-content: center; margin: 4px 0 16px; }
.rcpt-preview img {
  width: 100%; max-width: 300px; height: auto; display: block;
  box-shadow: 0 16px 42px rgba(255, 203, 46, 0.22);
}
#receiptShare .ic, #receiptSave .ic { display: inline-flex; align-items: center; }

/* ══════════ BOOST (kanal/guruh) ══════════ */
.svc-boost .svc-ic { color: #a78bfa; }
.boost-avail { display: flex; align-items: center; gap: 9px; margin: 4px 0 14px; padding: 12px 14px;
  border-radius: 14px; background: rgba(167,139,250,0.10); border: 1px solid rgba(167,139,250,0.25); }
.boost-avail .ba-ic { color: #a78bfa; display: flex; }
.boost-avail .ba-txt { font-size: 14px; color: var(--text2); }
.boost-avail .ba-txt b { color: #a78bfa; font-weight: 800; }
.boost-lbl { display: block; font-size: 12.5px; font-weight: 700; color: var(--text3); margin: 14px 0 7px; }
.boost-inp { display: flex; align-items: center; gap: 4px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 13px; padding: 0 14px; height: 50px; transition: border-color var(--t); }
.boost-inp:focus-within { border-color: var(--gold); }
.boost-at { color: var(--text3); font-size: 15px; font-weight: 700; flex-shrink: 0; }
.boost-inp input { flex: 1; height: 100%; font-size: 15px; font-weight: 600; color: var(--text); background: none; }
.boost-inp.boost-count { font-variant-numeric: tabular-nums; }
.boost-inp.boost-count { padding-left: 16px; }
.boost-hint { font-size: 11.5px; color: var(--text3); margin-top: 6px; }
.boost-hint b { color: #a78bfa; }
.boost-days { display: flex; gap: 8px; flex-wrap: wrap; }
.boost-day { flex: 1; min-width: 72px; padding: 11px 6px; border-radius: 12px; font-size: 13.5px; font-weight: 700;
  color: var(--text2); background: var(--surface); border: 1px solid var(--line-2); transition: all var(--t); white-space: nowrap; }
.boost-day.active { background: rgba(167,139,250,0.15); border-color: #a78bfa; color: #a78bfa; }
.boost-total { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 12px;
  padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.boost-total span { font-size: 14px; color: var(--text2); font-weight: 600; }
.boost-total b { font-size: 18px; font-weight: 800; color: var(--gold); }
.boost-chk { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; font-weight: 600; }
.boost-chk .ic-in { display: inline-flex; }
.boost-chk.checking { color: var(--text3); }
.boost-chk.ok { color: #34d399; }
.boost-chk.ok b { color: var(--text); font-weight: 800; }
.boost-chk.err { color: #ef6d6a; }

/* ── Boost yangiligi banneri (konkurs banneri dizaynida) ── */
.cb-x { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); color: var(--text3); transition: background var(--t), color var(--t); }
.cb-x svg { width: 14px; height: 14px; }
.cb-x:active { background: rgba(255,255,255,0.14); color: var(--text); }


/* ══════════ ADVANCED COMPONENT UPGRADES ══════════ */

/* Segment Slider backings */
.seg {
  position: relative;
  overflow: hidden;
}
.seg-thumb {
  position: absolute;
  top: 3px; bottom: 3px; left: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--r-pill);
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), width 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 0;
}
.seg-btn {
  position: relative;
  z-index: 1;
  background: none !important;
  box-shadow: none !important;
  transition: color var(--t);
}
.seg-btn.active {
  color: var(--gold) !important;
  font-weight: 800 !important;
}

/* PREMIUM LIGHT GLASS THEME */
body.light-mode {
  --bg: #FAF8F5;
  --text: #1E293B;
  --text2: #64748B;
  --text3: #94A3B8;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-2: rgba(255, 255, 255, 0.8);
  --line: rgba(229, 148, 0, 0.1);
  --line-2: rgba(229, 148, 0, 0.16);
  --gold: #D97706;
  --gold-bg: rgba(251, 191, 36, 0.1);
  --gold-d: #B45309;
  background:
    radial-gradient(130% 60% at 50% 10%, rgba(245,166,35,0.08), transparent 50%),
    radial-gradient(100% 50% at 100% 15%, rgba(217, 119, 6, 0.05), transparent 45%),
    radial-gradient(90% 60% at 0% 25%, rgba(180, 83, 9, 0.04), transparent 50%),
    linear-gradient(180deg, #FAF8F5 0%, #F4EFE6 50%, #ECE6D9 100%);
}
body.light-mode.glass-on .input,
body.light-mode.glass-on .pkg,
body.light-mode.glass-on .prem-card,
body.light-mode.glass-on .gift-card,
body.light-mode.glass-on .order-item,
body.light-mode.glass-on .lrow,
body.light-mode.glass-on .faq-item,
body.light-mode.glass-on .settings,
body.light-mode.glass-on .hero-stats,
body.light-mode.glass-on .pstat-root,
body.light-mode.glass-on .profile-card,
body.light-mode.glass-on .expander,
body.light-mode.glass-on .pill,
body.light-mode.glass-on .btn-dark,
body.light-mode.glass-on .tb-support,
body.light-mode.glass-on .svc-card,
body.light-mode.glass-on .contest-banner,
body.light-mode.glass-on .period-tabs,
body.light-mode.glass-on .seg {
  -webkit-backdrop-filter: blur(12px) saturate(180%) brightness(1.02);
  backdrop-filter: blur(12px) saturate(180%) brightness(1.02);
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.3) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.012'/%3E%3C/svg%3E");
  border-color: rgba(229, 148, 0, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 18px rgba(180, 83, 9, 0.04);
}
body.light-mode::before {
  background: radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 10% 80%, rgba(217, 119, 6, 0.05) 0%, transparent 45%);
}
body.light-mode .bnav {
  background: rgba(255, 255, 255, 0.72);
  border-top-color: rgba(229, 148, 0, 0.12);
}
body.light-mode .bnav-item.active {
  color: #D97706;
}
body.light-mode .topbar {
  background: rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(229, 148, 0, 0.08);
}
body.light-mode .tg-gate,
body.light-mode .start-gate {
  background: rgba(250, 248, 245, 0.96);
}
body.light-mode .seg-thumb {
  background: rgba(229, 148, 0, 0.08);
}

/* Light Mode top bar Segment and Balance elements styling */
body.light-mode .tb-seg {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(229, 148, 0, 0.18);
  box-shadow: 0 2px 10px rgba(180, 83, 9, 0.05);
}
body.light-mode .tb-balance {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(229, 148, 0, 0.18);
  box-shadow: 0 2px 10px rgba(180, 83, 9, 0.05);
}
body.light-mode .tb-seg-btn { color: var(--text2); }
body.light-mode .tb-seg-thumb { box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2); }

/* ══════════ Buyurtma holati timeline (#3) — gorizontal ══════════ */
.od-timeline { display: flex; align-items: flex-start; margin: 6px 2px 16px; padding: 2px 0 0; }
.tl-step { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.tl-step::before {   /* ulovchi chiziq — keyingi qadamgacha gorizontal */
  content: ''; position: absolute; z-index: 0; top: 10px; left: 50%; right: -50%; height: 2px;
  background: var(--line-2);
}
.tl-step.tl-last::before { display: none; }
.tl-dot {
  position: relative; z-index: 1; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 2px solid var(--line-2); color: #fff;
  transition: background var(--t), border-color var(--t);
}
.tl-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 3px; }
.tl-k { font-size: 11px; font-weight: 600; color: var(--text2); line-height: 1.25; }
.tl-at { font-size: 9.5px; font-weight: 500; color: var(--text3); line-height: 1.2; }
.tl-sub { font-size: 9.5px; font-weight: 500; color: var(--red); line-height: 1.2; }
/* Bajarilgan qadam */
.tl-done .tl-dot { background: var(--green); border-color: var(--green); }
.tl-done .tl-k { color: var(--text); }
.tl-done::before { background: var(--green); }
/* Joriy (aktiv) qadam — pulslanuvchi */
.tl-active .tl-dot { background: var(--gold); border-color: var(--gold); color: var(--on-gold); animation: tlPulse 1.5s ease-in-out infinite; }
.tl-active .tl-k { color: var(--text); font-weight: 700; }
/* Kutilayotgan qadam — kulrang (default) */
.tl-wait .tl-dot { background: var(--surface); }
/* Xato / bekor */
.tl-err .tl-dot { background: var(--red); border-color: var(--red); }
.tl-err .tl-k { color: var(--red); }
@keyframes tlPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,203,46,0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(255,203,46,0); }
}
body.light-mode .tl-dot { color: #fff; }
body.light-mode .tl-active .tl-dot { color: var(--on-gold); }

/* ══════════ Boost "Mening boostlarim" holat + progress (#9) ══════════ */
.boost-mine { display: block; padding-bottom: 10px; }
.boost-mine-st { flex-shrink: 0; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.boost-mine-st.on  { color: var(--green); background: rgba(62,209,124,0.14); }
.boost-mine-st.off { color: var(--text3); background: rgba(255,255,255,0.06); }
.boost-prog { height: 5px; border-radius: 5px; background: var(--line-2); overflow: hidden; margin: 4px 12px 0 42px; }
.boost-prog-bar { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--gold-d), var(--gold)); transition: width 0.4s ease; }
.boost-prog-bar.done { background: var(--text3); }
.boost-mine-foot { display: flex; justify-content: space-between; gap: 8px; margin: 6px 12px 0 42px; font-size: 11.5px; font-weight: 500; color: var(--text3); }
body.light-mode .boost-mine-st.off { background: rgba(0,0,0,0.05); }

/* ══════════ Modal balans ogohlantirishi (#20) ══════════ */
.mbal-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.mbal-note .mbal-have { display: flex; align-items: center; gap: 6px; color: var(--text2); }
.mbal-note.low { background: rgba(255,90,90,0.10); border-color: rgba(255,90,90,0.28); }
.mbal-note.low .mbal-have { color: var(--text); }
.mbal-short { color: var(--red); font-weight: 700; white-space: nowrap; }
/* Balans yetmaganda "Balans bilan to'lash" tugmasi → "to'ldirish" ko'rinishi */
.sheet-pay.needtop { background: var(--surface-2); color: var(--gold); border: 1px solid rgba(255,203,46,0.35); }
.sheet-pay.needtop .ic { color: var(--gold); }

/* ══════════ Pull-to-refresh (#14) ══════════ */
.ptr-ind { height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: height 0.2s ease; }
.ptr-spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--gold); opacity: 0.5; transform: rotate(0deg); transition: opacity 0.2s; }
.ptr-ind.ready .ptr-spin { opacity: 1; }
.ptr-ind.spinning .ptr-spin { opacity: 1; animation: ptrSpin 0.7s linear infinite; }
@keyframes ptrSpin { to { transform: rotate(360deg); } }

/* Onboarding dialog */
.onb-overlay {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(4, 6, 10, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transition: opacity 0.28s ease;
}
.onb-overlay.open { opacity: 1; }
.onb-card {
  position: relative; width: 100%; max-width: 480px;
  background: rgba(19, 26, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px 28px 0 0; padding: 30px 22px calc(20px + env(safe-area-inset-bottom, 0px)); text-align: center;
  transform: translateY(30px); transition: transform 0.32s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
}
.onb-overlay.open .onb-card { transform: translateY(0); }
.onb-skip { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text3); font-size: 13px; font-weight: 600; cursor: pointer; }
.onb-slides { position: relative; min-height: 210px; }
.onb-slide { display: none; flex-direction: column; align-items: center; gap: 12px; animation: viewEntrance 0.3s ease both; }
.onb-slide.on { display: flex; }
.onb-ic {
  min-width: 92px; width: auto; max-width: 100%; height: 92px; padding: 0 18px; border-radius: 26px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-bg); color: var(--gold); margin: 6px auto 4px;
  animation: onbFloat 4s ease-in-out infinite alternate;
}
@keyframes onbFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}
.onb-svcs { display: flex; gap: 12px; align-items: center; justify-content: center; color: var(--gold); flex-wrap: nowrap; }
.onb-svcs .ic-in { display: inline-flex; }
.onb-shield { color: var(--green); }
.onb-t { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; padding: 0 8px; }
.onb-b { font-size: 14px; font-weight: 500; color: var(--text2); line-height: 1.6; padding: 0 10px; max-width: 340px; }
.onb-dots { display: flex; gap: 7px; justify-content: center; margin: 20px 0 18px; }
.onb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: all var(--t); }
.onb-dot.on { width: 20px; border-radius: 4px; background: var(--gold); box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
.onb-next {
  width: 100%; height: 52px; border: none; border-radius: 16px;
  background: linear-gradient(135deg, #FFE066 0%, #FFB900 50%, #E59400 100%);
  color: var(--on-gold);
  font-size: 15.5px; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 20px rgba(229,148,0,0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all var(--t);
}
.onb-next:active { transform: scale(0.97); box-shadow: 0 3px 10px rgba(229, 148, 0, 0.15); }

/* ══════════ Offline banner (#30) ══════════ */
.offline-bar { position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -140%);
  z-index: 320; display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 22px;
  background: #2a1416; border: 1px solid rgba(255,90,90,0.4); color: #ffd7d7; font-size: 13px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4); transition: transform 0.3s cubic-bezier(0.25,1,0.5,1); white-space: nowrap; }
.offline-bar.on { transform: translate(-50%, 0); }
.off-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: tlPulse 1.4s ease-in-out infinite; }

/* ══════════ Sovg'a preview (#21) ══════════ */
.gift-card { position: relative; }
.gift-zoom { position: absolute; top: 6px; left: 6px; z-index: 2; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.28); color: #fff; opacity: 0.55;
  transition: opacity var(--t), background var(--t); }
.gift-zoom:active { opacity: 1; background: rgba(0,0,0,0.5); }
body.light-mode .gift-zoom { background: rgba(0,0,0,0.12); color: var(--text2); }
.giftpv-overlay { position: fixed; inset: 0; z-index: 310; display: flex; align-items: center; justify-content: center;
  background: rgba(6,10,19,0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.24s ease; padding: 24px; }
.giftpv-overlay.open { opacity: 1; }
.giftpv-card { position: relative; width: 100%; max-width: 300px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 24px; padding: 26px 22px 22px; text-align: center;
  transform: scale(0.9); transition: transform 0.28s cubic-bezier(0.25,1.3,0.5,1); }
.giftpv-overlay.open .giftpv-card { transform: scale(1); }
.giftpv-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; border: none;
  background: var(--surface-2); color: var(--text2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.giftpv-stage { width: 150px; height: 150px; margin: 4px auto 14px; display: flex; align-items: center; justify-content: center; }
.giftpv-stage img { width: 100%; height: 100%; object-fit: contain; animation: giftPvIn 0.4s ease both; }
.giftpv-stage video, .giftpv-anim, .giftpv-anim canvas { width: 100%; height: 100%; object-fit: contain; }
.giftpv-anim { display: flex; align-items: center; justify-content: center; animation: giftPvIn 0.4s ease both; }
.giftpv-emoji { font-size: 96px; line-height: 1; }
@keyframes giftPvIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* Statik webp uchun yengil "nafas olish" — animatsion fayl bo'lmaganda jonli ko'rinsin */
.giftpv-breathe { animation: giftPvIn 0.4s ease both, giftBreathe 2.8s ease-in-out 0.4s infinite !important; transform-origin: center bottom; }
@keyframes giftBreathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  35%      { transform: scale(1.06) rotate(-1.5deg); }
  70%      { transform: scale(1.03) rotate(1.5deg); }
}
.giftpv-exc { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
  color: var(--gold); background: var(--gold-bg); }
.giftpv-price { font-size: 20px; font-weight: 800; color: var(--text); display: flex; align-items: center; justify-content: center; gap: 5px; }
.giftpv-som { font-size: 14px; font-weight: 600; color: var(--text2); margin-top: 3px; }
.giftpv-select { width: 100%; height: 48px; margin-top: 18px; border: none; border-radius: 14px; background: var(--gold);
  color: var(--on-gold); font-size: 15px; font-weight: 800; cursor: pointer; transition: transform 0.12s; }
.giftpv-select:active { transform: scale(0.98); }

/* ══════════ "Bosh ekranga qo'shish" tugmasi (#26) ══════════ */
.set-cta { height: 32px; padding: 0 16px; border: none; border-radius: 20px; background: var(--gold); color: var(--on-gold);
  font-size: 13px; font-weight: 700; cursor: pointer; transition: transform 0.12s, opacity var(--t); }
.set-cta:active { transform: scale(0.96); }
.set-cta.done { background: var(--surface-2); color: var(--text3); }

/* ══════════ E'lonlar / yangiliklar markazi (#10) ══════════ */
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-card { display: flex; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.news-card.pinned { border-color: rgba(255,203,46,0.32); background: linear-gradient(180deg, var(--gold-bg), var(--surface)); }
.news-emoji { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--surface-2); }
.news-card.pinned .news-emoji { background: rgba(255,203,46,0.16); }
.news-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.news-title { font-size: 14.5px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }
.news-body { font-size: 13px; font-weight: 500; color: var(--text2); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.news-link { align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 6px 12px; border: none; border-radius: 20px;
  background: var(--gold); color: var(--on-gold); font-size: 12.5px; font-weight: 700; cursor: pointer; transition: transform 0.12s; }
.news-link:active { transform: scale(0.97); }
.news-link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
body.light-mode .news-emoji { background: rgba(0,0,0,0.05); }

/* Bo'sh hint joy egallamasin (input va "Yaqinda" orasida ortiqcha bo'shliq bo'lmasin) */
.hint:empty { display: none; }

/* Qabul qiluvchi topildi — input TAGIDA katta karta (input va "Yaqinda" orasida; qulflamaydi) */
.hint.found {
  margin-top: 10px; padding: 9px 12px; gap: 11px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
  color: var(--text); font-weight: 600;
}
.rcp-fav { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2b3a5c, #1c2840); border: 1px solid var(--line-2); color: var(--gold); font-weight: 700; font-size: 15px; text-transform: uppercase; }
.rcp-fav img { width: 100%; height: 100%; object-fit: cover; }
.rcp-fname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.rcp-fyou { color: var(--text3); font-weight: 500; font-size: 13px; }
.rcp-fok { display: inline-flex; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; color: #fff; background: var(--green); margin-left: auto; }
.rcp-fok svg { width: 15px; height: 15px; }
body.light-mode .rcp-fav { background: linear-gradient(135deg, #e8eef7, #d5e0f0); color: var(--gold-d); }
