/* Neural | ExitWiz Algo UI — small, dependency-free stylesheet. */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* Neural | ExitWiz Algo — warm charcoal desk, mint accent (same family as exitwiz.com). */
:root {
  --bg: #1f1f1c;
  --surface: #262622;
  --surface-2: #2d2d28;
  --text: #f5f5ef;
  --muted: #aaa89c;
  --line: #3a3a34;
  --brand: #7cc9a1;
  --brand-ink: #14211b;
  --top: #1a1a17;
  --top-text: #d7d6cd;
  --ok: #7cc9a1;
  --ok-bg: #22352b;
  --warn: #e7b05d;
  --warn-bg: #35291a;
  --bad: #f07b72;
  --bad-bg: #3a2220;
  --pos: #7cc9a1;
  --neg: #f07b72;
  --radius: 14px;
  --shadow: none;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-family: var(--serif); font-weight: 400; font-size: 2.1rem; line-height: 1.1; margin: 0 0 .35rem; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--brand); }
h2 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
p { margin: 0 0 .75rem; }
small, .muted { color: var(--muted); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 24px; padding-bottom: 40px; min-height: 70vh; }

.topbar { background: var(--top); color: var(--top-text); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.brand { color: var(--text); font-weight: 600; display: flex; align-items: center; gap: 10px; letter-spacing: -.005em; }
.brand-text { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; letter-spacing: 0; }
.brand-text i { color: var(--muted); font-style: normal; margin: 0 .15em; }
.brand-text b { font-weight: 400; font-style: italic; color: var(--brand); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; display: inline-flex; flex: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .nav .link { color: var(--top-text); padding: 6px 10px; border-radius: 8px; font-size: .93rem; }
.nav a.on, .nav a:hover, .nav .link:hover { background: rgba(124, 201, 161, .12); color: var(--brand); text-decoration: none; }
.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; cursor: pointer; font: inherit; }

.footer { display: flex; gap: 16px; padding-top: 16px; padding-bottom: 32px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer a { color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.card-narrow { max-width: 440px; margin: 32px auto; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .k { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.stat .v { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; margin-top: 2px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.field small { display: block; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 14px; font-size: .92rem; }
.check input { margin-top: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; background: var(--brand); color: var(--brand-ink); }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-danger { background: var(--bad); color: #2a0f0d; }
.btn-small { padding: 5px 10px; font-size: .85rem; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.flashes { margin-bottom: 16px; display: grid; gap: 8px; }
.flash { padding: 10px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); }
.flash-success { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.flash-error { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.flash-info { background: var(--surface-2); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); margin-bottom: 16px; }
.notice-ok { background: var(--ok-bg); color: var(--ok); }
.notice-bad { background: var(--bad-bg); color: var(--bad); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-live { background: var(--bad-bg); color: var(--bad); }
.pill { font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: rgba(124, 201, 161, .16); color: var(--brand); font-weight: 600; }
.pos { color: var(--pos); font-weight: 600; }
.neg { color: var(--neg); font-weight: 600; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
tr:hover td { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.chain { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 4px; }
.chain .node { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: .9rem; }
.chain .node.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.chain .node.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.chain .arrow { color: var(--muted); }

/* automation switch */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); margin: 12px 0; flex-wrap: wrap; }
.switch { position: relative; width: 58px; height: 32px; border-radius: 999px; border: 0; background: #4a4a43; cursor: pointer; transition: background .15s; flex: none; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked=true] { background: var(--brand); }
.switch[aria-checked=true]::after { transform: translateX(26px); }
.switch[disabled] { opacity: .5; cursor: not-allowed; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 8px 0 4px; }
.kv div span { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.kv div strong { font-size: 1.1rem; }
.qr svg { width: 220px; height: 220px; background: #fff; border-radius: 8px; }
.temp-password { font-size: 1.3rem; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 10px; display: inline-block; margin: 8px 0; user-select: all; }
details summary { cursor: pointer; font-weight: 600; margin: 4px 0; }
.danger-zone { border-color: #5a3532; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.5rem; }
.bb-positions h3, .bb-history { margin-top: 14px; }
.kv strong span { font-size: inherit; }

/* ---- billing / WhatsApp ---- */
.btn-wa { background: #25a35a; border-color: #25a35a; color: #08160e; }
.btn-wa:hover { background: #2bb865; color: #08160e; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { flex: 1; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.small { font-size: 0.85em; }
td .btn-row { flex-wrap: wrap; gap: 6px; }

/* ---- engine exit buttons / account test ---- */
.exit-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.test-result { font-size: .8rem; }
form.inline-form { display: inline; margin: 0; }
.qr svg { width: 220px; height: 220px; background: #fff; border-radius: 8px; }
