@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bg:         #000000;
  --surface:    #161616;
  --surface-2:  #1f1f1f;
  --border:     #2a2a2a;
  --border-2:   #333333;
  --neon:       #00c8ff;
  --neon-dim:   rgba(0,200,255,0.10);
  --neon-glow:  rgba(0,200,255,0.20);
  --orange:     #ff6b2b;
  --orange-dim: rgba(255,107,43,0.12);
  --text:       #e8e8e8;
  --text-muted: #777;
  --text-dim:   #3a3a3a;
  --green:      #00c864;
  --green-dim:  rgba(0,200,100,0.10);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --r: 6px;
  --rl: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  background: #000000 !important;
}
body {
  background: #000000 !important;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--neon); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.95);
}
.logo {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: -0.02em;
}
.nav-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); text-decoration: none; }

.admin-pill {
  font-size: 0.65rem;
  background: var(--orange-dim);
  color: var(--orange);
  border: 1px solid rgba(255,107,43,0.4);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
  font-family: var(--mono);
  font-weight: 700;
}

/* ── Layout ── */
main {
  max-width: 700px;
  margin: 0 auto;
  padding: 52px 24px 80px;
}

/* ── Hero ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--neon);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
h1.hero-title {
  font-size: clamp(3.2rem, 9vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 22px;
}
.orange { color: var(--orange); }
.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 52px;
}

/* ── Alert cards ── */
.alert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 56px;
}
.alert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.alert-card:hover { border-color: rgba(0,200,255,0.25); }
.badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}
.badge.spc { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(255,107,43,0.4); }
.badge.nws { background: var(--neon-dim); color: var(--neon); border: 1px solid rgba(0,200,255,0.3); }
.card-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 3px; }
.card-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* ── Section titles ── */
h2.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.section-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Form ── */
.form-block { margin-bottom: 52px; }
.field { margin-bottom: 16px; }
label.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.opt { font-weight: 400; color: var(--text-dim); text-transform: none; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=password], select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.92rem;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px var(--neon-dim);
}
input::placeholder { color: #333; }

.btn-primary {
  background: var(--neon);
  color: #000;
  border: none;
  border-radius: var(--r);
  padding: 11px 26px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--mono);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: #33d4ff; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--neon);
  border: 1px solid rgba(0,200,255,0.4);
  border-radius: var(--r);
  padding: 9px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--mono);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover { background: var(--neon-dim); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 5px 12px;
  font-size: 0.75rem;
  font-family: var(--mono);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.btn-ghost:hover { color: var(--orange); border-color: rgba(255,107,43,0.5); }

.btn-approve {
  background: var(--orange-dim);
  color: var(--orange);
  border: 1px solid rgba(255,107,43,0.4);
  border-radius: var(--r);
  padding: 5px 13px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--mono);
  cursor: pointer;
}

/* ── Steps ── */
.steps { margin-bottom: 0; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--neon);
  background: var(--neon-dim);
  border: 1px solid rgba(0,200,255,0.3);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.step-text { font-size: 0.92rem; color: var(--text-muted); }
.step-text strong { color: var(--text); }

/* ── Cards (setup/admin) ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 26px 28px;
  margin-bottom: 18px;
}
.card h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.card .section-sub { margin-bottom: 18px; }

/* ── Toggles ── */
.toggle-list { display: flex; flex-direction: column; gap: 10px; }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 15px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
}
.toggle-left { display: flex; gap: 12px; align-items: flex-start; }
.toggle-info strong { font-size: 0.875rem; display: block; margin-bottom: 2px; }
.toggle-info span { font-size: 0.75rem; color: var(--text-muted); }
.switch {
  width: 38px; height: 20px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.switch.on { background: var(--neon-dim); border-color: var(--neon); }
.switch::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  background: #444;
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: transform 0.2s, background 0.2s;
}
.switch.on::after { transform: translateX(18px); background: var(--neon); }

/* ── Item rows ── */
.item-list { margin-bottom: 16px; }
.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.item-row:last-child { border-bottom: none; }
.item-body { display: flex; flex-direction: column; gap: 2px; }
.item-name { font-weight: 600; font-size: 0.875rem; }
.item-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted); }
.empty { font-size: 0.82rem; color: #333; font-style: italic; padding: 8px 0; }

/* ── Add row ── */
.add-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.add-row input { flex: 1; min-width: 80px; }
.hint { font-size: 0.75rem; color: #3a3a3a; }

/* ── Save row ── */
.save-row { margin-top: 8px; display: flex; align-items: center; gap: 14px; }
.saved-msg {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(0,200,100,0.25);
  padding: 6px 12px;
  border-radius: var(--r);
}
.error-msg {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid rgba(255,107,43,0.4);
  padding: 6px 12px;
  border-radius: var(--r);
}

/* ── Count badge ── */
.count {
  font-size: 0.65rem;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border-2);
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 8px;
  font-family: var(--mono);
}

/* ── Auth wall ── */
.auth-wall {
  max-width: 340px;
  margin: 64px auto 0;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 24px;
  color: #2a2a2a;
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
}

/* ── Sim SMS bubble ── */
.sms-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 20px 22px;
  margin-bottom: 56px;
  position: relative;
}
.sms-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sms-bubble {
  background: #1e2a30;
  border: 1px solid rgba(0,200,255,0.15);
  border-radius: 14px 14px 14px 2px;
  padding: 12px 16px;
  max-width: 360px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #d0e8ef;
}
.sms-bubble .siren { color: var(--orange); font-weight: 700; }
.sms-bubble .alert-type { color: var(--neon); font-weight: 600; }
.sms-bubble .link { color: var(--neon); font-size: 0.82rem; }
