@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #060a13;
  --bg2: #09101e;
  --panel: #0d1628;
  --panel2: #111d34;
  --panel3: #16243f;
  --line: #1c2a46;
  --line2: #283b60;
  --text: #e8eefb;
  --muted: #97a6c6;
  --dim: #66779c;
  --b1: #00c6ff;
  --b2: #0072ff;
  --grad: linear-gradient(135deg, var(--b1), var(--b2));
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;
  --vip: #4ade80;
  --mvp: #22d3ee;
  --elite: #f59e0b;
  --supreme: #e879f9;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 12px 34px rgba(0, 0, 0, .38);
  --wrap: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  background: rgba(0, 198, 255, .1);
  color: #8fe3ff;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .9em;
}
h1, h2, h3, h4 { line-height: 1.4; margin: 0; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.hide-sm { margin-inline-start: 4px; }
svg.lucide { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 100; background: var(--b2); padding: 6px 12px; border-radius: 8px; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 2px solid var(--b1); outline-offset: 2px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, opacity .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(0, 114, 255, .35); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(0, 150, 255, .5); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #3a5282; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.badge {
  position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center;
}
.link { color: var(--b1); font-weight: 600; }
.link:hover { text-decoration: underline; }
.ip-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 8px;
  border: 1px dashed #2f4a78; background: rgba(0, 198, 255, .06); color: #9be6ff; cursor: pointer;
  font-family: ui-monospace, Consolas, monospace; font-size: 14px; vertical-align: middle;
}
.ip-chip:hover { border-color: var(--b1); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.up { background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 211, 153, .16); }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 40; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(6, 10, 19, .78); border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.wordmark {
  font-weight: 900; letter-spacing: .06em; font-size: 20px; direction: ltr;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(0, 198, 255, .1); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.online-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 12px;
  background: rgba(52, 211, 153, .07); border: 1px solid rgba(52, 211, 153, .22); font-size: 14px; color: #bff3dc;
}
.online-pill b { font-weight: 800; }
.menu-btn { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(64, 110, 190, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(64, 110, 190, .09) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 760px; height: 760px; inset-inline-start: -160px; top: -340px; pointer-events: none;
  background: radial-gradient(circle, rgba(0, 150, 255, .28), transparent 62%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13.5px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--muted);
}
.hero h1 { margin-top: 18px; font-size: clamp(40px, 6.4vw, 72px); font-weight: 900; line-height: 1.12; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; display: inline-block; letter-spacing: .02em; }
.h1-sub { display: block; font-size: .46em; font-weight: 800; color: var(--text); margin-top: 10px; }
.lead { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 560px; }
.ip-box {
  margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 520px;
  padding: 10px 10px 10px 18px; padding-inline-start: 18px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(17, 29, 52, .9), rgba(13, 22, 40, .9)); border: 1px solid var(--line2); box-shadow: var(--shadow);
}
.ip-text small { display: block; color: var(--dim); font-size: 12.5px; }
.ip-text code { background: none; padding: 0; font-size: 21px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.hero-cta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 90, 220, .28)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.live-card {
  position: absolute; inset-inline-start: 4%; bottom: 6%; padding: 12px 16px; border-radius: 14px;
  background: rgba(9, 16, 30, .88); border: 1px solid var(--line2); box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.live-top { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.live-top b { font-size: 20px; }
.live-sub { color: var(--dim); font-size: 12.5px; }

.stats-strip { border-block: 1px solid var(--line); background: var(--bg2); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 22px 12px; text-align: center; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat b { display: block; font-size: 26px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 13.5px; }

/* ---------------------------------------------------------------- sections */
.section { padding: 72px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 30px; }
.sec-head h2 { font-size: 30px; font-weight: 900; }
.sec-head p { color: var(--muted); margin-top: 6px; }

.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mode {
  --c: #3b82f6; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, var(--panel)) 0%, var(--panel) 55%);
  border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line)); overflow: hidden; transition: transform .2s, border-color .2s;
}
.mode::after {
  content: ""; position: absolute; width: 160px; height: 160px; inset-inline-end: -60px; top: -60px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); pointer-events: none;
}
.mode:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.mode-top { display: flex; align-items: center; justify-content: space-between; }
.mode-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 35%, transparent);
}
.mode-icon svg { width: 24px; height: 24px; }
.mode-tag { font-size: 12px; color: color-mix(in srgb, var(--c) 70%, #fff); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); padding: 2px 10px; border-radius: 999px; }
.mode h3 { font-size: 19px; font-weight: 800; direction: ltr; text-align: right; }
.mode h3 small { font-size: 13px; color: var(--muted); font-weight: 600; margin-inline-start: 6px; }
.mode p { color: var(--muted); font-size: 14px; flex: 1; }
.mode-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.players { display: inline-flex; align-items: center; gap: 7px; color: #c7d3ee; }
.m-survival { --c: #22c55e; } .m-bedwars { --c: #ef4444; } .m-skymine { --c: #38bdf8; } .m-prison { --c: #f97316; }
.m-kitpvp { --c: #eab308; } .m-practice { --c: #a855f7; } .m-arcade { --c: #ec4899; } .m-parkour { --c: #14b8a6; }
.m-pillar { --c: #f59e0b; } .m-creative { --c: #84cc16; } .m-zula { --c: #94a3b8; } .m-roleplay { --c: #d946ef; }

.t-vip { --t: var(--vip); } .t-mvp { --t: var(--mvp); } .t-elite { --t: var(--elite); } .t-supreme { --t: var(--supreme); }
.rank-teasers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rank-teaser {
  display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r); text-align: center; align-items: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--t) 12%, var(--panel)), var(--panel));
  border: 1px solid color-mix(in srgb, var(--t) 30%, var(--line)); transition: transform .2s, box-shadow .2s;
}
.rank-teaser:hover { transform: translateY(-3px); box-shadow: 0 16px 40px color-mix(in srgb, var(--t) 18%, transparent); }
.rt-crown { color: var(--t); }
.rt-crown svg { width: 34px; height: 34px; }
.rank-teaser h3 { font-size: 24px; font-weight: 900; color: var(--t); letter-spacing: .04em; }
.rank-teaser p { color: var(--muted); font-size: 13.5px; }
.rt-price { margin-top: 6px; font-size: 14px; color: var(--muted); }
.rt-price b { color: var(--text); font-size: 18px; }

.join { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.join-card { padding: 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.jc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.jc-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(0, 198, 255, .1); color: var(--b1); }
.jc-head h3 { font-size: 17px; direction: ltr; text-align: right; }
.jc-head small { color: var(--dim); }
.join-card ol { margin: 0; padding-inline-start: 20px; color: #cdd7ef; }
.join-card li { margin: 6px 0; }
.join-card li::marker { color: var(--b1); font-weight: 800; }

.cta-band { padding: 56px 0; }
.cta-in {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 32px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(0, 198, 255, .16), rgba(0, 114, 255, .2)); border: 1px solid rgba(0, 170, 255, .3);
}
.cta-in h2 { font-size: 26px; font-weight: 900; }
.cta-in p { color: #bcd2f4; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- page head / store */
.page-head { padding: 44px 0 26px; background: radial-gradient(ellipse 60% 120% at 80% 0%, rgba(0, 120, 255, .18), transparent 70%); border-bottom: 1px solid var(--line); }
.page-head h1 { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 900; }
.page-head h1 svg { color: var(--b1); }
.page-head p { color: var(--muted); margin-top: 8px; max-width: 760px; }
.page-head-sm { padding: 34px 0 20px; }

.store { display: grid; grid-template-columns: 230px 1fr; gap: 24px; padding-top: 24px; padding-bottom: 60px; align-items: start; }
.cats { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.cat {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; border: 0;
  background: none; color: var(--muted); font-weight: 600; cursor: pointer; text-align: start;
}
.cat span { flex: 1; }
.cat small { font-size: 12px; color: var(--dim); background: rgba(255, 255, 255, .05); border-radius: 999px; padding: 0 8px; }
.cat:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.cat.on { background: rgba(0, 198, 255, .12); color: #fff; }
.cat.on svg { color: var(--b1); }
.store-tools { margin-bottom: 18px; }
.search {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line2); color: var(--dim);
}
.search:focus-within { border-color: var(--b1); }
.search input { flex: 1; border: 0; outline: 0; background: none; height: 100%; }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.panel-head { margin-bottom: 16px; }
.panel-head h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; }
.panel-head h2 svg { color: var(--b1); }
.panel-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.searching .panel-head, .searching .points-box { display: none; }
.btn-disabled { pointer-events: none; opacity: .45; box-shadow: none; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.product {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line); transition: border-color .2s;
}
.product:hover { border-color: var(--line2); }
.p-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.p-head h3 { font-size: 15.5px; font-weight: 800; line-height: 1.6; }
.tier-badge {
  display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
  color: var(--t); background: color-mix(in srgb, var(--t) 12%, transparent); border: 1px solid color-mix(in srgb, var(--t) 30%, transparent);
}
.tier-badge svg { width: 12px; height: 12px; }
.p-desc { color: var(--muted); font-size: 13.5px; flex: 1; }
.p-usage summary { cursor: pointer; color: var(--b1); font-size: 13px; font-weight: 600; }
.p-usage p { margin-top: 6px; font-size: 13px; color: #c3cee6; background: rgba(255, 255, 255, .03); border-radius: 10px; padding: 8px 10px; }
.p-buy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .06); margin-top: auto; }
.select {
  height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2);
  min-width: 108px; cursor: pointer;
}
.price { display: flex; align-items: baseline; gap: 6px; flex: 1; justify-content: flex-end; }
.price s { color: var(--dim); font-size: 13px; }
.price b { font-size: 18px; font-weight: 900; }
.price small { color: var(--muted); font-size: 12px; }
.p-buy .btn.added { background: linear-gradient(135deg, #10b981, #059669); box-shadow: none; }

.ranks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rank {
  display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 18px; scroll-margin-top: 90px;
  background: linear-gradient(170deg, color-mix(in srgb, var(--t) 13%, var(--panel)) 0%, var(--panel) 50%);
  border: 1px solid color-mix(in srgb, var(--t) 34%, var(--line));
}
.rank:target { box-shadow: 0 0 0 2px var(--t); }
.rank-head { display: flex; align-items: center; gap: 10px; }
.rank-crown { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #0b1220; background: var(--t); }
.rank-head h3 { font-size: 26px; font-weight: 900; color: var(--t); letter-spacing: .05em; flex: 1; }
.rank-off { font-size: 13px; font-weight: 800; color: var(--t); border: 1px solid color-mix(in srgb, var(--t) 45%, transparent); padding: 2px 10px; border-radius: 999px; }
.rank-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: #cdd7ef; font-size: 14px; }
.rank-facts li { display: flex; align-items: center; gap: 8px; }
.rank-facts svg { color: var(--t); }
.bundle summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--t); font-weight: 700; font-size: 14px; }
.bundle[open] summary { margin-bottom: 8px; }
.bundle h4 { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; color: #dbe4f7; }
.bundle h4 small { color: var(--dim); font-weight: 600; }
.bundle ul { margin: 4px 0 0; padding-inline-start: 18px; color: var(--muted); font-size: 13px; columns: 2; column-gap: 20px; }
.bundle li { break-inside: avoid; }
.points-box { margin-top: 18px; padding: 20px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.points-box h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.points-box h3 svg { color: var(--warn); }
.points-box p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.tier { padding: 10px; border-radius: 12px; text-align: center; border: 1px solid color-mix(in srgb, var(--t) 35%, transparent); background: color-mix(in srgb, var(--t) 8%, transparent); }
.tier b { display: block; color: var(--t); font-weight: 900; }
.tier span { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- drawer / toast */
.drawer-back { position: fixed; inset: 0; z-index: 60; background: rgba(2, 5, 12, .6); backdrop-filter: blur(2px); }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 61; width: min(420px, 100%); display: flex; flex-direction: column;
  background: var(--bg2); border-inline-start: 1px solid var(--line2); box-shadow: -20px 0 60px rgba(0, 0, 0, .5);
  transform: translateX(-105%); transition: transform .28s ease; visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.drawer-foot { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; }
.sum b { font-size: 20px; }
.cart-empty { padding: 50px 10px; text-align: center; color: var(--muted); }
.cart-empty svg { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--dim); }
.c-item { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.c-item > div { flex: 1; min-width: 0; }
.c-item b { display: block; font-size: 14px; line-height: 1.6; }
.c-item small { color: var(--muted); font-size: 12.5px; }
.c-item .c-price { font-weight: 800; white-space: nowrap; font-size: 14px; display: grid; justify-items: end; line-height: 1.4; }
.c-item .c-price s { color: var(--dim); font-weight: 500; font-size: 12px; }
.c-remove { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line2); background: none; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.c-remove:hover { color: var(--err); border-color: var(--err); }
.toast {
  position: fixed; bottom: 22px; left: 50%; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 12px; background: #0f2a1f; border: 1px solid rgba(52, 211, 153, .4); color: #c9f7e3;
  font-weight: 600; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #2a1214; border-color: rgba(248, 113, 113, .45); color: #ffd5d5; }

/* ---------------------------------------------------------------- forms / checkout */
.card { padding: 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.card h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.card h2 svg { color: var(--b1); }
.checkout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 24px; padding-bottom: 60px; align-items: start; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; margin-top: 6px; border-top: 1px dashed var(--line2); }
.co-total b { font-size: 24px; font-weight: 900; }
.co-cart .link { display: inline-block; margin-top: 12px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 14px; font-weight: 600; color: #cfd9ef; }
.field small { color: var(--dim); font-weight: 500; }
.field input, .adm-form input:not([type=radio]):not([type=checkbox]), .adm-search input {
  height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); outline: 0; width: 100%;
}
.field input:focus { border-color: var(--b1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-prefix { display: flex; align-items: center; border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); direction: ltr; }
.input-prefix:focus-within { border-color: var(--b1); }
.input-prefix em { font-style: normal; font-weight: 800; color: var(--b1); padding-left: 14px; }
.input-prefix input { border: 0 !important; background: none !important; }
.hint { font-size: 13.5px; margin: -6px 0 14px; min-height: 1px; }
.hint.ok { color: var(--ok); }
.hint.warn { color: var(--warn); }
.hint.err { color: var(--err); }
.seg { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg legend { font-size: 14px; font-weight: 600; color: #cfd9ef; margin-bottom: 6px; padding: 0; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 12px; border: 1px solid var(--line2);
  background: var(--panel2); font-weight: 600; font-size: 14px; color: var(--muted); padding: 0 8px; text-align: center;
}
.seg input:checked + span { border-color: var(--b1); color: #fff; background: rgba(0, 198, 255, .1); }
.seg input:focus-visible + span { outline: 2px solid var(--b1); outline-offset: 2px; }
.seg-col { grid-template-columns: 1fr; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--b2); flex: none; }
.check a { color: var(--b1); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .3); color: #fde7a6; font-size: 14px; }
.notice svg { color: var(--warn); margin-top: 4px; }
.form-error { color: var(--err); font-weight: 600; margin-top: 10px; min-height: 1px; }
.co-form .muted.small { margin-top: 10px; }

/* ---------------------------------------------------------------- order */
.order-wrap { padding-top: 34px; padding-bottom: 60px; max-width: 760px; }
.o-state { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.o-state > svg { width: 44px; height: 44px; flex: none; }
.o-state h1 { font-size: 22px; font-weight: 900; }
.o-state p { color: var(--muted); margin-top: 4px; }
.o-state.ok > svg { color: var(--ok); }
.o-state.err > svg { color: var(--err); }
.o-state.wait > svg { color: var(--b1); animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.o-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0 0 16px; }
.o-meta div { padding: 10px 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); min-width: 0; }
.o-meta dt { font-size: 12px; color: var(--dim); }
.o-meta dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.o-items { list-style: none; margin: 0; padding: 0; }
.o-items li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.o-items li b { display: block; }
.o-items li small { display: block; color: var(--muted); font-size: 13px; }
.st { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; background: rgba(255, 255, 255, .06); color: var(--muted); }
.st-done, .st-paid { background: rgba(52, 211, 153, .12); color: var(--ok); }
.st-pending, .st-processing, .st-created { background: rgba(0, 198, 255, .1); color: #8fe3ff; }
.st-error, .st-failed { background: rgba(248, 113, 113, .12); color: var(--err); }
.st-expired { background: rgba(148, 163, 184, .12); color: #a3b1c9; }
.o-help { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(0, 198, 255, .06); border: 1px solid rgba(0, 198, 255, .2); }
.o-help h3 { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.o-help ul { margin: 6px 0 0; padding-inline-start: 18px; color: #cbd6ee; font-size: 14px; }
.o-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ---------------------------------------------------------------- rules / 404 */
.prose { display: grid; gap: 16px; padding-top: 24px; padding-bottom: 60px; max-width: 900px; }
.prose ol { margin: 0; padding-inline-start: 22px; color: #cdd7ef; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--b1); font-weight: 800; }
.prose .card { scroll-margin-top: 90px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); font-size: 14px; }
.toc a:hover { color: var(--text); border-color: var(--b1); }
.nf { padding: 90px 16px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.nf-code { font-size: 110px; font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf p { color: var(--muted); }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 20px; }
.footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; padding-top: 40px; padding-bottom: 26px; }
.f-brand p { color: var(--muted); font-size: 14px; margin: 12px 0; max-width: 360px; }
.f-col { display: flex; flex-direction: column; gap: 6px; }
.f-col h4 { font-size: 15px; margin-bottom: 4px; }
.f-col a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.f-col a:hover { color: var(--text); }
.f-col p { font-size: 14px; }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 22px; border-top: 1px solid var(--line); font-size: 13px; color: #b7c3dd; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .rank-teasers { grid-template-columns: repeat(2, 1fr); }
  .join { grid-template-columns: 1fr 1fr; }
  .join-note { grid-column: 1 / -1; }
  .ranks { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: fixed; top: 66px; inset-inline: 0; margin: 0; flex-direction: column; padding: 12px 16px 18px; gap: 2px;
    background: rgba(6, 10, 19, .97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s, transform .18s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px; font-size: 15.5px; }
  .hero { padding-top: 40px; }
  .hero-in { grid-template-columns: 1fr; gap: 10px; }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
  .store { grid-template-columns: 1fr; gap: 14px; }
  .cats { position: sticky; top: 66px; z-index: 30; flex-direction: row; overflow-x: auto; border-radius: 0; margin: 0 -16px; padding: 8px 16px; border-inline: 0; scrollbar-width: none; background: rgba(13, 22, 40, .96); }
  .cats::-webkit-scrollbar { display: none; }
  .cat { width: auto; flex: none; padding: 7px 12px; }
  .checkout { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .hide-sm { display: none; }
  .topbar-in { gap: 10px; }
  .wordmark { font-size: 17px; }
  .online-pill { padding: 0 10px; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .section { padding: 52px 0; }
  .sec-head h2 { font-size: 24px; }
  .rank-teasers { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rank-teaser { padding: 16px 10px; }
  .join { grid-template-columns: 1fr; }
  .ip-box { flex-direction: column; align-items: stretch; text-align: center; padding: 14px; }
  .ip-box .btn { width: 100%; }
  .ip-text code { font-size: 19px; }
  .products { grid-template-columns: 1fr; }
  .bundle ul { columns: 1; }
  .tiers { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta-in { padding: 22px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .footer-in { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
