:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --border: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #10b981;
  --primary-hover: #059669;
  --danger: #ef4444;
  --warn: #f59e0b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: #38bdf8; text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.container { max-width: 1180px; margin: 0 auto; padding: 1.25rem; }

.topbar {
  background: #0b1120;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 700; color: var(--text); font-size: 1.1rem; }
.brand-badge {
  background: var(--primary);
  color: #022c22;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 800;
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.nav-links { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem;
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: 2rem; margin: 0.75rem 0; }
.subtitle { color: var(--muted); max-width: 780px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat-card small { display: block; color: var(--muted); margin-bottom: 0.25rem; }
.stat-card strong { font-size: 1.4rem; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.92rem;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #022c22; }
.btn-primary:hover { background: var(--primary-hover); text-decoration: none; }
.btn-secondary { background: #334155; color: var(--text); }
.btn-secondary:hover { background: #475569; text-decoration: none; }
.btn-danger { background: var(--danger); color: #fff; }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

.pill { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.pill-ok { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.pill-err { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.pill-muted { background: #334155; color: var(--muted); }

.form-stack { display: flex; flex-direction: column; gap: 0.75rem; }
.form-stack label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; color: var(--muted); }
.form-stack label.check { flex-direction: row; align-items: center; gap: 0.5rem; color: var(--text); }
.form-inline { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }

input, select {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.5rem 0.65rem;
  font-size: 0.92rem;
}

.code-box {
  background: #020617;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  overflow-x: auto;
  font-size: 0.85rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #0f172a;
  border: 1px solid var(--primary);
  margin: 0.75rem 0;
}

table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; font-size: 0.88rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); }

.clean-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
.hidden { display: none !important; }
.footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.85rem; padding-bottom: 2rem; }
