:root {
  --bg: #0b0b12;
  --card: #141420;
  --soft: #1c1c2c;
  --line: #2d2d45;
  --text: #f5f7ff;
  --muted: #b9bed1;
  --gold: #f6c453;
  --danger: #f87474;
  --ok: #6fd89b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: radial-gradient(circle at top, #19192a, var(--bg));
  color: var(--text);
}
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar { border-bottom: 1px solid var(--line); background: rgba(10,10,18,.85); position: sticky; top: 0; backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { color: var(--gold); text-decoration: none; font-size: 1.25rem; font-weight: 800; letter-spacing: 1px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; }
nav a:hover { color: #fff; }
.hero { padding: 72px 0 40px; display: grid; gap: 24px; }
.hero h1 { font-size: clamp(2rem, 5vw, 4rem); margin: 0; }
.hero p { color: var(--muted); max-width: 720px; font-size: 1.1rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.btn-primary { background: var(--gold); color: #1c1200; }
.btn-secondary { background: var(--soft); color: var(--text); border: 1px solid var(--line); }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent), var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.card h3 { margin-top: 0; }
.muted { color: var(--muted); }
.section { padding: 24px 0 40px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; }
.flash { padding: 12px 14px; border-radius: 12px; margin: 16px 0; }
.flash.ok { background: rgba(111,216,155,.15); border: 1px solid rgba(111,216,155,.35); }
.flash.error { background: rgba(248,116,116,.12); border: 1px solid rgba(248,116,116,.3); }
.input, .select { width: 100%; background: #0f0f18; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.footer { border-top: 1px solid var(--line); margin-top: 50px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; color: var(--muted); flex-wrap: wrap; }
.admin-actions form { display: inline; }
.small { font-size: .9rem; }
