:root {
  --bg: #0f0f14;
  --panel: #17171f;
  --panel-2: #1e1e29;
  --line: #2a2a38;
  --text: #ecebf5;
  --muted: #9a98b0;
  --accent: #a78bfa;
  --accent-2: #f0abfc;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(167,139,250,.14), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(240,171,252,.08), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1040px, 92%); margin: 0 auto; }

/* header */
header { border-bottom: 1px solid var(--line); background: rgba(15,15,20,.8); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 1.2rem; color: var(--text); letter-spacing: .02em; }
.brand span { color: var(--accent); }
.nav ul { display: flex; gap: 6px; list-style: none; }
.nav a.link { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-size: .95rem; }
.nav a.link:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav a.link.active { color: var(--text); background: var(--panel-2); }

/* hero */
.hero { padding: 90px 0 60px; text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.1; margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 620px; margin: 0 auto 30px; }
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; font-family: inherit;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: linear-gradient(90deg, var(--accent), #8b5cf6); border-color: transparent; color: #12101c; }
.btn.primary:hover { filter: brightness(1.1); }

/* sections */
section { padding: 40px 0; }
h2 { font-size: 1.7rem; margin-bottom: 8px; }
.sub { color: var(--muted); margin-bottom: 26px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.card p { color: var(--muted); font-size: .95rem; }
.page-title { padding: 56px 0 10px; }
.page-title h1 { font-size: 2.3rem; }
.prose p { color: var(--muted); margin-bottom: 14px; max-width: 720px; }
.prose p strong { color: var(--text); }

/* support */
.toggle { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.toggle button { background: none; border: 0; color: var(--muted); padding: 10px 22px; border-radius: 9px; font-size: .98rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.toggle button.on { background: var(--panel-2); color: var(--text); }
.tier { display: flex; flex-direction: column; }
.tier .price { font-size: 2rem; font-weight: 700; margin: 8px 0 4px; }
.tier .price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.tier ul { list-style: none; margin: 14px 0 20px; color: var(--muted); font-size: .93rem; flex: 1; }
.tier li { padding: 5px 0 5px 22px; position: relative; }
.tier li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: .8rem; top: 8px; }
.tier .btn { text-align: center; }
.hidden { display: none !important; }
.note { background: var(--panel); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 18px; color: var(--muted); font-size: .9rem; margin-top: 22px; }
.note strong { color: var(--text); }
.custom { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.custom input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 12px; font-size: 1rem; font-family: inherit; }

/* footer */
footer { margin-top: auto; border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 560px) {
  .nav { height: auto; padding: 10px 0; flex-direction: column; gap: 6px; }
  .hero { padding: 56px 0 36px; }
}

/* stats + account */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 8px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.tile b { display: block; font-size: 1.7rem; }
.tile span { color: var(--muted); font-size: .9rem; }
.board { width: 100%; border-collapse: collapse; }
.board td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
.board tr:last-child td { border-bottom: 0; }
.board td:first-child { width: 44px; color: var(--muted); }
.board td:last-child { text-align: right; font-weight: 600; }
.profile { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.profile img { border-radius: 50%; background: var(--panel); }
.cardgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 16px; }
.mc { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mc img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; background: var(--panel-2); }
.mc div { padding: 8px 10px; font-size: .85rem; }
.mc small { color: var(--muted); display: block; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 18px; color: var(--muted); }
.pager .btn[disabled] { opacity: .4; cursor: default; }

/* legal pages */
.prose h2 { font-size: 1.25rem; margin: 30px 0 10px; }
.prose ul, .prose ol { color: var(--muted); max-width: 720px; margin: 0 0 14px 22px; }
.prose li { margin-bottom: 8px; }
.prose li strong { color: var(--text); }
.prose a { color: var(--accent); }
.prose table { border-collapse: collapse; max-width: 720px; width: 100%; margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); }
.updated { color: var(--muted); font-size: .9rem; margin-top: 6px; }
footer a { color: inherit; text-decoration: underline; }
code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .88em; }
.cmd { margin: 4px 0 0; }
.btn.soon { opacity: .55; cursor: not-allowed; pointer-events: none; }

.nav li.dd { position: relative; display: flex; align-items: center; }
.nav .caret { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .85rem; padding: 8px 8px 8px 0; margin-left: -8px; }
.nav .caret:hover { color: var(--text); }
.nav ul.menu { display: none; position: absolute; top: 100%; left: 0; min-width: 190px; flex-direction: column; gap: 2px; padding: 8px; margin-top: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; z-index: 30; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.nav ul.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav li.dd:hover > ul.menu, .nav li.dd:focus-within > ul.menu, .nav li.dd.open > ul.menu { display: flex; }
.nav ul.menu a { display: block; color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: .92rem; white-space: nowrap; }
.nav ul.menu a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav ul.menu a.on { color: var(--text); background: var(--panel-2); }
@media (max-width: 720px) { .nav ul.menu { position: static; margin-top: 6px; box-shadow: none; } .nav li.dd { flex-wrap: wrap; justify-content: center; }
  .nav li.dd:hover > ul.menu, .nav li.dd:focus-within > ul.menu { display: none; } .nav li.dd.open > ul.menu { display: flex; } }

.prose ul { color: var(--muted); max-width: 720px; margin: 0 0 14px 22px; }
.prose li { margin-bottom: 8px; }
.prose li b, .prose li code { color: var(--text); }
.nav ul { align-items: center; }
.nav .caret { line-height: 1; }

.mosaic { display: flex; gap: 10px; justify-content: center; margin: 44px auto 0; max-width: 980px; }
.mosaic img { width: calc((100% - 80px) / 9); min-width: 0; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); transition: transform .2s; }
.mosaic img:nth-child(odd) { transform: translateY(10px); }
.mosaic img:hover { transform: translateY(-4px); }
@media (max-width: 720px) { .mosaic img:nth-child(n+6) { display: none; } .mosaic img { width: calc((100% - 40px) / 5); } }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step i { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #12101c; font-style: normal; font-weight: 800; margin-bottom: 12px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }
code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .88em; }
.two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cmdgrid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cta { text-align: center; padding: 40px 0 20px; }
.cta .sub { margin-bottom: 18px; }
.board { width: 100%; border-collapse: collapse; margin-top: 8px; }
.board td { padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.board td:last-child { text-align: right; color: var(--muted); }
.evline { color: var(--muted); font-size: .92rem; margin-top: 4px; }
section > h2 { margin-bottom: 14px; }

.votebox { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.votebox p { max-width: 640px; }
.votebox b { color: var(--text); }

/* small screens */
.card { overflow-x: auto; }
@media (max-width: 720px) {
  .nav ul { flex-wrap: wrap; justify-content: center; }
  .nav a.link { padding: 7px 10px; font-size: .9rem; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .votebox { flex-direction: column; align-items: flex-start; }
  .tiles { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}
@media (max-width: 560px) {
  .ach { grid-template-columns: 36px 1fr; }
  .ach .rw { grid-column: 2; text-align: left; }
  .board td { padding: 8px 3px; font-size: .88rem; }
  .board .rolebtns { display: block; margin-top: 6px; }
  .board .rolebtns button { margin: 0 6px 0 0; }
}

.paybtns { display: flex; gap: 8px; }
.paybtns .btn { flex: 1; text-align: center; padding-left: 10px; padding-right: 10px; }
.btn.soon { white-space: nowrap; }
