:root {
  --bg: #0a0e14;
  --bg2: #0d1117;
  --panel: #121826;
  --panel2: #161d2e;
  --line: #222a3d;
  --text: #e8eef7;
  --muted: #94a3b8;
  --accent: #f0883e;
  --accent-soft: rgba(240, 136, 62, .14);
  --green: #3fb950;
  --red: #f85149;
  --yellow: #d29922;
  --blue: #58a6ff;
  --violet: #a78bfa;
  --radius: 10px;
  --mono: ui-monospace, Consolas, "Cascadia Mono", monospace;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(1200px 500px at 70% -10%, rgba(240,136,62,.07), transparent), var(--bg); color: var(--text); font: 15px/1.6 -apple-system, "Segoe UI", Roboto, Inter, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1 { font-size: 27px; letter-spacing: -.02em; margin: .2em 0 .4em; }
h2 { font-size: 18px; margin: 1.8em 0 .6em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
h3 { font-size: 15px; }
p { margin: .5em 0; }
.muted { color: var(--muted); }
.ok { color: var(--green); }
.danger { color: var(--red) !important; border-color: var(--red) !important; }
.warn { color: var(--yellow); }
.mono { font-family: var(--mono); font-size: 13px; }
.break { word-break: break-all; }

/* topbar */
.topbar { background: rgba(13,17,23,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 12px; }
.brand { font-weight: 800; font-size: 19px; letter-spacing: .2px; color: var(--text); white-space: nowrap; }
.brand span { color: var(--accent); }
.admintag { font-size: 10px; background: var(--accent); color: #111; border-radius: 4px; padding: 1px 6px; vertical-align: middle; letter-spacing: 1px; }
nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--muted); font-size: 13.5px; padding: 4px 2px; }
nav a:hover { color: var(--text); text-decoration: none; }
nav .btn, nav .btn-outline { font-size: 13px; padding: 6px 12px; }
.navadmin { color: var(--accent) !important; font-weight: 600; }
.navtoggle, .navburger { display: none; }
.admin-view .topbar, .adminbar { border-bottom: 2px solid var(--accent); }
.admintabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 20px; }
.admintabs a { color: var(--muted); font-size: 13.5px; padding: 9px 13px; border-bottom: 2px solid transparent; white-space: nowrap; }
.admintabs a:hover { color: var(--text); text-decoration: none; }
.admintabs a.on { color: var(--accent); border-bottom-color: var(--accent); }

main { padding: 30px 20px 50px; min-height: 60vh; }

/* hero */
.hero { padding: 46px 0 10px; max-width: 860px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.2; }
.hero h1 span { color: var(--accent); }
.kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.lede { max-width: 780px; color: var(--muted); font-size: 16px; }
.trustbar { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; color: var(--muted); font-size: 13.5px; }

/* cards & grids */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 24px; }
.card { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; color: var(--accent); }
.card p, .card ul { margin: 0; color: var(--muted); font-size: 14px; }
.card ul { padding-left: 18px; }
.card li { margin: 4px 0; }
.cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

/* buttons */
.btn, .btn-outline, .mini {
  display: inline-block; border-radius: 8px; font-size: 14px; cursor: pointer; font-weight: 600;
  padding: 9px 18px; border: 1px solid transparent; text-decoration: none; transition: all .15s ease;
}
.btn { background: linear-gradient(180deg, #f59a55, var(--accent)); color: #16100a; }
.btn:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }
.btn.big { font-size: 16px; padding: 12px 26px; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); font-weight: 500; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.mini { padding: 4px 10px; font-size: 12px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.mini:hover { border-color: var(--accent); color: var(--accent); }
.mini.ok { color: var(--green); border-color: rgba(63,185,80,.4); }
.mini-link { font-size: 12.5px; padding: 4px 6px; }
button:disabled { opacity: .4; cursor: not-allowed; }

/* forms */
.form { margin: 12px 0 22px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.form input, .form select, .form textarea {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 9px 12px; font: inherit; width: 100%; outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form textarea { font-family: var(--mono); font-size: 13px; resize: vertical; }
.form .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.form .row label { flex: 0 1 230px; margin-bottom: 0; }
.form .row label.grow { flex: 1 1 320px; }
.form .block { width: 100%; }
.form .chk { flex-direction: row !important; align-items: center; gap: 8px !important; flex: 1 1 100% !important; color: var(--muted); }
.form .chk input { width: auto; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row svg { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; width: 220px; height: 62px; flex: none; }
.captcha-row input { width: 140px !important; font-family: var(--mono); letter-spacing: 4px; text-transform: uppercase; }
.codebox { width: 200px !important; font-size: 22px !important; letter-spacing: 12px; text-align: center; font-family: var(--mono); }

/* auth cards */
.authcard { max-width: 480px; margin: 20px auto; background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: 14px; padding: 30px 32px; box-shadow: var(--shadow); }
.authcard.wide { max-width: 680px; }

/* stats */
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0 10px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; min-width: 118px; }
.stat b { display: block; font-size: 22px; color: var(--accent); }
.stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; }
.tbl th, .tbl td { border-bottom: 1px solid var(--line); padding: 9px 10px; vertical-align: top; }
.tbl tr:hover td { background: rgba(255,255,255,.015); }

/* pills & flash */
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; background: var(--line); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill.open, .pill.submitted, .pill.acknowledged, .pill.actioned, .pill.active { color: var(--green); border-color: rgba(63,185,80,.4); }
.pill.reported, .pill.queued { color: var(--accent); border-color: rgba(240,136,62,.4); }
.pill.closed, .pill.rejected, .pill.error, .pill.high, .pill.suspended, .pill.deleted, .pill.unprotected { color: var(--red); border-color: rgba(248,81,73,.4); }
.pill.pending, .pill.draft, .pill.past_due { color: var(--yellow); border-color: rgba(210,153,34,.4); }
.flash { padding: 12px 16px; border-radius: 8px; margin: 12px 0; font-size: 14px; animation: slidein .25s ease; }
.flash.ok { background: rgba(63,185,80,.1); border: 1px solid rgba(63,185,80,.35); color: #7ee2a0; }
.flash.error { background: rgba(248,81,73,.1); border: 1px solid rgba(248,81,73,.35); color: #ff9c94; }
.note { background: rgba(210,153,34,.08); border: 1px solid rgba(210,153,34,.35); border-radius: 8px; padding: 11px 15px; font-size: 13.5px; color: #d8b56b; margin: 12px 0; }
@keyframes slidein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* feeds & misc */
.feed { list-style: none; margin: 8px 0; padding: 0; }
.feed li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.feedtime { color: var(--muted); font-family: var(--mono); font-size: 11.5px; flex: none; }
.mono-list { list-style: none; padding: 0; }
.mono-list li { padding: 5px 0; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.actions { white-space: nowrap; }
.inline { display: inline; }
.thread { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; }
.thread summary { cursor: pointer; }
.copybox, .draftbox { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-family: var(--mono); font-size: 13px; }
.faq { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin: 8px 0; }
.faq summary { cursor: pointer; }
.faq p { color: var(--muted); }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 20px 0; }
.pricecard { position: relative; background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.pricecard.featured { border-color: var(--accent); }
.ribbon { position: absolute; top: -10px; right: 18px; background: var(--accent); color: #16100a; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .5px; }
.price { font-size: 34px; font-weight: 800; margin: 8px 0 4px; }
.price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.pricecard ul { list-style: none; padding: 0; margin: 12px 0 18px; color: var(--muted); font-size: 14px; }
.pricecard li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.pricecard li::before { content: "✓ "; color: var(--green); }

/* footer */
footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--bg2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; padding: 34px 20px 10px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 10px; }
.foot-grid a { display: block; color: var(--muted); font-size: 13.5px; padding: 3px 0; }
.foot-grid a:hover { color: var(--accent); }
.foot-brand { margin-bottom: 8px; }
.foot-legal { padding: 12px 20px 26px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); margin-top: 20px; }
.foot-legal p { max-width: 900px; }

@media (max-width: 860px) {
  .navburger { display: block; font-size: 22px; cursor: pointer; color: var(--text); background: none; border: 0; padding: 4px 10px; }
  .navtoggle:checked ~ nav { display: flex; }
  .topbar nav { display: none; flex-direction: column; align-items: flex-start; width: 100%; padding: 10px 20px 16px; gap: 10px; background: var(--bg2); }
  .topbar { flex-wrap: wrap; }
  .bar-inner { width: 100%; }
}
