/* =========================================================
   FastCoin Shop — TikTok light theme
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-soft: #f8f8f8;
  --bg-input: #f1f1f2;
  --bg-hover: #ebebec;
  --text: #161823;
  --text-2: rgba(22, 24, 35, .75);
  --muted: rgba(22, 24, 35, .5);
  --line: rgba(22, 24, 35, .12);
  --line-2: rgba(22, 24, 35, .06);
  --primary: #fe2c55;
  --primary-2: #ef2950;
  --primary-soft: rgba(254, 44, 85, .08);
  --cyan: #25f4ee;
  --cyan-deep: #00c2bb;
  --gold: #ffb800;
  --gold-soft: #fff6dc;
  --wa: #25d366;
  --wa-deep: #1da851;
  --ok: #0bb07b;
  --warn: #f59e0b;
  --info: #3b82f6;
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 20px;
  --radius-xl: 28px;
  --shadow-s: 0 1px 2px rgba(22, 24, 35, .06), 0 1px 1px rgba(22, 24, 35, .04);
  --shadow: 0 2px 8px rgba(22, 24, 35, .06), 0 12px 32px rgba(22, 24, 35, .08);
  --shadow-l: 0 24px 64px rgba(22, 24, 35, .14);
  --font: "TikTok Sans", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --topbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

.ic { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-s { max-width: 760px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0; }

/* ---------- glitch text (TikTok offset) ---------- */
.tt {
  position: relative;
  display: inline-block;
  color: var(--text);
  text-shadow: -2px -1.5px 0 var(--cyan), 2px 1.5px 0 var(--primary);
}
.tt-soft { text-shadow: -1.5px -1px 0 rgba(37, 244, 238, .9), 1.5px 1px 0 rgba(254, 44, 85, .9); }
.grad-text {
  background: linear-gradient(92deg, var(--primary) 10%, #ff6b8a 50%, var(--primary) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: -.005em;
  white-space: nowrap; user-select: none;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s, opacity .2s;
  background: var(--bg-input); color: var(--text);
  position: relative;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; }
.btn-sm { --h: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); box-shadow: 0 8px 24px rgba(254, 44, 85, .28); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #2f3140; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--bg-input); }
.btn-outline { background: #fff; border-color: var(--line); }
.btn-outline:hover { background: var(--bg-soft); border-color: rgba(22, 24, 35, .24); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); box-shadow: 0 8px 24px rgba(37, 211, 102, .3); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-outline.is-loading::after, .btn-ghost.is-loading::after { border-color: var(--line); border-top-color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

.link { color: var(--primary); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- announcement ---------- */
.announce {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--text); color: #fff; font-size: 13px; font-weight: 600;
  padding: 9px 16px; text-align: center;
}
.announce-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(37, 244, 238, .25); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(37, 244, 238, 0); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.topbar.scrolled { border-color: var(--line-2); box-shadow: 0 1px 0 var(--line-2); }
.topbar-in { height: var(--topbar-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; flex: none; min-width: 0; }
.logo picture { display: block; }
.logo-img { display: block; height: 34px; width: auto; transition: transform .35s var(--ease); }
.logo:hover .logo-img { transform: scale(1.03); }
.footer-brand .logo-img { height: 30px; }
.logo-mark { border-radius: 11px; transition: transform .35s var(--ease); }


.topnav { display: flex; gap: 4px; margin-left: 12px; }
.topnav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--text-2); transition: background .2s, color .2s; }
.topnav a:hover, .topnav a.on { color: var(--text); background: var(--bg-input); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-txt { display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--cyan), var(--primary)); color: #fff; font-weight: 800; font-size: 14px; }
.avatar-btn { padding: 0; border: 0; background: none; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); transition: box-shadow .2s; }
.avatar-btn:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--primary); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 240px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-l); border: 1px solid var(--line-2);
  padding: 6px; opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
  pointer-events: none; transition: opacity .18s, transform .18s var(--ease);
}
.dropdown.open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }
.dd-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; display: grid; }
.dd-head strong { font-size: 15px; }
.dd-head span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px;
  font-weight: 600; font-size: 14px; background: none; border: 0; text-align: left;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg-input); }
.dropdown-menu .ic { width: 18px; height: 18px; color: var(--text-2); }
.dropdown-menu form { margin: 0; }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px;
  background: rgba(22, 24, 35, .92); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-l); backdrop-filter: blur(8px);
  animation: toastIn .4s var(--ease) both; pointer-events: auto;
}
.toast .ic { width: 18px; height: 18px; color: var(--cyan); }
.toast-error .ic { color: #ff8aa1; }
.toast.out { animation: toastOut .3s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px) scale(.96); } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px -100px auto auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 244, 238, .18), transparent 65%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -260px -160px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 44, 85, .12), transparent 65%); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--bg-input); font-size: 13px; font-weight: 700; margin-bottom: 20px;
}
.eyebrow b { background: var(--text); color: #fff; padding: 3px 9px; border-radius: 999px; font-size: 12px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -.045em; }
.hero-sub { margin-top: 20px; font-size: 18px; color: var(--text-2); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust div { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.hero-trust .ic { width: 18px; height: 18px; color: var(--primary); }

/* phone mockup */
.phone-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone {
  position: relative; width: 300px; height: 600px; border-radius: 46px; background: #0b0c10;
  padding: 12px; box-shadow: var(--shadow-l), inset 0 0 0 2px #2a2c36;
  transform: rotate(-4deg); animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: rotate(-4deg) translateY(-12px); } }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #0b0c10; border-radius: 20px; z-index: 3; }
.ps-head { padding: 48px 18px 10px; display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 15px; }
.ps-head .ic { width: 18px; height: 18px; }
.ps-balance { margin: 6px 16px 0; border-radius: 18px; padding: 16px; background: linear-gradient(135deg, #fff7e0, #fff); border: 1px solid #ffe7a3; }
.ps-balance small { font-size: 12px; font-weight: 700; color: var(--muted); }
.ps-balance-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.ps-balance-row strong { font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ps-balance .coin-ico { width: 28px; height: 28px; }
.ps-plus { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--ok); background: #e3f8f0; padding: 4px 8px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: .4s var(--ease); }
.ps-plus.show { opacity: 1; transform: none; }
.ps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 16px 0; }
.ps-pack { border: 1.5px solid var(--line-2); border-radius: 12px; padding: 10px 4px; text-align: center; background: var(--bg-soft); transition: .3s var(--ease); }
.ps-pack.on { border-color: var(--primary); background: var(--primary-soft); transform: scale(1.04); }
.ps-pack b { display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 13px; }
.ps-pack b .coin-ico { width: 14px; height: 14px; }
.ps-pack span { font-size: 11px; color: var(--muted); font-weight: 600; }
.ps-lottie { height: 150px; margin-top: 6px; }
.ps-btn { margin: auto 16px 20px; height: 46px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; }

.float-card {
  position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; border: 1px solid var(--line-2);
  animation: floaty2 5s ease-in-out infinite; z-index: 2;
}
.float-card small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.float-card .fc-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card .fc-ico .ic { width: 20px; height: 20px; }
.fc-1 { top: 70px; left: -10px; }
.fc-2 { bottom: 110px; right: -16px; animation-delay: -2.5s; }
.fc-3 { bottom: 30px; left: 20px; animation-delay: -1.2s; }
@keyframes floaty2 { 50% { transform: translateY(-10px); } }

.coin-ico { display: inline-block; width: 20px; height: 20px; flex: none; }

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line-2); background: var(--bg-soft); overflow: hidden; padding: 16px 0; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 32s linear infinite; }
.ticker-item { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.ticker-item .ic { width: 22px; height: 22px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker { display: inline-block; font-size: 13px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.035em; }
.section-head p { margin-top: 14px; color: var(--text-2); font-size: 17px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative; padding: 28px 22px 24px; border-radius: var(--radius-l); background: #fff;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-s); transition: transform .3s var(--ease), box-shadow .3s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { font-size: 13px; font-weight: 800; color: var(--muted); }
.step-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin: 14px 0 18px; background: var(--bg-input); }
.step-ico .ic { width: 24px; height: 24px; }
.step:nth-child(1) .step-ico { background: #e7fdfc; color: var(--cyan-deep); }
.step:nth-child(2) .step-ico { background: var(--gold-soft); color: #d99a00; }
.step:nth-child(3) .step-ico { background: var(--primary-soft); color: var(--primary); }
.step:nth-child(4) .step-ico { background: #e4f9ec; color: var(--wa-deep); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 14px; }

/* pricing */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.pack {
  position: relative; display: block; padding: 22px 18px 18px; border-radius: var(--radius-l); background: #fff;
  border: 1.5px solid var(--line-2); text-align: center; transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
.pack:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 16px 40px rgba(254, 44, 85, .12); }
.pack.hot { border-color: var(--primary); background: linear-gradient(180deg, #fff5f7, #fff 60%); }
.pack-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.pack .coin-ico { width: 40px; height: 40px; margin: 0 auto 10px; }
.pack-coins { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.pack-coins small { font-size: 13px; font-weight: 700; color: var(--muted); }
.pack-price { margin-top: 10px; font-size: 18px; font-weight: 800; }
.pack-pkr { font-size: 13px; color: var(--muted); font-weight: 600; }
.pack-cta { margin-top: 14px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--bg-input); font-weight: 700; font-size: 14px; transition: .2s; }
.pack:hover .pack-cta, .pack.hot .pack-cta { background: var(--primary); color: #fff; }
.price-note { text-align: center; margin-top: 22px; color: var(--muted); font-size: 14px; }

/* calculator */
.calc {
  max-width: 760px; margin: 40px auto 0; padding: 28px; border-radius: var(--radius-xl); background: var(--text); color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden;
}
.calc::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(254, 44, 85, .45), transparent 70%); }
.calc::after { content: ""; position: absolute; left: -60px; bottom: -100px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 244, 238, .3), transparent 70%); }
.calc > * { position: relative; z-index: 1; }
.calc label { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .6); }
.calc-input { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.calc-input input {
  width: 100%; height: 56px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06);
  padding: 0 16px; font-size: 22px; font-weight: 800; color: #fff; outline: none; transition: border-color .2s;
}
.calc-input input:focus { border-color: var(--cyan); }
.calc-out { text-align: right; }
.calc-out strong { display: block; font-size: 34px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-out span { color: rgba(255, 255, 255, .65); font-weight: 600; font-size: 14px; }
.calc .btn { grid-column: 1 / -1; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; border-radius: var(--radius-l); background: #fff; border: 1px solid var(--line-2); }
.feature .ic { width: 26px; height: 26px; color: var(--primary); margin-bottom: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 14px; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: #fff; border: 1px solid var(--line-2); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { margin-left: auto; transition: transform .25s var(--ease); color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--primary); }
.faq .faq-a { padding: 0 20px 18px; color: var(--text-2); }

/* CTA band */
.cta-band {
  margin: 0 auto; max-width: 1132px; border-radius: var(--radius-xl); padding: 56px 40px; text-align: center; color: #fff;
  background: radial-gradient(circle at 15% 20%, rgba(37, 244, 238, .35), transparent 40%), radial-gradient(circle at 85% 80%, rgba(254, 44, 85, .55), transparent 45%), var(--text);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.035em; }
.cta-band p { margin: 12px auto 28px; color: rgba(255, 255, 255, .72); max-width: 520px; font-size: 17px; }
.cta-band .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, .08); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-2); padding: 56px 0 24px; margin-top: 96px; background: #fff; }
.footer-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.footer-brand p { color: var(--text-2); margin: 14px 0 18px; max-width: 340px; font-size: 14px; }
.pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--bg-input); font-size: 12px; font-weight: 700; }
.pay-chip .ic { width: 16px; height: 16px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 14px; margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--text-2); font-size: 14px; padding: 5px 0; }
.footer-cols a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 13px; }

/* ---------- mobile tab bar & WA fab ---------- */
.tabbar { display: none; }
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .25s var(--ease);
}
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.2s infinite; }
.wa-fab .ic { width: 28px; height: 28px; }
.wa-fab:hover { transform: scale(1.08); }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field > label, .label { font-size: 14px; font-weight: 700; }
.field .hint { font-size: 13px; color: var(--muted); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .ic { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; transition: color .2s; }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 14px; border-radius: var(--radius-s);
  background: var(--bg-input); border: 1.5px solid transparent; outline: none; font-size: 15px; font-weight: 500;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input-wrap > .ic + .input { padding-left: 42px; }
.input:hover, .select:hover, .textarea:hover { background: var(--bg-hover); }
.input:focus, .select:focus, .textarea:focus { background: #fff; border-color: var(--text); box-shadow: 0 0 0 4px rgba(22, 24, 35, .05); }
.input-wrap:focus-within > .ic { color: var(--text); }
.input.is-invalid { border-color: var(--primary); background: #fff5f7; }
.input::placeholder, .textarea::placeholder { color: rgba(22, 24, 35, .38); }
.pw-toggle { position: absolute; right: 6px; width: 38px; height: 38px; border: 0; background: none; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.pw-toggle:hover { background: var(--bg-hover); color: var(--text); }
.pw-toggle .ic { width: 18px; height: 18px; }
.input-wrap .input.has-toggle { padding-right: 48px; }
.field-error { color: var(--primary); font-size: 13px; font-weight: 600; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); margin: 1px 0 0; flex: none; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 600; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { background: #fff; border: 1px solid var(--line); }
.btn-google:hover { background: var(--bg-soft); }
.btn-google .ic { width: 20px; height: 20px; }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--primary-soft); color: #c3163a; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.alert .ic { width: 18px; height: 18px; margin-top: 1px; }
.alert-info { background: #eef5ff; color: #1d4ed8; }
.alert-ok { background: #e6f8f1; color: #07845c; }

/* ---------- auth ---------- */
.auth {
  position: relative; min-height: calc(100vh - var(--topbar-h)); display: grid; place-items: center; padding: 48px 24px 72px; overflow: hidden;
  background: radial-gradient(520px circle at 12% 18%, rgba(37, 244, 238, .16), transparent 60%), radial-gradient(560px circle at 88% 82%, rgba(254, 44, 85, .12), transparent 60%), var(--bg-soft);
}
.auth-main { position: relative; z-index: 1; width: 100%; display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 24px; border: 1px solid var(--line-2); box-shadow: var(--shadow-l); padding: 40px 36px 32px; animation: authIn .5s var(--ease) both; }
@keyframes authIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.auth-badge { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-badge .logo-mark { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 10px 24px rgba(22, 24, 35, .18); }
.auth-card h1 { font-size: 30px; letter-spacing: -.035em; text-align: center; }
.auth-card .sub { color: var(--text-2); margin: 8px 0 28px; text-align: center; }
.auth-foot { margin-top: 22px; text-align: center; color: var(--text-2); font-size: 14px; }
.auth-perks { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; }
.auth-perks span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.auth-perks .ic { width: 15px; height: 15px; color: var(--primary); }

/* ---------- page header ---------- */
.page-top { padding: 40px 0 24px; }
.page-top h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.035em; }
.page-top p { color: var(--text-2); margin-top: 6px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.crumb:hover { color: var(--text); }
.crumb .ic { width: 16px; height: 16px; }

/* ---------- order flow ---------- */
.order-layout > * { min-width: 0; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-bottom: 40px; }
.stepper { display: flex; gap: 6px; margin-bottom: 22px; }
.stepper span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.stepper span::after { content: ""; position: absolute; inset: 0; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.stepper span.done::after { transform: scaleX(1); }
.stage-label { font-size: 13px; font-weight: 800; color: var(--primary); letter-spacing: .04em; text-transform: uppercase; }
.panel { background: #fff; border-radius: var(--radius-l); border: 1px solid var(--line-2); box-shadow: var(--shadow-s); padding: 28px; }
.stage { display: none; }
.stage.on { display: block; animation: stageIn .45s var(--ease) both; }
.stage.on.back { animation-name: stageInBack; }
@keyframes stageIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes stageInBack { from { opacity: 0; transform: translateX(-24px); } }
.stage h2 { font-size: 26px; letter-spacing: -.03em; margin: 6px 0 6px; }
.stage .lead { color: var(--text-2); margin-bottom: 24px; }
.stage-actions { display: flex; gap: 10px; margin-top: 28px; }
.stage-actions .btn-primary, .stage-actions .btn-wa { flex: 1; }

.secure-note { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--bg-soft); border: 1px dashed var(--line); font-size: 13px; color: var(--text-2); margin-top: 6px; }
.secure-note .ic { width: 20px; height: 20px; color: var(--ok); flex: none; }

.coin-box { border-radius: 16px; background: var(--bg-soft); padding: 18px; border: 1px solid var(--line-2); }
.coin-stepper { display: flex; align-items: center; gap: 10px; }
.coin-stepper button { width: 50px; height: 50px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 22px; font-weight: 700; display: grid; place-items: center; transition: .15s; flex: none; }
.coin-stepper button:hover { border-color: var(--text); }
.coin-stepper button:active { transform: scale(.94); }
.coin-field { flex: 1; position: relative; }
.coin-field .coin-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; }
.coin-field input { width: 100%; height: 56px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 24px; font-weight: 800; padding: 0 14px 0 50px; outline: none; letter-spacing: -.02em; font-variant-numeric: tabular-nums; transition: border-color .2s; }
.coin-field input:focus { border-color: var(--text); }
.range { width: 100%; margin: 18px 0 4px; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--primary) var(--p, 0%), var(--line) var(--p, 0%)); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); box-shadow: 0 2px 8px rgba(254, 44, 85, .35); cursor: grab; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); cursor: grab; }
.range-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: .15s; }
.chip .coin-ico { width: 16px; height: 16px; }
.chip:hover { border-color: var(--text); }
.chip.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.coin-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.coin-price strong { font-size: 28px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.coin-price span { color: var(--muted); font-weight: 600; font-size: 14px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-in {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; border: 1.5px solid var(--line);
  background: #fff; transition: border-color .2s, box-shadow .2s, transform .15s, background .2s; height: 100%;
}
.choice:hover .choice-in { border-color: rgba(22, 24, 35, .35); }
.choice input:checked + .choice-in { border-color: var(--primary); background: #fff8f9; box-shadow: 0 0 0 3px rgba(254, 44, 85, .12); }
.choice input:focus-visible + .choice-in { outline: 2px solid var(--primary); outline-offset: 2px; }
.choice:active .choice-in { transform: scale(.98); }
.choice-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-input); flex: none; }
.choice-ico .ic { width: 28px; height: 28px; }
.choice-ico.stack { position: relative; }
.choice-ico.stack .ic { width: 24px; height: 24px; }
.choice-body { min-width: 0; }
.choice-body b { display: block; font-size: 16px; }
.choice-body span { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.choice-price { margin-left: auto; font-weight: 800; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.choice input:checked + .choice-in .choice-price { color: var(--primary); }
.choice-price + .choice-tick { margin-left: 0; }
.choice-tick { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; transition: .2s; }
.choice-tick .ic { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.5); transition: .2s var(--ease); stroke-width: 3; }
.choice input:checked + .choice-in .choice-tick { background: var(--primary); border-color: var(--primary); }
.choice input:checked + .choice-in .choice-tick .ic { opacity: 1; transform: none; }
.sub-methods { margin-top: 16px; }
.sub-methods .label { margin-bottom: 10px; display: block; }

.summary { position: sticky; top: 88px; }
.summary-card { background: #fff; border-radius: var(--radius-l); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.summary-top { padding: 22px; background: var(--text); color: #fff; position: relative; overflow: hidden; }
.summary-top::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(254, 44, 85, .55), transparent 70%); }
.summary-top small { color: rgba(255, 255, 255, .6); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.summary-coins { display: flex; align-items: center; gap: 10px; margin-top: 6px; position: relative; z-index: 1; }
.summary-coins strong { font-size: 34px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.summary-coins .coin-ico { width: 32px; height: 32px; }
.summary-rows { padding: 18px 22px; display: grid; gap: 12px; }
.srow { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.srow span { color: var(--muted); font-weight: 600; }
.srow b { text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.srow.total { padding-top: 14px; border-top: 1px dashed var(--line); font-size: 16px; }
.srow.total b { font-size: 22px; color: var(--primary); letter-spacing: -.02em; }
.summary-foot { padding: 0 22px 22px; display: grid; gap: 10px; }
.summary-perks { display: grid; gap: 8px; margin-top: 16px; }
.summary-perks div { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.summary-perks .ic { width: 16px; height: 16px; color: var(--ok); }

.review-list { display: grid; gap: 2px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); }
.review-list div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--bg-soft); font-size: 14px; }
.review-list span { color: var(--muted); font-weight: 600; }
.review-list b { text-align: right; word-break: break-all; }
.wa-preview { margin-top: 18px; border-radius: 14px; background: #e7ddd3; background-image: radial-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px); background-size: 12px 12px; padding: 16px; }
.wa-bubble { overflow-wrap: anywhere; margin-left: auto; max-width: 92%; background: #d9fdd3; border-radius: 10px 0 10px 10px; padding: 10px 12px; font-size: 13px; white-space: pre-wrap; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); position: relative; }
.wa-bubble::after { content: ""; position: absolute; right: -7px; top: 0; width: 0; height: 0; border-style: solid; border-width: 0 0 10px 8px; border-color: transparent transparent transparent #d9fdd3; transform: scaleY(-1); }
.wa-bubble .wa-meta { display: block; text-align: right; font-size: 11px; color: rgba(0, 0, 0, .45); margin-top: 4px; }
.wa-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-2); margin: 22px 0 0; }
.wa-label .ic { width: 18px; height: 18px; color: var(--wa-deep); }

.mobile-bar { display: none; }

.closed-box { text-align: center; padding: 48px 24px; }
.closed-box h2 { font-size: 26px; margin: 12px 0 8px; }

/* ---------- success ---------- */
.success { max-width: 560px; margin: 0 auto; text-align: center; padding: 32px 0 20px; }
.success-lottie { width: 170px; height: 170px; margin: 0 auto; }
.success h1 { font-size: clamp(28px, 5vw, 38px); letter-spacing: -.035em; margin-top: 4px; }
.success .lead { color: var(--text-2); margin: 10px auto 0; max-width: 440px; }
.order-code { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--bg-input); font-weight: 800; font-size: 18px; letter-spacing: .04em; }
.order-code button { height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: #fff; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow-s); }
.order-code button .ic { width: 15px; height: 15px; }
.success-card { margin-top: 28px; text-align: left; }
.success .btn-wa { margin-top: 24px; }
.pulse-wa { animation: waPulse 2s infinite; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.timeline { display: grid; gap: 0; margin-top: 8px; }
.tl { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-input); color: var(--muted); flex: none; z-index: 1; font-size: 12px; font-weight: 800; }
.tl-dot .ic { width: 15px; height: 15px; stroke-width: 3; }
.tl.done .tl-dot { background: var(--ok); color: #fff; }
.tl.done::before { background: var(--ok); }
.tl.now .tl-dot { background: var(--primary); color: #fff; box-shadow: 0 0 0 5px rgba(254, 44, 85, .15); }
.tl b { display: block; font-size: 15px; }
.tl span { font-size: 13px; color: var(--muted); }

/* ---------- orders list ---------- */
.orders { display: grid; gap: 12px; }
.order-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-s); transition: transform .2s var(--ease), box-shadow .2s; }
.order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.order-coin { width: 52px; height: 52px; border-radius: 14px; background: var(--gold-soft); display: grid; place-items: center; }
.order-coin .coin-ico { width: 30px; height: 30px; }
.order-main { min-width: 0; }
.order-main strong { font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-main .meta { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-side { text-align: right; display: grid; gap: 6px; justify-items: end; }
.order-side b { font-size: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--bg-input); color: var(--text-2); white-space: nowrap; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending { background: #fff4e0; color: #b86e00; }
.badge-pending i { animation: blink 1.4s infinite; }
.badge-paid { background: #eaf2ff; color: #2563eb; }
.badge-processing { background: #eefcfc; color: #008d88; }
.badge-processing i { animation: blink 1s infinite; }
.badge-completed { background: #e6f8f1; color: #07845c; }
.badge-cancelled { background: #f3f3f4; color: #7a7b82; }
@keyframes blink { 50% { opacity: .25; } }

.empty { text-align: center; padding: 48px 24px; border-radius: var(--radius-l); border: 1.5px dashed var(--line); }
.empty-lottie { width: 150px; height: 150px; margin: 0 auto; }
.empty h3 { font-size: 20px; margin-top: 6px; }
.empty p { color: var(--muted); margin: 6px 0 20px; }

.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-mini { padding: 16px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line-2); }
.stat-mini span { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.stat-mini strong { display: block; font-size: 22px; letter-spacing: -.02em; margin-top: 2px; }

/* account */
.acc-head { display: flex; align-items: center; gap: 16px; }
.acc-head .avatar { width: 64px; height: 64px; font-size: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel h3 { font-size: 18px; margin-bottom: 16px; }

.inline-g { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
.lottie svg { display: block; }

/* legal */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 10px; }

/* 404 */
.nf { text-align: center; padding: 80px 0; }
.nf h1 { font-size: clamp(80px, 16vw, 160px); letter-spacing: -.06em; line-height: 1; }
.nf p { color: var(--text-2); margin: 12px 0 28px; font-size: 18px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .phone-stage { max-width: 460px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .order-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { display: none; }
  .mobile-bar {
    display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: calc(60px + var(--safe-b)); z-index: 45;
    padding: 12px 16px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); border-top: 1px solid var(--line-2);
  }
  .mobile-bar .mb-sum { min-width: 0; }
  .mobile-bar .mb-sum small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
  .mobile-bar .mb-sum strong { font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
  .mobile-bar .mb-coins { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; white-space: nowrap; }
  .mobile-bar .mb-coins .coin-ico { width: 16px; height: 16px; }
  .mobile-bar .btn { margin-left: auto; }
  .has-mobile-bar .footer { padding-bottom: 160px; }
  .stage-actions [data-next], .stage-actions [type=submit] { display: none; }
  .stage-actions [data-prev]::after { content: "Back"; }
  .stage-actions:not(:has([data-prev])) { display: none; }
}

@media (max-width: 860px) {
  :root { --topbar-h: 58px; }
  .wrap { padding: 0 16px; }
  .topnav, .hide-sm { display: none; }
  .logo-img { height: 28px; }
  .topbar-actions .btn-ghost { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    height: calc(60px + var(--safe-b)); padding: 0 6px var(--safe-b); background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line-2); box-shadow: 0 -6px 24px rgba(22, 24, 35, .05);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: rgba(22, 24, 35, .42); -webkit-tap-highlight-color: transparent; transition: color .2s;
  }
  .tab-ic { height: 28px; display: grid; place-items: center; transition: transform .2s var(--ease); }
  .tab-ic .ic { width: 24px; height: 24px; stroke-width: 1.9; }
  .tab-lb { font-size: 10.5px; font-weight: 700; line-height: 1; letter-spacing: .01em; }
  .tabbar a.on { color: var(--text); }
  .tabbar a.on .tab-ic .ic { stroke-width: 2.5; }
  .tabbar a:active .tab-ic { transform: scale(.88); }
  .tab-avatar { width: 26px; height: 26px; font-size: 10px; }
  .tabbar a.on .tab-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--text); }
  .tab-buy-in {
    width: 42px; height: 28px; border-radius: 9px; background: var(--text); color: #fff; display: grid; place-items: center;
    box-shadow: -3.5px 0 0 var(--cyan), 3.5px 0 0 var(--primary); transition: transform .2s var(--ease);
  }
  .tab-buy-in .ic { width: 20px; height: 20px; stroke-width: 3; }
  .tabbar .tab-buy { color: var(--text); }
  .tabbar .tab-buy:active .tab-buy-in { transform: scale(.9); }
  body { padding-bottom: calc(60px + var(--safe-b)); }
  .wa-fab { display: none; }
  .has-mobile-bar .wa-fab { display: none; }
  .footer { margin-top: 64px; padding-top: 40px; }
  .footer-in { grid-template-columns: 1fr; }
  .toasts { top: 68px; }

  .hero { padding: 28px 0 48px; }
  .hero-sub { font-size: 16px; }
  .hero-cta .btn { flex: 1; }
  .hero-trust { gap: 14px; }
  .phone-stage { min-height: 480px; transform: scale(.86); margin: -30px 0; }
  .fc-1 { left: 0; } .fc-2 { right: 0; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 15px; }
  .features { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; padding: 22px; }
  .calc-out { text-align: left; }
  .cta-band { border-radius: 0; padding: 48px 20px; }
  .panel { padding: 20px; border-radius: 16px; }
  .choice-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-mini { padding: 12px; }
  .stat-mini strong { font-size: 18px; }
  .order-card { grid-template-columns: auto 1fr; gap: 12px; padding: 14px; }
  .order-side { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; justify-items: start; text-align: left; padding-top: 12px; border-top: 1px solid var(--line-2); }
  .order-side .badge { justify-self: end; }
  .auth { padding: 20px 16px 40px; place-items: start center; }
  .auth-card { padding: 28px 20px 24px; border-radius: 20px; box-shadow: var(--shadow); }
  .stage-actions { position: relative; }
  .page-top { padding: 24px 0 18px; }
}

@media (max-width: 520px) {
  .logo-img { height: 24px; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 18px; }
  .step-num { grid-column: 2; }
  .step-ico { grid-row: 1 / span 3; margin: 0; }
  .packs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pack { padding: 18px 12px 14px; }
  .pack-coins { font-size: 20px; }
  .float-card { transform: scale(.9); }
  .fc-3 { display: none; }
  .order-code { font-size: 16px; }
}

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

.is-auth .footer { margin-top: 0; }

/* ---------- invoice pay page ---------- */
.is-pay { background: radial-gradient(520px circle at 10% 10%, rgba(37, 244, 238, .16), transparent 60%), radial-gradient(560px circle at 90% 90%, rgba(254, 44, 85, .12), transparent 60%), var(--bg-soft); }
.pay-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.pay-card { width: 100%; min-width: 0; max-width: 440px; background: #fff; border-radius: 24px; border: 1px solid var(--line-2); box-shadow: var(--shadow-l); padding: 28px 28px 20px; text-align: center; animation: authIn .5s var(--ease) both; }
.pay-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.pay-brand .logo-img { height: 28px; }
.pay-label { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg-input); padding: 5px 10px; border-radius: 999px; }
.pay-amount { font-size: 44px; font-weight: 800; letter-spacing: -.04em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.pay-title { font-size: 26px; letter-spacing: -.03em; }
.pay-sub { color: var(--text-2); margin-top: 6px; }
.pay-for { color: var(--muted); font-size: 14px; margin-top: 4px; }
.pay-form { text-align: left; margin-top: 22px; }
.pay-form .label { display: block; margin-bottom: 10px; }
.pay-form .choice-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.pay-form .choice-in { flex-direction: column; justify-content: center; text-align: center; gap: 10px; padding: 18px 10px; }
.pay-form .choice-ico { width: 48px; height: 48px; background: none; }
.pay-form .choice-ico .ic { width: 40px; height: 40px; }
.pay-form .choice-body b { font-size: 15px; }
.pay-form .btn { margin-top: 18px; }
.pay-card .alert { text-align: left; }
.pay-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--muted); }
.pay-foot span, .pay-foot a { display: inline-flex; align-items: center; gap: 6px; }
.pay-foot .ic { width: 16px; height: 16px; }
.pay-foot a { color: var(--wa-deep); }
@media (max-width: 420px) { .pay-card { padding: 24px 18px 16px; } .pay-amount { font-size: 38px; } }
