/* ====================== Design tokens ====================== */
:root {
  --bg: #050b12;
  --bg-2: #08131b;
  --panel: rgba(12, 26, 34, .62);
  --panel-solid: #0b1a22;
  --line: rgba(140, 225, 220, .14);
  --line-strong: rgba(140, 225, 220, .28);
  --text: #eefaf7;
  --muted: #93a8b4;
  --dim: #64798a;
  --a1: #14e0a5;
  --a2: #38bdf8;
  --a3: #818cf8;
  --ok: #2ee6a6;
  --warn: #ffbe55;
  --bad: #ff6b81;
  --grad: linear-gradient(135deg, var(--a1), var(--a2));
  --on-accent: #03201a;
  --radius: 18px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; margin: 0; line-height: 1.1; }
p { margin: 0; }
img, svg, canvas { display: block; }
::selection { background: rgba(20, 224, 165, .45); }

/* Ambient background: gradient blobs + 3D perspective grid floor */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; }
.bg-fx .b1 { width: 620px; height: 620px; background: #0f766e; top: -220px; left: -160px; animation: drift 18s ease-in-out infinite alternate; }
.bg-fx .b2 { width: 520px; height: 520px; background: #1d4ed8; top: 10%; right: -180px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.bg-fx .b3 { width: 460px; height: 460px; background: #0e7490; bottom: -240px; left: 30%; opacity: .25; animation: drift 26s ease-in-out infinite alternate; }
.bg-fx .floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%;
  background-image:
    linear-gradient(rgba(20, 224, 165, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, .14) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(68deg);
  transform-origin: center top;
  mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 75%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 75%);
  animation: floor 7s linear infinite;
}
.bg-fx .noise { position: absolute; inset: 0; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.15); } }
@keyframes floor { to { background-position: 0 60px, 0 0; } }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ====================== Navigation ====================== */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); background: rgba(5, 11, 18, .6); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px var(--display); }
.logo { display: inline-block; flex: none; width: 34px; height: 34px; perspective: 200px; }
.logo .cube { display: block; width: 100%; height: 100%; position: relative; transform-style: preserve-3d; animation: spin 9s linear infinite; }
.logo .cube i { position: absolute; inset: 0; border: 1.5px solid var(--a2); background: rgba(20, 224, 165, .18); border-radius: 4px; }
.logo .cube i:nth-child(1) { transform: translateZ(9px) scale(.55); }
.logo .cube i:nth-child(2) { transform: rotateY(90deg) translateZ(9px) scale(.55); }
.logo .cube i:nth-child(3) { transform: rotateY(180deg) translateZ(9px) scale(.55); }
.logo .cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(9px) scale(.55); }
.logo .cube i:nth-child(5) { transform: rotateX(90deg) translateZ(9px) scale(.55); border-color: var(--a1); }
.logo .cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(9px) scale(.55); border-color: var(--a1); }
@keyframes spin { from { transform: rotateX(-25deg) rotateY(0); } to { transform: rotateX(-25deg) rotateY(360deg); } }
.links { display: flex; align-items: center; gap: 6px; }
.links > a, .links .link { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; transition: color .2s, background .2s; }
.links > a:hover, .links .link:hover, .links > a.on { color: var(--text); background: rgba(255, 255, 255, .05); }
.links > a.btn, .links > a.btn:hover { color: var(--on-accent); background: var(--grad); margin-left: 6px; }
.links .bal { color: var(--text); border: 1px solid var(--line); }
.links .bal b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; font: inherit; cursor: pointer; }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 42px; height: 42px; font-size: 18px; cursor: pointer; }
.demo-bar { background: linear-gradient(90deg, rgba(255, 190, 85, .14), rgba(129, 140, 248, .1)); color: var(--warn); text-align: center; font-size: 13px; padding: 7px 16px; border-bottom: 1px solid rgba(255, 190, 85, .2); }

/* ====================== Buttons ====================== */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 12px; border: 0; cursor: pointer; font: 600 15px var(--font); color: var(--on-accent); background: var(--grad); box-shadow: 0 10px 30px -10px rgba(20, 224, 165, .8), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .2s, box-shadow .2s, filter .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(56, 189, 248, .7), inset 0 1px 0 rgba(255,255,255,.3); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.ghost { color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-strong); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn.sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn.lg { padding: 16px 30px; font-size: 16px; border-radius: 14px; }
.btn.full { width: 100%; }
.arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ====================== Hero ====================== */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; min-height: calc(100vh - 68px); padding: 40px 0 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(20, 224, 165, .1); color: #c9f5e8; font-size: 13px; font-weight: 500; }
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(46, 230, 166, .7); animation: pulse 2s infinite; margin-left: 6px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(46, 230, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0); } }
.hero h1 { font-size: clamp(40px, 6vw, 72px); margin: 22px 0 20px; font-weight: 700; }
.grad-text { background: linear-gradient(100deg, #6ee7c3 0%, var(--a2) 45%, #a5b4fc 90%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.cta-row { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.trust { display: flex; gap: 22px; margin-top: 36px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.check { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(46, 230, 166, .14); color: var(--ok); font-size: 11px; flex: none; }

.stage { position: relative; aspect-ratio: 1; perspective: 1200px; }
.stage canvas { width: 100%; height: 100%; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage .halo { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(20, 224, 165, .35), transparent 65%); filter: blur(30px); z-index: -1; }
.float-card { position: absolute; padding: 12px 16px; border-radius: 14px; background: rgba(10, 26, 34, .72); border: 1px solid var(--line-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); font-size: 13px; transform-style: preserve-3d; animation: bob 6s ease-in-out infinite; pointer-events: none; }
.float-card b { display: block; font: 600 15px var(--display); }
.float-card .mono { color: var(--a2); }
.float-card.c1 { top: 12%; left: -4%; transform: rotateY(18deg) rotateX(6deg) translateZ(60px); }
.float-card.c2 { bottom: 16%; right: -2%; transform: rotateY(-20deg) rotateX(-4deg) translateZ(80px); animation-delay: -2s; }
.float-card.c3 { bottom: 4%; left: 10%; transform: rotateY(12deg) translateZ(40px); animation-delay: -4s; }
.float-card .row { display: flex; align-items: center; gap: 10px; }
.dot-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
@keyframes bob { 50% { translate: 0 -14px; } }

/* ====================== Sections ====================== */
section.block { padding: 90px 0; position: relative; }
.head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.head .kicker { color: var(--a2); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.head h2 { font-size: clamp(30px, 4vw, 46px); margin: 12px 0 14px; }
.head p { color: var(--muted); font-size: 17px; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(12px); overflow: hidden; }
.stats-strip > div { padding: 26px 28px; border-right: 1px solid var(--line); }
.stats-strip > div:last-child { border-right: 0; }
.stats-strip b { display: block; font: 700 30px var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-strip span { color: var(--muted); font-size: 14px; }

/* Hover cards: gentle lift + spotlight that follows the cursor (no tilting) */
.tilt { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.tilt:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -26px rgba(20, 224, 165, .5); border-color: var(--line-strong); }
.tilt .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(20, 224, 165, .10), transparent 45%); }
.tilt:hover .glare { opacity: 1; }
.pop { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.tilt:hover .pop { transform: translateY(-3px) scale(1.05); }
.card.lift { transition: border-color .25s, box-shadow .25s; }
.card.lift:hover { border-color: var(--line-strong); box-shadow: 0 18px 40px -28px rgba(20, 224, 165, .45); }

.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.icon3d { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; font-size: 24px; background: linear-gradient(145deg, rgba(20, 224, 165, .35), rgba(56, 189, 248, .15)); border: 1px solid var(--line-strong); box-shadow: 0 12px 24px -10px rgba(20, 224, 165, .8), inset 0 1px 0 rgba(255, 255, 255, .2); }
.icon3d svg { width: 26px; height: 26px; stroke: #e8fffa; }

/* Product cards */
.product { display: flex; flex-direction: column; }
.product .tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(56, 189, 248, .12); color: var(--a2); margin-bottom: 16px; }
.product .from { margin: 18px 0 4px; color: var(--muted); font-size: 13px; }
.product .amt { font: 700 40px var(--display); }
.product .amt small { font-size: 15px; color: var(--muted); font-weight: 500; }
.product ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; flex: 1; }
.product li { display: flex; gap: 10px; align-items: center; color: #d2e4e2; font-size: 14px; }

/* ====================== Pricing ====================== */
.seg { display: inline-flex; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); gap: 4px; flex-wrap: wrap; justify-content: center; }
.seg button { border: 0; background: none; color: var(--muted); font: 600 14px var(--font); padding: 9px 16px; border-radius: 10px; cursor: pointer; transition: all .2s; }
.seg button.on { background: var(--grad); color: var(--on-accent); box-shadow: 0 6px 18px -6px rgba(20, 224, 165, .9); }
.center { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 36px; perspective: 1400px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px 28px; }
.plan.featured { background: linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box, linear-gradient(140deg, var(--a1), var(--a2), var(--a3)) border-box; border: 1.5px solid transparent; box-shadow: 0 30px 80px -30px rgba(20, 224, 165, .7); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: var(--on-accent); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: .04em; white-space: nowrap; }
.plan h3 { font-size: 22px; }
.plan .sub { color: var(--muted); font-size: 14px; margin-top: 6px; min-height: 44px; }
.plan .price-big { font: 700 52px var(--display); margin: 22px 0 2px; display: flex; align-items: baseline; gap: 6px; }
.plan .price-big small { font: 500 15px var(--font); color: var(--muted); }
.plan .note { font-size: 13px; color: var(--dim); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #d2e4e2; }
.price-num { transition: opacity .2s, transform .2s; display: inline-block; }
.price-num.swap { opacity: 0; transform: translateY(-8px) rotateX(60deg); }

.table-card { padding: 0; overflow: hidden; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 13px; background: rgba(255, 255, 255, .02); }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(20, 224, 165, .06); }
.matrix td.p a { display: inline-block; padding: 6px 12px; border-radius: 8px; border: 1px solid transparent; font-weight: 600; transition: all .15s; }
.matrix td.p a:hover { border-color: var(--line-strong); background: rgba(56, 189, 248, .08); color: var(--a2); }
.r { text-align: right; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--a2); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* Steps */
.steps { counter-reset: s; }
.step { padding-top: 64px; }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 22px; left: 26px; font: 700 15px var(--display); color: var(--a2); padding: 4px 10px; border-radius: 8px; background: rgba(56, 189, 248, .1); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px; text-align: center; background: radial-gradient(circle at 20% 0%, rgba(20, 224, 165, .55), transparent 55%), radial-gradient(circle at 90% 100%, rgba(56, 189, 248, .4), transparent 55%), var(--panel-solid); border: 1px solid var(--line-strong); }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
.cta-band p { color: #c8dedb; margin-bottom: 28px; }
.cta-band .rings { position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); transform: rotateX(70deg); animation: ring 10s linear infinite; }
.cta-band .rings.r2 { left: -100px; bottom: -120px; top: auto; right: auto; animation-duration: 14s; }
@keyframes ring { to { transform: rotateX(70deg) rotateZ(360deg); } }

/* Footer */
.foot { border-top: 1px solid var(--line); margin-top: 60px; padding: 44px 0 36px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.foot h4 { color: var(--text); font-size: 14px; margin-bottom: 14px; font-family: var(--font); }
.foot a { display: block; padding: 4px 0; transition: color .15s; }
.foot a:hover { color: var(--text); }
.foot .copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--dim); font-size: 13px; }
.coins { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.coins span { font-size: 12px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ====================== App pages ====================== */
.page { padding: 44px 0 20px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { font-size: 34px; }
.page-head p { color: var(--muted); margin-top: 6px; }
.flash { padding: 14px 18px; border-radius: 12px; margin: 0 0 18px; background: rgba(56, 189, 248, .08); border: 1px solid rgba(56, 189, 248, .25); display: flex; gap: 10px; align-items: center; animation: drop .4s ease; }
.flash.error { background: rgba(255, 107, 129, .08); border-color: rgba(255, 107, 129, .35); color: #ffc7d0; }
.flash.success { background: rgba(46, 230, 166, .08); border-color: rgba(46, 230, 166, .3); color: #bdf7e2; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 13px; }
.pos { color: var(--ok); }
.neg { color: var(--bad); }
.err { color: var(--bad); font-size: 13px; min-height: 18px; }
label { display: block; color: var(--muted); font-size: 13px; font-weight: 500; margin-bottom: 16px; }
input, select { display: block; width: 100%; margin-top: 8px; background: rgba(5, 11, 18, .6); color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 14px; font: 15px var(--font); transition: border-color .2s, box-shadow .2s; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2393a8b4' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select option { background: #0b1a22; }
input:focus, select:focus { outline: none; border-color: var(--a1); box-shadow: 0 0 0 4px rgba(20, 224, 165, .2); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .06); color: var(--muted); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.active, .badge.paid { background: rgba(46, 230, 166, .12); color: var(--ok); }
.badge.processing, .badge.pending, .badge.new { background: rgba(255, 190, 85, .12); color: var(--warn); }
.badge.failed, .badge.expired, .badge.review, .badge.refunded { background: rgba(255, 107, 129, .12); color: var(--bad); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-strong); color: var(--text); border-radius: 10px; padding: 8px 14px; font: 500 13px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.chip:hover { border-color: var(--a1); background: rgba(20, 224, 165, .12); }
.chip input { display: inline; width: auto; margin: 0; accent-color: var(--a1); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi b { display: block; font: 700 28px var(--display); margin-top: 6px; }
.stack { display: grid; gap: 22px; }
.empty { text-align: center; padding: 50px 20px; }
.empty .icon3d { margin: 0 auto 18px; }

/* Shop */
.type-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.type-tab { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); transition: all .2s; }
.type-tab b { font: 600 17px var(--display); display: block; }
.type-tab span { color: var(--muted); font-size: 13px; }
.type-tab:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.type-tab.on { border-color: transparent; background: linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 16px 40px -20px rgba(20, 224, 165, .9); }
.shop { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.qty { display: flex; align-items: stretch; margin-top: 8px; }
.qty button { width: 48px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--text); font-size: 18px; cursor: pointer; }
.qty button:first-child { border-radius: 12px 0 0 12px; }
.qty button:last-child { border-radius: 0 12px 12px 0; }
.qty input { margin: 0; border-radius: 0; text-align: center; border-left: 0; border-right: 0; }
.quick { display: flex; gap: 6px; margin-top: 8px; }
.quick button { flex: 1; padding: 6px; font-size: 12px; }
.summary { position: sticky; top: 92px; }
.summary .line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.summary .line span:first-child { color: var(--muted); }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0; }
.summary .total b { font: 700 38px var(--display); }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--dim); font-size: 12px; margin-top: 14px; text-align: center; }
.secure svg { width: 14px; height: 14px; stroke: currentColor; flex: none; }
.icon-sm svg { width: 18px; height: 18px; stroke: currentColor; }

/* Auth */
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; min-height: calc(100vh - 220px); padding: 40px 0; }
.auth .card { max-width: 440px; width: 100%; justify-self: end; padding: 34px; }
.auth h1 { font-size: 30px; margin-bottom: 6px; }
.auth aside h2 { font-size: 40px; margin-bottom: 16px; }
.auth aside ul { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 26px; }
.auth aside li { display: flex; gap: 12px; align-items: center; color: #d2e4e2; }

/* Wallet */
.wallet { display: grid; grid-template-columns: 1fr 1.3fr; gap: 22px; align-items: start; }
.balance-card { background: radial-gradient(circle at 0% 0%, rgba(20, 224, 165, .6), transparent 60%), radial-gradient(circle at 100% 100%, rgba(56, 189, 248, .45), transparent 60%), var(--panel-solid); border: 1px solid var(--line-strong); min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.balance-card .amt { font: 700 46px var(--display); }
.balance-card .chip-gfx { width: 46px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #f8d77a, #b98a2b); opacity: .85; }
.amount-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.amount-pick button { padding: 12px 0; justify-content: center; }

/* Admin */
.mini { display: flex; gap: 6px; align-items: center; margin: 0; }
.mini input, .mini select { margin: 0; padding: 8px 10px; font-size: 13px; min-width: 100px; border-radius: 9px; }

.error-page { text-align: center; padding: 120px 0; }
.error-page h1 { font-size: 120px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ====================== Responsive ====================== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 30px; }
  .stage { max-width: 520px; margin: 0 auto; width: 100%; }
  .grid-3, .plans, .grid-4 { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stats-strip > div:nth-child(2) { border-right: 0; }
  .stats-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .shop, .wallet, .auth { grid-template-columns: 1fr; }
  .auth .card { justify-self: stretch; max-width: none; }
  .auth aside { display: none; }
  .summary { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .plan.featured { order: -1; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .burger { display: block; }
  .links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; background: rgba(5, 11, 18, .96); border-bottom: 1px solid var(--line); }
  .links.open { display: flex; }
  .links .btn { margin-top: 6px; }
  .type-tabs { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .float-card { font-size: 11px; padding: 8px 10px; }
  .float-card b { font-size: 13px; }
  .float-card.c1 { left: 0; }
  .float-card.c2 { right: 0; }
  section.block { padding: 64px 0; }
  .cta-band { padding: 44px 22px; }
  .page-head h1 { font-size: 28px; }
  .amount-pick { grid-template-columns: repeat(2, 1fr); }
  .mini { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ====================== v3 additions ====================== */
/* Flags (flag-icons) */
.fi { width: 1.4em; height: 1.05em; line-height: 1; border-radius: 3px; background-size: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); flex: none; display: inline-block; vertical-align: -2px; }
.with-flag { display: inline-flex; align-items: center; gap: 8px; }

/* Cursor glow */
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(20, 224, 165, .10), rgba(56, 189, 248, .05) 40%, transparent 70%); transform: translate3d(-999px, -999px, 0); transition: opacity .4s; }
main, .hero, .foot { position: relative; z-index: 1; }

/* Hero visual: globe + protocol badges underneath */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-visual .stage { width: 100%; }
.protos { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 640px; margin-top: -18px; }
.proto { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 12px; font: 500 13px "JetBrains Mono", monospace; color: #dff9f2; background: rgba(10, 26, 34, .72); border: 1px solid var(--line-strong); backdrop-filter: blur(10px); animation: bob 5s ease-in-out infinite; transition: border-color .25s, color .25s, transform .25s; }
.proto i { width: 7px; height: 7px; border-radius: 50%; background: var(--a1); box-shadow: 0 0 10px var(--a1); }
.proto:nth-child(even) i { background: var(--a2); box-shadow: 0 0 10px var(--a2); }
.proto:hover { border-color: var(--a1); color: #fff; }
.float-card .fi { margin-left: 4px; }
[data-live-ip], [data-live-flag] { transition: opacity .3s, transform .3s; }
.live-swap { opacity: 0; transform: translateY(-6px); }

/* Locations marquee */
.locations { padding-top: 70px; }
.marquee { position: relative; overflow: hidden; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 6px; }
.marquee .track { display: flex; gap: 14px; width: max-content; animation: marq 60s linear infinite; }
.marquee .track.rev { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.flag-chip { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); white-space: nowrap; font-weight: 500; transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
.flag-chip .fi { width: 30px; height: 22px; border-radius: 5px; }
.flag-chip small { color: var(--dim); }
.flag-chip:hover { transform: translateY(-4px); border-color: var(--a1); box-shadow: 0 14px 30px -18px rgba(20, 224, 165, .8); }

/* Animated gradient border on featured plan */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.plan.featured { background: linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box, conic-gradient(from var(--ang), var(--a1), var(--a2), var(--a3), var(--a1)) border-box; animation: spinb 6s linear infinite; }
@keyframes spinb { to { --ang: 360deg; } }

/* Shine sweep across primary buttons */
.btn:not(.ghost) { overflow: hidden; }
.btn:not(.ghost)::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: sweep 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes sweep { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* Country select with flag */
.sel-flag { position: relative; }
.sel-flag .fi { position: absolute; left: 14px; bottom: 16px; width: 24px; height: 18px; pointer-events: none; }
.sel-flag select { padding-left: 48px; }

/* Bigger, more readable login / register */
.auth h1 { font-size: 38px; margin-bottom: 10px; }
.auth .card { max-width: 500px; padding: 42px; }
.auth .card > p.muted { font-size: 16px; }
.auth label { font-size: 15px; margin-bottom: 20px; }
.auth input { font-size: 17px; padding: 16px 16px; }
.auth .btn { font-size: 17px; padding: 17px; }
.auth .card .small { font-size: 15px; }
.auth aside h2 { font-size: 54px; }
.auth aside .lead { font-size: 20px; }
.auth aside li { font-size: 17px; }
.auth aside .check { width: 22px; height: 22px; font-size: 13px; }

@media (max-width: 760px) {
  .auth h1 { font-size: 30px; }
  .auth .card { padding: 28px 22px; }
  .proto { font-size: 12px; padding: 7px 11px; }
  .flag-chip { padding: 10px 14px; }
}
@media (hover: none) { .cursor-glow { display: none; } }

/* Hover lift must win over the scroll-reveal transform once revealed */
.reveal.in.tilt { transition: opacity .8s ease, transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.tilt.tilt:hover { transform: translateY(-6px); }

/* v4: four products */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.plan .price-big { flex-wrap: wrap; }
.plan .from-label { width: 100%; font: 500 14px var(--font); color: var(--muted); margin-bottom: -6px; }
.plans { margin-top: 8px; }

/* v5: residential packages */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pkg { margin: 0; cursor: pointer; }
.pkg input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-body { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(5, 11, 18, .5); transition: border-color .2s, box-shadow .2s, transform .2s; }
.pkg-body b { font: 700 20px var(--display); color: var(--text); }
.pkg-price { color: var(--text); font-weight: 600; }
.pkg-body small { color: var(--muted); }
.pkg:hover .pkg-body { transform: translateY(-2px); border-color: var(--a1); }
.pkg input:checked + .pkg-body { border-color: transparent; background: linear-gradient(var(--panel-solid), var(--panel-solid)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 14px 30px -18px rgba(20, 224, 165, .9); }
.pkg input:focus-visible + .pkg-body { outline: 2px solid var(--a2); outline-offset: 2px; }
.creds { background: rgba(5, 11, 18, .6); border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; white-space: pre-wrap; word-break: break-all; margin: 0 0 12px; }
.creds-form { margin-top: 8px; display: grid; gap: 6px; min-width: 240px; }
.creds-form textarea { width: 100%; background: rgba(5, 11, 18, .6); color: var(--text); border: 1px solid var(--line-strong); border-radius: 9px; padding: 8px 10px; font: 12px "JetBrains Mono", monospace; }

/* v6: residential traffic usage */
.usage { display: grid; gap: 8px; margin: 10px 0 6px; }
.usage b { font: 700 18px var(--display); }
.usage .bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.usage .bar span { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: var(--grad); transition: width .6s ease; }

/* v7: five products per row on wide screens */
.wrap { max-width: 1320px; }
.grid-auto, .plans { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.grid-auto > .card, .plans > .plan { padding: 24px 18px; }
.product .tag { font-size: 11px; }
.product .amt { font-size: 32px; }
.product .amt small { display: block; margin-top: 2px; font-size: 13px; white-space: nowrap; }
.plan .price-big { font-size: 40px; }
.plan .price-big small { white-space: nowrap; }
.plan .sub { min-height: 66px; }
@media (max-width: 1100px) { .grid-auto, .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-auto, .plans { grid-template-columns: 1fr; } }

/* v8: app shell (user + admin), email verification */
.app-page { max-width: none; }
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.side { position: sticky; top: 92px; display: grid; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.side-head { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.side-head b { font: 700 24px var(--display); }
.side-head small { word-break: break-all; }
.side-nav { display: grid; gap: 4px; }
.side-nav a, .side-switch a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; transition: background .15s, color .15s; }
.side-nav a svg, .side-switch a svg { width: 18px; height: 18px; stroke: currentColor; flex: none; }
.side-nav a:hover, .side-switch a:hover { background: rgba(255, 255, 255, .05); color: var(--text); text-decoration: none; }
.side-nav a.on { background: rgba(20, 224, 165, .12); color: var(--text); box-shadow: inset 3px 0 0 var(--a1); }
.side-switch { border-top: 1px solid var(--line); padding-top: 10px; }
.app-main { min-width: 0; }
.app-main .page-head { margin-top: 0; }
.chip-on { background: var(--grad); color: var(--on-accent); border-color: transparent; }
.link-btn { background: none; border: 0; color: var(--a2); font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }
.verify-wrap { max-width: 520px; margin: 40px auto; }
.verify-card { text-align: center; padding: 40px 34px; }
.verify-card h1 { font-size: 32px; margin: 18px 0 8px; }
.verify-icon { margin: 0 auto; }
.otp { display: flex; justify-content: center; gap: 10px; margin: 28px 0 24px; }
.otp input { width: 54px; height: 64px; margin: 0; padding: 0; text-align: center; font: 700 28px var(--display); border-radius: 14px; }
.otp input:focus { border-color: var(--a1); box-shadow: 0 0 0 4px rgba(20, 224, 165, .2); }
.steps-mini { display: flex; gap: 8px; margin: -8px 0 22px; flex-wrap: wrap; }
.steps-mini span { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.steps-mini span.on { color: var(--on-accent); background: var(--grad); border-color: transparent; font-weight: 600; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; }
  .side-nav { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}
@media (max-width: 480px) { .otp input { width: 44px; height: 54px; font-size: 22px; } .otp { gap: 6px; } }

.badge.underpaid { background: rgba(255, 190, 85, .12); color: var(--warn); }

/* v9: forgot link, expired badge, revenue chart */
.right-link { text-align: right; margin: -8px 0 16px; font-size: 14px; }
.right-link a { color: var(--a2); }
.badge.expired { background: rgba(255, 255, 255, .06); color: var(--dim); }
.chart-card { padding: 22px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.chart-head .tot { display: flex; gap: 22px; flex-wrap: wrap; }
.chart-head .tot span { color: var(--muted); font-size: 12px; display: block; }
.chart-head .tot b { font: 700 20px var(--display); }
.chart-wrap { position: relative; }
.chart-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-wrap .grid line { stroke: var(--line); stroke-width: 1; }
.chart-wrap .grid text, .chart-wrap .xlab { fill: var(--dim); font: 11px var(--font); }
.chart-wrap .bar { fill: var(--a1); transition: opacity .15s; }
.chart-wrap .bar.zero { fill: var(--line-strong); }
.chart-wrap .hit { fill: transparent; cursor: default; }
.chart-wrap .col:hover .bar { opacity: .75; }
.chart-tip { position: absolute; pointer-events: none; background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; font-size: 13px; min-width: 150px; box-shadow: var(--shadow); opacity: 0; transition: opacity .12s; z-index: 5; }
.chart-tip b { display: block; margin-bottom: 4px; }
.chart-tip div { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); }
.chart-tip div span:last-child { color: var(--text); }
.chart-table { margin-top: 12px; }

/* v10: legal pages, consent */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1080px; margin: 20px auto; }
.legal-nav { position: sticky; top: 92px; display: grid; gap: 4px; }
.legal-nav a { padding: 10px 12px; border-radius: 10px; color: var(--muted); }
.legal-nav a.on, .legal-nav a:hover { background: rgba(20, 224, 165, .1); color: var(--text); text-decoration: none; }
.legal-body { padding: 36px 40px; line-height: 1.75; }
.legal-body h1 { font-size: 36px; margin-bottom: 6px; }
.legal-body h2 { font-size: 20px; margin: 28px 0 10px; }
.legal-body p, .legal-body li { color: #c9d8d6; }
.legal-body ul { padding-left: 22px; display: grid; gap: 6px; }
.legal-body a { color: var(--a2); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.agree input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--a1); }
.agree a { color: var(--a2); }
.foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .legal-body { padding: 24px 20px; } }
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* v11: direct crypto top-ups */
.method-pick { display: grid; gap: 8px; margin-bottom: 16px; }
.method { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); cursor: pointer; color: var(--text); font-size: 15px; }
.method input { width: 18px; height: 18px; margin: 0; accent-color: var(--a1); }
.method:has(input:checked) { border-color: var(--a1); background: rgba(20, 224, 165, .08); }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.pay-card { display: grid; gap: 20px; }
.pay-row { display: grid; gap: 6px; }
.pay-row .net { font: 600 18px var(--display); color: var(--a2); }
.copy-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pay-amount { font-size: 30px; letter-spacing: .5px; }
.addr { font-size: 15px; word-break: break-all; }
.warnline { color: var(--warn); }
.pay-warn { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.pay-side { display: grid; justify-items: center; gap: 6px; }
.qr { background: #fff; padding: 12px; border-radius: 14px; width: 224px; height: 224px; }
.qr img, .qr canvas { display: block; width: 200px; height: 200px; }
.timer { text-align: center; margin-top: 14px; display: grid; }
.timer b { font: 700 32px var(--display); }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } }

.status-list { display: grid; gap: 14px; margin-top: 12px; }
.status-list > div { display: grid; gap: 6px; }
.status-list .badge { justify-self: start; }

/* proxy picker (renew selected proxies) */
table th.pick, table td.pick { width: 44px; padding-right: 0; }
table .pick input { width: 17px; height: 17px; margin: 0; accent-color: var(--a1, #14e0a5); cursor: pointer; }

/* order names & tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; line-height: 18px; color: var(--a2); background: rgba(56, 189, 248, .10); border: 1px solid rgba(56, 189, 248, .25); text-decoration: none; white-space: nowrap; }
a.tag:hover { background: rgba(56, 189, 248, .2); }
.tag-filter .chip.on { border-color: var(--a1); color: var(--a1); }
.order-name { min-width: 160px; max-width: 280px; }
.order-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-search input { min-width: 260px; margin: 0; }
.name-card { margin-bottom: 22px; }
.name-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.name-grid label { margin: 0; }
@media (max-width: 760px) { .name-grid { grid-template-columns: 1fr; } .order-search input { min-width: 0; width: 100%; } }
