:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
  --bg: #07101e;
  --panel: #111c2e;
  --panel-2: #17243a;
  --line: #2b3a55;
  --text: #f6f8ff;
  --muted: #9fb1cc;
  --accent: #7db4ff;
  --success: #2ecc71;
  --danger: #ff6b6b;
}
* { box-sizing: border-box; }
.promo-active-label { display:flex; align-items:center; gap:10px; }
.promo-active-label input { width:20px; height:20px; min-height:20px; margin:0; }
.promotion-admin-row { border-top:1px solid var(--line); padding:12px 0; overflow-wrap:anywhere; }
.promotion-admin-row .button { margin:6px 8px 0 0; }
body { margin: 0; background: radial-gradient(circle at 20% 0%, #12233f 0, var(--bg) 36%); color: var(--text); min-height: 100vh; }
button, input, textarea, select { font: inherit; }
.topbar {
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  width: min(1180px, calc(100% - 32px)); margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.back { color: var(--accent); text-decoration: none; }
main { width: min(1180px, calc(100% - 32px)); margin: 34px auto 70px; }
.hero { max-width: 760px; margin-bottom: 28px; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: .95; margin: 8px 0 16px; }
.hero p:last-child { color: var(--muted); line-height: 1.6; }
.eyebrow { color: #86baff; letter-spacing: .18em; font-size: 11px; font-weight: 800; margin: 0 0 6px; }
.card {
  background: linear-gradient(145deg, rgba(22,36,59,.98), rgba(13,24,42,.98));
  border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 16px 0;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.card h2 { margin: 2px 0 18px; }
.card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.grid.two { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
label { display:block; font-weight:700; margin: 12px 0 7px; }
input, textarea, select {
  width:100%; min-height:44px; padding:10px 12px; color:var(--text);
  background:#091322; border:1px solid #344661; border-radius:10px;
}
textarea { resize:vertical; }
.row { display:flex; gap:10px; align-items:stretch; }
.row > input { flex:1; }
.row.compact { margin-top:10px; flex-wrap:wrap; }
.inline { margin:0; min-width:240px; font-size:12px; }
.button {
  display:inline-flex; align-items:center; justify-content:center; min-height:42px;
  border-radius:11px; border:1px solid #3b4f6f; background:#243651;
  color:var(--text); padding:9px 14px; cursor:pointer; text-decoration:none;
}
.button:hover { filter:brightness(1.08); }
.button.primary { background:linear-gradient(135deg,#2f7ef8,#6d62ff); border-color:transparent; }
.button.quiet { background:#17253a; }
.button.success-button { background:#158f51; border-color:#1aa962; }
.button.danger-button { background:#8d3441; border-color:#ad4655; }
.button.small { min-height:34px; padding:5px 10px; font-size:12px; }
.actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:14px; }
.status { min-height:1.5em; color:var(--muted); }
.status.success { color:#64e9a4; }
.status.error { color:#ff9595; }
.note { color:var(--muted); font-size:13px; line-height:1.55; }
.pill { display:inline-flex; align-items:center; min-height:30px; padding:4px 9px; border-radius:999px; background:#20314b; color:#a8bddc; font-size:12px; }
.pill.success { background:#153f32; color:#7bf0ba; }
.danger { border-color:#74404a; }
.facts { display:grid; gap:2px; margin:0 0 16px; }
.facts div { display:grid; grid-template-columns:140px 1fr; gap:10px; padding:9px 0; border-bottom:1px solid rgba(255,255,255,.07); }
.facts dt { color:var(--muted); }
.facts dd { margin:0; overflow-wrap:anywhere; }
.secret-box { background:#091322; border:1px dashed #47638a; padding:14px; border-radius:12px; }
.feature-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:14px 0; }
.feature-card { display:grid; grid-template-columns:1fr 150px; align-items:center; gap:12px; padding:13px; background:#0c1728; border:1px solid #2e3f5b; border-radius:12px; }
.feature-card b, .feature-card small { display:block; }
.feature-card small { color:var(--muted); margin-top:4px; line-height:1.4; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th, td { padding:10px 8px; border-bottom:1px solid rgba(255,255,255,.08); text-align:left; vertical-align:top; }
th { color:var(--muted); }
.text-button { border:0; background:none; color:var(--accent); cursor:pointer; padding:4px; }
.danger-text { color:#ff8c98; }
pre { max-height:420px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; background:#08111f; border-radius:12px; padding:14px; color:#b9c7dc; }
hr { border:0; border-top:1px solid rgba(255,255,255,.09); margin:20px 0; }
code { color:#a8cfff; }
@media (max-width: 820px) {
  .grid.two, .feature-grid { grid-template-columns:1fr; }
  .card-head { flex-direction:column; }
  .inline { width:100%; }
}
@media (max-width: 520px) {
  main, .topbar { width:min(100% - 20px,1180px); }
  .row, .vertical-mobile { flex-direction:column; }
  .button { width:100%; }
  .facts div { grid-template-columns:1fr; }
  .feature-card { grid-template-columns:1fr; }
}
