:root {
  --bg: #0f1115; --panel: #171a21; --ink: #e8eaed; --muted: #9aa0ac;
  --accent: #4f8cff; --accent-2: #2dd4bf; --line: #262b35; --danger: #ef4444; --ok: #22c55e;
  --radius: 12px; --maxw: 980px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
main.container { flex: 1; padding-top: 32px; padding-bottom: 48px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 2rem; margin: 0 0 .3em; }
p.lead { font-size: 1.15rem; color: var(--muted); }

.site-header, .admin-header { border-bottom: 1px solid var(--line); background: #0c0e12; }
.admin-header { background: #1a0f14; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav nav { display: flex; gap: 18px; align-items: center; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding: 22px 0; font-size: .9rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 16px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 16px 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hero { padding: 40px 0 8px; }
.price { font-size: 2.4rem; font-weight: 700; }
.muted { color: var(--muted); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; border: 1px solid var(--line); }
.tag.ok { color: var(--ok); border-color: var(--ok); }
.tag.warn { color: #f59e0b; border-color: #f59e0b; }
.tag.bad { color: var(--danger); border-color: var(--danger); }

.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0; cursor: pointer;
  padding: 11px 18px; border-radius: 10px; font-size: 1rem; font-weight: 600;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.secondary { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.linklike { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }

form.stack { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%; background: #0e1116; color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; font: inherit;
}
textarea { min-height: 120px; }
.inline { display: inline; }

table { width: 100%; border-collapse: collapse; margin: 12px 0; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.keybox { font-size: 1.1rem; letter-spacing: .04em; background:#0e1116; border:1px dashed var(--line); padding:10px 14px; border-radius:8px; display:inline-block; }

.flash { background: #14301f; border: 1px solid var(--ok); color: #c7f9d8; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.flash.error { background: #311417; border-color: var(--danger); color: #ffd6d6; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; margin: 10px 0; padding-left: 38px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color:#fff; display:grid; place-items:center; font-size:.85rem; }
.section-admin body, body.section-admin { }
