:root {
  --bg: #0e1014; --panel: #161a21; --panel-2: #1c212a; --line: #262c37;
  --text: #e8ebf0; --muted: #8b93a3; --accent: #5865f2; --accent-2: #4752c4;
  --ok: #2fbf71; --bad: #e5484d; --warn: #f5a524; --radius: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; display: flex; flex-direction: column; font-size: 15px; line-height: 1.5; }
a { color: #9aa4ff; }
code { background: var(--panel-2); padding: 1px 6px; border-radius: 6px; font-size: 13px; word-break: break-all; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 40px; }

.top { border-bottom: 1px solid var(--line); background: rgba(14,16,20,.9); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .2px; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
nav a:hover { color: var(--text); }
.who { color: var(--muted); font-size: 14px; }

.foot { border-top: 1px solid var(--line); padding: 18px 0; }
.foot-inner { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.foot a { color: var(--muted); font-size: 13px; text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

h1 { font-size: 28px; margin: 0 0 12px; letter-spacing: -.3px; }
h2 { margin: 6px 0 8px; }
h3 { margin: 0 0 14px; font-size: 17px; }
.eyebrow { text-transform: uppercase; font-size: 12px; letter-spacing: 1.4px; color: var(--muted); margin: 0 0 6px; }
.lead { color: #c4cad6; font-size: 17px; max-width: 560px; margin: 0 auto 28px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.warn-text { color: var(--warn); }
.nowrap { white-space: nowrap; }

.hero { text-align: center; padding: 70px 0 40px; }
.hero h1 { font-size: 40px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.card.flush { padding: 0; overflow-x: auto; }
.card .pad { padding: 18px 18px 0; }
.card.narrow { max-width: 620px; margin-left: auto; margin-right: auto; }
.info-box p { margin: 4px 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cols > .card { margin-bottom: 0; }
.cols + * { margin-top: 18px; }

.status { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.status-side { min-width: 260px; }
.status p { margin: 4px 0; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.pill.ok { color: var(--ok); border-color: rgba(47,191,113,.4); background: rgba(47,191,113,.1); }
.pill.bad { color: var(--bad); border-color: rgba(229,72,77,.4); background: rgba(229,72,77,.1); }
h2 .pill { font-size: 15px; padding: 4px 14px; }

.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { background: var(--panel-2); }
.btn.danger { background: transparent; border: 1px solid rgba(229,72,77,.5); color: var(--bad); }
.btn.danger:hover { background: rgba(229,72,77,.1); }
.btn.big { padding: 14px 26px; font-size: 16px; }
.btn.discord { padding: 14px 26px; font-size: 16px; }
.small-btn { padding: 5px 12px; font-size: 13px; }
button.link { background: none; border: 0; color: #9aa4ff; cursor: pointer; font: inherit; padding: 0; }
nav button.link { color: var(--muted); font-size: 14px; }
form.inline { display: inline; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.grid.one { grid-template-columns: 1fr; }
.span2 { grid-column: span 2; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
input, select, textarea { background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 15px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
input[readonly] { color: var(--muted); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
.w-num { width: 100px; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; color: var(--text); font-size: 14px; margin: 12px 0; }
label.check input { margin-top: 4px; }
.span2.check { margin: 0; }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 16px; }
.option { flex-direction: row; gap: 12px; background: var(--panel-2); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; cursor: pointer; color: var(--text); }
.option:has(input:checked) { border-color: var(--accent); background: rgba(88,101,242,.08); }
.option input { margin-top: 5px; }
.opt-body { display: flex; flex-direction: column; gap: 6px; }
.opt-title { font-weight: 700; font-size: 16px; }
.price { font-size: 26px; font-weight: 800; }
.price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.opt-text { color: var(--muted); font-size: 14px; }
.summary { background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 16px; font-size: 14px; color: #c4cad6; }
.summary p { margin: 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--panel-2); }
.log td { font-size: 13px; }
.lvl-error td { color: #ff9a9d; }
.lvl-warn td { color: #f7c46a; }
input.copy { font-size: 12px; padding: 6px 8px; min-width: 280px; }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

.head-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.head-row h1 { margin: 0; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters a { color: var(--muted); text-decoration: none; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.filters a.on { color: var(--text); border-color: var(--accent); }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; font-size: 14px; }
.flash.ok { border-color: rgba(47,191,113,.4); background: rgba(47,191,113,.08); }
.flash.error { border-color: rgba(229,72,77,.5); background: rgba(229,72,77,.08); }
.flash.info { border-color: rgba(88,101,242,.5); background: rgba(88,101,242,.08); }

.receipt { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; white-space: pre-wrap; font-size: 13px; }
.sticky-save { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 40%); text-align: right; margin-bottom: 18px; }
.qr { background: #fff; display: inline-block; padding: 8px; border-radius: 8px; }
.qr svg { display: block; width: 180px; height: 180px; }
.danger-zone summary { cursor: pointer; color: var(--bad); }
.danger-zone[open] summary { margin-bottom: 12px; }

@media (max-width: 720px) {
  .grid, .cols { grid-template-columns: 1fr; }
  .span2 { grid-column: span 1; }
  .hero h1 { font-size: 30px; }
  .kv { grid-template-columns: 110px 1fr; }
}
@media print { .top, .foot, .btn { display: none; } body { background: #fff; color: #000; } .card { border: 0; } }
