:root {
  --bg: #07080b; --bg2: #0b0d12; --surface: #10131a; --surface2: #161a23; --line: #222733;
  --line2: #2c3240; --text: #f2f4f7; --muted: #8b93a3; --dim: #5d6576;
  --money: #3ee08f; --money-ink: #052b18; --pm: #3b82f6; --gold: #f5b544; --red: #ff6363;
  --text2: #d3d8e1; --text3: #aab2bf; --pm-ink: #8bb6ff;
  --money-soft: rgba(62,224,143,.12); --money-faint: rgba(62,224,143,.07); --pm-soft: rgba(59,130,246,.15);
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -20px rgba(0,0,0,.6);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.55 "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(7,8,11,.72); border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.02em; font-size: 17px; }
.logo i {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: conic-gradient(from 200deg, var(--money), var(--pm), var(--money));
  font-style: normal; font-size: 13px; color: #04120b; font-weight: 800;
}
.nav .links { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.nav .links a { white-space: nowrap; }
.nav .links a:hover { color: var(--text); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) { .nav .links { display: none; } .nav .wrap { gap: 12px; } }
@media (max-width: 980px) { .nav .acct { display: none; } }
@media (max-width: 560px) {
  .nav .right .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .nav .right .pill { height: 28px; padding: 0 9px; font-size: 12px; }
  .nav .right [data-cf="buy"], .nav .right [data-cf="signin"] { display: none; }
  .nav .right .pill .lbl { display: none; }
}
.nav .pill[data-cf] { cursor: pointer; }
.nav .pill[data-cf]:hover { border-color: var(--line2); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--money); color: var(--money-ink); box-shadow: 0 8px 30px -8px rgba(62,224,143,.55); }
.btn.primary:hover { background: #5ff0a4; box-shadow: 0 10px 36px -8px rgba(62,224,143,.75); }
.btn.ghost { border: 1px solid var(--line2); color: var(--text); }
.btn.ghost:hover { background: var(--surface2); }
.btn.dark { background: var(--surface2); border: 1px solid var(--line2); }
.btn.dark:hover { background: #1d2230; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--surface2); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); white-space: nowrap;
}
.pill b { color: var(--text); font-weight: 600; }
.pill.money b { color: var(--money); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--money); box-shadow: 0 0 0 4px rgba(62,224,143,.15); }
.dot.live { background: var(--red); box-shadow: 0 0 0 4px rgba(255,99,99,.15); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,99,99,0); } }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: rgba(62,224,143,.12); color: var(--money);
}
.tag.blue { background: var(--pm-soft); color: var(--pm-ink); }
.tag.gray { background: var(--surface2); color: var(--muted); }
.tag.gold { background: rgba(245,181,68,.13); color: var(--gold); }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--money); }
h1, h2, h3 { letter-spacing: -.03em; line-height: 1.08; }

/* modal */
.modal-bg {
  position: fixed; inset: 0; z-index: 100; background: rgba(3,4,6,.66);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; padding: 16px; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity .2s;
}
.modal-bg.open { display: flex; }
.modal-bg.show { opacity: 1; }
/* центр через margin:auto: высокая модалка скроллится, а не режется сверху */
.modal {
  width: 100%; max-width: 420px; padding: 28px; position: relative; margin: auto;
  transform: translateY(12px) scale(.98); transition: transform .3s var(--ease);
}
.modal-bg.show .modal { transform: none; }
.modal h3 { font-size: 22px; margin-bottom: 6px; }
.modal .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.modal .x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); }
.modal .x:hover { background: var(--surface2); color: var(--text); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.seg button { height: 36px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--surface2); color: var(--text); }
.hint { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }
.err { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 6px; text-align: center; }
.devcode { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--gold); color: var(--gold); font-size: 13px; text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px);
  background: var(--surface2); border: 1px solid var(--line2); padding: 12px 18px; border-radius: 14px;
  font-size: 14px; opacity: 0; transition: opacity .25s, transform .35s var(--ease); pointer-events: none;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 24px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.hot { border-color: rgba(62,224,143,.55); box-shadow: 0 0 0 1px rgba(62,224,143,.25), 0 30px 60px -30px rgba(62,224,143,.45); }
.plan .badge { position: absolute; top: -11px; left: 24px; }
.plan h4 { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan .price { font-size: 40px; font-weight: 700; letter-spacing: -.04em; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .per { font-size: 13px; color: var(--muted); margin-top: -10px; }
.plan ul { list-style: none; display: grid; gap: 9px; align-content: start; font-size: 14px; color: #c9cfda; flex: 1; }
.plan li { display: flex; gap: 9px; }
.plan li::before { content: "✓"; color: var(--money); font-weight: 700; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { animation: none !important; } }

footer.site { border-top: 1px solid var(--line); margin-top: 80px; padding: 32px 0 48px; color: var(--dim); font-size: 13px; }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
footer.site a:hover { color: var(--text); }

/* крипто-оплата: сеть, сумма и адрес с копированием, статус ожидания */
.nets { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.net { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line2); font-size: 13px; color: var(--muted); }
.net.on { border-color: var(--money); color: var(--money); box-shadow: 0 0 0 3px rgba(62,224,143,.12); }
.payrow { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.payrow span { color: var(--muted); font-size: 13px; }
.payrow b { font-size: 18px; }
.payrow code { font-size: 12px; overflow-wrap: anywhere; color: var(--text); }
.payrow .btn { height: 32px; padding: 0 12px; font-size: 13px; }
.payqr summary { cursor: pointer; text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.payqr .seg { margin-bottom: 14px; }
.payqr .hint { margin: 10px 0 6px; }
.qr { width: 176px; aspect-ratio: 1; margin: 0 auto; padding: 12px; border-radius: 14px; background: #fff; }
.qr svg { display: block; width: 100%; height: 100%; }
@media (min-width: 561px) { .payqr summary { display: none; } }
@media (max-width: 560px) {
  .modal { padding: 24px 20px; }
  .qr { width: 160px; }
  .payrow { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .payrow span, .payrow b, .payrow code { grid-column: 1; }
  .payrow .btn { grid-column: 2; grid-row: 1 / 3; }
}
.paystatus { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 6px; font-size: 14px; color: var(--text2); }
.claim { margin-top: 10px; font-size: 13px; color: var(--muted); }
.claim summary { cursor: pointer; text-align: center; }
.claimrow { display: flex; gap: 8px; margin-top: 8px; }
.claimrow input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); font: 13px ui-monospace, monospace; }
.paystatus .spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line2); border-top-color: var(--money); border-radius: 50%; animation: paysp .8s linear infinite; }
@keyframes paysp { to { transform: rotate(360deg); } }
