:root {
  --bg: #0b1020;
  --panel: #131a2e;
  --panel-2: #1a2340;
  --line: #26304f;
  --text: #e8ecf6;
  --muted: #9aa5c0;
  --accent: #f5b83d;
  --accent-ink: #1a1300;
  --good: #3ecf8e;
  --bad: #ff6b6b;
  --warn: #f5b83d;
  --info: #6aa8ff;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: ui-monospace, Consolas, monospace; }

/* Layout */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 16, 32, .9);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(6px);
}
.bar {
  max-width: 1000px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.logo { font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: .3px; }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
nav.main { display: flex; gap: 14px; margin-left: auto; align-items: center; flex-wrap: wrap; }
nav.main a { color: var(--muted); font-weight: 600; font-size: .95rem; }
nav.main a:hover, nav.main a.active { color: var(--text); text-decoration: none; }
main { max-width: 1000px; width: 100%; margin: 0 auto; padding: 28px 16px 60px; flex: 1; }
footer.site {
  border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem;
}
footer.site .bar { justify-content: space-between; }
footer.site a { color: var(--muted); }

/* Surfaces */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 18px;
}
.card.tight { padding: 14px 16px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* Hero */
.hero { text-align: center; padding: 30px 0 10px; }
.hero h1 { font-size: 2.3rem; }
.hero .tag { color: var(--accent); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: .8rem; }
.searchbox { display: flex; gap: 8px; max-width: 560px; margin: 20px auto 0; }
.searchbox input { flex: 1; }

/* Forms */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
input, select, textarea {
  width: 100%; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
input[type=checkbox] { width: auto; margin-right: 8px; accent-color: var(--accent); }
.check { display: flex; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.hint { color: var(--muted); font-size: .8rem; margin-top: 4px; }

button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px;
  padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
}
button:hover, .btn:hover { filter: brightness(1.08); text-decoration: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.secondary, .btn.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
button.danger { background: var(--bad); color: #fff; }
button.small, .btn.small { padding: 6px 10px; font-size: .85rem; }
.btn.discord { background: #5865f2; color: #fff; }

/* Badges */
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  border: 1px solid transparent; white-space: nowrap;
}
.badge.good { background: rgba(62, 207, 142, .12); color: var(--good); border-color: rgba(62, 207, 142, .35); }
.badge.bad { background: rgba(255, 107, 107, .12); color: var(--bad); border-color: rgba(255, 107, 107, .35); }
.badge.warn { background: rgba(245, 184, 61, .12); color: var(--warn); border-color: rgba(245, 184, 61, .35); }
.badge.info { background: rgba(106, 168, 255, .12); color: var(--info); border-color: rgba(106, 168, 255, .35); }
.badge.plain { background: var(--panel-2); color: var(--muted); border-color: var(--line); }

/* Passport */
.passport-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--panel-2); border: 2px solid var(--accent); object-fit: cover; }
.pid { font-family: ui-monospace, Consolas, monospace; color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.stat b { display: block; font-size: 1.4rem; }
.stat span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.record { border-left: 4px solid var(--line); }
.record.good { border-left-color: var(--good); }
.record.bad { border-left-color: var(--bad); }
.record.pending { border-left-color: var(--warn); }
.dispute {
  margin-top: 12px; padding: 10px 12px; border-radius: 8px;
  background: rgba(245, 184, 61, .08); border: 1px solid rgba(245, 184, 61, .3); font-size: .92rem;
}

/* Lists */
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }

/* Messages */
.notice { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: .95rem; }
.notice.ok { background: rgba(62, 207, 142, .1); border: 1px solid rgba(62, 207, 142, .35); }
.notice.err { background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .35); }
.notice.info { background: rgba(106, 168, 255, .1); border: 1px solid rgba(106, 168, 255, .35); }
.empty { color: var(--muted); text-align: center; padding: 18px 0; }
.steps { counter-reset: s; }
.steps .card h3::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  margin-right: 10px; font-size: .9rem; }
.legal h2 { margin-top: 1.4em; }
.legal li { margin-bottom: .4em; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .searchbox { flex-direction: column; }
  nav.main { margin-left: 0; width: 100%; }
}
