:root {
  --ink: #020817;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --line: #e2e8f0;
  --paper: #ffffff;
  --mist: #f8fafc;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --mint: #d1fae5;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --bad: #b91c1c;
  --bad-soft: #fee2e2;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Sora, Inter, ui-sans-serif, system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --btn-hover: #1e293b;
  --accent-hover: #4338ca;
  --notice-text: #3730a3;
  --on-dark-2: #cbd5e1;
  --on-dark-3: #94a3b8;
  --on-dark-tag: #e0e7ff;
  --on-dark-tag-bg: rgba(255, 255, 255, 0.12);
  --topbar-bg: rgba(255, 255, 255, 0.85);
  --nav-mobile-bg: rgba(255, 255, 255, 0.96);
  --focus-ring: rgba(79, 70, 229, 0.15);
  --page-glow-a: rgba(79, 70, 229, 0.10);
  --page-glow-b: rgba(16, 185, 129, 0.09);
  --brand: #fbbf24;
  --brand-hover: #fcd34d;
  --brand-ink: #1c1917;
  --surface: #f4f5f7;
  --surface-2: #ffffff;
  --tile-bg: linear-gradient(180deg, #2a2b33, #17181d);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #e8edf5;
  --slate-900: #eef2f8;
  --slate-700: #c3cad6;
  --slate-500: #8b95a7;
  --slate-300: #3a3d4b;
  --line: #2a2c37;
  --paper: #121318;
  --mist: #1b1c23;
  --accent: #8b93ff;
  --accent-soft: rgba(139, 147, 255, 0.14);
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.35);
  --btn-hover: #d6dde8;
  --accent-hover: #a5abff;
  --notice-text: #c7cbff;
  --on-dark-2: #334155;
  --on-dark-3: #64748b;
  --on-dark-tag: #3730a3;
  --on-dark-tag-bg: #e0e7ff;
  --topbar-bg: rgba(11, 15, 23, 0.82);
  --nav-mobile-bg: rgba(11, 15, 23, 0.96);
  --focus-ring: rgba(139, 147, 255, 0.25);
  --page-glow-a: rgba(99, 102, 241, 0.14);
  --page-glow-b: rgba(16, 185, 129, 0.07);
  --surface: #1b1c23;
  --surface-2: #24252e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  transition: background-color 0.25s ease, color 0.25s ease;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 30rem at 85% -5%, var(--page-glow-a), transparent 60%),
    radial-gradient(50rem 28rem at -10% 20%, var(--page-glow-b), transparent 60%);
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.topbar { position: sticky; top: 0; z-index: 20; background: var(--topbar-bg); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -0.03em; }
.brand-logo { width: 32px; height: 32px; filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.28)); transition: transform 0.25s ease; }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
.brand-word { color: var(--ink); }
.brand-accent { background: linear-gradient(90deg, #f59e0b, #ea580c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: none; }
.nav a { padding: 8px 14px; border-radius: var(--r-sm); text-decoration: none; font-size: 15px; color: var(--slate-700); }
.nav a:hover { background: var(--mist); }
.nav a.active { color: var(--ink); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--slate-700); cursor: pointer; transition: background 0.15s ease, color 0.15s ease, transform 0.2s ease;
}
.icon-btn:hover { background: var(--mist); color: var(--ink); }
.icon-btn:active { transform: rotate(-20deg) scale(0.94); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--slate-900); color: var(--mist); font-weight: 500; cursor: pointer; text-decoration: none;
  transition: transform 0.08s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn.lg { height: 60px; padding: 0 44px; font-size: 18px; border-radius: 16px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--mist); }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: var(--accent-hover); }
.btn.danger { background: var(--bad); }
.btn.block { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--paper); }
.chip.on { background: var(--slate-900); color: var(--mist); border-color: var(--slate-900); }
button.chip { cursor: pointer; }

.ico { display: inline-block; flex: none; width: 1em; height: 1em; line-height: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18); }

.section { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; }
.muted { color: var(--slate-500); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }

.product {
  display: block; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--paper); text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.product:hover { border-color: var(--slate-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.product .tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.product h3 { font-size: 26px; margin: 16px 0 8px; font-weight: 500; }
.product p { margin: 0 0 20px; color: var(--slate-700); }
.product .from { font-size: 14px; color: var(--slate-500); }
.product.dark { background: var(--slate-900); color: var(--mist); border-color: var(--slate-900); }
.product.dark p { color: var(--on-dark-2); }
.product.dark .tag { background: var(--on-dark-tag-bg); color: var(--on-dark-tag); }
.product.dark .from { color: var(--on-dark-3); }

.steps { counter-reset: s; }
.step { padding: 24px; border-radius: var(--r-md); background: var(--mist); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--display); color: var(--accent); font-weight: 600; font-size: 14px; }
.step h3 { font-size: 19px; margin: 8px 0; font-weight: 500; }
.step p { margin: 0; color: var(--slate-700); font-size: 15px; }

.pack {
  text-align: left; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper);
  cursor: pointer; transition: border-color 0.12s ease, box-shadow 0.12s ease; display: block; width: 100%;
}
.pack:hover { border-color: var(--slate-300); }
.pack.selected { border-color: var(--slate-900); box-shadow: 0 0 0 1px var(--slate-900); }
.pack .amt { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.pack .amt small { font-size: 14px; color: var(--slate-500); font-weight: 500; margin-left: 4px; }
.pack .price { margin-top: 6px; color: var(--slate-700); font-size: 15px; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.panel + .panel { margin-top: 20px; }
.page-title { padding: 40px 0 24px; }
.page-title h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 500; }
.page-title p { color: var(--slate-700); margin: 8px 0 0; }
.breadcrumb { font-size: 14px; color: var(--slate-500); text-decoration: none; display: inline-block; margin-bottom: 12px; }
.layout-2 { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; padding-bottom: 64px; }
.summary { position: sticky; top: 88px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 15px; }
.summary dt { color: var(--slate-500); }
.summary dd { margin: 0; text-align: right; font-weight: 500; word-break: break-word; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.summary .total b { font-family: var(--display); font-size: 26px; font-weight: 600; }

label.field { display: block; margin-bottom: 18px; }
label.field > span { display: block; font-size: 14px; color: var(--slate-700); margin-bottom: 8px; font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--slate-300); border-radius: var(--r-sm);
  background: var(--paper); outline: none; transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
textarea.input { height: auto; padding: 12px 14px; min-height: 96px; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.hint { font-size: 13px; color: var(--slate-500); margin-top: 6px; }
.recipient { display: flex; align-items: center; gap: 10px; min-height: 0; font-size: 14px; }
.recipient:not(:empty) { margin-top: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--mist); width: fit-content; max-width: 100%; }
.recipient-pic { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.recipient-pic.initial { display: grid; place-items: center; background: linear-gradient(135deg, #fbbf24, #f97316); color: #1c1917; font-weight: 600; font-size: 13px; }
.recipient-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipient-ok { color: var(--ok); font-weight: 700; }
.recipient-bad { color: var(--bad); }
.recipient-spin { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--slate-900); border-radius: 50%; animation: rot 0.7s linear infinite; flex: none; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.space { justify-content: space-between; }
.grow { flex: 1; }

.notice { padding: 14px 16px; border-radius: var(--r-md); font-size: 14px; background: var(--accent-soft); color: var(--notice-text); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }

.card-number {
  font-family: var(--display); font-size: 19px; letter-spacing: 0.03em; padding: 16px 18px; border-radius: var(--r-md);
  background: var(--slate-900); color: var(--mist); display: flex; align-items: center; justify-content: space-between; gap: 12px; overflow-wrap: anywhere;
}
.card-number .btn { flex: none; white-space: nowrap; }
@keyframes shine { to { background-position: 200% 0; } }
.bank-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 20px 20px 18px; color: #fff; aspect-ratio: 1.586 / 1; max-width: 400px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 55%, #312e81 100%); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.28);
}
.bank-card.humo { background: linear-gradient(135deg, #0f766e 0%, #0f172a 62%, #1e1b4b 100%); }
.bank-card.uzcard { background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 62%, #1e1b4b 100%); }
.bank-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.12) 48%, transparent 66%); background-size: 250% 100%; animation: shine 6s linear infinite;
}
.bank-card::after {
  content: ''; position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, 0.06); pointer-events: none;
}
.bank-card-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.chip-icon { width: 42px; height: 31px; border-radius: 6px; background: linear-gradient(135deg, #fde68a, #d4a017); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.bank-card-system { font-family: var(--display); font-weight: 600; letter-spacing: 0.14em; font-size: 14px; opacity: 0.9; }
.bank-card-number { position: relative; z-index: 1; font-family: var(--display); font-size: clamp(18px, 6vw, 25px); letter-spacing: 0.1em; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.bank-card-bottom { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.bank-card-bottom small { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.65; margin-bottom: 3px; }
.bank-card-bottom b { font-weight: 500; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; overflow-wrap: anywhere; }
.bank-card-copy {
  flex: none; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.12); color: #fff; font: inherit; font-size: 13px;
  padding: 7px 14px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(4px);
}
.bank-card-copy:hover { background: rgba(255, 255, 255, 0.22); }
.amount-big { font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; }

.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 6px; }
.progress i { height: 4px; border-radius: 4px; background: var(--line); }
.progress i.done { background: var(--slate-900); }
.progress i.live { background: linear-gradient(90deg, var(--slate-900), var(--accent), var(--slate-900)); background-size: 200% 100%; animation: slide 1.4s linear infinite; }
.progress-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; font-size: 12px; color: var(--slate-500); }
@keyframes slide { to { background-position: -200% 0; } }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--mist); color: var(--slate-700); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.info { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.list { display: grid; gap: 10px; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; background: var(--paper); }
.list-item:hover { border-color: var(--slate-300); }
.list-item .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); font-size: 18px; flex: none; }
.list-item .meta { flex: 1; min-width: 0; }
.list-item .meta b { display: block; font-weight: 600; }
.list-item .meta span { font-size: 13px; color: var(--slate-500); }

.empty { text-align: center; padding: 56px 16px; color: var(--slate-500); }

.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 100; }
.toast { padding: 12px 16px; background: var(--slate-900); color: var(--mist); border-radius: var(--r-md); box-shadow: var(--shadow); max-width: 360px; font-size: 14px; }
.toast.bad { background: var(--bad); }

.modal-back { position: fixed; inset: 0; background: rgba(2, 8, 23, 0.45); z-index: 60; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { background: var(--paper); border-radius: var(--r-lg); width: min(640px, 100%); padding: 28px; box-shadow: var(--shadow); max-height: 92vh; overflow-y: auto; }
.modal h3 { font-size: 22px; font-weight: 500; margin-bottom: 16px; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab { padding: 10px 16px; border: 0; background: none; cursor: pointer; color: var(--slate-500); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--ink); border-bottom-color: var(--slate-900); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--slate-500); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--mist); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: var(--mist); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 14px; margin: 0 0 20px; }
.kv dt { color: var(--slate-500); }
.kv dd { margin: 0; word-break: break-word; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.stat h4 { margin: 0 0 12px; font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--slate-500); }
.stat .big { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.stat .sub { font-size: 13px; color: var(--slate-500); margin-top: 6px; }
.stat ul { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 13px; display: grid; gap: 6px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--slate-300); position: relative; transition: background 0.15s ease; margin: 0; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.15s ease; }
.switch input:checked { background: var(--slate-900); }
.switch input:checked::after { transform: translateX(18px); }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; margin-top: 48px; color: var(--slate-500); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.spin { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--slate-900); border-radius: 50%; animation: rot 0.7s linear infinite; margin: 40px auto; }
@keyframes rot { to { transform: rotate(360deg); } }


@media (max-width: 880px) {
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .grid-3, .stat-grid { grid-template-columns: 1fr; }
  .layout-2 { grid-template-columns: 1fr; }
  .summary { position: static; }
  .topbar .wrap { gap: 12px; }
  .top-actions { margin-left: auto; }
  .nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; margin: 0; background: var(--nav-mobile-bg); border-top: 1px solid var(--line); justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); z-index: 30; }
  .nav a { flex: 1; text-align: center; font-size: 13px; padding: 10px 4px; }
  body { padding-bottom: 64px; }
  .btn.lg { height: 54px; padding: 0 32px; font-size: 17px; }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 110px 1fr; }
  .panel { padding: 20px; }
  .top-actions .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.btn.primary { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.btn.primary:hover { background: var(--brand-hover); }
.btn.primary[disabled] { opacity: 0.4; }

.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap.topbar-row { height: 64px; gap: 16px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-family: var(--font); font-weight: 500; font-size: 11px; letter-spacing: 0; color: var(--slate-500); margin-top: 3px; }
.cat-pills { display: flex; gap: 6px; margin-inline: auto; overflow-x: auto; scrollbar-width: none; }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; font-size: 13px; font-weight: 500; color: var(--slate-700); white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.cat-pill:hover { color: var(--ink); border-color: var(--slate-300); }
.cat-pill.active { color: var(--ink); border-color: var(--brand); }
.cat-pill-ico { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); font-size: 14px; }
.cat-pill-ico .ico { width: 20px; height: 20px; }
.cat-pill-ico .ico-uc { width: 24px; height: 17px; }

.search { position: relative; margin: 2px 0 12px; }
.search-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--slate-500); pointer-events: none; }
.search-input {
  width: 100%; height: 48px; padding: 0 16px 0 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  outline: none; font-size: 15px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; display: grid; gap: 4px; }
.search-results:not(:empty) { padding: 6px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.search-item { display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; border-radius: 12px; background: none; cursor: pointer; text-align: left; }
.search-item:hover { background: var(--surface); }
.search-item .tile-art { width: 40px; height: 40px; border-radius: 10px; }
.search-item b { display: block; font-weight: 600; }
.search-item small { color: var(--slate-500); font-size: 13px; }
.search-empty { padding: 12px; color: var(--slate-500); font-size: 14px; }

.banners { margin: 20px 0 8px; }
.banner-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.banner-track::-webkit-scrollbar { display: none; }
.banner {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 168px; padding: 20px; border-radius: 20px;
  text-decoration: none; color: #fff; scroll-snap-align: start; isolation: isolate; transition: transform 0.2s ease;
}
.banner:hover { transform: translateY(-2px); }
.banner.pubg { background: radial-gradient(120% 140% at 85% 30%, #6b4d12 0%, #2a2410 45%, #121212 100%); }
.banner.stars { background: radial-gradient(120% 140% at 85% 30%, #5b3cc4 0%, #2a1b5c 45%, #12101f 100%); }
.banner.wallet { background: radial-gradient(120% 140% at 85% 30%, #0f766e 0%, #123b36 45%, #0f1513 100%); }
.banner-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 4px; max-width: 62%; }
.banner-copy b { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-transform: uppercase; }
.banner-copy span { font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.banner-copy .banner-cta { display: inline-block; width: fit-content; margin-top: 10px; padding: 7px 14px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: 13px; }
.banner-art { position: absolute; z-index: 1; right: 0; top: 0; bottom: 0; width: 48%; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.banner.pubg .banner-art img { height: 128%; width: auto; max-width: none; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); mix-blend-mode: lighten; }
.banner-stars { position: relative; width: 100%; height: 100%; }
.banner-stars .ico { position: absolute; filter: drop-shadow(0 10px 24px rgba(255, 170, 0, 0.45)); }
.banner-stars .ico:nth-child(1) { width: 96px; height: 96px; right: 22%; top: 22%; transform: rotate(-8deg); }
.banner-stars .ico:nth-child(2) { width: 46px; height: 46px; right: 8%; top: 12%; transform: rotate(14deg); opacity: 0.85; }
.banner-stars .ico:nth-child(3) { width: 34px; height: 34px; right: 12%; bottom: 14%; opacity: 0.7; }
.banner-wallet { display: grid; place-items: center; width: 100%; height: 100%; }
.banner-wallet .brand-logo { width: 104px; height: 104px; transform: rotate(-10deg); filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5)); }

.k-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; margin: 16px 0; }
.k-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.k-head h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; }
.k-title { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.k-arrow { font-size: 26px; line-height: 1; color: var(--slate-500); transition: transform 0.15s ease; }
.k-title:hover .k-arrow { transform: translateX(3px); color: var(--ink); }
.k-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.k-chip { flex: none; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; font-size: 14px; font-weight: 500; color: var(--slate-700); }
.k-chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.k-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--slate-500); margin: 18px 0 12px; }
.k-crumbs a { color: inherit; text-decoration: none; }
.k-crumbs a:hover { color: var(--ink); }

.tile-row { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.tile { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--slate-700); text-align: center; }
.tile .tile-art { outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 0.15s ease, transform 0.15s ease; }
.tile:hover .tile-art { transform: translateY(-2px); }
.tile.on { color: var(--ink); }
.tile.on .tile-art { outline-color: var(--brand); }
.tile-art { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; flex: none; }
.tile-art.pubg { background: #17181d; }
.tile-art.pubg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-art.stars { background: radial-gradient(circle at 30% 20%, #6d5dfc, #2b2178 70%); }
.tile-art.stars .ico { width: 58%; height: 58%; filter: drop-shadow(0 4px 10px rgba(255, 170, 0, 0.45)); }
.quick-form { margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--line); }

.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.shelf-item { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.shelf-item .tile-art { width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; margin-bottom: 6px; transition: transform 0.15s ease; }
.shelf-item:hover .tile-art { transform: translateY(-3px); }
.shelf-item b { font-weight: 600; font-size: 15px; }
.shelf-item span { font-size: 13px; color: var(--slate-500); }

.widget .info-line { margin-bottom: 14px; }
.field-row { display: flex; gap: 10px; align-items: center; }
.widget-sub { font-family: var(--display); font-weight: 600; font-size: 17px; margin: 22px 0 12px; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.pack-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: inherit; }
.pack-media {
  position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--tile-bg);
  border: 2px solid transparent; transition: border-color 0.15s ease, transform 0.15s ease;
}
.pack-card:hover .pack-media { transform: translateY(-2px); }
.pack-card.selected .pack-media { border-color: var(--brand); }
.pack-media.stars { background: radial-gradient(120% 120% at 80% 80%, #3b2a8a, #1b1734 70%); }
.pack-media.custom { background: transparent; border: 2px dashed var(--slate-300); }
.pack-card.selected .pack-media.custom { border-style: solid; border-color: var(--brand); }
.pack-num { position: absolute; left: 14px; top: 12px; font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: #fff; }
.pack-media.custom .pack-num { color: var(--ink); }
.pack-num.small { font-size: 18px; }
.pack-art { position: absolute; right: 10px; bottom: 10px; width: 58%; display: grid; place-items: center; font-size: 34px; color: var(--slate-500); }
.pack-art .ico { width: 100%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45)); }
.pack-art .ico-uc { aspect-ratio: 54 / 38; }
.pack-badge { position: absolute; z-index: 2; top: -9px; left: 50%; transform: translateX(-50%); padding: 2px 9px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 700; white-space: nowrap; }
.pack-meta b { display: block; font-size: 16px; font-weight: 600; }
.pack-meta span { font-size: 13px; color: var(--slate-500); }
.buy-bar {
  position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 12px 12px 12px 18px;
  border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.buy-bar-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.buy-bar-info span { font-weight: 600; }
.buy-bar-info small { color: var(--slate-500); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-bar-total b { font-family: var(--display); font-size: 22px; font-weight: 700; white-space: nowrap; }
.buy-bar .btn { flex: none; }

.product-banner {
  position: relative; overflow: hidden; min-height: 150px; border-radius: 20px; display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; isolation: isolate;
}
.product-banner.pubg { background: radial-gradient(120% 160% at 80% 20%, #6b4d12 0%, #2a2410 45%, #121212 100%); }
.product-banner.stars { background: radial-gradient(120% 160% at 80% 20%, #5b3cc4 0%, #2a1b5c 45%, #12101f 100%); }
.product-banner-id { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 18px; }
.product-banner-id .tile-art { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.product-banner-id b { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; }
.product-banner-id span { font-size: 13px; color: rgba(255, 255, 255, 0.72); }
.product-banner-art { position: absolute; z-index: 1; right: 4%; top: 0; bottom: 0; width: 40%; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.product-banner-art img { height: 150%; width: auto; max-width: none; mix-blend-mode: lighten; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.product-banner-art .ico { width: 120px; height: 120px; align-self: center; filter: drop-shadow(0 12px 28px rgba(255, 170, 0, 0.45)); }
.product-banner-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px; font-size: 13px; font-weight: 500; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.product-banner-foot .dot { width: 8px; height: 8px; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); }
.product-head { margin: 22px 0 6px; }
.product-head h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; }
.product-head p { color: var(--slate-500); margin: 10px 0 0; max-width: 80ch; }

.perks { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin: 16px 0; }
.perk { position: relative; overflow: hidden; border-radius: 24px; padding: 32px; border: 1px solid var(--line); background: var(--surface); }
.perk h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; max-width: 18ch; }
.perk h3 { font-size: 24px; font-weight: 600; }
.perk p { color: var(--slate-500); margin: 14px 0 22px; max-width: 34ch; }
.perk.glow { background: radial-gradient(90% 120% at 90% 100%, rgba(251, 191, 36, 0.28), transparent 60%), var(--surface); }
.perk-art { position: absolute; right: 24px; bottom: 20px; display: flex; align-items: flex-end; gap: 10px; }
.perk-art .ico-uc { width: 92px; height: 65px; transform: rotate(-10deg); filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45)); }
.perk-art .ico-star { width: 70px; height: 70px; transform: rotate(12deg); filter: drop-shadow(0 12px 24px rgba(255, 170, 0, 0.4)); }
.about h1 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; margin-bottom: 12px; }
.about p { color: var(--slate-500); margin: 0 0 10px; max-width: 90ch; }

.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 24px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.footer-grid b { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.footer-grid a { text-decoration: none; color: var(--slate-500); }
.footer-grid a:hover { color: var(--ink); }
.footer-brand .brand { color: var(--ink); }
.footer-brand p { margin: 10px 0 0; }

.floaters .float-btn { position: fixed; z-index: 35; bottom: 20px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.float-btn.up {
  left: 20px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer;
  font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 0.2s ease, transform 0.2s ease;
}
body.scrolled-far .float-btn.up { opacity: 1; pointer-events: auto; transform: none; }
.float-btn.chat { right: 20px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); text-decoration: none; font-size: 22px; }

@media (max-width: 880px) {
  .cat-pills { display: none; }
  .perks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .floaters .float-btn { bottom: 80px; }
  .buy-bar { bottom: 76px; }
  .k-panel { padding: 18px; border-radius: 20px; }
  .banner-track { grid-auto-columns: 86%; }
}
@media (max-width: 560px) {
  .pack-grid, .shelf { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .buy-bar { flex-wrap: wrap; gap: 10px; }
  .buy-bar .btn { width: 100%; }
  .perk { padding: 24px; }
  .perk-art { position: static; margin-top: 8px; }
  .product-banner-art { width: 46%; }
  .banner-copy b { font-size: 19px; }
}
.topbar .wrap.search-wrap { display: block; height: auto; }
.wide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.wide-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.wide-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; isolation: isolate; transition: transform 0.15s ease; }
.wide-card:hover .wide-media { transform: translateY(-3px); }
.wide-media.pubg { background: radial-gradient(120% 140% at 75% 30%, #6b4d12 0%, #2a2410 45%, #121212 100%); }
.wide-media.stars { background: radial-gradient(120% 140% at 75% 30%, #5b3cc4 0%, #2a1b5c 45%, #12101f 100%); }
.wide-media.pubg img { position: absolute; right: 8%; bottom: -30%; height: 150%; width: auto; max-width: none; mix-blend-mode: lighten; -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent); mask-image: linear-gradient(to bottom, #000 65%, transparent); }
.wide-media .banner-stars { position: absolute; inset: 0; }
.wide-unit { position: absolute; left: 16px; bottom: 14px; z-index: 2; padding: 4px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.45); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 0.04em; backdrop-filter: blur(6px); }
.wide-meta b { display: block; font-weight: 600; font-size: 16px; }
.wide-meta span { font-size: 13px; color: var(--slate-500); }
:root { --brand-strong: #d97706; }
:root[data-theme="dark"] { --brand-strong: #fbbf24; }
.step::before { color: var(--brand-strong); }
.k-panel .step { background: var(--surface-2); }
body:has(.buy-bar) .floaters .float-btn { bottom: 104px; }
@media (max-width: 880px) {
  body:has(.buy-bar) .floaters .float-btn { bottom: 170px; }
}
@media (max-width: 560px) {
  body:has(.buy-bar) .floaters .float-btn.up { display: none; }
  body:has(.buy-bar) .floaters .float-btn.chat { bottom: 222px; }
}
.input-at { position: relative; }
.input-at > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--slate-500); font-weight: 600; pointer-events: none; }
.input-at > .input { padding-left: 32px; }
.btn.stars-pay { background: linear-gradient(135deg, #fbbf24, #f97316); color: var(--brand-ink); font-weight: 600; }
.btn.stars-pay:hover { background: linear-gradient(135deg, #fcd34d, #fb923c); }
.btn.telegram { background: #2aabee; color: #fff; font-weight: 600; }
.btn.telegram:hover { background: #229ed9; }
.btn.telegram .ico { width: 20px; height: 20px; }
