:root {
  --bg: #0b0f0c;
  --bg2: #121814;
  --ink: #e8f0e6;
  --muted: #8aa090;
  --line: #243028;
  --mint: #7dffb3;
  --mint2: #2fbf78;
  --gold: #e2c36b;
  --danger: #ff7a6e;
  --card: #161d18;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(1200px 500px at 10% -10%, #1a3324 0%, transparent 50%), var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
  background: #0e1410;
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  position: sticky; top: 0; height: 100vh;
}
.brand { font-weight: 800; letter-spacing: .08em; font-size: 13px; color: var(--mint); }
.brand small { display: block; color: var(--muted); letter-spacing: .18em; font-size: 10px; margin-top: 4px; }
.nav { margin-top: 28px; display: flex; flex-direction: column; gap: 6px; }
.nav a, .nav button {
  color: var(--ink); padding: 10px 12px; border-radius: 10px; text-decoration: none;
  background: transparent; border: 0; text-align: left; font: inherit; cursor: pointer;
}
.nav a:hover, .nav a.on { background: #1c2a20; text-decoration: none; }

.main { padding: 28px 32px 80px; }
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
h1 { font-size: 28px; margin: 0; font-weight: 720; }
.sub { color: var(--muted); margin-top: 6px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
}
.stat b { display: block; font-size: 28px; color: var(--mint); }
.stat span { color: var(--muted); font-size: 12px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-top: 16px;
}
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; }
input, textarea, select {
  width: 100%; background: #0d130f; color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 12px; font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 10px 16px; font-weight: 650; cursor: pointer; text-decoration: none; font: inherit;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-mint { background: var(--mint); color: #062214; }
.btn-ghost { background: #223027; color: var(--ink); }
.btn-gold { background: var(--gold); color: #1c1404; }
.btn-danger { background: #3a1c18; color: var(--danger); }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.table td, .table th { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; background: #223027; color: var(--mint); }
.badge.warn { color: var(--gold); background: #2a2616; }
.flash { background: #163421; border: 1px solid #2fbf78; color: var(--mint); padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; }
.error { background: #2a1614; border: 1px solid var(--danger); color: var(--danger); padding: 10px 14px; border-radius: 12px; }

.suggest { position: relative; }
.suggest-list {
  position: absolute; left: 0; right: 0; top: 100%; background: #101710; border: 1px solid var(--line);
  border-radius: 12px; z-index: 20; max-height: 280px; overflow: auto; margin-top: 6px;
}
.suggest-list button {
  display: block; width: 100%; text-align: left; background: transparent; border: 0; color: var(--ink);
  padding: 10px 12px; cursor: pointer; font: inherit; border-bottom: 1px solid var(--line);
}
.suggest-list button:hover { background: #1c2a20; }
.suggest-list small { color: var(--muted); display: block; }

.ladder { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.step { padding: 8px 10px; border-radius: 12px; border: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.step.on { border-style: solid; border-color: var(--mint2); color: var(--mint); background: #13261b; }

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(420px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }

.hero { padding: 72px 24px 40px; max-width: 980px; margin: 0 auto; }
.hero h1 { font-size: clamp(32px, 6vw, 58px); line-height: 1.05; }
.hero p { color: var(--muted); font-size: 18px; max-width: 640px; }

.help-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px 60px; }
.help-card {
  width: min(460px, 100%); background: #121a14; border: 1px solid #2a3b30; border-radius: 26px;
  box-shadow: var(--shadow); overflow: hidden;
}
.help-card.embed { width: min(380px, 100%); border-radius: 18px; }
.help-top { padding: 18px 18px 8px; display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.stamp { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.help-body { padding: 4px 18px 18px; }
.help-body h1 { font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.help-body p { color: #c5d4c6; font-size: 14px; line-height: 1.55; }
.nap { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.svc { padding-left: 18px; color: #c5d4c6; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #223027; color: var(--ink); border-radius: 999px; padding: 6px 10px; font-size: 12px; text-decoration: none; }
.chip:hover { background: #2c4034; text-decoration: none; }
.near-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.faq { border-top: 1px solid var(--line); margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: 8px 0 0; }
.crumbs { font-size: 11px; color: var(--muted); padding: 0 18px; }
.crumbs a { color: var(--muted); }

.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; padding: 0; list-style: none; }
.pagination a, .pagination span, .page-link {
  padding: 6px 10px; border-radius: 8px; background: #1c2a20; color: var(--ink);
  text-decoration: none; display: block; border: 0;
}
.page-item.disabled .page-link, .page-item.active .page-link { background: #2fbf78; color: #062214; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { height: auto; position: relative; }
  .grid, .form-grid { grid-template-columns: 1fr; }
}
