/* KILLING SPREE SHOP — Telegram Mini App */
:root {
  --bg: #0c090a;
  --bg-2: #120d0f;
  --surface: #181214;
  --surface-2: #211a1c;
  --surface-3: #2d2326;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f3f4f8;
  --text-2: #a4a7b5;
  --text-3: #6c6f7e;
  --accent: #ff2b3a;
  --accent-2: #ff4d5a;
  --accent-grad: linear-gradient(135deg, #ff3d4a 0%, #e3101f 55%, #a8000e 100%);
  --tg: #4f8cff;
  --tg-grad: linear-gradient(135deg, #3d7bff 0%, #7a5cff 100%);
  --ok: #2fd37a;
  --ok-bg: rgba(47, 211, 122, 0.12);
  --err: #ff5d6c;
  --err-bg: rgba(255, 93, 108, 0.12);
  --warn: #ffbf3c;
  --warn-bg: rgba(255, 191, 60, 0.12);
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --vh: 100vh;
  --nav-h: 64px;
  font-synthesis: none;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  min-height: var(--vh);
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(230, 20, 35, 0.16), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
img, svg { display: block; }

.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: var(--vh);
  padding: 12px 16px calc(var(--nav-h) + var(--safe-bottom) + 24px);
  position: relative;
}
.app.no-nav { padding-bottom: calc(var(--safe-bottom) + 24px); }

/* ---------- boot ---------- */
.boot { min-height: calc(var(--vh) - 40px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
.header { display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  background: var(--accent-grad);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(230, 20, 35, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.logo-mark span { font-weight: 900; font-size: 16px; letter-spacing: -0.5px; color: #fff; }
.logo-mark.big { width: 72px; height: 72px; border-radius: 22px; }
.logo-mark.big span { font-size: 26px; }
.brand { min-width: 0; flex: 1; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: 0.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--surface-2); border: 1px solid var(--line-2);
  display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--text);
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  padding: 15px 16px 14px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 40, 55, 0.35), transparent 55%),
    linear-gradient(135deg, #330a0f 0%, #1d0a0e 60%, #14121c 100%);
  border: 1px solid rgba(255, 50, 60, 0.22);
  margin-bottom: 16px;
}
.hero.tg {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(150, 90, 255, 0.32), transparent 55%),
    linear-gradient(135deg, #2c0a12 0%, #1c0b16 60%, #140d14 100%);
  border-color: rgba(255, 60, 80, 0.22);
}
.hero h1 { margin: 0 0 4px; font-size: 18.5px; line-height: 1.22; font-weight: 800; letter-spacing: -0.2px; max-width: 72%; }
.hero p { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 13px; max-width: 70%; }
.hero-art { position: absolute; right: -4px; top: 50%; transform: translateY(-50%) rotate(-8deg); width: 92px; height: 92px; opacity: 0.95; pointer-events: none; }
.hero-art svg.icon { width: 100%; height: 100%; }
.hero-badges { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 12px; overflow: hidden; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; padding: 5px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap;
}

/* ---------- segmented / chips ---------- */
.segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  margin-bottom: 12px;
}
.segmented button {
  height: 40px; border-radius: 11px; font-weight: 700; font-size: 14.5px; color: var(--text-2);
  display: flex; align-items: center; justify-content: center; gap: 7px; transition: background 0.2s, color 0.2s;
  min-width: 0; white-space: nowrap;
}
.segmented button svg { width: 18px; height: 18px; flex: none; }
.segmented button.on { background: var(--surface-3); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }

.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -16px 14px; padding: 2px 16px;
  scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; font-size: 13.5px; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px; scroll-snap-align: start; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip svg { width: 16px; height: 16px; }
.chip.on { background: var(--text); color: #111; border-color: var(--text); }

/* ---------- promo strip ---------- */
.promo-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px 11px 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px dashed var(--line-2);
  margin-bottom: 16px; width: 100%; text-align: left;
}
.promo-strip .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 40, 55, 0.14); color: var(--accent-2); flex: none; }
.promo-strip .ico svg { width: 18px; height: 18px; }
.promo-strip .txt { flex: 1; min-width: 0; }
.promo-strip .t1 { font-weight: 700; font-size: 14px; }
.promo-strip .t2 { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-strip.active { border-style: solid; border-color: rgba(47, 211, 122, 0.35); background: linear-gradient(90deg, rgba(47, 211, 122, 0.1), var(--surface) 70%); }
.promo-strip.active .ico { background: var(--ok-bg); color: var(--ok); }
.promo-strip .x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.promo-strip .x svg { width: 14px; height: 14px; }
.promo-strip .arrow { color: var(--text-3); flex: none; }
.promo-strip .arrow svg { width: 18px; height: 18px; }

/* ---------- section title ---------- */
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 4px 2px 10px; }
.sec-title h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.sec-title span { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sec-title h2 { flex: none; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card {
  position: relative; text-align: left; min-width: 0;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.15s ease, border-color 0.2s;
  animation: rise 0.35s ease both;
}
.card:active { transform: scale(0.97); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.art {
  position: relative; aspect-ratio: 1 / 0.72; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(80% 80% at 50% 35%, rgba(255, 40, 55, 0.28), transparent 70%), linear-gradient(160deg, #2a0d11, #17141a);
}
.art.wow { background: radial-gradient(80% 80% at 50% 35%, rgba(255, 214, 90, 0.26), transparent 70%), linear-gradient(160deg, #22200f, #17161a); }
.art.pass { background: radial-gradient(80% 80% at 50% 35%, rgba(230, 20, 35, 0.3), transparent 70%), linear-gradient(160deg, #2b0c0f, #171419); }
.art.prime { background: radial-gradient(80% 80% at 50% 35%, rgba(255, 200, 80, 0.3), transparent 70%), linear-gradient(160deg, #1f1a10, #15141b); }
.art.star { background: radial-gradient(80% 80% at 50% 35%, rgba(255, 196, 60, 0.3), transparent 70%), linear-gradient(160deg, #10182e, #14131d); }
.art.premium { background: radial-gradient(80% 80% at 50% 35%, rgba(140, 100, 255, 0.38), transparent 70%), linear-gradient(160deg, #141433, #14131d); }
.art.custom { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 10px, transparent 10px 20px), linear-gradient(160deg, #12192c, #14131d); }
.art svg.icon { width: 52%; height: 52%; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45)); }
.art .amount {
  position: absolute; left: 10px; bottom: 8px; right: 10px;
  font-weight: 900; font-size: 20px; letter-spacing: -0.5px; line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.art .amount small { font-size: 11px; font-weight: 800; opacity: 0.75; margin-left: 3px; letter-spacing: 0.3px; }
.tag {
  position: absolute; top: 8px; left: 8px;
  font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 7px; letter-spacing: 0.2px;
  background: var(--accent-grad); color: #fff;
}
.tag.ok { background: var(--ok); color: #04210f; }
.tag.tgc { background: var(--tg-grad); color: #fff; }
.card .info { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .name {
  font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-word;
}
.card .name.sub { color: var(--text-3); font-size: 12px; font-weight: 500; }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.price { font-weight: 800; font-size: 17px; letter-spacing: -0.2px; white-space: nowrap; }
.old { font-size: 12px; color: var(--text-3); text-decoration: line-through; white-space: nowrap; }
.usdt { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }

.empty {
  text-align: center; padding: 34px 20px; color: var(--text-2);
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
}
.empty .big { font-size: 34px; margin-bottom: 8px; }
.empty b { display: block; color: var(--text); margin-bottom: 4px; font-size: 15px; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.feature { padding: 12px 10px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); text-align: center; min-width: 0; }
.feature svg { width: 22px; height: 22px; margin: 0 auto 6px; color: var(--accent-2); }
.feature b { display: block; font-size: 12.5px; }
.feature span { font-size: 11px; color: var(--text-3); }

/* ---------- bottom nav ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(12, 9, 10, 0), rgba(12, 9, 10, 0.92) 28%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav-inner {
  max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 5px; border-radius: 18px; background: rgba(31, 24, 26, 0.94); border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.nav button {
  height: 46px; border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; font-weight: 600; color: var(--text-3); position: relative;
}
.nav button svg { width: 22px; height: 22px; }
.nav button.on { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav button.on svg { color: var(--accent); }
.dot { position: absolute; top: 6px; right: calc(50% - 18px); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #1f181a; }
body.kb-open .nav { display: none; }

/* ---------- page / panels ---------- */
.page-head { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; flex: 1; min-width: 0; }
.back-btn { width: 38px; height: 38px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.back-btn svg { width: 18px; height: 18px; }
.panel { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); padding: 16px; margin-bottom: 12px; }
.panel h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }

.steps { display: flex; gap: 6px; margin-bottom: 14px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); }
.steps i.on { background: var(--accent-grad); }

.summary { display: flex; gap: 12px; align-items: center; }
.summary .thumb { width: 58px; height: 58px; border-radius: 14px; overflow: hidden; flex: none; }
.summary .thumb .art { aspect-ratio: auto; height: 100%; }
.summary .thumb svg.icon { width: 62%; height: 62%; }
.summary .meta { min-width: 0; flex: 1; }
.summary .meta b { display: block; font-size: 16px; line-height: 1.25; word-break: break-word; }
.summary .meta span { font-size: 12.5px; color: var(--text-2); }
.rows { margin-top: 14px; border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row span { color: var(--text-2); flex: none; }
.row b { text-align: right; min-width: 0; word-break: break-all; font-weight: 600; }
.row.total b { font-size: 18px; font-weight: 800; }
.row.total b small { display: block; font-size: 12px; color: var(--text-3); font-weight: 600; }

.methods { display: grid; gap: 10px; }
.method {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-2);
  transition: transform 0.12s, border-color 0.2s;
}
.method:active { transform: scale(0.98); }
.method .mi { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.method .mi svg { width: 24px; height: 24px; }
.method .mi.cb { background: rgba(79, 140, 255, 0.15); color: #6ea0ff; }
.method .mi.tr { background: rgba(47, 211, 122, 0.13); color: var(--ok); }
.method .mt { flex: 1; min-width: 0; }
.method .mt b { display: block; font-size: 15px; }
.method .mt span { font-size: 12.5px; color: var(--text-2); }
.method .go { color: var(--text-3); }
.method .go svg { width: 18px; height: 18px; }
.method[disabled] { opacity: 0.45; }

/* ---------- buttons ---------- */
.btn {
  width: 100%; height: 52px; border-radius: 15px; font-weight: 800; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent-grad); color: #fff;
  box-shadow: 0 8px 24px rgba(230, 20, 35, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.12s, opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn.tgb { background: var(--tg-grad); color: #fff; box-shadow: 0 8px 24px rgba(79, 110, 255, 0.3); }
.btn.ghost { background: var(--surface-2); color: var(--text); box-shadow: none; border: 1px solid var(--line-2); font-weight: 700; }
.btn.danger { background: transparent; color: var(--err); box-shadow: none; height: 44px; font-weight: 700; font-size: 14.5px; }
.btn.ok { background: var(--ok); color: #03210f; box-shadow: 0 8px 24px rgba(47, 211, 122, 0.25); }
.btn svg { width: 20px; height: 20px; }
.stack { display: grid; gap: 10px; margin-top: 14px; }

/* ---------- fields ---------- */
.field { margin-top: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin: 0 2px 7px; font-weight: 600; }
.input-wrap { position: relative; }
.input {
  width: 100%; height: 52px; border-radius: 14px; padding: 0 14px;
  background: var(--bg-2); border: 1.5px solid var(--line-2); outline: none;
  font-size: 16px; font-weight: 600; letter-spacing: 0.2px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { border-color: rgba(255, 45, 60, 0.7); box-shadow: 0 0 0 4px rgba(255, 45, 60, 0.12); }
.input.bad { border-color: var(--err); box-shadow: 0 0 0 4px rgba(255, 93, 108, 0.12); }
.input::placeholder { color: var(--text-3); font-weight: 500; }
.hint { font-size: 12.5px; color: var(--text-3); margin: 7px 2px 0; }
.error-text { font-size: 13px; color: var(--err); margin: 8px 2px 0; }

/* ---------- notices ---------- */
.notice { display: flex; gap: 10px; padding: 12px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; margin-top: 12px; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.notice.warn { background: var(--warn-bg); color: #ffd98a; }
.notice.info { background: rgba(79, 140, 255, 0.12); color: #b7ccff; }
.notice.err { background: var(--err-bg); color: #ffb3bb; }
.notice.ok { background: var(--ok-bg); color: #a6f0c6; }

/* ---------- copy box ---------- */
.copy {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2);
  margin-top: 8px;
}
.copy .cv { flex: 1; min-width: 0; }
.copy .cv small { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 2px; }
.copy .cv b { display: block; font-size: 15px; font-weight: 700; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.copy .cv b.amount { font-size: 26px; font-family: inherit; letter-spacing: -0.4px; }
.copy .ci { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.copy .ci svg { width: 17px; height: 17px; }
.copy.done .ci { background: var(--ok-bg); color: var(--ok); }

.timer { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.timer svg { width: 15px; height: 15px; }
.timer.low { color: var(--warn); }

/* ---------- result ---------- */
.result { text-align: center; padding: 26px 8px 6px; }
.result .ring {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: var(--ok-bg); color: var(--ok); animation: pop 0.45s cubic-bezier(.2, 1.4, .4, 1) both;
}
.result .ring.bad { background: var(--err-bg); color: var(--err); }
.result .ring.wait { background: rgba(79, 140, 255, 0.12); color: #6ea0ff; }
.result .ring svg { width: 46px; height: 46px; }
.result h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.result p { margin: 0 auto; color: var(--text-2); max-width: 340px; font-size: 14px; white-space: pre-line; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- orders / profile ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat { padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.stat span { font-size: 12px; color: var(--text-3); }
.stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.profile-card .avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 800; background: var(--accent-grad); color: #fff; flex: none; }
.profile-card .pm { min-width: 0; flex: 1; }
.profile-card .pm b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-card .pm span { font-size: 12.5px; color: var(--text-2); }
.list { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; margin-bottom: 12px; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.li:last-child { border-bottom: 0; }
.li .lic { width: 40px; height: 40px; border-radius: 12px; overflow: hidden; flex: none; }
.li .lic .art { aspect-ratio: auto; height: 100%; }
.li .lic svg.icon { width: 64%; height: 64%; }
.li .lt { flex: 1; min-width: 0; }
.li .lt b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .lt span { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .lr { text-align: right; flex: none; font-size: 13px; font-weight: 700; }
.li .lr small { display: block; font-size: 11px; color: var(--text-3); font-weight: 500; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); }
.list-title { font-size: 13px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.6px; margin: 18px 4px 8px; }

/* ---------- sheet ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fade 0.2s ease both;
}
.overlay.out { animation: fade 0.2s ease reverse both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51;
  max-width: 560px; margin: 0 auto;
  max-height: calc(var(--vh) - 28px);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 26px 26px 0 0;
  padding: 10px 16px calc(18px + var(--safe-bottom));
  animation: up 0.28s cubic-bezier(.2, .9, .3, 1) both;
}
.sheet.out { animation: up 0.2s ease reverse both; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.grabber { width: 40px; height: 5px; border-radius: 5px; background: var(--surface-3); margin: 0 auto 12px; }
.sheet-art { border-radius: 20px; overflow: hidden; margin-bottom: 14px; }
.sheet-art .art { aspect-ratio: 16 / 8; }
.sheet-art .art svg.icon { width: 34%; height: auto; max-height: 70%; }
.sheet-art .art .amount { font-size: 30px; left: 16px; bottom: 12px; }
.sheet h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; line-height: 1.25; word-break: break-word; }
.desc { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.desc li { font-size: 13.5px; color: var(--text-2); line-height: 1.4; }
.sheet-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sheet-price .price { font-size: 26px; }
.sheet-close { position: absolute; z-index: 5; top: 16px; right: 18px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); border: 1px solid var(--line-2); width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); }
.sheet-close svg { width: 14px; height: 14px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-bottom) + 24px); z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); width: max-content;
  background: #f3f4f8; color: #111; font-weight: 600; font-size: 14px;
  padding: 11px 16px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.link { color: #8fb3ff; font-weight: 600; }
.fade-in { animation: rise 0.3s ease both; }

@media (min-width: 420px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 340px) {
  .app { padding-left: 12px; padding-right: 12px; }
  .chips { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .hero h1 { font-size: 19px; }
  .price { font-size: 15.5px; }
  .art .amount { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* аватарка из Telegram поверх буквы */
.avatar-btn, .profile-card .avatar { position: relative; overflow: hidden; }
.ava-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.btn.danger-fill { background: var(--err-bg); color: var(--err); box-shadow: none; border: 1px solid rgba(255, 93, 108, 0.35); }

/* ================= ДИЗАЙН v2 (по правилам taste-skill) =================
   Одна система: заголовочный шрифт как на баннере бота, один набор кнопок, одна шкала скруглений,
   цели касания от 44px, без фиолетового, один вход страницы вместо появления каждой карточки. */
:root {
  --font-display: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --gold: #ffc23d;
  --tg-grad: linear-gradient(135deg, #27a2ee 0%, #1677c9 100%);
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 12px;
}

/* типографика */
.brand-name, .hero h1, .hero .eyebrow, .sec-title h2, .page-head h1, .sheet h2, .price, .art .amount,
.stat b, .result h2, .row.total b, .copy .cv b.amount, .list-title, .hero-price b {
  font-family: var(--font-display);
}
.brand-name { font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; }
.brand-sub { font-size: 13px; }
.sec-title { margin: 6px 2px 12px; }
.sec-title h2 { font-size: 21px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.sec-title span { display: none; }
.page-head h1 { font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.sheet h2 { font-size: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2px; line-height: 1.15; }
.price { font-weight: 600; font-size: 20px; letter-spacing: 0.2px; }
.sheet-price .price { font-size: 30px; }
.art .amount { font-weight: 700; font-size: 25px; letter-spacing: 0; }
.art .amount small { font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.6px; }
.stat b { font-weight: 600; font-size: 26px; }
.result h2 { font-size: 28px; font-weight: 700; text-transform: uppercase; }
.row.total b { font-size: 22px; font-weight: 600; }
.list-title { font-size: 14px; font-weight: 600; letter-spacing: 1px; color: var(--text-2); }

/* шапка */
.avatar-btn { width: 44px; height: 44px; }
.logo-mark { width: 44px; height: 44px; border-radius: 13px; }
.logo-mark span { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.5px; }

/* главный блок: как баннер бота — тёмно-красный, косые световые полосы, крупный узкий шрифт */
.hero {
  padding: 18px 18px 16px;
  min-height: 168px;
  background:
    repeating-linear-gradient(115deg, rgba(255, 40, 55, 0.07) 0 2px, transparent 2px 22px),
    radial-gradient(70% 90% at 100% 10%, rgba(255, 30, 45, 0.45), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(120, 0, 10, 0.55), transparent 70%),
    linear-gradient(140deg, #3a070d 0%, #1e070b 55%, #120708 100%);
  border: 1px solid rgba(255, 60, 70, 0.28);
  box-shadow: 0 18px 40px -18px rgba(230, 20, 35, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hero.tg {
  background:
    repeating-linear-gradient(115deg, rgba(255, 194, 61, 0.06) 0 2px, transparent 2px 22px),
    radial-gradient(70% 90% at 100% 10%, rgba(255, 60, 60, 0.38), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(120, 0, 10, 0.5), transparent 70%),
    linear-gradient(140deg, #34080e 0%, #1c070b 55%, #120708 100%);
  border-color: rgba(255, 60, 70, 0.28);
}
.hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.hero .eyebrow::before, .hero .eyebrow::after { content: "\2605"; font-size: 9px; color: var(--accent); }
.hero h1 { font-size: 30px; font-weight: 700; text-transform: uppercase; line-height: 1.02; letter-spacing: 0.3px; max-width: 70%; margin-bottom: 8px; text-shadow: 0 0 24px rgba(255, 40, 55, 0.45); }
.hero p { font-size: 13.5px; max-width: 64%; color: rgba(255, 255, 255, 0.78); }
.hero-art { width: 104px; height: 104px; right: 2px; }
.hero-badges { display: none; }
.hero-price { margin-top: 12px; display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.hero-price b { font-size: 18px; font-weight: 600; color: #fff; letter-spacing: 0.3px; }

/* переключатели и чипы: цели касания 44px */
.segmented button { height: 44px; font-size: 15px; }
.chip { height: 44px; padding: 0 18px; font-size: 14px; }
.chip.on { background: var(--accent-grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px -6px rgba(230, 20, 35, 0.7); }

/* промокод */
.promo-strip { min-height: 60px; border-style: solid; border-color: var(--line); }
.promo-strip .ico { background: rgba(255, 194, 61, 0.12); color: var(--gold); }
.promo-strip .x { width: 44px; height: 44px; }

/* карточки: без появления по одной; на устройствах с мышью — подъём на 2px и лёгкий зум картинки */
.card { animation: none; transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.card .art svg.icon { transition: transform 0.35s ease; }
.card .info { padding: 10px 12px 12px; gap: 4px; }
.art { background: radial-gradient(80% 80% at 50% 35%, rgba(255, 60, 60, 0.26), transparent 70%), linear-gradient(160deg, #2a0b10, #170b0e); }
.art.wow, .art.prime, .art.star { background: radial-gradient(80% 80% at 50% 35%, rgba(255, 194, 61, 0.24), transparent 70%), linear-gradient(160deg, #2a0f0c, #170b0e); }
.art.premium { background: radial-gradient(80% 80% at 50% 35%, rgba(255, 50, 60, 0.36), transparent 70%), linear-gradient(160deg, #300a10, #170b0e); }
.art.custom { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 10px, transparent 10px 20px), linear-gradient(160deg, #2a0b10, #170b0e); }
.tag { border-radius: 8px; background: var(--accent-grad); color: #fff; }
.tag.tgc { background: rgba(0, 0, 0, 0.45); color: var(--gold); border: 1px solid rgba(255, 194, 61, 0.4); }
@media (hover: hover) {
  .card:hover { transform: translateY(-2px); border-color: rgba(255, 60, 70, 0.4); box-shadow: 0 12px 28px -14px rgba(230, 20, 35, 0.6); }
  .card:hover .art svg.icon { transform: scale(1.03); }
  .btn:hover, .chip:hover, .method:hover, .promo-strip:hover { filter: brightness(1.1); }
  .method:hover { border-color: rgba(255, 60, 70, 0.4); }
}
.card:active { transform: scale(0.97); }

/* одна пара кнопок: основная красная и вторичная контурная; «Отменить» — та же контурная, с красным текстом */
.btn { border-radius: 14px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: 0.5px; text-transform: uppercase; }
.btn.ghost { font-weight: 500; font-size: 16px; }
.btn.danger, .btn.danger-fill { height: 52px; background: transparent; border: 1px solid rgba(255, 93, 108, 0.35); color: var(--err); font-weight: 500; font-size: 16px; }
.btn.ok { color: #04210f; }

/* мелкие элементы с целью касания не меньше 44px */
.back-btn { width: 44px; height: 44px; }
.sheet-close { width: 44px; height: 44px; top: 14px; right: 16px; }
.copy .ci { width: 44px; height: 44px; }
.nav button { height: 50px; }

/* вход страницы — один раз при открытии */
@keyframes enterUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.app.enter > .header, .app.enter > .hero, .app.enter > .segmented, .app.enter > .chips,
.app.enter > .promo-strip, .app.enter > .sec-title, .app.enter > .grid {
  animation: enterUp 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.app.enter > .hero { animation-delay: 60ms; }
.app.enter > .segmented { animation-delay: 120ms; }
.app.enter > .chips { animation-delay: 160ms; }
.app.enter > .promo-strip { animation-delay: 200ms; }
.app.enter > .sec-title, .app.enter > .grid { animation-delay: 240ms; }


/* ===== картинки товаров и центрированные карточки ===== */
.art img.icon-img { width: 64%; height: 64%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55)); transition: transform 0.35s ease; }
.art.has-label { padding-bottom: 26px; }
.art.has-label img.icon-img, .art.has-label svg.icon { width: 56%; height: 56%; }
.art .amount { left: 8px; right: 8px; text-align: center; }
.sheet-art .art .amount { left: 16px; right: 16px; text-align: center; }
.sheet-art .art img.icon-img { width: auto; height: 74%; max-width: 60%; }
.sheet-art .art.has-label { padding-bottom: 34px; }
.hero-art img.icon-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6)); }
.thumb .art img.icon-img, .lic .art img.icon-img { width: 80%; height: 80%; }
@media (hover: hover) { .card:hover .art img.icon-img { transform: scale(1.03); } }

.card { text-align: center; }
.card .info { align-items: center; text-align: center; }
.card .name { text-align: center; }
.card .price-row { justify-content: center; }
.card .usdt { text-align: center; }
.card .tag { left: 50%; transform: translateX(-50%); white-space: nowrap; }


/* ===== баннер: сундук UC с небольшим свечением ===== */
.hero-art { width: 132px; height: 112px; right: -6px; transform: translateY(-50%) rotate(-4deg); }
.hero-art::before {
  content: ""; position: absolute; inset: 14% 10% 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 196, 80, 0.55), rgba(255, 60, 40, 0.25) 55%, transparent 75%);
  filter: blur(8px); z-index: 0;
}
.hero-art img.hero-chest { position: relative; z-index: 1; filter: drop-shadow(0 0 10px rgba(255, 190, 70, 0.55)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6)); }
.hero h1 { max-width: 62%; }
.hero p { max-width: 58%; }

.hero h1 { max-width: 70%; position: relative; z-index: 2; }
.hero p, .hero .eyebrow, .hero-price { position: relative; z-index: 2; }

/* баннер: новая картинка без добавленного свечения, сдвинута левее, чтобы не обрезалась */
.hero-art::before { content: none; }
.hero-art { right: 10px; width: 122px; height: 118px; transform: translateY(-50%); }
.hero-art img.hero-chest { filter: none; }

/* единый красный фон за значком во всех подкатегориях PUBG */
.art.wow, .art.prime, .art.pass { background: radial-gradient(80% 80% at 50% 35%, rgba(255, 60, 60, 0.26), transparent 70%), linear-gradient(160deg, #2a0b10, #170b0e); }


/* ===== Telegram: звезда на баннере ===== */
.hero.tg .hero-art { right: 10px; width: 112px; height: 108px; transform: translateY(-50%) rotate(-6deg); }
.hero-art img.hero-star { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55)); }
.art.star, .art.premium { background: radial-gradient(80% 80% at 50% 35%, rgba(255, 60, 60, 0.26), transparent 70%), linear-gradient(160deg, #2a0b10, #170b0e); }

/* метка скидки — в левом верхнем углу, чтобы не закрывать картинку товара */
.card .tag { left: 8px; top: 8px; transform: none; }
.card .art { padding-top: 16px; }
.card .art.has-label { padding-bottom: 28px; }

/* ===== компактные карточки: 3 в ряд, 6 на экране — во всех категориях ===== */
.grid, .app .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.card { border-radius: 14px; }
.card .art { aspect-ratio: 1 / 0.78; padding-top: 10px; }
.card .art.has-label { padding-bottom: 20px; }
.card .art .amount { bottom: 6px; left: 4px; right: 4px; font-size: 18px; }
.card .art .amount small { font-size: 9px; margin-left: 2px; letter-spacing: 0.4px; }
.card .info { padding: 6px 5px 8px; gap: 1px; }
.card .name { font-size: 11px; line-height: 1.2; }
.card .price { font-size: 16px; }
.card .old { font-size: 10px; }
.card .price-row { gap: 4px; row-gap: 0; }
.card .usdt { font-size: 10px; }
.card .tag { top: 5px; left: 5px; font-size: 9px; padding: 2px 5px; border-radius: 6px; }
@media (max-width: 340px) {
  .grid, .app .grid { gap: 6px; }
  .card .art .amount { font-size: 15px; }
  .card .price { font-size: 14px; }
}
.card .usdt { white-space: normal; line-height: 1.25; }

/* ===== нижняя панель: 4 вкладки, «Профиль» после «Заказов» (аватарка вместо значка) ===== */
.nav-inner { grid-template-columns: repeat(4, 1fr); }
.nav button { font-size: 10.5px; }
.nav-ava { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; overflow: hidden;
  background: var(--accent-grad); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; box-shadow: 0 0 0 1.5px currentColor; }
.nav button.on .nav-ava { box-shadow: 0 0 0 2px var(--accent); }
.header { min-height: 44px; }

/* ===== нижняя панель v3: Профиль · [Магазин] · Поддержка ===== */
.nav-inner { grid-template-columns: 1fr 96px 1fr; gap: 6px; overflow: visible; }
.nav button { font-size: 11px; }
.nav .dot { right: calc(50% - 16px); }
/* «Магазин» — по центру, приподнят над панелью и всегда слегка подсвечен */
.nav button.nav-shop {
  height: 64px; margin-top: -22px; align-self: end; border-radius: 18px;
  color: #ffd9dc;
  background: linear-gradient(180deg, rgba(230, 20, 35, 0.32), rgba(120, 10, 20, 0.38)), #1f1214;
  border: 1px solid rgba(255, 70, 80, 0.45);
  box-shadow: 0 8px 22px -8px rgba(230, 20, 35, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav button.nav-shop svg { width: 26px; height: 26px; color: #ff5a64; }
/* на экране магазина — выделен сильнее, как активная вкладка */
.nav button.nav-shop.on {
  color: #fff; background: var(--accent-grad); border-color: rgba(255, 120, 125, 0.7);
  box-shadow: 0 10px 28px -6px rgba(230, 20, 35, 0.85), 0 0 0 3px rgba(230, 20, 35, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.nav button.nav-shop.on svg { color: #fff; }
.nav button.nav-shop:active { transform: scale(0.96); }

/* ===== картинки товаров: всегда целиком и по центру (во всех категориях, карточках, окне товара, заказах) =====
   Картинка вписывается в фиксированную рамку внутри .art (object-fit: contain), а не зависит от своего размера в пикселях.
   Снизу оставлено место под крупную подпись («120 UC», «3 МЕС»), если она есть. */
.art img.icon-img {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto;
  width: 76%; height: 76%; max-width: none; max-height: none; object-fit: contain; object-position: center;
}
.art.has-label img.icon-img { top: 4%; bottom: 26%; height: 66%; width: 70%; }
.card .art img.icon-img { top: 6%; bottom: 6%; height: 80%; }
.card .art.has-label img.icon-img { top: 5%; bottom: 27%; height: 64%; }
.sheet-art .art img.icon-img { top: 6%; bottom: 6%; width: 60%; height: 88%; }
.sheet-art .art.has-label img.icon-img { top: 5%; bottom: 24%; width: 60%; height: 70%; }
.thumb .art img.icon-img, .lic .art img.icon-img { top: 10%; bottom: 10%; width: 80%; height: 80%; }

/* ===== одинаковые карточки во всех категориях + название заметнее цены ===== */
.grid { grid-auto-rows: 1fr; align-items: stretch; }
.card { height: 100%; }
.card .art { flex: none; }
/* блок под картинкой одной высоты у всех карточек: место под 2 строки названия + цена + цена в USDT */
.card .info { flex: none; height: 84px; justify-content: center; gap: 3px; padding: 6px 6px 8px; overflow: hidden; }
.card .name {
  font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--text); letter-spacing: 0.1px;
  -webkit-line-clamp: 2; max-height: calc(13px * 1.2 * 2);
}
.card .price-row { margin-top: 0; flex-wrap: nowrap; justify-content: center; }
.card .price { font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, 0.78); letter-spacing: 0.2px; }
.card .old { font-size: 9.5px; }
.card .usdt { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* у товаров без названия (UC, WOW, Stars — количество крупно на картинке) цена остаётся главной строкой */
.card .info:not(:has(.name)) .price { font-size: 16px; font-weight: 600; color: var(--text); }
@media (max-width: 340px) {
  .card .name { font-size: 12px; max-height: calc(12px * 1.2 * 2); }
  .card .info { height: 80px; }
}
