/* AmazeCheckout — design tokens */
:root {
  --bg: #0B0B14; --bg2: #11111D; --card: #15151F; --card2: #1B1B28; --line: #262636; --line2: #2F2F44;
  --text: #ECECF4; --muted: #9A9AB2; --dim: #6B6B85;
  --brand: #6D5DF6; --brand2: #9B8CFF; --accent: #2EE6A8; --warn: #FFB547; --bad: #FF5D73;
  --r: 16px; --r-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0,0,0,.6);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { 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; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.center { text-align: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px;
  font-weight: 600; font-size: 14px; border: 1px solid transparent; cursor: pointer; transition: .15s; white-space: nowrap; font-family: inherit; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px -8px rgba(109,93,246,.7); }
.btn-primary:hover { background: #7C6DFF; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line2); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--card2); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-danger { background: rgba(255,93,115,.12); color: var(--bad); border-color: rgba(255,93,115,.3); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(11,11,20,.72); border-bottom: 1px solid rgba(255,255,255,.05); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), #A855F7); box-shadow: 0 6px 18px -6px rgba(109,93,246,.8); }
.logo-mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 26px; flex: 1; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 900px; pointer-events: none;
  background: radial-gradient(600px 380px at 25% 30%, rgba(109,93,246,.28), transparent 70%),
              radial-gradient(500px 340px at 80% 20%, rgba(46,230,168,.12), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.pill b { background: rgba(46,230,168,.14); color: var(--accent); padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 800; letter-spacing: -.035em; }
.grad { background: linear-gradient(92deg, #fff 10%, var(--brand2) 55%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 22px; margin-top: 36px; color: var(--dim); font-size: 13px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; gap: 6px; align-items: center; }
.hero-trust svg { width: 16px; height: 16px; color: var(--accent); }

/* mock checkout card */
.mock { position: relative; }
.mock-card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line2); border-radius: 22px; padding: 22px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.02) inset; transform: rotate(-1.5deg); }
.mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mock-amt { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); margin-bottom: 8px; }
.mock-row.sel { border-color: var(--brand); background: rgba(109,93,246,.1); }
.coin-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 11px; color: #fff; flex: none; }
.mock-row .r { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.mock-float { position: absolute; right: -14px; bottom: -26px; background: var(--card2); border: 1px solid var(--line2); border-radius: 14px; padding: 12px 16px;
  display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); transform: rotate(2deg); font-size: 13px; }
.ok-dot { width: 28px; height: 28px; border-radius: 50%; background: rgba(46,230,168,.15); color: var(--accent); display: grid; place-items: center; }
.ok-dot svg { width: 16px; height: 16px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg2); }
.stat { padding: 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 14px; }

/* sections */
section.s { padding: 100px 0; }
.eyebrow { color: var(--brand2); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.s-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.s-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.s-head p { color: var(--muted); font-size: 17px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.feat { transition: .2s; }
.feat:hover { border-color: var(--line2); transform: translateY(-2px); }
.feat .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(109,93,246,.12); color: var(--brand2); border: 1px solid rgba(109,93,246,.25); }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 18px; }
.feat p { color: var(--muted); margin: 0; font-size: 14.5px; }

.steps { counter-reset: st; }
.step { position: relative; padding-left: 64px; margin-bottom: 30px; }
.step::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; background: var(--card2); border: 1px solid var(--line2); color: var(--brand2); }
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; }

.coins { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.coin { text-align: center; padding: 26px 16px; }
.coin .coin-dot { width: 52px; height: 52px; margin: 0 auto 14px; font-size: 14px; }
.coin b { display: block; }
.coin span { color: var(--muted); font-size: 13px; }

pre.code { background: #0D0D17; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; overflow: auto; font-size: 13px; line-height: 1.7; color: #CFCFE6; margin: 0; }
.code .k { color: #C792EA; } .code .s { color: #A5E8B8; } .code .c { color: #6B6B85; } .code .n { color: #F78C6C; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(46,230,168,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232EE6A8' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.checks li b { color: var(--text); }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand2); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.cta-box { position: relative; overflow: hidden; border-radius: 24px; padding: 64px; text-align: center; border: 1px solid var(--line2);
  background: radial-gradient(500px 240px at 50% 0%, rgba(109,93,246,.35), transparent 70%), var(--card); }
.cta-box h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }

.foot { border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 40px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot h4, .foot-h { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 700; margin: 0 0 .8em; }
.foot a:not(.logo) { display: block; color: var(--muted); margin-bottom: 8px; font-size: 14px; }
.foot .logo { margin-bottom: 14px; }
.foot-bottom { margin-top: 40px; font-size: 13px; }

/* breadcrumbs + prose pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--text); } .crumbs .sep { color: var(--dim); }
.crumbs [aria-current] { color: var(--text); }
.page { padding-top: 48px; padding-bottom: 80px; }
.page-head { max-width: 760px; margin-bottom: 36px; }
.page-head h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; }
.page-head p { color: var(--muted); font-size: 17px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose li { color: #C6C6D8; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--brand2); text-decoration: underline; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.nf { text-align: center; padding: 110px 0 80px; }
.nf .code-big { font-size: 110px; font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-bottom: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
textarea.inp.msg { height: 150px; font-family: var(--font); font-size: 14px; }

/* docs */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 48px 24px 80px; }
.docs aside { position: sticky; top: 92px; align-self: start; }
.docs aside a { display: block; color: var(--muted); padding: 6px 0; font-size: 14px; }
.docs aside a:hover { color: var(--text); }
.docs main { min-width: 0; }
.docs h1 { font-size: 40px; }
.docs h2 { font-size: 26px; margin-top: 56px; padding-top: 12px; }
.docs h3 { font-size: 17px; margin-top: 28px; }
.docs p, .docs li { color: #C6C6D8; }
.docs table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px; }
.docs th, .docs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs th { color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.docs td code, .docs p code, .docs li code { background: var(--card2); padding: 2px 6px; border-radius: 6px; font-size: 13px; color: var(--brand2); }
.method { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; margin-right: 8px; }
.m-post { background: rgba(46,230,168,.14); color: var(--accent); } .m-get { background: rgba(109,93,246,.16); color: var(--brand2); }
.note { border-left: 3px solid var(--warn); background: rgba(255,181,71,.07); padding: 12px 16px; border-radius: 0 10px 10px 0; color: #E9D9BC; margin: 16px 0; }

/* checkout */
body.pay { min-height: 100vh; background: radial-gradient(700px 400px at 50% -10%, rgba(109,93,246,.22), transparent 70%), var(--bg); }
.pay-wrap { max-width: 460px; margin: 0 auto; padding: 32px 16px 48px; }
.pay-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pay-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.pay-sum { padding: 22px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(109,93,246,.10), transparent); }
.pay-sum .lbl { color: var(--muted); font-size: 13px; }
.pay-sum .big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.pay-body { padding: 22px 24px 26px; }
.coin-list { display: grid; gap: 10px; }
.coin-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line);
  color: var(--text); cursor: pointer; font: inherit; text-align: left; transition: .15s; }
.coin-btn:hover { border-color: var(--brand); background: rgba(109,93,246,.08); }
.coin-btn .nm b { display: block; }
.coin-btn .nm span { color: var(--muted); font-size: 13px; }
.coin-btn .chev { margin-left: auto; color: var(--dim); }
.qr { background: #fff; border-radius: 16px; padding: 12px; width: 212px; height: 212px; margin: 4px auto 18px; display: grid; place-items: center; }
.qr img, .qr svg { width: 188px; height: 188px; }
.field { margin-bottom: 14px; }
.field .lbl { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
.copy { display: flex; align-items: center; gap: 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 12px 14px; }
.copy code { flex: 1; word-break: break-all; font-size: 13.5px; }
.copy button { flex: none; background: var(--card2); border: 1px solid var(--line2); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; font-family: inherit; }
.copy button.done { color: var(--accent); border-color: rgba(46,230,168,.4); }
.status { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); margin-top: 16px; font-size: 14px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--brand2); animation: sp 1s linear infinite; flex: none; }
@keyframes sp { to { transform: rotate(360deg); } }
.timer { font-family: var(--mono); font-weight: 600; }
.warn-box { font-size: 13px; color: #E9D9BC; background: rgba(255,181,71,.08); border: 1px solid rgba(255,181,71,.22); border-radius: 12px; padding: 10px 12px; margin-bottom: 16px; }
.result { text-align: center; padding: 12px 0 4px; }
.result .icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; }
.result .icon svg { width: 36px; height: 36px; }
.result.ok .icon { background: rgba(46,230,168,.14); color: var(--accent); }
.result.bad .icon { background: rgba(255,93,115,.12); color: var(--bad); }
.result.wait .icon { background: rgba(109,93,246,.14); color: var(--brand2); }
.pay-foot { text-align: center; color: var(--dim); font-size: 12px; margin-top: 18px; }
.err { background: rgba(255,93,115,.1); border: 1px solid rgba(255,93,115,.3); color: #FFB3BE; padding: 10px 12px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.change { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }

/* admin */
body.adm { background: #0C0C15; }
.adm-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.adm-side { background: var(--bg2); border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.adm-side .logo { margin: 0 8px 28px; }
.adm-side a.it { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px; margin-bottom: 2px; }
.adm-side a.it svg { width: 18px; height: 18px; }
.adm-side a.it:hover { background: var(--card); color: var(--text); }
.adm-side a.it.on { background: rgba(109,93,246,.14); color: var(--text); }
.adm-main { padding: 28px 36px 60px; min-width: 0; }
.adm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.adm-top h1 { font-size: 26px; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi b { display: block; font-size: 26px; letter-spacing: -.02em; margin-top: 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(255,255,255,.015); }
.tbl-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: auto; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: capitalize; }
.b-paid, .b-settled { background: rgba(46,230,168,.14); color: var(--accent); }
.b-pending, .b-new, .b-waiting { background: rgba(109,93,246,.16); color: var(--brand2); }
.b-confirming, .b-processing, .b-settling, .b-review { background: rgba(255,181,71,.14); color: var(--warn); }
.b-expired, .b-refund, .b-refunding, .b-refunded { background: rgba(154,154,178,.12); color: var(--muted); }
.b-underpaid, .b-failed { background: rgba(255,93,115,.12); color: var(--bad); }
.b-sent { background: rgba(46,230,168,.14); color: var(--accent); }
.b-queued { background: rgba(255,181,71,.14); color: var(--warn); }
.form { display: grid; gap: 14px; max-width: 640px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.inp { height: 42px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; color: var(--text); padding: 0 12px; font: inherit; font-size: 14px; width: 100%; }
textarea.inp { height: 84px; padding: 10px 12px; font-family: var(--mono); font-size: 13px; }
.inp:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(109,93,246,.2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; }
.flash.ok { background: rgba(46,230,168,.1); border: 1px solid rgba(46,230,168,.3); color: #B7F5DF; }
.flash.bad { background: rgba(255,93,115,.1); border: 1px solid rgba(255,93,115,.3); color: #FFB3BE; }
.secret { font-family: var(--mono); background: #0D0D17; border: 1px dashed var(--brand); padding: 10px 12px; border-radius: 10px; word-break: break-all; color: var(--brand2); }
.wallet-card { margin-bottom: 14px; }
.wallet-card summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.wallet-card summary::-webkit-details-marker { display: none; }
.wallet-card summary .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.wallet-card .form { margin-top: 18px; }
.form label.chk { display: flex; flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
.login { max-width: 400px; margin: 10vh auto; padding: 0 16px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
.hint { font-size: 12.5px; color: var(--dim); }

@media (max-width: 960px) {
  .hero-grid, .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .coins { grid-template-columns: repeat(3, 1fr); }
  .stats, .kpis { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .nav-links { display: none; }
  .docs { grid-template-columns: 1fr; }
  .docs aside { display: none; }
  .adm-shell { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid3, .coins { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 56px; }
  .cta-box { padding: 40px 22px; }
  .nav-cta .btn-ghost { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .adm-main { padding: 20px 16px; }
  .kv { grid-template-columns: 1fr; }
}
