/* ═══════════════════════════════════════════════════════════════════
   MUNI UC — Telegram Mini App
   Dizayn: toza tiniq fon (naqshsiz), ixcham va o'qilishi oson tugmalar,
   Play Market uslubidagi o'yinlar ro'yxati. Kunduzgi va tungi rejim.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --f-head: "Unbounded", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-xl: 20px;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 12px;
  --top-h: 58px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* Ranglar: yorug' / asosiy (oq matn bilan kontrast ≥ 4.5) / qirra */
  --violet-1: #a78bfa; --violet-2: #6d28d9; --violet-e: #4c1d95;
  --green-1: #4ade80;  --green-2: #15803d;  --green-e: #14532d;
  --orange-1: #fdba74; --orange-2: #c2410c; --orange-e: #7c2d12;
  --red-1: #fda4af;    --red-2: #be123c;    --red-e: #881337;
  --cyan-1: #67e8f9;   --cyan-2: #0e7490;   --cyan-e: #164e63;
  --blue-1: #93c5fd;   --blue-2: #1d4ed8;   --blue-e: #1e3a8a;
  --gold-1: #fde68a;   --gold-2: #f59e0b;   --gold-e: #b45309;
  --pink-1: #f9a8d4;   --pink-2: #be185d;   --pink-e: #831843;
  --sky-1: #7dd3fc;    --sky-2: #0369a1;    --sky-e: #0c4a6e;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fb;
  --card: #ffffff;
  --card-2: #f6f7fb;
  --card-3: #eceff6;
  --line: #e3e6ef;
  --edge: #d6dae6;
  --text: #0f1222;
  --text-2: #444a65;
  --text-3: #686e88;
  --field: #f3f5fa;
  --glass: rgba(244, 246, 251, .9);
  --shadow: 0 12px 28px -18px rgba(15, 18, 50, .28);
  --shadow-sm: 0 6px 16px -12px rgba(15, 18, 50, .24);
  --overlay: rgba(10, 12, 30, .45);
  --accent: #6d28d9;
  --sky-tint: rgba(2, 132, 199, .1);
  --sky-text: #0369a1;
  --price: #9a5b00;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f1c;
  --card: #151a2b;
  --card-2: #1a2034;
  --card-3: #20273e;
  --line: #283049;
  --edge: #070a14;
  --text: #f2f4fb;
  --text-2: #b9bfd8;
  --text-3: #8f96b4;
  --field: #10152a;
  --glass: rgba(11, 15, 28, .9);
  --shadow: 0 16px 32px -16px rgba(0, 0, 0, .7);
  --shadow-sm: 0 8px 18px -12px rgba(0, 0, 0, .65);
  --overlay: rgba(2, 4, 12, .62);
  --accent: #a78bfa;
  --sky-tint: rgba(56, 189, 248, .15);
  --sky-text: #7dd3fc;
  --price: #fcd34d;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
/* Fon — faqat tiniq toza rang (naqsh/katak yo'q) */
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
svg.ic.sm { width: 16px; height: 16px; }
svg.ic.xs { width: 13px; height: 13px; stroke-width: 2.6; }
svg.ic.lg { width: 26px; height: 26px; }
svg.ic.xl { width: 34px; height: 34px; stroke-width: 2; }
.hidden { display: none !important; }
.mono { font-family: var(--f-mono); letter-spacing: .3px; }

/* ───────── rang-barang «o'ynab turadigan» nom (MUNI UC) ───────── */
.brand-name, .splash-logo, .reg-brand {
  background-image: linear-gradient(90deg, #7c3aed, #db2777, #ea580c, #ca8a04, #16a34a, #0891b2, #2563eb, #7c3aed);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: brandflow 5s linear infinite;
}
html[data-theme="dark"] .brand-name, html[data-theme="dark"] .splash-logo, html[data-theme="dark"] .reg-brand {
  background-image: linear-gradient(90deg, #a78bfa, #f472b6, #fb923c, #facc15, #4ade80, #22d3ee, #60a5fa, #a78bfa);
}
@keyframes brandflow { to { background-position: 200% center; } }

/* ───────── splash ───────── */
.splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.splash-logo { font: 800 28px/1.1 var(--f-head); letter-spacing: 1px; }
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3.5px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
.spinner.sm { width: 18px; height: 18px; border-width: 2.5px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── yuqori panel ───────── */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  height: var(--top-h); padding: 0 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.top-menu {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: 12px; cursor: pointer; color: var(--text);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 2px 0 var(--edge);
  transition: transform .09s var(--ease), box-shadow .09s var(--ease);
}
.top-menu:active { transform: translateY(1px); box-shadow: 0 0 0 1px var(--line); }
.brand {
  flex: 0 1 auto; min-width: 0;
  display: flex; align-items: center;
  padding: 6px 4px; margin: 0; border: 0; background: transparent; cursor: pointer;
  border-radius: 10px;
  -webkit-user-select: none; user-select: none;
}
.brand:active .brand-name { transform: scale(.96); }
.brand-name {
  display: block;
  font: 800 20px/1.15 var(--f-head);
  letter-spacing: .8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform .15s var(--spring);
}
.bal-chip {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px 0 5px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 800 14px/1 var(--f-body); color: #3b2300;
  background: linear-gradient(180deg, #fcd34d, #f59e0b);
  box-shadow: 0 2px 0 var(--gold-e), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .09s var(--ease), box-shadow .09s var(--ease);
  max-width: 50vw;
}
.bal-chip:active { transform: translateY(2px); box-shadow: 0 0 0 var(--gold-e), inset 0 1px 0 rgba(255, 255, 255, .45); }
.bal-chip .coin {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: #7a4100;
  background: radial-gradient(circle at 35% 30%, #fff7cf, #ffd24d 60%, #f0a000);
  box-shadow: inset 0 -2px 0 rgba(150, 80, 0, .3);
}
.bal-chip .bal-v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bal-chip.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.1); } }

/* ───────── chap menyu ───────── */
.overlay { position: fixed; inset: 0; z-index: 40; background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 41;
  width: min(86vw, 320px);
  display: flex; flex-direction: column;
  background: var(--card);
  border-radius: 0 22px 22px 0;
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s;
  overflow: hidden;
}
/* Soya faqat ochiq holatda — yopiq menyuning soyasi ekran chetiga tushmasin */
.drawer.open { transform: none; visibility: visible; transition: transform .3s var(--ease); box-shadow: 24px 0 60px -24px rgba(0, 0, 0, .45); }
.drawer-head {
  position: relative;
  padding: 20px 18px 16px;
  color: #fff;
  background: linear-gradient(135deg, #5b21b6 0%, #7e22ce 55%, #be185d 100%);
  overflow: hidden;
}
.drawer-close {
  position: absolute; right: 12px; top: 12px; z-index: 1;
  width: 34px; height: 34px; border: 0; border-radius: 10px; cursor: pointer; color: #fff;
  display: grid; place-items: center; background: rgba(255, 255, 255, .18);
}
.drawer-brand { font: 800 19px/1 var(--f-head); letter-spacing: .6px; margin-bottom: 14px; position: relative; z-index: 1; }
.drawer-user { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.avatar {
  width: 46px; height: 46px; flex: none; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center;
  font: 800 17px/1 var(--f-head); color: #fff;
  background: linear-gradient(135deg, #0891b2, #4f46e5);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.drawer-user-name { font-weight: 800; font-size: 16px; line-height: 1.2; }
.drawer-user-bal { margin-top: 3px; font-size: 13px; font-weight: 700; opacity: .92; }
.nav { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 8px 10px 8px 8px;
  border: 0; border-radius: 14px; cursor: pointer; text-align: left;
  background: transparent; color: var(--text);
  font-weight: 700; font-size: 15px;
  transition: background .12s;
}
.nav-item:active { background: var(--card-3); }
.nav-item.active { background: var(--card-3); box-shadow: inset 3px 0 0 var(--accent); }
.nav-item .chev { margin-left: auto; color: var(--text-3); }
.nav-ico {
  width: 36px; height: 36px; flex: none; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
  --c1: var(--violet-1); --c2: var(--violet-2); --ce: var(--violet-e);
  background: linear-gradient(180deg, var(--c1) -60%, var(--c2) 75%);
}
.nav-ico .ic { width: 18px; height: 18px; }
.drawer-foot { padding: 12px 14px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.foot-row { display: flex; align-items: center; gap: 10px; }
.foot-label { display: flex; align-items: center; gap: 6px; width: 74px; flex: none; font-size: 12px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .4px; }
.seg { flex: 1; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card-3); }
.seg button {
  flex: 1; min-height: 34px; border: 0; border-radius: 9px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; color: var(--text-2); font-weight: 700; font-size: 13px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 0 var(--edge), 0 4px 10px -6px rgba(0, 0, 0, .3); }

/* ───────── sahifa ───────── */
.view { padding: 16px 14px calc(28px + var(--safe-b)); max-width: 640px; margin: 0 auto; animation: fadeUp .25s var(--ease); }
.view.has-bar { padding-bottom: calc(110px + var(--safe-b)); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { margin: 2px 2px 16px; }
.h1 { margin: 0; font: 700 20px/1.25 var(--f-head); letter-spacing: .2px; }
.sub { margin: 6px 0 0; color: var(--text-2); font-size: 14px; font-weight: 600; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 2px 10px; font: 700 15px/1.2 var(--f-head); }
.section-title .count { font: 700 12px/1 var(--f-body); color: var(--text-2); background: var(--card-3); padding: 6px 10px; border-radius: 999px; }

.card {
  background: var(--card);
  border-radius: var(--r-xl);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
}
.card-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 15px/1.25 var(--f-head); }
.step-num {
  width: 26px; height: 26px; flex: none; border-radius: 8px;
  display: grid; place-items: center;
  font: 800 13px/1 var(--f-body); color: #fff;
  background: var(--violet-2);
}

/* ───────── tugmalar: ixcham, matni aniq o'qiladi ───────── */
.btn {
  --c2: var(--violet-2); --ce: var(--violet-e);
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; margin-bottom: 3px;
  border-radius: 14px;
  font: 700 15px/1.2 var(--f-body); color: #fff; letter-spacing: .1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 70%), var(--c2);
  box-shadow: 0 3px 0 var(--ce), 0 8px 16px -12px var(--c2);
  transition: transform .09s var(--ease), box-shadow .09s var(--ease), filter .2s;
  -webkit-user-select: none; user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ce); }
.btn:disabled { filter: grayscale(.6) opacity(.5); cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 12px; border-radius: 11px; font-size: 13.5px; margin-bottom: 2px; box-shadow: 0 2px 0 var(--ce); }
.btn.sm:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 var(--ce); }
.btn.green { --c2: var(--green-2); --ce: var(--green-e); }
.btn.orange { --c2: var(--orange-2); --ce: var(--orange-e); }
.btn.red { --c2: var(--red-2); --ce: var(--red-e); }
.btn.cyan { --c2: var(--cyan-2); --ce: var(--cyan-e); }
.btn.blue { --c2: var(--blue-2); --ce: var(--blue-e); }
.btn.sky { --c2: var(--sky-2); --ce: var(--sky-e); }
.btn.pink { --c2: var(--pink-2); --ce: var(--pink-e); }
.btn.gold { --c2: var(--gold-2); --ce: var(--gold-e); color: #2e1b00; }
.btn.ghost {
  color: var(--text);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 2px 0 var(--edge);
}
.btn.ghost:active:not(:disabled) { box-shadow: 0 0 0 1px var(--line); }
.btn .spinner { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
.btn.ghost .spinner { border-color: var(--line); border-top-color: var(--accent); }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }

/* ───────── maydonlar ───────── */
.label { display: block; margin: 0 2px 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.field {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 8px 0 14px;
  border-radius: 14px;
  background: var(--field);
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: box-shadow .15s;
  margin-bottom: 14px;
}
.field:focus-within { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 3px rgba(124, 58, 237, .14); }
.field.bad { box-shadow: inset 0 0 0 2px var(--red-2), 0 0 0 3px rgba(225, 29, 72, .12); }
.field > .ic { color: var(--text-3); }
.field input, .field select, .field textarea {
  flex: 1; min-width: 0;
  border: 0; outline: none; background: transparent;
  font: 600 16px/1.3 var(--f-body); color: var(--text);
  padding: 12px 0;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); font-weight: 500; }
.field input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 26px; }
.field .sel-arrow { position: absolute; right: 14px; color: var(--text-3); pointer-events: none; }
.field textarea { resize: none; min-height: 120px; padding: 13px 6px 13px 0; }
.field.ta { align-items: flex-start; padding-top: 0; }
.field.ta > .ic { margin-top: 14px; }
.field-btn { flex: none; }
.field .clear { border: 0; background: transparent; color: var(--text-3); cursor: pointer; padding: 8px; display: grid; place-items: center; }
.counter { margin: -8px 4px 14px; text-align: right; font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.hint { display: flex; align-items: flex-start; gap: 8px; margin: -4px 2px 2px; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.hint .ic { margin-top: 1px; color: var(--green-2); }
.checkline { display: flex; align-items: center; gap: 8px; margin: -6px 2px 14px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 700; }
.checkline.ok { background: rgba(22, 163, 74, .12); color: #15803d; }
.checkline.bad { background: rgba(225, 29, 72, .1); color: #be123c; }
.checkline.info { background: rgba(37, 99, 235, .1); color: #1d4ed8; }
.checkline.wait { background: var(--card-2); color: var(--text-2); }
html[data-theme="dark"] .checkline.ok { color: #86efac; }
html[data-theme="dark"] .checkline.bad { color: #fda4af; }
html[data-theme="dark"] .checkline.info { color: #93c5fd; }

.note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 16px;
  border-radius: 14px;
  font-size: 13px; font-weight: 600; line-height: 1.5;
  background: rgba(37, 99, 235, .08); color: var(--text-2);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .18);
}
.note .ic { color: var(--blue-2); margin-top: 1px; }
html[data-theme="dark"] .note .ic { color: var(--blue-1); }
.note.warn { background: rgba(245, 158, 11, .12); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .3); }
.note.warn .ic { color: var(--gold-e); }
html[data-theme="dark"] .note.warn .ic { color: var(--gold-1); }
.note.left { text-align: left; }
.note b { color: var(--text); }

/* ───────── donat: qidiruv (doim tepada) ───────── */
.search-bar {
  position: sticky; top: var(--top-h); z-index: 20;
  margin: -16px -14px 4px; padding: 12px 14px 8px;
  background: var(--bg);
}
.field.search { margin-bottom: 0; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 2px 0 var(--edge); }
.field.search:focus-within { box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px rgba(124, 58, 237, .12); }

/* ───────── o'yinlar ro'yxati (Play Market uslubi) ───────── */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 4px 8px; }
.sec-title { display: flex; align-items: center; gap: 7px; font: 700 15px/1.25 var(--f-head); }
.sec-title .ic { color: #ea580c; }
html[data-theme="dark"] .sec-title .ic { color: #fb923c; }
.sec-meta { font: 700 12px/1 var(--f-body); color: var(--text-3); white-space: nowrap; }
.glist {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  overflow: hidden;
}
.grow {
  --a1: #8b5cf6; --a2: #ec4899;
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 72px; padding: 10px 12px;
  border: 0; margin: 0; background: transparent; color: var(--text);
  text-align: left; cursor: pointer;
  transition: background .12s;
  animation: rowin .3s var(--ease) both;
}
.grow + .grow::before { content: ""; position: absolute; top: 0; left: 76px; right: 12px; height: 1px; background: var(--line); }
.grow.ranked + .grow.ranked::before { left: 108px; }
.grow:active { background: var(--card-3); }
@keyframes rowin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.grow-rank { width: 20px; flex: none; text-align: center; font: 700 15px/1 var(--f-body); color: var(--text-3); }
.grow-ico {
  position: relative; flex: none;
  width: 52px; height: 52px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(140deg, var(--a1), var(--a2));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.grow-ico img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.grow-ico .game-fb { font-size: 17px; }
.grow-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.grow-name { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow-sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; overflow: hidden; }
.grow-sub > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.grow-tag {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  padding: 3px 6px; border-radius: 6px;
  font: 800 10.5px/1 var(--f-body); letter-spacing: .3px; color: #7a4100;
  background: #fef3c7;
}
html[data-theme="dark"] .grow-tag { color: #fcd34d; background: rgba(245, 158, 11, .16); }
.grow-btn {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 14px; border-radius: 999px;
  font: 700 13px/1 var(--f-body); color: var(--sky-text);
  background: var(--sky-tint);
}
.sk-t { display: block; width: 58%; height: 13px; border-radius: 6px; }
.sk-s { display: block; width: 34%; height: 11px; border-radius: 6px; margin-top: 6px; }
.grow.sk-row { cursor: default; animation: none; }

/* ───────── o'yin rasmi (zaxira — bosh harflar) ───────── */
.game-cover { position: relative; display: block; overflow: hidden; }
img.loading { opacity: 0; }
.game-fb { position: absolute; inset: 0; display: grid; place-items: center; font: 800 20px/1 var(--f-head); color: rgba(255, 255, 255, .96); text-shadow: 0 1px 6px rgba(0, 0, 0, .25); }

.sk { position: relative; overflow: hidden; background: var(--card-3); }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shimmer 1.2s infinite; }
html[data-theme="dark"] .sk::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 70px; border-radius: 16px; margin-bottom: 12px; }

.empty { text-align: center; padding: 30px 16px; }
.empty-ico {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px;
  display: grid; place-items: center; color: #fff;
  --c1: var(--violet-1); --c2: var(--violet-2); --ce: var(--violet-e);
  background: linear-gradient(180deg, var(--c1) -60%, var(--c2) 75%);
  box-shadow: 0 3px 0 var(--ce), 0 12px 22px -14px var(--c2);
}
.empty-title { font: 700 17px/1.3 var(--f-head); margin-bottom: 6px; }
.empty-text { color: var(--text-2); font-size: 14px; font-weight: 600; margin: 0 0 16px; }

/* ───────── o'yin sahifasi ───────── */
.gbanner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 14px; margin-bottom: 16px;
  border-radius: var(--r-xl); color: #fff;
  background: #1e1b4b;
  box-shadow: var(--shadow);
}
.gbanner-bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(22px) saturate(1.3) brightness(.6); transform: scale(1.1); }
.gbanner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 8, 40, .6), rgba(10, 8, 40, .25)); }
.gbanner-img {
  position: relative; z-index: 1;
  width: 72px; height: 72px; flex: none; border-radius: 18px; overflow: hidden;
  background: linear-gradient(140deg, #8b5cf6, #ec4899);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .3), 0 8px 18px -8px rgba(0, 0, 0, .6);
}
.gbanner-img img { width: 100%; height: 100%; object-fit: cover; }
.gbanner-info { position: relative; z-index: 1; min-width: 0; }
.gbanner-name { font: 700 18px/1.25 var(--f-head); margin-bottom: 7px; overflow-wrap: anywhere; }
.gbanner-meta { display: flex; flex-wrap: wrap; gap: 6px; }

.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pack {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-height: 76px; padding: 11px 12px;
  border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; text-align: left;
  background: var(--card-2); color: var(--text);
  transition: transform .09s var(--ease), box-shadow .12s, border-color .12s, background .12s;
}
.pack:active { transform: scale(.98); }
.pack-name { font-weight: 700; font-size: 14.5px; line-height: 1.25; overflow-wrap: anywhere; padding-right: 22px; }
.pack-price { margin-top: auto; font: 800 13.5px/1 var(--f-body); color: var(--price); }
.pack-hot { position: absolute; right: 8px; bottom: 9px; color: var(--orange-2); }
html[data-theme="dark"] .pack-hot { color: #fb923c; }
.pack-tick {
  position: absolute; top: 9px; right: 9px;
  width: 20px; height: 20px; border-radius: 7px;
  display: grid; place-items: center; color: #fff;
  background: var(--line); transition: background .12s, transform .2s var(--spring);
  transform: scale(.85);
}
.pack-tick .ic { opacity: 0; }
.pack.on { border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 1px var(--accent), 0 8px 18px -12px var(--accent); }
.pack.on .pack-tick { background: var(--green-2); transform: scale(1); }
.pack.on .pack-tick .ic { opacity: 1; }
.pack.short .pack-price { color: var(--text-3); }

.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-top: 1px solid var(--line);
}
.buybar-in { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.buybar-info { flex: 1; min-width: 0; }
.buybar-name { font-size: 12.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-price { font: 700 18px/1.2 var(--f-head); }
.buybar .btn { flex: none; }
.shortline { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ───────── pastki oyna (sheet) ───────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: var(--overlay); opacity: 0; transition: opacity .22s var(--ease); }
.sheet-wrap.show { opacity: 1; }
.sheet {
  width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto;
  padding: 8px 18px calc(18px + var(--safe-b));
  border-radius: 24px 24px 0 0;
  background: var(--card);
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .5);
  transform: translateY(100%);
  transition: transform .3s var(--ease);
}
.sheet-wrap.show .sheet { transform: none; }
.sheet-grip { width: 40px; height: 5px; margin: 4px auto 14px; border-radius: 99px; background: var(--line); }
.sheet-title { margin: 0 0 14px; font: 700 18px/1.3 var(--f-head); text-align: center; }
.sheet-text { margin: 0 0 18px; color: var(--text-2); font-weight: 600; text-align: center; }
.rows { border-radius: 16px; background: var(--card-2); padding: 4px 14px; margin-bottom: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.row:last-child { border-bottom: 0; }
.row-k { color: var(--text-2); font-size: 13.5px; font-weight: 600; flex: none; }
.row-v { font-weight: 700; font-size: 14px; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.row.big .row-v { font: 700 18px/1.2 var(--f-head); color: var(--price); }

/* ───────── natija ───────── */
.result { text-align: center; padding: 8px 4px 4px; }
.result-ico {
  width: 80px; height: 80px; margin: 6px auto 16px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  --c1: var(--green-1); --c2: var(--green-2); --ce: var(--green-e);
  background: linear-gradient(180deg, var(--c1) -60%, var(--c2) 75%);
  box-shadow: 0 4px 0 var(--ce), 0 16px 28px -14px var(--c2);
  animation: popin .5s var(--spring);
}
.result-ico.wait { --c1: var(--violet-1); --c2: var(--violet-2); --ce: var(--violet-e); }
.result-ico.wait .ic { animation: spin 1.6s linear infinite; }
.result-ico.bad { --c1: var(--red-1); --c2: var(--red-2); --ce: var(--red-e); }
.result-ico.gold { --c1: var(--gold-1); --c2: var(--gold-2); --ce: var(--gold-e); }
@keyframes popin { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.result-title { font: 700 20px/1.25 var(--f-head); margin-bottom: 8px; }
.result-text { color: var(--text-2); font-weight: 600; margin: 0 0 18px; }
.progress { height: 7px; border-radius: 99px; background: var(--card-3); overflow: hidden; margin: 0 0 18px; }
.progress span { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, var(--violet-2), var(--pink-2)); animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* ───────── toast ───────── */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + var(--safe-b)); z-index: 90;
  display: flex; align-items: center; gap: 9px;
  max-width: calc(100vw - 28px); padding: 11px 15px;
  border-radius: 14px;
  font-weight: 700; font-size: 14px; color: #fff;
  background: #1f2437;
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .5);
  transform: translate(-50%, 30px); opacity: 0;
  transition: transform .3s var(--spring), opacity .2s;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.ok { background: var(--green-2); }
.toast.bad { background: var(--red-2); }

/* ───────── holat yorliqlari ───────── */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 999px;
  font: 700 11.5px/1 var(--f-body); white-space: nowrap;
  background: var(--card-3); color: var(--text-2);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.pending, .pill.processing, .pill.waiting, .pill.review, .pill.open { background: rgba(245, 158, 11, .15); color: #92400e; }
.pill.completed, .pill.paid, .pill.answered { background: rgba(22, 163, 74, .13); color: #166534; }
.pill.refunded, .pill.rejected, .pill.expired, .pill.canceled { background: rgba(225, 29, 72, .11); color: #9f1239; }
.pill.closed { background: var(--card-3); color: var(--text-3); }
html[data-theme="dark"] .pill.pending, html[data-theme="dark"] .pill.processing, html[data-theme="dark"] .pill.waiting,
html[data-theme="dark"] .pill.review, html[data-theme="dark"] .pill.open { color: #fcd34d; }
html[data-theme="dark"] .pill.completed, html[data-theme="dark"] .pill.paid, html[data-theme="dark"] .pill.answered { color: #86efac; }
html[data-theme="dark"] .pill.refunded, html[data-theme="dark"] .pill.rejected, html[data-theme="dark"] .pill.expired, html[data-theme="dark"] .pill.canceled { color: #fda4af; }
.pill.light { background: rgba(255, 255, 255, .2); color: #fff; }
.pill.light::before { display: none; }

/* ───────── buyurtmalar ───────── */
.olist { display: flex; flex-direction: column; gap: 10px; }
.ocard {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px;
  border: 0; border-radius: 18px; cursor: pointer; text-align: left;
  background: var(--card); color: var(--text);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform .09s var(--ease), background .12s;
}
.ocard:active { transform: scale(.99); background: var(--card-2); }
.ocard-img { position: relative; width: 54px; height: 54px; flex: none; border-radius: 14px; overflow: hidden; background: linear-gradient(140deg, #8b5cf6, #ec4899); }
.ocard-img img { width: 100%; height: 100%; object-fit: cover; }
.ocard-img .game-fb { font-size: 16px; }
.ocard-body { flex: 1; min-width: 0; }
.ocard-title { font-weight: 700; font-size: 14.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocard-pack { font-weight: 700; font-size: 13px; color: var(--violet-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-theme="dark"] .ocard-pack { color: #c4b5fd; }
.ocard-sub { font-size: 12px; font-weight: 600; color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocard-side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: none; }
.ocard-price { font-weight: 800; font-size: 13.5px; white-space: nowrap; }

/* ───────── hisobim ───────── */
.profile { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.profile .avatar { width: 60px; height: 60px; border-radius: 18px; font-size: 21px; box-shadow: 0 0 0 3px var(--card), 0 6px 14px -8px rgba(67, 56, 202, .6); }
.profile-name { font: 700 18px/1.25 var(--f-head); overflow-wrap: anywhere; }
.profile-user { font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-top: 3px; }
.kv { border-radius: 16px; background: var(--card-2); padding: 2px 14px; box-shadow: inset 0 0 0 1px var(--line); }
.kv-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.kv-row:last-child { border-bottom: 0; }
.kv-ico { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, var(--c1) -60%, var(--c2) 75%); }
.kv-ico .ic { width: 17px; height: 17px; }
.kv-k { font-size: 12px; font-weight: 600; color: var(--text-3); }
.kv-v { font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
.kv-main { flex: 1; min-width: 0; }
.copy-btn { flex: none; width: 36px; height: 36px; border: 0; border-radius: 11px; cursor: pointer; display: grid; place-items: center; color: var(--text-2); background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 2px 0 var(--edge); }
.copy-btn:active { transform: translateY(1px); box-shadow: 0 0 0 1px var(--line); }
.balcard {
  position: relative; overflow: hidden;
  padding: 16px 18px; margin-bottom: 16px;
  border-radius: var(--r-xl); color: #3b2300;
  background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 45%, #f59e0b 100%);
  box-shadow: 0 10px 26px -16px rgba(180, 83, 9, .7);
}
.balcard::after { content: ""; position: absolute; right: -30px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .5), transparent 65%); }
.balcard-k { position: relative; z-index: 1; font-size: 13px; font-weight: 800; opacity: .85; display: flex; align-items: center; gap: 6px; }
.balcard-v { position: relative; z-index: 1; font: 700 27px/1.15 var(--f-head); margin: 6px 0 12px; overflow-wrap: anywhere; }
.balcard .btn { position: relative; z-index: 1; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.tile { padding: 12px 10px; border-radius: 16px; background: var(--card); text-align: center; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.tile-ico { width: 34px; height: 34px; margin: 0 auto 8px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, var(--c1) -60%, var(--c2) 75%); }
.tile-ico .ic { width: 17px; height: 17px; }
.tile-k { font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.tile-v { font-weight: 800; font-size: 13.5px; margin-top: 2px; overflow-wrap: anywhere; }

/* ───────── hisob to'ldirish ───────── */
.methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.method {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px;
  border: 0; border-radius: 18px; cursor: pointer; text-align: left;
  background: var(--card); color: var(--text);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform .09s var(--ease), background .12s;
}
.method:active:not(:disabled) { transform: scale(.99); background: var(--card-2); }
.method:disabled { opacity: .55; cursor: not-allowed; }
.method-ico { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, var(--c1) -60%, var(--c2) 75%); }
.method-title { font: 700 15px/1.25 var(--f-head); }
.method-desc { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-top: 4px; }
.method .chev { margin-left: auto; color: var(--text-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.chip {
  border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 11px;
  font-weight: 700; font-size: 13px;
  background: var(--card); color: var(--text);
  box-shadow: 0 0 0 1px var(--line), 0 2px 0 var(--edge);
  transition: transform .09s, box-shadow .09s, background .12s, color .12s;
}
.chip:active { transform: translateY(1px); box-shadow: 0 0 0 1px var(--line); }
.chip.on { color: #fff; background: var(--violet-2); box-shadow: 0 2px 0 var(--violet-e); }
.minmax { margin: -6px 2px 16px; font-size: 12.5px; font-weight: 600; color: var(--text-3); }

.inv-amount {
  position: relative; text-align: center;
  padding: 16px 14px; margin-bottom: 16px;
  border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, #0f766e, #15803d 60%, #3f6212);
  box-shadow: 0 12px 26px -16px rgba(21, 128, 61, .8);
}
.inv-amount-k { font-size: 12.5px; font-weight: 800; opacity: .92; text-transform: uppercase; letter-spacing: .5px; }
.inv-amount-v { font: 700 29px/1.15 var(--f-head); margin: 8px 0 12px; letter-spacing: .5px; }
.inv-amount .btn { margin-bottom: 2px; }
.copy-line {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 14px; margin-bottom: 12px;
  border-radius: 16px; background: var(--card-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.copy-line .kv-main .kv-v { font-size: 16px; }
.timer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 2px 8px; font-weight: 700; font-size: 13.5px; color: var(--text-2); }
.timer b { font: 700 18px/1 var(--f-head); color: var(--text); }
.timer-bar { height: 8px; border-radius: 99px; background: var(--card-3); overflow: hidden; margin-bottom: 16px; }
.timer-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-2), var(--gold-2)); transition: width 1s linear; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 16px; padding: 12px; border-radius: 14px; font-weight: 700; color: var(--text-2); background: var(--card-2); }
.pulse { width: 11px; height: 11px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); animation: pulse 1.5s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.upload {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 140px; padding: 16px; margin-bottom: 16px;
  border: 2px dashed var(--line); border-radius: 18px; cursor: pointer;
  background: var(--card-2); color: var(--text-2); font-weight: 700; text-align: center;
  overflow: hidden;
}
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload .ico3d { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--blue-2); }
.upload img { max-height: 260px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.upload.has { border-style: solid; border-color: var(--green-2); }
.hist { display: flex; flex-direction: column; gap: 8px; }
.hist-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.hist-ico { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, var(--c1) -60%, var(--c2) 75%); }
.hist-main { flex: 1; min-width: 0; }
.hist-amount { font-weight: 800; font-size: 14.5px; }
.hist-sub { font-size: 12px; font-weight: 600; color: var(--text-3); margin-top: 2px; }

/* ───────── qoidalar ───────── */
.rules { display: flex; flex-direction: column; gap: 10px; }
.rule { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); animation: fadeUp .3s var(--ease) both; }
.rule-n {
  width: 30px; height: 30px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  font: 800 13.5px/1 var(--f-body); color: #fff;
  background: linear-gradient(180deg, var(--c1) -60%, var(--c2) 75%);
}
.rule-t { font-weight: 600; font-size: 14px; line-height: 1.55; padding-top: 4px; white-space: pre-line; color: var(--text); }

/* ───────── ro'yxatdan o'tish ───────── */
.reg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 0; max-width: 640px; margin: 0 auto; }
.reg-brand { font: 800 19px/1.15 var(--f-head); letter-spacing: .6px; }
.lang-mini { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.lang-mini button { border: 0; cursor: pointer; padding: 7px 9px; border-radius: 9px; font-weight: 700; font-size: 12px; background: transparent; color: var(--text-2); }
.lang-mini button.on { color: #fff; background: var(--violet-2); }
.stepper { display: flex; align-items: center; gap: 8px; margin: 6px 0 18px; }
.st { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.st-dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font: 800 13px/1 var(--f-body); background: var(--card); color: var(--text-3); box-shadow: 0 0 0 1.5px var(--line); }
.st.on { color: var(--text); }
.st.on .st-dot { color: #fff; background: var(--violet-2); box-shadow: none; }
.st.done .st-dot { color: #fff; background: var(--green-2); box-shadow: none; }
.st-line { flex: 1; height: 3px; border-radius: 3px; background: var(--line); margin-bottom: 20px; }
.checkrow {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%; padding: 13px 14px; margin: 18px 0 14px;
  border: 0; border-radius: 16px; cursor: pointer; text-align: left;
  background: var(--card); color: var(--text);
  box-shadow: 0 0 0 1.5px var(--line);
  font-weight: 700; font-size: 14px; line-height: 1.4;
}
.checkrow:disabled { opacity: .5; cursor: not-allowed; }
.checkrow.on { box-shadow: 0 0 0 2px var(--green-2); }
.checkbox {
  width: 26px; height: 26px; flex: none; border-radius: 8px;
  display: grid; place-items: center; color: #fff;
  background: var(--card-3); box-shadow: inset 0 0 0 2px var(--line);
  transition: background .15s, transform .2s var(--spring);
}
.checkbox .ic { opacity: 0; transform: scale(.4); transition: opacity .15s, transform .25s var(--spring); }
.checkrow.on .checkbox { background: var(--green-2); box-shadow: none; transform: scale(1.04); }
.checkrow.on .checkbox .ic { opacity: 1; transform: scale(1); }
.scroll-hint { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-3); margin-bottom: 10px; }
.phone-hero { text-align: center; padding: 10px 6px 4px; }
.phone-hero .empty-ico { --c1: var(--cyan-1); --c2: var(--cyan-2); --ce: var(--cyan-e); }

/* ───────── murojaatlar ───────── */
.tlist { display: flex; flex-direction: column; gap: 10px; }
.tcard {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  width: 100%; padding: 13px 14px;
  border: 0; border-radius: 16px; cursor: pointer; text-align: left;
  background: var(--card); color: var(--text);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform .09s var(--ease), background .12s;
}
.tcard:active { transform: scale(.99); background: var(--card-2); }
.tcard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tcard-title { font-weight: 700; font-size: 14.5px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-last { font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-meta { font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.dot { position: absolute; top: 10px; left: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 0 3px var(--card); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.bubble { max-width: 86%; padding: 10px 13px 8px; border-radius: 16px; font-size: 14px; font-weight: 600; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; color: #fff; border-bottom-right-radius: 6px; background: var(--violet-2); }
.bubble.admin { align-self: flex-start; background: var(--card); border-bottom-left-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.bubble-meta { margin-top: 5px; font-size: 11px; font-weight: 600; opacity: .75; text-align: right; }
.bubble-who { font-size: 11.5px; font-weight: 800; margin-bottom: 3px; color: var(--violet-2); }
html[data-theme="dark"] .bubble-who { color: #c4b5fd; }
.composer { display: flex; align-items: flex-end; gap: 10px; }
.composer .field { flex: 1; margin-bottom: 3px; }
.composer .field textarea { min-height: 48px; max-height: 140px; padding: 13px 0; }
.closed-banner { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 14px; font-weight: 700; color: var(--text-3); background: var(--card-2); margin-bottom: 14px; }

/* ───────── himoya / holat ekranlari ───────── */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 18px; }
.gate-card { width: 100%; max-width: 420px; text-align: center; padding: 26px 20px 20px; border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.gate-card .empty-ico { --c1: var(--blue-1); --c2: var(--blue-2); --ce: var(--blue-e); }
.gate-card.red .empty-ico { --c1: var(--red-1); --c2: var(--red-2); --ce: var(--red-e); }
.gate-card.orange .empty-ico { --c1: var(--orange-1); --c2: var(--orange-2); --ce: var(--orange-e); }
.gate-card .note { text-align: left; }
.gate-card .btn + .btn { margin-top: 8px; }
.gate-bot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 18px; padding: 12px; border-radius: 14px; background: var(--card-2); font: 800 15px/1 var(--f-body); box-shadow: inset 0 0 0 1px var(--line); }
.gate-bot small { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .4px; }
a.btn { text-decoration: none; }

/* ───────── konfetti ───────── */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 3px; animation: fall 1.8s ease-in forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .2; } }

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

/* Rang sinflari — oxirida, boshqa komponentlarning standart rangini bosib o'tadi */
.c-violet { --c1: var(--violet-1); --c2: var(--violet-2); --ce: var(--violet-e); }
.c-green { --c1: var(--green-1); --c2: var(--green-2); --ce: var(--green-e); }
.c-orange { --c1: var(--orange-1); --c2: var(--orange-2); --ce: var(--orange-e); }
.c-red { --c1: var(--red-1); --c2: var(--red-2); --ce: var(--red-e); }
.c-cyan { --c1: var(--cyan-1); --c2: var(--cyan-2); --ce: var(--cyan-e); }
.c-blue { --c1: var(--blue-1); --c2: var(--blue-2); --ce: var(--blue-e); }
.c-gold { --c1: var(--gold-1); --c2: var(--gold-2); --ce: var(--gold-e); }
.c-pink { --c1: var(--pink-1); --c2: var(--pink-2); --ce: var(--pink-e); }
.c-sky { --c1: var(--sky-1); --c2: var(--sky-2); --ce: var(--sky-e); }
