:root {
  --bg: #0d0a1a;
  --bg2: #151027;
  --card: #1b1533;
  --card2: #231a42;
  --line: #34295c;
  --text: #ece8ff;
  --muted: #a99fd0;
  --gold: #ffc83d;
  --gold2: #ffa751;
  --pink: #ff66cc;
  --green: #6bff9b;
  --red: #ff6b6b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #2a1650 0%, transparent 60%), radial-gradient(900px 500px at -10% 10%, #13284a 0%, transparent 55%), var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
main { flex: 1; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* ---------------------------------------------------------------- header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(13, 10, 26, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: .5px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.logo:hover { text-decoration: none; }
.logo .cube { width: 30px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, var(--gold), var(--gold2)); display: grid; place-items: center; color: #3a2400; font-weight: 900; box-shadow: 0 0 18px rgba(255, 200, 61, .45); }
.logo b { background: linear-gradient(90deg, var(--gold), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
nav.menu { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
nav.menu a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; }
nav.menu a:hover, nav.menu a.on { color: var(--text); background: var(--card); text-decoration: none; }
nav.menu a.shop { color: #2b1a00; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.burger { display: none; margin-left: auto; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 18px; cursor: pointer; }

@media (max-width: 860px) {
  .burger { display: block; }
  nav.menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg2); flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); }
  nav.menu.open { display: flex; }
}

.announce { background: linear-gradient(90deg, #4b1d73, #7a2a6a); color: #fff; text-align: center; padding: 8px 16px; font-weight: 600; font-size: 14px; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; margin: 0 0 14px; font-weight: 900; }
.grad { background: linear-gradient(90deg, var(--gold), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 19px; margin: 0 0 26px; max-width: 560px; }
.ipbox { display: flex; align-items: center; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; width: max-content; max-width: 100%; box-shadow: var(--shadow); }
.ipbox code { padding: 14px 18px; font-size: 20px; font-weight: 800; color: var(--gold); letter-spacing: .5px; font-family: ui-monospace, Consolas, monospace; }
.ipbox button { border: 0; padding: 14px 18px; background: var(--card2); color: var(--text); font-weight: 700; cursor: pointer; font-size: 15px; height: 100%; }
.ipbox button:hover { background: #2f2457; }
.status { margin-top: 14px; color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #666; box-shadow: 0 0 0 4px rgba(255, 255, 255, .05); }
.dot.on { background: var(--green); box-shadow: 0 0 12px var(--green); }
.cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-img { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 25px 60px rgba(0, 0, 0, .5), 0 0 80px rgba(199, 125, 255, .15); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 800; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; font-size: 15px; }
.btn:hover { text-decoration: none; background: var(--card2); }
.btn.gold { background: linear-gradient(90deg, var(--gold), var(--gold2)); color: #2b1a00; border: 0; }
.btn.gold:hover { filter: brightness(1.06); }
.btn.pink { background: linear-gradient(90deg, #c77dff, var(--pink)); color: #fff; border: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 10px; }

/* ---------------------------------------------------------------- sections */
section.block { padding: 46px 0; }
h2.title { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 8px; font-weight: 900; }
p.sub { color: var(--muted); margin: 0 0 28px; max-width: 760px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 6px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ico { font-size: 30px; }
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding-left: 56px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #2b1a00; display: grid; place-items: center; font-weight: 900; }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gallery figcaption { padding: 10px 14px; color: var(--muted); font-size: 14px; }
.note { background: #1e1838; border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: 14px; }
.note b { color: var(--text); }

/* ---------------------------------------------------------------- shop */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.tabs button { background: var(--card); border: 1px solid var(--line); color: var(--muted); padding: 10px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: 15px; }
.tabs button.on { color: #2b1a00; background: linear-gradient(90deg, var(--gold), var(--gold2)); border-color: transparent; }
.pkg { display: flex; flex-direction: column; position: relative; }
.pkg .badge { position: absolute; top: -10px; right: 14px; background: linear-gradient(90deg, #c77dff, var(--pink)); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.pkg .head { display: flex; align-items: center; gap: 12px; }
.pkg .emoji { font-size: 30px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); }
.pkg ul { list-style: none; padding: 0; margin: 14px 0 18px; flex: 1; }
.pkg li { padding: 4px 0 4px 24px; position: relative; font-size: 14.5px; color: #d8d2f5; }
.pkg li::before { content: "✔"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.price { font-size: 26px; font-weight: 900; }
.price s { color: var(--muted); font-size: 16px; margin-left: 8px; font-weight: 600; }
.pkg .buy { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ---------------------------------------------------------------- tables & forms */
table { width: 100%; border-collapse: collapse; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
th { background: var(--card2); position: sticky; top: 0; }
tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
td.c, th.c { text-align: center; }
.yes { color: var(--green); font-weight: 900; }
.no { color: #5c527f; }

label { display: block; font-weight: 700; margin: 12px 0 6px; font-size: 14px; }
input, select, textarea { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: #120e24; color: var(--text); font: inherit; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--muted); margin: 10px 0; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.err { color: var(--red); font-weight: 700; margin: 10px 0 0; min-height: 1.2em; }
.ok { color: var(--green); font-weight: 700; }

.modal { position: fixed; inset: 0; background: rgba(5, 3, 12, .75); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal.open { display: flex; }
.modal .box { width: min(520px, 100%); max-height: 92vh; overflow: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 4px; font-size: 22px; }

/* ---------------------------------------------------------------- text pages */
.doc { max-width: 860px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); margin: 30px 0 10px; }
.doc h2 { margin: 28px 0 8px; font-size: 22px; color: var(--gold); }
.doc p, .doc li { color: #d8d2f5; }
.doc ol, .doc ul { padding-left: 22px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 800; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--line); padding: 12px 18px; border-radius: 12px; font-weight: 700; z-index: 200; display: none; }
