:root{
  --bg:#f5f5f7;
  --card:#ffffff;
  --text:#1d1d1f;
  --muted:#6e6e73;
  --line:#e5e5ea;
  --blue:#0071e3;
  --blue2:#005bb5;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --radius:18px;
  --radius2:14px;
  --max:1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background: radial-gradient(1200px 600px at 15% 0%, #ffffff 0%, var(--bg) 55%);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{color:var(--blue); text-decoration:none}
a:hover{color:var(--blue2); text-decoration:underline}

.container{max-width:var(--max); margin:0 auto; padding:22px 16px 64px}

/* ===== Topbar / Nav (used everywhere) ===== */
.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  border-radius:999px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}
.brand{display:flex; gap:10px; align-items:center; font-weight:800; letter-spacing:-.02em}
.badge{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:10px;
  background:linear-gradient(135deg,#111,#333);
  color:#fff; font-size:16px;
}
.nav{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.nav a{
  display:inline-flex; align-items:center;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.65);
  color:var(--text);
  font-size:14px;
  font-weight:700;
  text-decoration:none;
}
.nav a:hover{background:#fff}

/* ===== Typography ===== */
h1{font-size:34px; margin:18px 0 8px; letter-spacing:-.03em}
h2{font-size:18px; margin:0 0 10px; letter-spacing:-.02em}
p.lead{margin:0 0 16px; color:var(--muted); line-height:1.55}
.sub{color:var(--muted); font-size:13px}

.hr{height:1px; background:var(--line); margin:14px 0}

.footer-note{color:var(--muted); font-size:13px; margin-top:12px; line-height:1.5}
.mono{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace; font-size:12.5px; color:var(--muted)}

/* ===== Layout / Cards ===== */
.grid{display:grid; grid-template-columns:1fr 1fr; gap:16px}
@media (max-width: 900px){ .grid{grid-template-columns:1fr} }

.card{
  background:rgba(255,255,255,.9);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}

/* ===== Forms ===== */
label{display:block; font-size:13px; font-weight:800; color:var(--muted); margin:12px 0 6px}
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select{
  width:100%;
  border:1px solid var(--line);
  border-radius:var(--radius2);
  padding:12px 12px;
  font-size:15px;
  outline:none;
  background:#fff;
}
textarea{min-height:120px; resize:vertical}
input:focus, textarea:focus, select:focus{
  border-color:rgba(0,113,227,.6);
  box-shadow:0 0 0 4px rgba(0,113,227,.15)
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 14px;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  background:#fff;
  color:var(--text);
  text-decoration:none;
}
.btn:hover{background:rgba(0,0,0,.02); text-decoration:none}
.btn-primary{background:var(--blue); border-color:var(--blue); color:#fff}
.btn-primary:hover{background:var(--blue2)}
.btn-ghost{background:rgba(255,255,255,.65)}
.btn-danger{background:#ff3b30; border-color:#ff3b30; color:#fff}
.btn-danger:hover{filter:brightness(.97)}

/* ===== Alerts ===== */
.alert{
  border:1px solid rgba(255,59,48,.35);
  background:rgba(255,59,48,.06);
  padding:12px 14px;
  border-radius:14px;
  color:#7a1b15;
}
.success{
  border:1px solid rgba(52,199,89,.35);
  background:rgba(52,199,89,.08);
  padding:12px 14px;
  border-radius:14px;
  color:#0b4d1e;
}

/* ===== Tables ===== */
table{
  width:100%;
  border-collapse:collapse;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}
th, td{padding:10px 10px; border-bottom:1px solid var(--line); text-align:left; font-size:14px; vertical-align:top}
th{background:rgba(0,0,0,.02); color:var(--muted); font-size:12.5px; font-weight:900}
tr:last-child td{border-bottom:none}

/* ===== Pills / tags ===== */
.pill{
  display:inline-flex; align-items:center;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.65);
  font-size:12px;
  font-weight:900;
  color:var(--text);
  margin-left:8px;
}
.tag{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  font-size:12px;
  font-weight:900;
  color:var(--muted);
  background:rgba(0,0,0,.02);
}

/* =========================================================
   PUBLIC WIZARD STYLES (one question per card)
   ========================================================= */
.wizard{ margin-top:18px; }
.wizard-progress{
  height:6px; background:#e9e9ee; border-radius:999px; overflow:hidden;
  border:1px solid var(--line);
}
.wizard-progressbar{
  height:100%; width:0%; background:var(--blue);
  transition: width .25s ease;
}

.wiz-step{ display:none; margin-top:16px; }
.wiz-step.is-active{ display:block; }

.wiz-card{
  max-width:auto;
  margin:0 auto;
  background:rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:22px;
}
.wiz-card h2{ margin:0 0 10px; font-size:22px; letter-spacing:-.02em; }
.wiz-sub{ margin:0 0 14px; color:var(--muted); line-height:1.5; }
.wiz-hint{ margin:10px 0 0; color:var(--muted); font-size:13px; }
.wiz-input{ margin-top:6px; }

.wiz-choices{ display:grid; gap:10px; margin-top:10px; }
.wiz-choice{
  display:flex; gap:10px; align-items:center;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 12px;
  background:#fff;
  cursor:pointer;
  transition: transform .06s ease, background .12s ease, border-color .12s ease;
}
.wiz-choice:hover{ background:rgba(0,0,0,.02); transform: translateY(-1px); }
.wiz-choice input{ margin:0; }
.wiz-choice span{ font-weight:800; }

.wiz-actions{
  display:flex; justify-content:space-between; align-items:center;
  gap:12px; margin-top:18px;
}
.wiz-error{
  margin-top:12px;
  color:#7a1b15;
  font-size:13px;
  min-height:18px;
}

.question-count{
  font-size:13px;
  color:var(--muted);
  margin-bottom:8px;
  font-weight:800;
}

/* subtle slide feel */
.wiz-step.is-active.from-right .wiz-card{ animation: inRight .18s ease both; }
.wiz-step.is-active.from-left  .wiz-card{ animation: inLeft  .18s ease both; }
@keyframes inRight{ from{ opacity:.25; transform: translateX(12px);} to{opacity:1; transform: translateX(0);} }
@keyframes inLeft { from{ opacity:.25; transform: translateX(-12px);} to{opacity:1; transform: translateX(0);} }

/* =========================================================
   ADMIN RADIO HEAT BARS
   ========================================================= */
.qblock{
  padding:14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.65);
  margin-bottom:14px;
}
.qhead{display:flex; align-items:flex-start; justify-content:space-between; gap:10px}
.qtitle{font-weight:900; letter-spacing:-.01em}
.qmeta{display:flex; gap:8px; align-items:center; justify-content:flex-end; flex-wrap:wrap}

.bars{ margin-top:12px; display:grid; gap:8px; }
.barrow{
  display:grid;
  grid-template-columns: 220px 1fr 120px;
  gap:10px;
  align-items:center;
}
@media (max-width: 820px){
  .barrow{ grid-template-columns: 1fr; }
}
.barlabel{ font-size:13px; color:var(--text); font-weight:800; }
.bartrack{ height:10px; background:rgba(0,0,0,.06); border-radius:999px; overflow:hidden; }
.barfill{ height:10px; background:var(--blue); border-radius:999px; }
.barpct{ text-align:right; font-size:12.5px; color:var(--muted); font-weight:800; }