:root {
  color-scheme: dark;
  --bg: #07100e;
  --panel: rgba(18, 32, 29, 0.86);
  --panel-strong: #12231f;
  --ink: #f1f7f2;
  --muted: #9fb0aa;
  --line: rgba(183, 221, 204, 0.16);
  --lime: #c8ff62;
  --mint: #66e5b1;
  --cyan: #75d9ff;
  --amber: #ffcb6b;
  --red: #ff7e73;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(102, 229, 177, 0.13), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(117, 217, 255, 0.11), transparent 30rem),
    var(--bg);
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  color: #07100e; background: var(--lime); border-radius: 12px;
  box-shadow: 0 0 30px rgba(200, 255, 98, 0.22);
}
.eyebrow { color: var(--lime); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; }
.status-pill, .chip {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  background: rgba(255,255,255,.035); border-radius: 999px; padding: 7px 11px;
  color: var(--muted); font-size: 12px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; padding: 76px 0 46px; }
.hero h1 { margin: 12px 0 20px; font-size: clamp(44px, 7vw, 82px); line-height: .95; letter-spacing: -.065em; max-width: 820px; }
.hero h1 span { color: var(--lime); }
.hero-copy { color: var(--muted); font-size: 18px; line-height: 1.75; max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  border: 1px solid transparent; border-radius: 13px; padding: 13px 18px; font-weight: 800;
  color: #07100e; background: var(--lime); transition: transform .16s ease, box-shadow .16s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(200,255,98,.12); }
.button.secondary { color: var(--ink); background: rgba(255,255,255,.05); border-color: var(--line); }
.button:disabled { opacity: .5; cursor: wait; transform: none; }

.auth-card, .panel {
  background: linear-gradient(145deg, rgba(23,42,37,.96), rgba(11,24,21,.92));
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.auth-card { padding: 26px; }
.auth-card h2 { margin: 5px 0 8px; font-size: 24px; }
.auth-card p { color: var(--muted); line-height: 1.6; }
.form-row { display: grid; gap: 10px; margin-top: 18px; }
label { color: var(--muted); font-size: 13px; font-weight: 700; }
input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
  color: var(--ink); background: rgba(0,0,0,.2); outline: none;
}
input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(102,229,177,.09); }
.form-actions { display: flex; gap: 10px; margin-top: 16px; }
.form-actions .button { flex: 1; }
.human-check { display: grid; gap: 7px; margin-top: 18px; min-height: 76px; }
.human-check > p { margin: 0; font-size: 11px; line-height: 1.45; }
#turnstile-widget { max-width: 100%; overflow: hidden; }
.message { min-height: 22px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.message.good { color: var(--mint); }
.message.bad { color: var(--red); }
.hidden { display: none !important; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 22px 0 70px; }
.step { border-top: 1px solid var(--line); padding: 22px 8px 0; }
.step-number { color: var(--lime); font: 800 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.step h3 { margin: 10px 0 7px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.privacy-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); margin-bottom: 70px; }
.privacy-note strong { color: var(--lime); }
.privacy-note p { margin: 2px 0 0; color: var(--muted); line-height: 1.6; font-size: 14px; }

/* Admin fixture */
.admin-shell { width: min(1440px, calc(100% - 30px)); margin: 0 auto; padding-bottom: 60px; }
.admin-header { display: flex; justify-content: space-between; gap: 22px; align-items: end; padding: 34px 0 24px; }
.admin-header h1 { margin: 5px 0 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; }
.fixture-banner { color: var(--amber); border: 1px solid rgba(255,203,107,.26); background: rgba(255,203,107,.07); border-radius: 12px; padding: 10px 13px; font-size: 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.metric { padding: 18px; border: 1px solid var(--line); background: var(--panel); border-radius: 17px; }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-value { margin-top: 8px; font-size: 29px; font-weight: 850; letter-spacing: -.04em; }
.metric-sub { margin-top: 7px; color: var(--muted); font-size: 11px; }
.positive { color: var(--mint); } .warning { color: var(--amber); } .danger { color: var(--red); }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; margin-top: 14px; }
.panel { padding: 20px; border-radius: 18px; box-shadow: none; }
.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel-title h2 { margin: 0; font-size: 16px; }
.panel-title span { color: var(--muted); font-size: 11px; }
.queue-bars { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 84px 1fr 34px; align-items: center; gap: 10px; font-size: 12px; }
.bar-track { height: 9px; background: rgba(255,255,255,.055); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--mint),var(--lime)); }
.bar-fill.warn { background: linear-gradient(90deg,var(--amber),#ff925c); }
.bar-fill.fail { background: linear-gradient(90deg,var(--red),#ff5aa4); }
.sparkline { width: 100%; height: 120px; overflow: visible; }
.sparkline path.line { fill: none; stroke: var(--lime); stroke-width: 3; vector-effect: non-scaling-stroke; }
.sparkline path.area { fill: url(#sparkGradient); }
.health-list { display: grid; gap: 11px; }
.health-item { padding: 12px; border: 1px solid var(--line); border-radius: 13px; }
.health-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 750; }
.health-meta { margin-top: 8px; display: flex; gap: 10px; color: var(--muted); font-size: 11px; }
.wide-panel { margin-top: 14px; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 960px; }
th { text-align: left; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 750; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 13px 12px; border-bottom: 1px solid rgba(183,221,204,.09); font-size: 12px; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 800; }
.status.running { color: var(--cyan); background: rgba(117,217,255,.1); }
.status.queued { color: var(--amber); background: rgba(255,203,107,.1); }
.status.ready { color: var(--mint); background: rgba(102,229,177,.1); }
.status.failed { color: var(--red); background: rgba(255,126,115,.1); }
.asset-locations { display: grid; gap: 5px; color: var(--muted); }
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 82px 16px 1fr; gap: 8px; min-height: 55px; }
.timeline-time { color: var(--muted); font: 10px ui-monospace, monospace; padding-top: 2px; }
.timeline-rail { position: relative; }
.timeline-rail::before { content: ""; position: absolute; top: 5px; left: 7px; bottom: -5px; width: 1px; background: var(--line); }
.timeline-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); border: 2px solid var(--panel-strong); margin: 2px 0 0 3px; z-index: 1; }
.timeline-copy strong { display: block; font-size: 12px; }
.timeline-copy span { color: var(--muted); font-size: 11px; }

@media (max-width: 980px) {
  .hero, .dashboard-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 48px; }
}
@media (max-width: 640px) {
  .shell, .admin-shell { width: min(100% - 22px, 1180px); }
  .topbar { min-height: 64px; }
  .hero h1 { font-size: 49px; }
  .steps { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .admin-header { align-items: flex-start; flex-direction: column; }
}
