/* ================= puls4ku ================= */
:root {
  --bg: #fff5f1;
  --paper: #ffffff;
  --ink: #1b1525;
  --ink-2: #4d4659;
  --muted: #8c8597;
  --line: #f0e3dd;
  --red: #ff3d2e;
  --red-d: #e02a1c;
  --t-red: #ffe1dc;
  --mint: #22d3a5;
  --t-mint: #d3f8ec;
  --sun: #ffc73a;
  --t-sun: #fff0c7;
  --sky: #4fb8ff;
  --t-sky: #dcf0ff;
  --grape: #6c4cff;
  --t-grape: #e6e1ff;
  --peach: #ff8a5b;
  --t-peach: #ffe5d8;
  --r: 22px;
  --r-sm: 14px;
  --sh: 0 1px 0 rgba(27, 21, 37, .04), 0 8px 24px -12px rgba(27, 21, 37, .18);
  --sh-2: 0 24px 60px -20px rgba(27, 21, 37, .35);
  --pop: cubic-bezier(.34, 1.7, .5, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --w: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; padding-bottom: env(safe-area-inset-bottom); }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 10px; }
.wrap { width: min(var(--w), 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.t-red { --t: var(--t-red); --c: var(--red); }
.t-mint { --t: var(--t-mint); --c: #10a37f; }
.t-sun { --t: var(--t-sun); --c: #d99a00; }
.t-sky { --t: var(--t-sky); --c: #1f8fe0; }
.t-grape { --t: var(--t-grape); --c: var(--grape); }
.t-peach { --t: var(--t-peach); --c: #f0652e; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 16px; font-weight: 700; font-size: .98rem; transition: transform .3s var(--pop), background .2s, box-shadow .2s, color .2s; white-space: nowrap; position: relative; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(.95); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(255, 61, 46, .8); }
.btn-red:hover { background: var(--red-d); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #33293f; }
.btn-ghost { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-soft { background: var(--t-red); color: var(--red-d); }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 12px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: .86rem; white-space: nowrap; transition: all .2s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.chip .x { opacity: .6; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255, 245, 241, .86); backdrop-filter: blur(14px) saturate(1.5); border-bottom: 1px solid transparent; transition: border-color .3s; }
.hdr.scrolled { border-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.04em; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--red); display: grid; place-items: center; position: relative; transition: transform .5s var(--pop); }
.logo:hover .logo-mark { transform: rotate(-10deg) scale(1.08); }
.logo-mark svg { width: 22px; height: 22px; }
.logo-mark i { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--mint); border: 2.5px solid var(--bg); }
.logo b { color: var(--red); }
.nav { display: flex; gap: 4px; margin: 0 auto; background: var(--paper); padding: 5px; border-radius: 99px; box-shadow: var(--sh); }
.nav a { padding: 8px 18px; border-radius: 99px; font-weight: 600; font-size: .92rem; color: var(--ink-2); transition: all .25s; }
.nav a:hover { color: var(--ink); }
.nav a.on { background: var(--ink); color: #fff; }
.hdr-r { display: flex; align-items: center; gap: 10px; }
.cs { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.cs i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(34, 211, 165, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(34, 211, 165, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 165, 0); } }

/* Mobile tab bar */
.tabbar { display: none; }

/* ---------- Page ---------- */
.page { animation: pIn .55s var(--out); padding-bottom: 40px; }
@keyframes pIn { from { opacity: 0; transform: translateY(14px); } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--out), transform .8s var(--out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 30px; }
.hero-g { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.live { display: inline-flex; align-items: center; gap: 10px; background: var(--paper); padding: 6px 14px 6px 8px; border-radius: 99px; box-shadow: var(--sh); font-size: .84rem; font-weight: 600; }
.live b { background: var(--t-mint); color: #0b7b5e; padding: 3px 10px; border-radius: 99px; font-family: var(--mono); font-size: .78rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); margin: 20px 0 16px; }
.hero h1 .hl { color: var(--red); position: relative; white-space: nowrap; }
.hero h1 .ticker { display: inline-grid; vertical-align: bottom; height: 1.08em; overflow: hidden; color: var(--red); }
.hero h1 .ticker span { grid-area: 1 / 1; transition: transform .6s var(--out), opacity .4s; }
.hero h1 .ticker span:not(.on) { transform: translateY(100%); opacity: 0; }
.hero h1 .ticker span.off { transform: translateY(-100%); opacity: 0; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; margin: 0 0 24px; }

.quick { background: var(--paper); border-radius: 26px; padding: 8px; box-shadow: var(--sh-2); max-width: 560px; }
.quick-tabs { display: flex; gap: 4px; padding: 4px; }
.quick-tabs button { flex: 1; height: 42px; border-radius: 14px; font-weight: 700; font-size: .88rem; color: var(--muted); transition: all .25s; display: flex; align-items: center; justify-content: center; gap: 6px; }
.quick-tabs button svg { width: 16px; height: 16px; }
.quick-tabs button.on { background: var(--bg); color: var(--ink); }
.quick-in { display: flex; gap: 8px; padding: 6px; align-items: center; }
.quick-field { flex: 1; position: relative; }
.quick-field input { width: 100%; height: 58px; border-radius: 16px; border: 0; background: var(--bg); padding: 0 110px 0 18px; font-family: var(--mono); font-size: 1.12rem; font-weight: 600; letter-spacing: .04em; outline: none; transition: box-shadow .2s; }
.quick-field input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.quick-field input::placeholder { font-family: var(--body); letter-spacing: 0; font-weight: 500; color: var(--muted); }
.opbadge { position: absolute; right: 10px; top: 50%; translate: 0 -50%; height: 34px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; font-weight: 800; font-size: .76rem; letter-spacing: .02em; transform: scale(.6); opacity: 0; transition: transform .45s var(--pop), opacity .2s; }
.opbadge.on { transform: scale(1); opacity: 1; }
.quick .btn { height: 58px; }
.quick-note { font-size: .8rem; color: var(--muted); padding: 2px 14px 10px; min-height: 22px; }
.quick-note.err { color: var(--red-d); font-weight: 600; }

/* Phone mockup */
.phone-wrap { position: relative; display: grid; place-items: center; }
.phone-wrap::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--red); filter: blur(0); opacity: .95; }
.phone-wrap::after { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 40px; background: var(--sun); right: 6%; top: 4%; transform: rotate(18deg); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(8deg) translateY(-14px); } }
.phone { position: relative; z-index: 1; width: 290px; height: 560px; border-radius: 44px; background: var(--ink); padding: 12px; box-shadow: 0 40px 80px -30px rgba(27, 21, 37, .7); transform: rotate(-4deg); animation: tilt 8s ease-in-out infinite; }
@keyframes tilt { 50% { transform: rotate(-1deg) translateY(-8px); } }
.screen { width: 100%; height: 100%; border-radius: 34px; background: var(--bg); overflow: hidden; position: relative; padding: 46px 14px 14px; }
.screen::before { content: ''; position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 90px; height: 24px; border-radius: 99px; background: var(--ink); }
.scr-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.scr-h b { font-family: var(--display); font-size: .95rem; }
.scr-h b span { color: var(--red); }
.scr-bal { background: var(--ink); color: #fff; border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.scr-bal small { color: #b9b2c5; font-size: .7rem; }
.scr-bal div { font-family: var(--mono); font-size: 1.2rem; font-weight: 700; }
.scr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.scr-grid span { aspect-ratio: 1; border-radius: 14px; background: var(--t); display: grid; place-items: center; color: var(--c); }
.scr-grid svg { width: 20px; height: 20px; }
.notifs { position: relative; height: 230px; }
.notif { position: absolute; left: 0; right: 0; background: var(--paper); border-radius: 16px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; box-shadow: var(--sh); font-size: .74rem; transition: transform .7s var(--out), opacity .5s; }
.notif .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--t); color: var(--c); }
.notif .ic svg { width: 16px; height: 16px; }
.notif b { display: block; font-size: .78rem; }
.notif em { font-style: normal; margin-left: auto; font-family: var(--mono); font-weight: 700; color: #0b7b5e; font-size: .72rem; }
.float-card { position: absolute; z-index: 2; background: var(--paper); border-radius: 18px; padding: 12px 14px; box-shadow: var(--sh-2); font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.float-card.f1 { left: -4%; bottom: 18%; animation: bob 7s ease-in-out infinite; }
.float-card.f2 { right: -2%; top: 30%; animation: bob 8s -3s ease-in-out infinite; }
.float-card .big { font-family: var(--display); font-size: 1.4rem; color: var(--red); }
.float-card .fc-ok { width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; }
.float-card .fc-ok svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */
.sec { padding: 56px 0; }
.sec-h { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-h h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.sec-h h2 span { color: var(--red); }
.sec-h p { margin: 8px 0 0; color: var(--ink-2); }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }

/* Category tiles */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat { background: var(--paper); border-radius: var(--r); padding: 18px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 10px; min-height: 168px; position: relative; overflow: hidden; transition: transform .45s var(--pop), box-shadow .3s; }
.cat:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--sh-2); }
.cat .ic { width: 54px; height: 54px; border-radius: 17px; background: var(--t); color: var(--c); display: grid; place-items: center; transition: transform .5s var(--pop), border-radius .5s; }
.cat:hover .ic { transform: rotate(-10deg) scale(1.1); border-radius: 50%; }
.cat .ic svg { width: 26px; height: 26px; }
.cat h3 { font-size: 1rem; }
.cat p { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.cat .grp { position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: .64rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* Promo strip */
.promos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: none; }
.promos::-webkit-scrollbar { display: none; }
.promo { scroll-snap-align: start; border-radius: var(--r); padding: 20px; background: var(--c); color: #fff; position: relative; overflow: hidden; min-height: 180px; display: flex; flex-direction: column; }
.promo.t-sun { color: var(--ink); background: var(--sun); }
.promo.t-mint { background: #0fb88d; }
.promo::before, .promo::after { content: ''; position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); top: 50%; translate: 0 -50%; }
.promo::before { left: -13px; } .promo::after { right: -13px; }
.promo h3 { font-size: 1.3rem; margin-bottom: 6px; }
.promo p { margin: 0; font-size: .86rem; opacity: .9; max-width: 30ch; }
.promo .row { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 16px; border-top: 2px dashed rgba(255, 255, 255, .45); }
.promo.t-sun .row { border-color: rgba(27, 21, 37, .25); }
.promo code { font-family: var(--mono); font-weight: 800; letter-spacing: .06em; font-size: 1rem; }
.promo button { background: rgba(255, 255, 255, .22); color: inherit; height: 34px; padding: 0 14px; border-radius: 10px; font-weight: 700; font-size: .8rem; transition: background .2s, transform .3s var(--pop); }
.promo button:hover { background: rgba(255, 255, 255, .35); }
.promo.t-sun button { background: rgba(27, 21, 37, .1); }
.promo button.ok { transform: scale(1.06); }

/* Game spotlight */
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.game { border-radius: var(--r); padding: 18px; color: #fff; background: var(--gc); position: relative; overflow: hidden; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .45s var(--pop); isolation: isolate; }
.game:hover { transform: translateY(-5px) scale(1.02); }
.game .gm { position: absolute; right: -10px; top: -18px; font-family: var(--display); font-weight: 800; font-size: 4.6rem; opacity: .18; letter-spacing: -.06em; z-index: -1; transition: transform .6s var(--pop); }
.game:hover .gm { transform: rotate(-8deg) scale(1.1); }
.game h3 { font-size: 1.05rem; }
.game small { opacity: .8; font-size: .8rem; }

/* Steps */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.step { background: var(--paper); border-radius: var(--r); padding: 24px; box-shadow: var(--sh); position: relative; }
.step::before { counter-increment: s; content: '0' counter(s); font-family: var(--mono); font-weight: 700; color: var(--red); font-size: .9rem; }
.step h3 { font-size: 1.15rem; margin: 14px 0 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: .92rem; }

/* Stats band */
.band { background: var(--ink); color: #fff; border-radius: 30px; padding: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; overflow: hidden; }
.band::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 40px solid var(--red); right: -90px; top: -90px; opacity: .9; }
.band div { position: relative; z-index: 1; }
.band b { display: block; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); }
.band small { color: #b9b2c5; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.qa { background: var(--paper); border-radius: 18px; box-shadow: var(--sh); overflow: hidden; }
.qa > button { width: 100%; text-align: left; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qa > button i { width: 30px; height: 30px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; flex: none; font-style: normal; transition: transform .4s var(--pop), background .2s; }
.qa.open > button i { transform: rotate(45deg); background: var(--red); color: #fff; }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--out); }
.qa.open .ans { grid-template-rows: 1fr; }
.qa .ans > div { overflow: hidden; }
.qa .ans p { margin: 0; padding: 0 20px 18px; color: var(--ink-2); }

.help { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--t-red); border-radius: 26px; padding: 28px 32px; flex-wrap: wrap; }
.help h3 { font-size: 1.4rem; }
.help p { margin: 6px 0 0; color: var(--ink-2); }

/* ---------- Footer ---------- */
.ftr { margin-top: 40px; padding: 40px 0 120px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.ftr-g { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.ftr h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a:hover { color: var(--red); }
.ftr .bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }

/* ---------- Product page ---------- */
.ph { padding: 30px 0 18px; }
.crumb { font-size: .84rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.crumb a:hover { color: var(--ink); }
.ph-row { display: flex; align-items: center; gap: 16px; }
.ph-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--t); color: var(--c); display: grid; place-items: center; flex: none; }
.ph-ic svg { width: 30px; height: 30px; }
.ph h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.ph p { margin: 4px 0 0; color: var(--ink-2); }
.catnav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 14px; }
.catnav::-webkit-scrollbar { display: none; }
.catnav a { flex: none; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: .86rem; transition: all .2s; }
.catnav a span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--t); color: var(--c); }
.catnav a span svg { width: 15px; height: 15px; }
.catnav a.on { background: var(--ink); color: #fff; box-shadow: none; }

.buy { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
.card { background: var(--paper); border-radius: 26px; padding: 24px; box-shadow: var(--sh); }
.card + .card { margin-top: 14px; }
.card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.card h3 .n { width: 28px; height: 28px; border-radius: 9px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: .8rem; display: grid; place-items: center; flex: none; }
.sticky { position: sticky; top: 90px; }

/* Providers */
.provs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.prov { background: var(--bg); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: transform .4s var(--pop), background .2s, box-shadow .2s; text-align: left; }
.prov:hover { transform: translateY(-4px); background: var(--paper); box-shadow: var(--sh-2); }
.prov.on { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.mono-badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .7rem; letter-spacing: -.02em; flex: none; }
.prov b { font-size: .92rem; line-height: 1.2; }
.prov small { font-size: .74rem; color: var(--muted); }
.prov-sel { display: flex; align-items: center; gap: 14px; background: var(--bg); border-radius: 18px; padding: 12px 14px; margin-bottom: 18px; }
.prov-sel b { display: block; }
.prov-sel small { color: var(--muted); }
.prov-sel a { margin-left: auto; font-weight: 700; font-size: .84rem; color: var(--red); }

/* Fields */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields .full { grid-column: 1 / -1; }
.fld label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin: 0 0 6px 4px; }
.fld .inp { position: relative; }
.fld input, .fld select { width: 100%; height: 56px; border-radius: 16px; border: 0; background: var(--bg); padding: 0 16px; font-weight: 600; outline: none; transition: box-shadow .2s, background .2s; font-size: 1rem; }
.fld input.mono { font-family: var(--mono); letter-spacing: .04em; }
.fld select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1525' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
.fld input:focus, .fld select:focus { box-shadow: inset 0 0 0 2px var(--ink); background: var(--paper); }
.fld .err { display: none; font-size: .78rem; font-weight: 700; color: var(--red-d); margin: 6px 4px 0; }
.fld.bad input, .fld.bad select { box-shadow: inset 0 0 0 2px var(--red); background: #fff5f4; animation: shake .4s; }
.fld.bad .err { display: block; }
@keyframes shake { 25%, 75% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }
.fld .opbadge { right: 12px; }
.saved { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; font-size: .8rem; color: var(--muted); }
.saved .chip { height: 32px; font-family: var(--mono); font-size: .78rem; }
.checkrow { display: flex; gap: 10px; margin-top: 12px; align-items: stretch; flex-wrap: wrap; }
.who { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 12px; background: var(--t-mint); border-radius: 16px; padding: 10px 14px; animation: pIn .45s var(--out); }
.who .av { width: 38px; height: 38px; border-radius: 12px; background: #0fb88d; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.who small { display: block; color: #0b7b5e; font-size: .74rem; font-weight: 700; }
.who b { font-family: var(--mono); font-size: .92rem; }
.who.bill { background: var(--t-sun); }
.who.bill .av { background: var(--sun); color: var(--ink); }
.who.bill small { color: #8a6200; }

/* Nominal tiles */
.noms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nom { position: relative; text-align: left; background: var(--bg); border-radius: 18px; padding: 16px 14px 14px; transition: transform .35s var(--pop), background .2s, box-shadow .2s; display: flex; flex-direction: column; gap: 2px; min-height: 106px; }
.nom:hover { background: var(--paper); box-shadow: var(--sh); transform: translateY(-2px); }
.nom.on { background: var(--paper); box-shadow: inset 0 0 0 2px var(--red), 0 10px 24px -12px rgba(255, 61, 46, .6); animation: sel .45s var(--pop); }
@keyframes sel { 40% { transform: scale(1.04); } }
.nom .t { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.15; }
.nom .s { font-size: .74rem; color: var(--muted); }
.nom .p { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: .92rem; color: var(--red-d); }
.nom .p s { color: var(--muted); font-weight: 600; font-size: .74rem; margin-left: 4px; }
.nom .tag { position: absolute; top: -8px; right: 10px; background: var(--ink); color: #fff; font-size: .64rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; letter-spacing: .02em; }
.nom .tag.hemat { background: var(--mint); color: var(--ink); }
.nom .tick { position: absolute; bottom: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .35s var(--pop); }
.nom .tick svg { width: 13px; height: 13px; }
.nom.on .tick { transform: scale(1); }
.locked { text-align: center; padding: 34px 20px; color: var(--muted); background: var(--bg); border-radius: 18px; font-size: .92rem; }
.locked svg { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--ink-2); }

/* Summary */
.sum-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sum-h .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--t); color: var(--c); display: grid; place-items: center; flex: none; }
.sum-h .ic svg { width: 22px; height: 22px; }
.sum-h b { display: block; font-size: .98rem; }
.sum-h small { color: var(--muted); font-size: .8rem; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .92rem; }
.kv span:first-child { color: var(--muted); }
.kv b { text-align: right; word-break: break-all; }
.kv.minus b { color: #0b9a72; }
.kv.total { border-top: 2px dashed var(--line); margin-top: 8px; padding-top: 14px; align-items: baseline; }
.kv.total span:first-child { color: var(--ink); font-weight: 700; }
.kv.total b { font-family: var(--display); font-size: 1.5rem; letter-spacing: -.03em; }
.empty-sum { text-align: center; color: var(--muted); padding: 18px 6px; font-size: .9rem; }
.mbar { display: none; }

/* ---------- Modal ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(27, 21, 37, .5); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.scrim.open { opacity: 1; visibility: visible; pointer-events: auto; }
.scrim:not(.open), .modal:not(.open) { pointer-events: none; }
.modal { position: fixed; z-index: 81; left: 50%; top: 50%; width: min(520px, calc(100% - 24px)); max-height: calc(100vh - 40px); background: var(--paper); border-radius: 28px; translate: -50% -50%; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: scale(.92) translateY(20px); transition: opacity .3s, visibility .3s, transform .5s var(--pop); box-shadow: var(--sh-2); }
.modal.open { opacity: 1; visibility: visible; transform: none; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 10px; }
.modal-h h3 { font-size: 1.25rem; }
.xbtn { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; transition: transform .3s var(--pop); }
.xbtn:hover { transform: rotate(90deg); }
.xbtn svg { width: 18px; height: 18px; }
.modal-b { padding: 4px 24px 12px; overflow-y: auto; }
.modal-f { padding: 14px 24px 24px; border-top: 1px solid var(--line); }
.order-box { background: var(--bg); border-radius: 18px; padding: 14px 16px; margin-bottom: 16px; }
.pgrp { font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.pays { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--bg); cursor: pointer; transition: box-shadow .2s, background .2s, transform .3s var(--pop); position: relative; }
.pay:hover { transform: translateY(-2px); }
.pay input { position: absolute; opacity: 0; pointer-events: none; }
.pay:has(input:checked) { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.pay:has(input:focus-visible) { outline: 3px solid var(--sky); }
.pay .pm { min-width: 42px; height: 28px; border-radius: 8px; color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; padding: 0 6px; flex: none; }
.pay b { font-size: .84rem; line-height: 1.15; display: block; }
.pay small { font-size: .7rem; color: var(--muted); }
.promo-in { display: flex; gap: 8px; margin-top: 16px; background: var(--bg); padding: 5px; border-radius: 16px; }
.promo-in input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; outline: none; font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.promo-on { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--t-mint); border-radius: 14px; padding: 10px 14px; margin-top: 16px; font-size: .86rem; font-weight: 700; }
.promo-on button { text-decoration: underline; font-size: .8rem; }
.promo-hint { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: .76rem; color: var(--muted); align-items: center; }
.promo-hint button { font-family: var(--mono); font-weight: 700; font-size: .72rem; background: var(--t-red); color: var(--red-d); padding: 3px 8px; border-radius: 8px; }

/* Hold to pay */
.hold { position: relative; width: 100%; height: 62px; border-radius: 18px; background: var(--red); color: #fff; font-weight: 800; font-size: 1rem; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; box-shadow: 0 14px 30px -12px rgba(255, 61, 46, .8); transition: transform .3s var(--pop); }
.hold .fill { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.hold .lbl { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; height: 100%; }
.hold .lbl svg { width: 20px; height: 20px; }
.hold.holding { transform: scale(.98); }
.hold-note { text-align: center; font-size: .76rem; color: var(--muted); margin-top: 8px; }

/* Processing */
.proc { position: fixed; inset: 0; z-index: 120; background: var(--ink); color: #fff; display: grid; place-items: center; text-align: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.proc.open { opacity: 1; visibility: visible; }
.bars { display: flex; gap: 8px; align-items: end; height: 70px; justify-content: center; }
.bars i { width: 14px; border-radius: 6px; background: var(--red); animation: sig 1s ease-in-out infinite; }
.bars i:nth-child(1) { height: 30%; } .bars i:nth-child(2) { height: 55%; animation-delay: .12s; background: var(--sun); } .bars i:nth-child(3) { height: 80%; animation-delay: .24s; background: var(--mint); } .bars i:nth-child(4) { height: 100%; animation-delay: .36s; background: var(--sky); }
@keyframes sig { 50% { transform: scaleY(.35); opacity: .6; } }
.proc h3 { font-size: 1.6rem; margin: 26px 0 8px; }
.proc p { color: #b9b2c5; margin: 0; }
.proc .pstep { margin-top: 18px; font-family: var(--mono); font-size: .86rem; color: var(--mint); min-height: 1.4em; }
.qrbox { width: 160px; height: 160px; background: #fff; border-radius: 16px; padding: 10px; margin: 20px auto 0; }

/* ---------- Receipt ---------- */
.rcpt-wrap { max-width: 520px; margin: 0 auto; padding: 30px 0 20px; }
.rcpt { background: var(--paper); border-radius: 28px; box-shadow: var(--sh-2); position: relative; overflow: hidden; animation: pIn .6s var(--out); }
.rcpt-top { padding: 28px 26px 22px; text-align: center; position: relative; }
.rcpt-top .ok { width: 70px; height: 70px; border-radius: 22px; background: var(--mint); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; animation: okpop .7s var(--pop) both; }
.rcpt-top .ok svg { width: 34px; height: 34px; }
@keyframes okpop { from { transform: scale(0) rotate(-30deg); } }
.rcpt-top h2 { font-size: 1.5rem; }
.rcpt-top p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.rcpt-top .amt { font-family: var(--display); font-size: 2.2rem; letter-spacing: -.04em; margin-top: 10px; }
.stamp { position: absolute; right: 18px; top: 22px; border: 3px solid var(--red); color: var(--red); font-family: var(--display); font-weight: 800; font-size: .95rem; padding: 4px 10px; border-radius: 10px; transform: rotate(14deg); opacity: .85; animation: stamp .6s .5s var(--pop) both; letter-spacing: .08em; }
@keyframes stamp { from { transform: rotate(14deg) scale(2.4); opacity: 0; } }
.cut { height: 24px; position: relative; }
.cut::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; border-top: 2px dashed var(--line); margin: 0 20px; }
.cut i { position: absolute; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.cut i:first-child { left: -12px; } .cut i:last-child { right: -12px; }
.rcpt-b { padding: 6px 26px 24px; }
.code-box { background: var(--ink); color: #fff; border-radius: 18px; padding: 16px; margin: 4px 0 14px; text-align: center; }
.code-box small { color: #b9b2c5; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.code-box .code { font-family: var(--mono); font-weight: 700; font-size: 1.25rem; letter-spacing: .08em; margin: 6px 0 10px; word-break: break-all; color: var(--sun); }
.code-box button { background: rgba(255, 255, 255, .12); height: 34px; padding: 0 14px; border-radius: 10px; font-weight: 700; font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; transition: background .2s; }
.code-box button:hover { background: rgba(255, 255, 255, .22); }
.code-box button svg { width: 14px; height: 14px; }
.rcpt-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- History ---------- */
.hist-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.hist-tools .search { flex: 1; min-width: 220px; position: relative; }
.hist-tools .search input { width: 100%; height: 44px; border: 0; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); padding: 0 14px 0 40px; outline: none; font-weight: 600; }
.hist-tools .search input:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.hist-tools .search svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--muted); }
.hist { display: grid; gap: 10px; }
.tx { display: grid; grid-template-columns: 50px 1fr auto; gap: 14px; align-items: center; background: var(--paper); border-radius: 20px; padding: 14px 18px 14px 14px; box-shadow: var(--sh); transition: transform .35s var(--pop), box-shadow .2s; }
.tx:hover { transform: translateX(4px); box-shadow: var(--sh-2); }
.tx .ic { width: 50px; height: 50px; border-radius: 15px; background: var(--t); color: var(--c); display: grid; place-items: center; }
.tx .ic svg { width: 22px; height: 22px; }
.tx b { display: block; font-size: .95rem; }
.tx small { color: var(--muted); font-size: .8rem; }
.tx .r { text-align: right; }
.tx .r b { font-family: var(--mono); }
.badge-ok { display: inline-block; background: var(--t-mint); color: #0b7b5e; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; margin-top: 2px; }
.blank { text-align: center; padding: 60px 20px; background: var(--paper); border-radius: 26px; box-shadow: var(--sh); }
.blank .ill { width: 96px; height: 96px; border-radius: 30px; background: var(--t-red); color: var(--red); display: grid; place-items: center; margin: 0 auto 18px; animation: bob 5s ease-in-out infinite; }
.blank .ill svg { width: 42px; height: 42px; }
.blank h3 { font-size: 1.4rem; margin-bottom: 8px; }
.blank p { color: var(--muted); margin: 0 auto 20px; max-width: 40ch; }

/* Toast */
.toasts { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 150; display: grid; gap: 8px; justify-items: center; width: min(420px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: none; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 14px 12px 12px; border-radius: 16px; font-size: .9rem; font-weight: 600; box-shadow: var(--sh-2); animation: tIn .5s var(--pop) both; max-width: 100%; }
.toast .d { width: 24px; height: 24px; border-radius: 8px; background: var(--mint); color: var(--ink); display: grid; place-items: center; flex: none; font-weight: 900; font-size: .8rem; }
.toast.err .d { background: var(--red); color: #fff; }
.toast.out { animation: tOut .25s ease-in forwards; }
@keyframes tIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes tOut { to { opacity: 0; transform: translateY(12px); } }
.spark { position: fixed; pointer-events: none; z-index: 140; width: 10px; height: 10px; border-radius: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
  .games { grid-template-columns: repeat(3, 1fr); }
  .cs { display: none; }
}
@media (max-width: 900px) {
  .hero-g, .buy { grid-template-columns: 1fr; }
  .phone-wrap { margin-top: 20px; }
  .nav { display: none; }
  .hdr-r { margin-left: auto; }
  .sticky { position: static; }
  .buy aside { display: none; }
  .band { grid-template-columns: 1fr 1fr; padding: 30px; }
  .ftr-g { grid-template-columns: 1fr 1fr; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; background: var(--ink); border-radius: 22px; padding: 6px; box-shadow: var(--sh-2); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 16px; color: #9d95ab; font-size: .7rem; font-weight: 700; transition: all .25s; }
  .tabbar a svg { width: 20px; height: 20px; }
  .tabbar a.on { color: #fff; background: rgba(255, 255, 255, .1); }
  .tabbar a.on svg { color: var(--red); }
  body.has-mbar .tabbar { display: none; }
  .mbar { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 61; background: var(--ink); color: #fff; border-radius: 22px; padding: 10px 10px 10px 18px; align-items: center; gap: 12px; box-shadow: var(--sh-2); transform: translateY(160%); transition: transform .5s var(--pop); }
  .mbar.show { transform: none; }
  .mbar .t { flex: 1; min-width: 0; }
  .mbar small { display: block; color: #b9b2c5; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar b { font-family: var(--display); font-size: 1.1rem; }
  .mbar .btn { height: 46px; }
}
@media (max-width: 640px) {
  .hdr-in { height: 64px; }
  .logo { font-size: 1.12rem; }
  .hero { padding-top: 22px; }
  .quick-tabs button { font-size: .76rem; gap: 4px; }
  .quick-in { flex-direction: column; align-items: stretch; }
  .phone { width: 250px; height: 480px; }
  .phone-wrap::before { width: 300px; height: 300px; }
  .phone-wrap::after { width: 100px; height: 100px; }
  .float-card.f2 { display: none; }
  .float-card.f1 { left: 0; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat { min-height: 150px; padding: 14px; }
  .games { grid-template-columns: 1fr 1fr; gap: 10px; }
  .steps3 { grid-template-columns: 1fr; }
  .noms { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr; }
  .card { padding: 18px; border-radius: 22px; }
  .pays { grid-template-columns: 1fr; }
  .modal { top: auto; bottom: 0; translate: -50% 0; width: 100%; border-radius: 28px 28px 0 0; max-height: 92vh; transform: translateY(100%); }
  .modal.open { transform: none; }
  .ftr-g { grid-template-columns: 1fr; }
  .tx { grid-template-columns: 44px 1fr; }
  .tx .ic { width: 44px; height: 44px; }
  .tx .r { grid-column: 2; text-align: left; display: flex; gap: 10px; align-items: center; }
  .help { padding: 22px; }
  .sec { padding: 42px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .hdr, .tabbar, .ftr, .toasts, .rcpt-actions, .no-print { display: none !important; }
  .rcpt { box-shadow: none; }
}
