:root {
  --bg: #0f1419;
  --panel: #1a222c;
  --text: #e8eef4;
  --muted: #8b9aab;
  --accent: #2dd4a8;
  --accent-2: #f0b429;
  --danger: #f07178;
  --line: #2a3542;
  --font: "Segoe UI", "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 10% -10%, #1d3a33 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #3a2e14 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.brand { font-weight: 700; letter-spacing: 0.04em; color: var(--text); font-size: 1.15rem; }
.top nav { display: flex; gap: 1rem; align-items: center; }
.wrap { max-width: 980px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.hero { padding: 3rem 0 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent-2); font-size: 0.75rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 0.4rem 0 1rem; max-width: 14ch; }
.lead { color: var(--muted); max-width: 42ch; font-size: 1.1rem; }
.cta-row { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; background: var(--accent); color: #06251c;
  border: 0; padding: 0.65rem 1rem; border-radius: 8px; font-weight: 600; cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.small { padding: 0.35rem 0.6rem; font-size: 0.85rem; }
.card-form {
  max-width: 420px; margin: 2rem auto; background: var(--panel);
  padding: 1.5rem; border-radius: 12px; border: 1px solid var(--line);
}
label { display: block; margin: 0.75rem 0; font-size: 0.9rem; color: var(--muted); }
input, select, textarea {
  width: 100%; margin-top: 0.35rem; padding: 0.55rem 0.65rem;
  border-radius: 8px; border: 1px solid var(--line); background: #10161d; color: var(--text);
}
.error { color: var(--danger); }
.muted { color: var(--muted); font-size: 0.9rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin: 1.25rem 0; }
.stats > div {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 1rem;
}
.stats strong { display: block; font-size: 1.6rem; }
.stats span { color: var(--muted); font-size: 0.85rem; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.92rem; }
th, td { border-bottom: 1px solid var(--line); padding: 0.55rem 0.4rem; text-align: left; vertical-align: top; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.code, pre.code {
  background: #0b1015; border: 1px solid var(--line); padding: 1rem; border-radius: 8px;
  overflow-x: auto; white-space: pre-wrap; word-break: break-all; font-size: 0.85rem;
}
.timeline { list-style: none; padding: 0; }
.timeline li {
  border-left: 2px solid var(--accent); padding: 0.5rem 0 0.5rem 1rem; margin-bottom: 0.5rem;
}
.small { font-size: 0.8rem; color: var(--muted); }
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.sidebar {
  background: #0c1116; border-right: 1px solid var(--line); padding: 1.25rem 1rem;
  display: flex; flex-direction: column; gap: 0.65rem;
}
.sidebar .brand { margin-bottom: 1rem; }
.admin-main { padding: 1.5rem; }
.flash { background: #16352c; border: 1px solid var(--accent); padding: 0.6rem 0.8rem; border-radius: 8px; margin-bottom: 1rem; }
.plan-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem; margin: 1rem 0;
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 1rem 0; }
.check { display: inline-flex; align-items: center; gap: 0.35rem; margin-right: 1rem; color: var(--text); }
.check input { width: auto; margin: 0; }
.inline { display: inline-flex; gap: 0.5rem; align-items: end; }
.inline select { width: auto; }
@media (max-width: 800px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
}
