/* SilentNet storefront — purple/black brand palette (same tokens as the Mini App). */
:root {
  --bg: #0a0714; --card: #161029; --card2: #1e1638;
  --text: #eee9fb; --muted: #a79ec4; --dim: #7c7399;
  --accent: #a855f7; --accent-rgb: 168, 85, 247; --accent2: #7c3aed;
  --ok: #34d399; --warn: #fbbf24; --err: #f87171;
  --radius: 18px;
  --border: rgba(var(--accent-rgb), .22);
  --line: rgba(255, 255, 255, .07);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); overflow-x: hidden;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 540px at 10% -10%, rgba(var(--accent-rgb), .26), transparent 62%),
    radial-gradient(760px 520px at 100% 0, rgba(124, 58, 237, .16), transparent 58%),
    radial-gradient(640px 420px at 55% 112%, rgba(var(--accent-rgb), .11), transparent 60%);
}
main { overflow-x: hidden; overflow-x: clip; }
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl { margin: 0; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card2); padding: 8px 14px; border-radius: 10px; z-index: 80; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
svg.i { width: 1.15em; height: 1.15em; flex: none; }
.accent-text { background: linear-gradient(90deg, #d8b4fe, var(--accent) 45%, var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 7, 20, .74); background: color-mix(in srgb, var(--bg) 74%, transparent); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.18rem; letter-spacing: .2px; }
.nav { display: flex; gap: 2px; margin-left: 10px; flex: 1; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--muted); padding: 8px 13px; border-radius: 10px; font-size: .94rem; font-weight: 600; transition: color .15s, background .15s; }
.nav a:hover, .nav a.on { color: var(--text); background: rgba(var(--accent-rgb), .13); }
.hdr-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; min-width: 0; }
.hdr-actions .btn { white-space: nowrap; }
.t-short { display: none; }
.ipchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: rgba(251, 191, 36, .10); border: 1px solid rgba(251, 191, 36, .32); color: #fcd34d; white-space: nowrap; }
.ipchip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(251, 191, 36, .18); }
.ipchip.safe { background: rgba(52, 211, 153, .10); border-color: rgba(52, 211, 153, .35); color: var(--ok); }
.ipchip.safe .dot { box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.burger { display: none; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 40px; height: 40px; place-items: center; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer; font: inherit;
  font-weight: 700; text-decoration: none; padding: 11px 20px; border-radius: 12px; color: var(--text); line-height: 1.2;
  transition: transform .12s, box-shadow .2s, background .2s, border-color .2s, opacity .2s; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 10px 30px rgba(var(--accent-rgb), .32), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:hover { box-shadow: 0 12px 36px rgba(var(--accent-rgb), .48), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line); }
.btn-ghost:hover { background: rgba(var(--accent-rgb), .12); border-color: rgba(var(--accent-rgb), .45); }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { padding: 9px 15px; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- shared blocks ---------- */
.label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: #e6d0ff; background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .38); }
.label .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)), var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card.glow { border: 1px solid transparent;
  background: linear-gradient(180deg, var(--card2), var(--card)) padding-box,
              linear-gradient(140deg, rgba(var(--accent-rgb), .95), rgba(var(--accent-rgb), .12) 42%, rgba(var(--accent-rgb), .55)) border-box;
  box-shadow: 0 24px 70px rgba(var(--accent-rgb), .22); }
.ico-tile { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #ead7ff;
  background: linear-gradient(140deg, rgba(var(--accent-rgb), .34), rgba(var(--accent-rgb), .08)); border: 1px solid rgba(var(--accent-rgb), .4); }
.ico-tile svg { width: 23px; height: 23px; }
.sec { padding-top: 84px; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .label { margin-bottom: 16px; }
.h2 { font-size: clamp(1.75rem, 3.8vw, 2.5rem); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.sec-head p { margin-top: 12px; color: var(--muted); max-width: 40em; margin-left: auto; margin-right: auto; }
.page { padding-top: 46px; padding-bottom: 20px; }
.page-title { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; }
.page-sub { color: var(--muted); margin-top: 6px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 18px; font-weight: 600; }
.back:hover { color: var(--text); }
.back svg { transform: rotate(180deg); }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; padding-top: 84px; padding-bottom: 12px; }
.hero::before { content: ""; position: absolute; left: -10%; right: -10%; top: -68px; bottom: -20px; pointer-events: none; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 40% 34%, #000 25%, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 62% at 40% 34%, #000 25%, transparent 76%); }
.hero.solo { grid-template-columns: 1fr; text-align: center; }
.hero.solo .cta, .hero.solo .hero-note { justify-content: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; margin-top: 22px; color: #f7f2ff; }
.lead { color: var(--muted); font-size: 1.14rem; margin-top: 20px; max-width: 34em; }
.hero.solo .lead { margin-left: auto; margin-right: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--dim); font-size: .88rem; }

.panel { padding: 0; overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.dots i:first-child { background: rgba(var(--accent-rgb), .8); }
.panel-title { font-weight: 700; font-size: .92rem; color: var(--muted); }
.kv { display: grid; padding: 8px 10px; }
.kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 10px; border-radius: 10px; font-size: .9rem; }
.kv > div:nth-child(odd) { background: rgba(255, 255, 255, .025); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; text-align: right; word-break: break-all; }
.status { display: flex; align-items: center; gap: 10px; margin: 6px 18px 0; padding: 12px 14px; border-radius: 12px; font-weight: 700; font-size: .9rem;
  background: rgba(251, 191, 36, .09); border: 1px solid rgba(251, 191, 36, .28); color: #fcd34d; }
.status.safe { background: rgba(52, 211, 153, .09); border-color: rgba(52, 211, 153, .3); color: var(--ok); }
.panel .note { padding: 14px 18px 18px; color: var(--muted); font-size: .86rem; }

/* ---------- features ---------- */
.grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 18px; }
.feat { padding: 26px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 18px 48px rgba(var(--accent-rgb), .14); }
.feat h3 { font-size: 1.06rem; margin: 18px 0 8px; }
.feat p { color: var(--muted); font-size: .94rem; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 350px)); justify-content: center; gap: 22px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; }
.plan .tag { position: absolute; top: 18px; right: 18px; font-size: .78rem; font-weight: 800; padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 6px 18px rgba(var(--accent-rgb), .4); }
.plan h3 { font-size: 1.15rem; }
.plan .desc { color: var(--muted); font-size: .9rem; margin-top: 4px; min-height: 1.4em; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; }
.price .num { font-size: 3.1rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price .cur { font-size: 1.4rem; color: var(--muted); font-weight: 700; }
.per { display: inline-flex; margin-top: 12px; padding: 5px 11px; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #dcc3ff;
  background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .28); align-self: flex-start; }
.incl { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; flex: 1; border-top: 1px solid var(--line); padding-top: 22px; }
.incl li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.incl svg { color: var(--accent); margin-top: 2px; }
.fine { text-align: center; color: var(--dim); font-size: .88rem; margin-top: 26px; }

/* ---------- steps ---------- */
.steps4 { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 20px; }
.scard { position: relative; padding: 26px 24px; }
.scard .n { font-size: 2.4rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(var(--accent-rgb), .75); letter-spacing: -.02em; }
.scard h3 { font-size: 1.04rem; margin: 16px 0 6px; }
.scard p { color: var(--muted); font-size: .92rem; }
.scard:not(:last-child)::after { content: ""; position: absolute; top: 47px; right: -21px; width: 22px; height: 2px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .7), transparent); }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
details.faq { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008)), var(--card); transition: border-color .2s; }
details.faq[open] { border-color: rgba(var(--accent-rgb), .4); }
details.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; transition: transform .2s; flex: none; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { padding: 0 20px 20px; color: var(--muted); white-space: pre-line; font-size: .94rem; }

/* ---------- cta banner ---------- */
.cta-panel { position: relative; text-align: center; padding: 56px 28px; border-radius: 26px; overflow: hidden; border: 1px solid rgba(var(--accent-rgb), .38);
  background: radial-gradient(560px 260px at 50% -20%, rgba(var(--accent-rgb), .42), transparent 70%), linear-gradient(180deg, var(--card2), var(--card)); }
.cta-panel h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.cta-panel p { color: var(--muted); margin: 12px auto 26px; max-width: 34em; }

/* ---------- footer ---------- */
.footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 44px 0 36px; background: rgba(0, 0, 0, .22); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.foot-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 14px; }
.foot-links { display: grid; gap: 10px; align-content: start; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.foot-links a:hover { color: var(--text); }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.pre { white-space: pre-line; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.mt32 { margin-top: 32px; }
.mx { margin-left: auto; margin-right: auto; width: 100%; max-width: 820px; }
.copyright { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem; }

/* ---------- lists / connect ---------- */
.list { overflow: hidden; }
.item { display: flex; align-items: center; gap: 16px; padding: 17px 20px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.item:first-child { border-top: 0; }
.item:hover { background: rgba(var(--accent-rgb), .08); }
.item .grow { flex: 1; min-width: 0; }
.item .name { font-weight: 700; }
.item .meta { font-size: .84rem; color: var(--muted); margin-top: 2px; }
.item .meta .rec { color: var(--ok); font-weight: 700; }
.item .chev { color: var(--dim); flex: none; }
.letter { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 1.2rem; color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent2)); box-shadow: 0 8px 22px rgba(var(--accent-rgb), .32); }
.tips { margin-top: 24px; display: grid; gap: 10px; }
details.tip { border-radius: 14px; border: 1px solid; }
details.tip summary { cursor: pointer; list-style: none; padding: 15px 18px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
details.tip summary::-webkit-details-marker { display: none; }
details.tip summary .chev2 { margin-left: auto; transition: transform .2s; }
details.tip[open] summary .chev2 { transform: rotate(90deg); }
details.tip p { padding: 0 18px 18px 48px; color: var(--muted); font-size: .93rem; white-space: pre-line; }
details.tip.info { border-color: rgba(167, 139, 250, .32); background: rgba(139, 92, 246, .07); }
details.tip.info summary { color: #c4b5fd; }
details.tip.warn { border-color: rgba(251, 191, 36, .34); background: rgba(251, 191, 36, .06); }
details.tip.warn summary { color: #fcd34d; }
.support { margin-top: 24px; padding: 22px; }
.support h3 { font-size: 1.02rem; margin-bottom: 6px; }
.support p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.support .row, .row { display: flex; flex-wrap: wrap; gap: 10px; }
.support .btn { flex: 1; min-width: 190px; }
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.app-actions .btn { flex: 1; min-width: 180px; }
.guide { overflow: hidden; }
.g-step { display: flex; gap: 16px; padding: 22px 24px; border-top: 1px solid var(--line); }
.g-step:first-child { border-top: 0; }
.g-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 800;
  background: rgba(var(--accent-rgb), .16); border: 1px solid rgba(var(--accent-rgb), .5); color: #ead7ff; }
.g-num.done { background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .5); color: var(--ok); }
.g-body { flex: 1; min-width: 0; }
.g-body h3 { font-size: 1.02rem; margin-bottom: 6px; }
.g-body p { color: var(--muted); font-size: .93rem; white-space: pre-line; }
.g-body .act { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.keyctl { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.keyinput { flex: 1; min-width: 0; background: rgba(0, 0, 0, .34); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 12px; line-height: 1.5;
  font: .84rem ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- profile / referral ---------- */
.stack { display: grid; gap: 16px; }
.box { padding: 24px; }
.box h3 { font-size: 1.08rem; margin-bottom: 4px; }
.sub-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-block; font-size: .78rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; }
.pill.on { background: rgba(52, 211, 153, .14); color: var(--ok); }
.pill.off { background: rgba(248, 113, 113, .14); color: var(--err); }
.until { color: var(--muted); font-size: .9rem; margin-top: 16px; }
.until b { color: var(--text); }
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 12px; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent2), var(--accent)); box-shadow: 0 0 14px rgba(var(--accent-rgb), .6); }
.bar-cap { display: flex; justify-content: space-between; margin-top: 8px; font-size: .84rem; color: var(--muted); }
.rowline { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .94rem; }
.rowline:first-of-type { border-top: 0; }
.rowline span:first-child { color: var(--muted); }
.copychip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  color: inherit; font: 700 .86rem ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; max-width: 100%; }
.copychip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; text-decoration: none; text-align: center; font-weight: 700; transition: transform .2s, border-color .2s; }
.tile:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), .5); }
.linkbtn { background: none; border: 0; color: var(--err); font: inherit; font-weight: 700; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.stat { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.stat span { font-size: .8rem; color: var(--muted); }
.rhero { text-align: center; padding-bottom: 10px; }
.rhero .cta { justify-content: center; }
.rhero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin-top: 18px; }
.spinner { width: 24px; height: 24px; border: 3px solid rgba(var(--accent-rgb), .25); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- dialog / toast ---------- */
dialog { border: 1px solid var(--border); border-radius: 20px; background: var(--card); color: var(--text); padding: 26px; width: min(440px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(4, 2, 10, .74); backdrop-filter: blur(3px); }
dialog h3 { font-size: 1.15rem; margin-bottom: 10px; }
dialog p { color: var(--muted); white-space: pre-line; }
#dlg-body { margin-top: 16px; display: grid; place-items: center; }
.dlg-actions { margin-top: 20px; display: flex; justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--border);
  padding: 11px 20px; border-radius: 999px; font-weight: 700; z-index: 90; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .ipchip { display: none; }
}
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps4 { grid-template-columns: repeat(2, 1fr); }
  .scard:not(:last-child)::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 52px; gap: 34px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; margin: 0; padding: 12px 22px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 1rem; }
  .burger { display: grid; }
  .faq-grid { grid-template-columns: 1fr; }
  .sec { padding-top: 64px; }
}
@media (max-width: 560px) {
  .grid, .steps4, .tiles { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
  .cta { flex-direction: column; }
  .ipchip { display: none; }
  .hdr-actions .btn-sm { padding: 8px 12px; font-size: .85rem; }
  .t-long { display: none; }
  .t-short { display: inline; }
  .label { font-size: .68rem; letter-spacing: .03em; border-radius: 16px; line-height: 1.35; }
  .brand { font-size: 1.08rem; }
  .g-step { padding: 18px 16px; gap: 12px; }
  .box { padding: 20px; }
  .cta-panel { padding: 40px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* ---------- login / register dialog ---------- */
.authbox { width: 100%; display: grid; gap: 14px; }
.authtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.authtab { padding: 9px 10px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.authtab.on { background: linear-gradient(135deg, var(--accent), var(--accent2, #7c3aed)); color: #fff; }
.authform { display: grid; gap: 10px; }
.authinput { width: 100%; background: rgba(0, 0, 0, .34); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px 14px; font: inherit; }
.authinput:focus { outline: 2px solid rgba(var(--accent-rgb), .6); outline-offset: 1px; }
.authsubmit { width: 100%; justify-content: center; }
.authhint { margin: 0; line-height: 1.45; }
.autherr { margin: 0; padding: 9px 12px; border-radius: 10px; font-size: .88rem; color: #fca5a5; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .35); }
.autherr[hidden] { display: none; }
.author { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; }
.author::before, .author::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.authtg { display: grid; place-items: center; min-height: 46px; }
.authwarn { display: grid; gap: 10px; width: 100%; }
.authwarn .btn { width: 100%; justify-content: center; }
.authnote { color: #fcd34d; margin: 0 0 4px; line-height: 1.45; }

.authtgbtn { width: 100%; justify-content: center; }
.authwait { display: grid; gap: 8px; justify-items: center; text-align: center; }
.authwait p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.authwait a, .authwait .linkbtn { color: var(--accent); }


/* ---------- plan cards: pill buttons + lift on hover ---------- */
.plan { transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s, border-color .22s; }
.plan:hover, .plan:focus-within { transform: translateY(-8px) scale(1.035); border-color: rgba(var(--accent-rgb), .65);
  box-shadow: 0 26px 70px rgba(var(--accent-rgb), .30), 0 0 0 1px rgba(var(--accent-rgb), .35); position: relative; z-index: 3; }
.plan .btn-block { border-radius: 999px; padding: 15px 22px; font-size: 1rem; letter-spacing: .01em; }
@media (prefers-reduced-motion: reduce) { .plan, .plan:hover, .plan:focus-within { transition: none; transform: none; } }
@media (hover: none) { .plan:hover { transform: none; } }

/* ---------- cabinet key block ---------- */
.keyact { display: grid; gap: 12px; }
.keyurl { background: rgba(0, 0, 0, .34); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.5;
  word-break: break-all; user-select: all; color: var(--text); }
.keybtns { display: flex; flex-wrap: wrap; gap: 8px; }
.qrbox { background: #fff; padding: 12px; border-radius: 14px; line-height: 0; }
.qrbox img, .qrbox canvas { max-width: 100%; height: auto; }

/* ---------- register: password eye + collapsible referral code ---------- */
.passwrap { position: relative; }
.passwrap .authinput { padding-right: 48px; }
.passeye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0;
  background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.passeye:hover, .passeye.on { color: var(--accent); }
.refwrap { display: grid; gap: 8px; }
.refwrap[hidden], .refbox[hidden] { display: none; }
.reftoggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 4px 2px; background: none; border: 0;
  color: var(--text); font: inherit; font-size: .92rem; cursor: pointer; }
.reftoggle svg { width: 18px; height: 18px; transition: transform .2s; transform: rotate(90deg); }
.reftoggle[aria-expanded="true"] svg { transform: rotate(-90deg); }


/* ---------- cabinet: Wallet-style stack ---------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  margin-bottom: 26px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 9px 18px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: rgba(255, 255, 255, .14); color: #fff; }
.wall { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.wleft { display: grid; gap: 16px; }
.wstack { display: flex; flex-direction: column; padding-top: 6px; }
.wcard { display: block; width: 100%; text-align: left; color: #fff; font: inherit; position: relative; margin-top: -92px; padding: 22px 24px; min-height: 176px;
  border-radius: 30px; border: 1px solid var(--border); cursor: pointer; background: linear-gradient(150deg, #3b1d70, #1b1033);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .45); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, filter .3s; }
.wcard:first-child { margin-top: 0; }
.wcard:nth-child(2) { z-index: 2; } .wcard:nth-child(3) { z-index: 3; } .wcard:nth-child(4) { z-index: 4; } .wcard:nth-child(n+5) { z-index: 5; }
.wcard.ok { background: linear-gradient(150deg, #52289c, #1e1238); }
.wcard.hi { background: linear-gradient(150deg, #7c3aed, #2a1650); }
.wcard.low { background: linear-gradient(150deg, #8a5a12, #2a1c08); }
.wcard.off { background: linear-gradient(150deg, #2b2740, #171424); filter: saturate(.55); }
.wcard:hover { transform: translateY(-3px); }
.wcard.sel { transform: scale(1.02); box-shadow: 0 20px 50px rgba(var(--accent-rgb), .35); z-index: 9; animation: wpop .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes wpop { from { transform: translateY(26px) scale(.97); opacity: .6; } to { transform: scale(1.02); opacity: 1; } }
.wplan { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.wcard h3 { font-size: 1.3rem; margin-top: 2px; }
.wdays { text-align: right; line-height: 1; }
.wdays b { font-size: 2.2rem; letter-spacing: -.03em; }
.wdays span { display: block; font-size: .72rem; color: rgba(255, 255, 255, .72); margin-top: 3px; }
.wmore { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 34px; color: rgba(255, 255, 255, .85); font-size: .9rem; }
.wadd { justify-self: start; }
.wpanel { padding: 26px; border-radius: 30px; background: linear-gradient(160deg, var(--card2), var(--card)); border: 1px solid var(--border); display: grid; gap: 4px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 14px; }
.facts span { display: block; color: var(--muted); font-size: .8rem; }
.facts b { font-size: 1.02rem; }
.wpanel .keyurl { margin: 6px 0 12px; }
.wcard .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.renewbox { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.renewlbl { color: var(--muted); font-size: .86rem; margin-bottom: 10px; }
.renewrow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.renewrow .btn { width: 100%; border-radius: 999px; padding: 11px 14px; }
@media (max-width: 420px) { .renewrow { grid-template-columns: 1fr; } }
.cabbody > .stack { max-width: 820px; }
@media (max-width: 860px) { .wall { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wcard, .wcard.sel { transition: none; animation: none; } }

.keyapps { display: flex; flex-wrap: wrap; gap: 10px; }
.keyapps .btn { flex: 1 1 140px; border-radius: 999px; padding: 11px 18px; }
.delkey { justify-self: start; margin-top: 14px; padding: 6px 0; background: none; border: 0; color: #fca5a5; font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.delkey:hover { color: #f87171; }
.btn-danger { background: rgba(239, 68, 68, .16); border-color: rgba(239, 68, 68, .55); color: #fecaca; }
.btn-danger:hover:not([disabled]) { background: rgba(239, 68, 68, .3); }
.btn-danger[disabled] { opacity: .6; cursor: not-allowed; }
.planswitch { display: flex; justify-content: center; margin: 0 0 28px; }
.planseg { margin-bottom: 0; }
.planseg button.off { opacity: .55; }
.planseg button.on.off { opacity: 1; }
.plan-off { opacity: .72; }
.plan-off h3, .plan-off .incl li { color: var(--muted); }
.tag-off { background: rgba(248, 113, 113, .14) !important; color: #f87171 !important; box-shadow: none !important; }
.modepage .modebox { min-height: 70vh; display: grid; align-content: center; justify-items: center; }
.modeicon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 18px; color: var(--accent);
  background: rgba(var(--accent-rgb), .14); border: 1px solid var(--border); }
.modeicon svg { width: 34px; height: 34px; }
.keyhint { margin: 2px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
