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

:root {
  --navy:    #06092A;
  --navy-2:  #0B1038;
  --navy-3:  #1a2b4a;
  --red:     #E8032A;
  --red-g1:  #F0052C;
  --red-g2:  #D42828;
  --red-soft:#FEE8EC;
  --gold:    #D4A017;
  --gold-bg: #FBF5E0;
  --white:   #FFFFFF;
  --bg:      #F7F8FC;
  --border:  #E2E8F0;
  --text:    #0F172A;
  --muted:   #64748B;
  --muted-2: #94A3B8;
  --shadow:  0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: 'Inter Tight', sans-serif;
  line-height: 1.15;
  color: var(--navy);
}

/* ─── Layout ─────────────────────────────────── */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

.screen { display: none; }
.screen.active { display: block; }

/* ─── Brand bar ──────────────────────────────── */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 28px 0 0;
}
.site-logo {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── Eyebrow ────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 28px;
  margin-bottom: 20px;
}

/* ─── Headlines ──────────────────────────────── */
.headline {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(30px, 5.5vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 20px;
}
.headline .red { color: var(--red); }

.subhead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ─── Value bullets ──────────────────────────── */
.value-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.value-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.value-list li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── Form ───────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.field-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy-3);
  margin-bottom: 6px;
  display: block;
}
.field-input {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-shadow: var(--shadow-sm);
}
.field-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(6,9,42,0.08);
}
.field-input::placeholder { color: var(--muted-2); }
.field-input.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,3,42,0.08); }

.consent {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.consent a { color: var(--navy-3); }

.error-msg {
  color: var(--red);
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 8px;
}

/* ─── Buttons ────────────────────────────────── */
.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 17px 28px;
  background: var(--red-g1);
  color: var(--white);
  font-family: 'Inter Tight', sans-serif;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s, transform 0.1s, opacity 0.18s;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(232,3,42,0.25);
}
.btn-primary:hover:not(:disabled) {
  background: var(--red-g2);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(232,3,42,0.32);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn-primary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.btn-secondary {
  display: inline-block;
  padding: 14px 22px;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--navy-3);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s;
}
.btn-secondary:hover { border-color: var(--navy-3); background: var(--bg); }
.btn-secondary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.btn-ghost {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  text-decoration: underline;
  font-family: 'Inter', sans-serif;
  transition: color 0.18s;
}
.btn-ghost:hover { color: var(--navy); }

/* ─── Progress bar ───────────────────────────── */
.progress-wrap {
  padding: 28px 0 24px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.progress-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.progress-count { font-size: 13px; color: var(--navy); font-weight: 700; }
.progress-track {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--red-g1), var(--gold));
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ─── Shift question screen ──────────────────── */
.shift-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.shift-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(22px, 4.5vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.shift-frame {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
  font-style: italic;
  border-left: 3px solid var(--border);
  padding-left: 14px;
  line-height: 1.6;
}

.statements { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }

/* ─── Single-question card ───────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.statement-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow);
}
.statement-card.single-q {
  text-align: center;
}
.statement-text {
  font-size: 20px;
  line-height: 1.55;
  margin-bottom: 32px;
  color: var(--navy);
  font-weight: 600;
}

/* Rating row for single-question mode */
.rating-single-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rating-labels-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0 2px;
}
.rating-buttons-single {
  display: flex;
  gap: 10px;
}
.rating-btn-single {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.rating-btn-single:hover {
  background: var(--white);
  border-color: var(--navy-3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6,9,42,0.1);
}
.rating-btn-single.selected {
  background: var(--red-g1);
  border-color: var(--red-g1);
  box-shadow: 0 4px 14px rgba(232,3,42,0.28);
  transform: translateY(-2px);
}
.rating-btn-single:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.rbs-num {
  font-family: 'Inter Tight', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--muted);
  line-height: 1;
}
.rating-btn-single.selected .rbs-num { color: var(--white); }
.rating-btn-single:hover:not(.selected) .rbs-num { color: var(--navy); }

.shift-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 0 48px;
}

/* ─── Loading ────────────────────────────────── */
.loading-inner {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.loading-spinner {
  width: 52px; height: 52px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 32px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-lines { display: flex; flex-direction: column; gap: 8px; }
.loading-line { font-size: 16px; color: var(--muted-2); transition: color 0.4s; }
.loading-line.active { color: var(--navy); font-weight: 600; }

/* ─── Results ────────────────────────────────── */
.results-wrap { padding: 32px 0 64px; }

/* Gauge */
.gauge-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 24px 32px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.gauge-svg { width: 180px; height: 180px; }
.gauge-number {
  font-family: 'Inter Tight', sans-serif;
  font-size: 56px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
}
.gauge-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  fill: var(--muted);
  text-anchor: middle;
}
.tier-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  color: var(--navy);
  margin: 18px 0 10px;
}
.tier-explanation {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  max-width: 480px;
  line-height: 1.65;
}

/* Section heading */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* Gap map */
.gap-map {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.meter-row { margin-bottom: 16px; }
.meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.meter-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.leak-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--red);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.meter-score { font-size: 13px; font-weight: 700; color: var(--muted); }
.meter-track {
  height: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1s ease;
}

/* Profile card */
.profile-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.profile-archetype {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--navy);
}
.profile-desc { font-size: 15px; color: var(--muted); line-height: 1.7; }

/* Diagnosis */
.diagnosis-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.diagnosis-verdict {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 16px;
  color: var(--navy);
}
.diagnosis-analysis {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-line;
  margin-bottom: 24px;
}
.why-live-box {
  background: var(--gold-bg);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
}
.why-live-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.why-live-text { font-size: 14px; color: var(--navy-3); line-height: 1.65; font-weight: 500; }

/* Leak callout */
.leak-callout {
  background: var(--red-soft);
  border: 1.5px solid rgba(232,3,42,0.15);
  border-radius: 16px;
  padding: 24px 22px;
  margin-bottom: 20px;
}
.leak-callout-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.leak-callout-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--navy);
}
.leak-callout-cost { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* CTA block */
.cta-card {
  background: var(--navy);
  border-radius: 20px;
  padding: 36px 28px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(6,9,42,0.18);
}
.cta-headline {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(21px, 4vw, 27px);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--white);
}
.cta-body {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 28px;
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.cta-buttons .btn-primary {
  max-width: 400px;
  background: var(--red-g1);
  box-shadow: 0 2px 14px rgba(232,3,42,0.35);
}
.cta-buttons .btn-secondary {
  max-width: 400px;
  width: 100%;
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}
.cta-buttons .btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
}
.cta-buttons .btn-ghost { color: rgba(255,255,255,0.4); }
.cta-buttons .btn-ghost:hover { color: rgba(255,255,255,0.75); }

/* Footer */
.site-footer {
  text-align: center;
  padding: 36px 0 24px;
  font-size: 13px;
  color: var(--muted-2);
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.site-footer a { color: var(--muted); text-decoration: none; }

/* ─── Admin ──────────────────────────────────── */
.admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 32px;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-brand {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.metric-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
  justify-content: center;
}
.metric-card {
  flex: 0 0 calc(25% - 11px);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}
.metric-value {
  font-family: 'Inter Tight', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 5px;
  color: var(--navy);
}
.metric-label { font-size: 12px; color: var(--muted); font-weight: 500; }

.section-block {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.section-block-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-block-title .drop-badge {
  font-size: 11px;
  background: var(--red);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.funnel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.funnel-label { font-size: 13px; color: var(--muted); width: 80px; flex-shrink: 0; font-weight: 500; }
.funnel-track { flex: 1; height: 22px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.funnel-fill { height: 100%; border-radius: 5px; transition: width 0.6s ease; display: flex; align-items: center; padding: 0 10px; background: var(--navy-3); }
.funnel-count { font-size: 12px; font-weight: 700; color: var(--white); white-space: nowrap; }
.funnel-row.biggest-drop .funnel-label { color: var(--red); font-weight: 700; }
.funnel-row.biggest-drop .funnel-fill { background: var(--red); }

.dist-list { display: flex; flex-direction: column; gap: 10px; }
.dist-row { display: flex; align-items: center; gap: 10px; }
.dist-name { font-size: 13px; color: var(--muted); width: 160px; flex-shrink: 0; font-weight: 500; }
.dist-track { flex: 1; height: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.dist-fill { height: 100%; background: var(--navy); border-radius: 4px; }
.dist-count { font-size: 12px; color: var(--muted); width: 32px; text-align: right; font-weight: 600; }

.tier-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.tier-pill {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--muted);
}
.tier-pill strong { display: block; font-size: 22px; font-weight: 800; font-family: 'Inter Tight', sans-serif; color: var(--navy); }

/* Leads table */
.table-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.table-controls input, .table-controls select {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 8px;
  outline: none;
  flex: 1;
  min-width: 140px;
  transition: border-color 0.18s;
}
.table-controls input::placeholder { color: var(--muted-2); }
.table-controls input:focus, .table-controls select:focus { border-color: var(--navy); }

.leads-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
  background: var(--bg);
}
tbody tr {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}
tbody tr:hover { background: var(--bg); }
tbody td {
  padding: 13px 14px;
  color: var(--muted);
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
tbody td:first-child { color: var(--text); font-weight: 600; }

.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}
.status-completed { background: rgba(212,160,23,0.12); color: var(--gold); }
.status-started   { background: var(--red-soft); color: var(--red); }

/* Detail panel */
.detail-panel {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  background: var(--white);
  border-left: 1.5px solid var(--border);
  z-index: 100;
  overflow-y: auto;
  padding: 32px 28px;
  box-shadow: -8px 0 32px rgba(0,0,0,0.08);
}
.detail-panel.open { display: block; }
.detail-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  float: right;
  line-height: 1;
  padding: 0;
  transition: color 0.18s;
}
.detail-close:hover { color: var(--navy); }
.detail-name { font-family: 'Inter Tight', sans-serif; font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.detail-email { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.detail-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin: 24px 0 12px;
}
.detail-answer-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; font-size: 13px; padding: 10px 0; border-bottom: 1px solid var(--border); line-height: 1.5;
}
.detail-answer-q { color: var(--muted); flex: 1; }
.detail-answer-v { color: var(--navy); font-weight: 800; font-size: 16px; flex-shrink: 0; }
.detail-text { font-size: 14px; color: var(--muted); line-height: 1.7; white-space: pre-line; }

/* Admin login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow);
}
.login-title { font-family: 'Inter Tight', sans-serif; font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.login-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

/* ─── Tab Bar ────────────────────────────────── */
.tab-bar {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.tab-bar-inner {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 24px;
}
.tab-bar-inner::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 0 0 auto;
  padding: 16px 22px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.01em;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--red);
}
.tab-btn-assessment {
  color: var(--red);
  font-weight: 700;
}
.tab-btn-assessment:hover { color: #c00020; }
.tab-btn-assessment.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ─── Tab Panes ──────────────────────────────── */
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ─── Video Tabs ─────────────────────────────── */
.video-tab-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 24px 48px;
}
.video-tab-header { margin-bottom: 20px; }
.video-tab-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.video-tab-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
}
.video-ratio-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0e1a24;
  box-shadow: 0 4px 24px rgba(29,46,59,0.18);
}
.video-ratio-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
}
.video-placeholder-icon { font-size: 52px; opacity: 0.2; }
.video-placeholder-text { font-size: 14px; opacity: 0.45; }
.video-next-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.video-next-btn { width: auto; padding: 13px 28px; font-size: 15px; }

/* ─── Admin: Video Manager ───────────────────── */
.video-config-grid {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.video-config-card {
  flex: 1 1 260px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.video-config-num {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.video-stats-row { display: flex; flex-wrap: wrap; gap: 6px; }
.video-stat-pill {
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  color: var(--muted);
}
.video-stat-pill strong { color: var(--navy); }

/* Responsive */
@media (max-width: 480px) {
  .rating-btn { font-size: 14px; min-height: 42px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-panel { max-width: 100%; }
  .dist-name { width: 110px; font-size: 12px; }
  .video-tab-container { padding: 24px 16px 36px; }
  .video-tab-title { font-size: 20px; }
}

/* ─── Mobile tab bar (≤ 640px) ───────────────── */
@media (max-width: 640px) {
  .tab-bar-inner {
    flex-wrap: wrap;
    justify-content: stretch;
    padding: 0;
    gap: 0;
  }
  /* Video tabs: 3 equal columns in row 1 */
  .tab-btn {
    flex: 1 1 33.333%;
    min-width: 0;
    padding: 11px 8px 9px;
    font-size: 11px;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    border-bottom: 3px solid transparent;
    border-right: 1px solid var(--border);
  }
  .tab-btn:last-child { border-right: none; }
  .tab-btn.active {
    color: var(--navy);
    border-bottom-color: var(--red);
  }
  /* Assessment CTA: full-width row 2 */
  .tab-btn-assessment {
    flex: 1 1 100%;
    border-top: 1.5px solid var(--border);
    border-right: none;
    border-bottom: none;
    padding: 12px 16px;
    font-size: 13px;
    background: rgba(240, 5, 44, 0.04);
    white-space: nowrap;
  }
  .tab-btn-assessment.active {
    background: rgba(240, 5, 44, 0.07);
    border-bottom: 3px solid var(--red);
  }
}

/* ─── Journey progress bar ───────────────────── */
.journey-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--navy);
  border-bottom: none;
  font-size: 13px;
  font-weight: 600;
}
.journey-step {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.45);
  transition: color .25s;
}
.journey-step.active { color: #fff; }
.jstep-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.55);
  font-size: 11px;
  font-weight: 700;
  transition: background .25s, color .25s;
}
.journey-step.active .jstep-num {
  background: var(--red);
  color: #fff;
}
.jstep-arrow { color: rgba(255,255,255,.25); font-size: 14px; }
@media (max-width: 480px) {
  .jstep-label { display: none; }
  .journey-bar { gap: 6px; }
}

/* ─── Tab completion checkmark ───────────────── */
.tab-check {
  color: #22c55e;
  font-weight: 700;
  margin-left: 3px;
}

/* ─── Auto-advance overlay ───────────────────── */
.autoadvance-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 40, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  z-index: 10;
  animation: aa-fade-in .3s ease;
}
@keyframes aa-fade-in { from { opacity: 0; } to { opacity: 1; } }
.autoadvance-content {
  text-align: center;
  color: #fff;
  padding: 32px;
}
.autoadvance-eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.autoadvance-label {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}
.autoadvance-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.autoadvance-count {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.autoadvance-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.autoadvance-go {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.autoadvance-go:hover { background: #c0021d; }
.autoadvance-cancel {
  background: transparent;
  color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 14px;
  cursor: pointer;
}
.autoadvance-cancel:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* ─── video-ratio-wrap needs position:relative for overlay ── */
.video-ratio-wrap { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .loading-spinner { animation: none; }
  .progress-fill, .meter-fill, .funnel-fill { transition: none; }
}
