/* ============================================================
   CODEBREAK MARKETING HEALTH CHECK, APP STYLES
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cb-black);
  color: var(--cb-white);
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

#root {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Fixed-viewport pages, content fits on most phones; scrolls if needed */
.cb-page.fit {
  min-height: 100vh;
  min-height: 100dvh;
}
.cb-page.scroll {
  min-height: 100vh;
  min-height: 100dvh;
}

button { font-family: inherit; }

::selection {
  background: var(--cb-yellow);
  color: var(--cb-black);
}

/* Cross-page chrome */
.cb-page {
  display: flex;
  flex-direction: column;
  position: relative;
}

.cb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}
.cb-topbar img { height: 18px; }
.cb-topbar .cb-mark {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
@media (min-width: 720px) {
  .cb-topbar { padding: 28px 48px; }
  .cb-topbar img { height: 22px; }
}

/* Watermark dino, low-opacity, behind everything */
.cb-dino-bg {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ===== Q U I Z ===== */
.quiz-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 20px 24px;
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 720px) {
  .quiz-stage { padding: 12px 32px 32px; max-width: 820px; }
}

.quiz-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.quiz-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.quiz-progress-row .num { color: var(--cb-yellow); }
.quiz-progress-row .keep { color: rgba(255,255,255,0.4); }
.quiz-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.quiz-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--cb-yellow);
  transition: width 400ms var(--ease-out);
}

@media (min-width: 720px) {
  .quiz-progress { margin-bottom: 36px; }
}

.quiz-block-label {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cb-yellow);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.quiz-block-label::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--cb-yellow);
}
.quiz-block-label .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--cb-yellow);
  border-radius: 50%;
  margin: 0 4px;
  vertical-align: middle;
  opacity: 0.6;
}

.quiz-question {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(22px, 4.6vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--cb-white);
  margin: 0 0 20px;
  text-wrap: balance;
  flex-shrink: 0;
}
@media (min-width: 720px) {
  .quiz-question { margin-bottom: 32px; }
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.quiz-opt {
  appearance: none;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: var(--cb-white);
  text-align: left;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 180ms var(--ease-out);
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 15px;
  line-height: 1.4;
  min-height: 56px;
}
.quiz-opt:hover {
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.06);
}
.quiz-opt:active { transform: scale(0.985); }
.quiz-opt.selected {
  background: var(--cb-yellow);
  border-color: var(--cb-yellow);
  color: var(--cb-black);
  font-weight: var(--fw-regular);
}
.quiz-opt .opt-tag {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  border: 1.5px solid rgba(255,255,255,0.18);
  padding: 6px 9px;
  flex-shrink: 0;
  transition: all 180ms var(--ease-out);
}
.quiz-opt.selected .opt-tag {
  border-color: var(--cb-black);
  color: var(--cb-black);
}
@media (min-width: 720px) {
  .quiz-opt { padding: 20px 24px; font-size: 16px; min-height: 64px; }
}

.quiz-back {
  margin-top: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 0;
  align-self: flex-start;
  transition: color 180ms var(--ease-out);
  flex-shrink: 0;
}
.quiz-back:hover { color: var(--cb-white); }
.quiz-back:disabled { opacity: 0.25; cursor: default; }

/* Slide animation between questions */
@keyframes slide-in-rt {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slide-in-lt {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
.q-anim-fwd { animation: slide-in-rt 380ms var(--ease-out); }
.q-anim-back { animation: slide-in-lt 380ms var(--ease-out); }

/* ===== I N T R O ===== */
.intro-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 32px;
  position: relative;
  z-index: 1;
}
.intro-inner {
  max-width: 720px;
  width: 100%;
}
.intro-eyebrow {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cb-yellow);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.intro-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--cb-yellow); }
.intro-h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(30px, 7.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--cb-white);
}
.intro-h1 .accent { color: var(--cb-yellow); }
.intro-lede {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  margin: 0 0 22px;
  max-width: 540px;
}
.intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 24px;
}
.intro-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.intro-meta-item .lab {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.intro-meta-item .val {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 14px;
  color: var(--cb-white);
}

.intro-trust {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.55);
  margin: 18px 0 4px;
  max-width: 460px;
}
.intro-trust strong {
  color: var(--cb-white);
  font-weight: var(--fw-regular);
}
.intro-reassure {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.35);
  margin: 0;
  max-width: 460px;
}

/* Big yellow CTA */
.cb-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--cb-yellow);
  color: var(--cb-black);
  padding: 18px 28px;
  border: none;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
  text-decoration: none;
  box-shadow: var(--shadow-hard);
}
.cb-btn:hover {
  transform: translate(-2px,-2px);
  box-shadow: 6px 6px 0 var(--cb-black);
}
.cb-btn:active { transform: translate(0,0); box-shadow: 2px 2px 0 var(--cb-black); }
.cb-btn.dark { background: var(--cb-black); color: var(--cb-yellow); box-shadow: 4px 4px 0 var(--cb-yellow); }
.cb-btn.dark:hover { box-shadow: 6px 6px 0 var(--cb-yellow); }
.cb-btn.block { width: 100%; justify-content: center; }
.cb-btn .arrow { font-size: 18px; line-height: 1; }

/* ===== G A T E ===== */
.gate-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 32px;
  position: relative;
  z-index: 1;
}
.gate-inner { max-width: 540px; width: 100%; }
.gate-eyebrow {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cb-yellow);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.gate-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--cb-yellow); }
.gate-h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(28px, 6.5vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--cb-white);
}
.gate-sub {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.6);
  margin: 0 0 24px;
}
.gate-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.gate-field { display: flex; flex-direction: column; gap: 4px; }
.gate-field label {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.gate-field input {
  appearance: none;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: var(--cb-white);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 15px;
  outline: none;
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.gate-field input:focus {
  border-color: var(--cb-yellow);
  background: rgba(255,232,0,0.04);
}
.gate-field input::placeholder { color: rgba(255,255,255,0.25); }
.gate-field.err input { border-color: var(--color-error); }
.gate-field .errmsg {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-error);
  margin-top: 2px;
}
.gate-note {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  margin-top: 14px;
  line-height: 1.5;
  text-align: center;
}

.gate-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px 0;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms var(--ease-out);
}
.gate-back:hover { color: var(--cb-white); }

/* Universal subtle copyright, intro/quiz/gate/calc */
.cb-copyright {
  padding: 20px 24px 32px;
  text-align: center;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
}
@media (min-width: 720px) {
  .cb-copyright { padding: 24px 48px 30px; }
}

/* ===== R E S U L T S (REDESIGN) ===== */
.results-page {
  background: var(--cb-off-white);
  color: var(--cb-charcoal);
}
.results-page .cb-topbar { background: var(--cb-black); padding: 18px 24px; }
@media (min-width: 720px) { .results-page .cb-topbar { padding: 24px 48px; } }

/* ---- Hero ---- */
.results-hero {
  background: var(--cb-black);
  color: var(--cb-white);
  padding: 40px 24px 64px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 720px) {
  .results-hero { padding: 64px 48px 96px; }
}
.results-hero .dino-bg {
  position: absolute;
  right: -6%; top: 50%;
  transform: translateY(-50%);
  width: 48%;
  opacity: 0.035;
  pointer-events: none;
}
.results-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.results-eyebrow {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 36px;
}
.results-eyebrow .yellow { color: var(--cb-white); font-weight: var(--fw-extrabold); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 720px) {
  .hero-grid { grid-template-columns: auto 1fr; gap: 64px; }
}
.hero-gauge { display: flex; justify-content: flex-start; }
.hero-text { display: flex; flex-direction: column; }

.tier-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.tier-bar { display: inline-block; width: 28px; height: 2px; }

.tier-name {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(44px, 9vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--cb-white);
}

/* ---- Gauge tweaks ---- */
.gauge-svg { display: block; }
.gauge-track { stroke: rgba(255,255,255,0.07); }
.gauge-fill { stroke: var(--cb-white); transition: stroke-dashoffset 1.4s var(--ease-out); }
.gauge-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none;
}
.gauge-number {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(56px, 13vw, 80px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--cb-white);
}
.gauge-suffix {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}

/* ---- Body ---- */
.results-body {
  background: var(--cb-off-white);
  padding: 56px 24px 32px;
}
@media (min-width: 720px) {
  .results-body { padding: 88px 48px 64px; }
}
.results-wrap {
  max-width: 760px;
  margin: 0 auto;
}

/* Opener line + commentary */
.opener-flow {
  margin-bottom: 56px;
}
.opener-line {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-style: italic;
  font-size: clamp(22px, 3.4vw, 28px);
  line-height: 1.35;
  color: var(--cb-black);
  margin: 0 0 32px;
  text-wrap: pretty;
  border-left: 3px solid var(--cb-yellow);
  padding-left: 20px;
}
@media (min-width: 720px) {
  .opener-line { padding-left: 28px; }
}
.commentary p {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 17px;
  line-height: 1.7;
  color: var(--cb-charcoal);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.commentary p:last-child { margin-bottom: 0; }

/* Block sections, vertical flow */
.blocks-flow {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-bottom: 56px;
}
.block-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.block-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.blkletter {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cb-grey-dark);
  text-transform: uppercase;
}
.blkname {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(22px, 3.8vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--cb-black);
  margin: 0;
  text-wrap: balance;
}
.blkscore {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(40px, 7vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.blkscore .of {
  font-size: 0.32em;
  color: var(--cb-grey-dark);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  margin-left: 4px;
}
.blkbar {
  height: 6px;
  background: var(--cb-grey-light);
  position: relative;
  overflow: hidden;
}
.blkbar > i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  transition: width 1.2s var(--ease-out);
}
.block-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}
.block-copy p {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 16px;
  line-height: 1.65;
  color: var(--cb-charcoal);
  margin: 0;
  text-wrap: pretty;
}

/* Score colour utility classes */
.status-high { color: #1e8a4f; }
.status-mid  { color: #c08300; }
.status-low  { color: #c0392b; }
.fill-high { background: #1e8a4f; }
.fill-mid  { background: #c08300; }
.fill-low  { background: #c0392b; }

/* Flags */
.flags-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--cb-grey-light);
}
.flag-alert {
  background: var(--cb-white);
  border: 1.5px solid var(--cb-grey-light);
  border-left: 4px solid var(--color-error);
  padding: 22px 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.flag-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 64px;
}
.flag-icon {
  width: 32px; height: 32px;
  background: var(--color-error);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: 18px;
}
.flag-label {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--color-error);
  text-transform: uppercase;
}
.flag-content { flex: 1; min-width: 0; }
.flag-content h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--cb-black);
  text-wrap: balance;
}
.flag-content p {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 15px;
  line-height: 1.65;
  color: var(--cb-charcoal);
  margin: 0;
  text-wrap: pretty;
}
@media (max-width: 560px) {
  .flag-alert { gap: 16px; padding: 20px; }
  .flag-meta { min-width: auto; flex-direction: row; gap: 10px; }
  .flag-label { display: none; }
}

/* CTA panel */
.cta-panel {
  background: var(--cb-black);
  color: var(--cb-white);
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 720px) {
  .cta-panel { padding: 96px 48px; }
}
.cta-panel .dino-bg {
  position: absolute;
  right: -8%; bottom: -25%;
  width: 46%;
  opacity: 0.035;
  pointer-events: none;
}
.cta-panel-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.cta-panel h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(30px, 5.5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 24px;
  color: var(--cb-white);
  text-wrap: balance;
}
.cta-panel .cta-body {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  margin: 0 0 36px;
  text-wrap: pretty;
}
.cta-panel .cta-note {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 22px;
  line-height: 1.55;
  max-width: 520px;
}

/* Retake + copyright tail */
.results-tail {
  background: var(--cb-off-white);
  padding: 28px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--cb-grey-light);
}
/* Legal footer — shared across all pages */
.legal-footer {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.legal-footer p {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 10px;
  line-height: 1.6;
  margin: 0;
  color: rgba(255,255,255,0.22);
}
.legal-footer a {
  color: rgba(255,255,255,0.32);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 180ms var(--ease-out);
}
.legal-footer a:hover { color: rgba(255,255,255,0.55); }

/* Light variant — results page */
.legal-footer:not(.legal-footer-dark) {
  border-top-color: var(--cb-grey-light);
}
.legal-footer:not(.legal-footer-dark) p {
  color: var(--cb-grey-dark);
}
.legal-footer:not(.legal-footer-dark) a {
  color: var(--cb-grey-dark);
}
.legal-footer:not(.legal-footer-dark) a:hover {
  color: var(--cb-black);
}
.results-restart {
  display: inline-block;
  background: none;
  border: none;
  color: var(--cb-charcoal);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 180ms var(--ease-out);
}
.results-restart:hover { color: var(--cb-black); }
.results-copyright {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 12px;
  color: var(--cb-grey-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.results-copyright .dot { color: var(--cb-grey); }
.results-copyright a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--cb-grey);
  padding-bottom: 1px;
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.results-copyright a:hover { color: var(--cb-black); border-color: var(--cb-black); }

/* Loading splash on calculating */
.calc-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}
.calc-h {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 32px 0 12px;
  color: var(--cb-white);
}
.calc-sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}
.calc-bars {
  display: flex;
  gap: 6px;
}
.calc-bars i {
  display: block;
  width: 6px;
  height: 36px;
  background: var(--cb-yellow);
  animation: calc-pulse 1.2s var(--ease-out) infinite;
}
.calc-bars i:nth-child(2) { animation-delay: 0.12s; }
.calc-bars i:nth-child(3) { animation-delay: 0.24s; }
.calc-bars i:nth-child(4) { animation-delay: 0.36s; }
.calc-bars i:nth-child(5) { animation-delay: 0.48s; }
@keyframes calc-pulse {
  0%, 100% { transform: scaleY(0.25); opacity: 0.5; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

/* Restart link on results page */
.results-restart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  background: none;
  border: none;
  color: var(--cb-grey-dark);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 0;
  transition: color 180ms var(--ease-out);
}
.results-restart:hover { color: var(--cb-black); }

@media (max-width: 480px) {
  .cb-btn { padding: 18px 24px; font-size: 13px; }
}

/* ============================================================
   COOKIE BANNER & PREFERENCES PANEL
   ============================================================ */

/* Banner — fixed bottom strip */
.ck-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--cb-black);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.4);
}
.ck-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 860px) {
  .ck-banner-inner {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 20px 48px;
  }
}
.ck-banner-text {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  margin: 0;
  flex: 1;
}
.ck-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

/* Banner buttons — equal visual weight */
.ck-btn-primary,
.ck-btn-secondary,
.ck-btn-ghost {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 12px 18px;
  transition: all 180ms var(--ease-out);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.ck-btn-primary {
  background: var(--cb-yellow);
  color: var(--cb-black);
  border-color: var(--cb-yellow);
}
.ck-btn-primary:hover {
  background: var(--cb-yellow-dark);
  border-color: var(--cb-yellow-dark);
}
.ck-btn-secondary {
  background: transparent;
  color: var(--cb-white);
  border-color: rgba(255,255,255,0.3);
}
.ck-btn-secondary:hover {
  border-color: var(--cb-white);
}
.ck-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border-color: transparent;
  padding-left: 4px;
  padding-right: 4px;
}
.ck-btn-ghost:hover { color: var(--cb-white); }

/* Backdrop */
.ck-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Preferences panel */
.ck-panel {
  background: var(--cb-black);
  border: 1px solid rgba(255,255,255,0.12);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.ck-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.ck-panel-title {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cb-white);
}
.ck-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  transition: color 180ms var(--ease-out);
}
.ck-close:hover { color: var(--cb-white); }

.ck-panel-body {
  padding: 8px 0;
  flex: 1;
}
.ck-panel-foot {
  padding: 16px 24px 24px;
  flex-shrink: 0;
}

/* Toggle rows */
.ck-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ck-row:last-child { border-bottom: none; }
.ck-row-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ck-row-label {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cb-white);
}
.ck-row-desc {
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.5);
}
.ck-row-control { flex-shrink: 0; padding-top: 2px; }

/* Always-on badge */
.ck-always {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* Toggle switch — sharp/angular to match brand */
.ck-switch {
  position: relative;
  width: 40px;
  height: 22px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.18);
  cursor: pointer;
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out);
  padding: 0;
  display: block;
}
.ck-switch.on {
  background: var(--cb-yellow);
  border-color: var(--cb-yellow);
}
.ck-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: rgba(255,255,255,0.4);
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out);
  display: block;
}
.ck-switch.on .ck-switch-thumb {
  transform: translateX(18px);
  background: var(--cb-black);
}

/* Cookie settings link in footer */
.ck-settings-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 180ms var(--ease-out);
}
.legal-footer-dark .ck-settings-link {
  color: rgba(255,255,255,0.22);
}
.legal-footer-dark .ck-settings-link:hover {
  color: rgba(255,255,255,0.55);
}
.legal-footer:not(.legal-footer-dark) .ck-settings-link {
  color: var(--cb-grey-dark);
}
.legal-footer:not(.legal-footer-dark) .ck-settings-link:hover {
  color: var(--cb-black);
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */

/* Login */
.adm-login-wrap {
  min-height: 100vh;
  background: var(--cb-black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.adm-login-card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.adm-logo { height: 20px; width: auto; align-self: flex-start; }
.adm-login-h {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 6vw, 48px);
  color: var(--cb-white);
  margin: 0;
}
.adm-login-form { display: flex; flex-direction: column; gap: 12px; }
.adm-input {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: var(--cb-white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  border-radius: 0;
  width: 100%;
}
.adm-input:focus { border-color: var(--cb-yellow); }
.adm-input::placeholder { color: rgba(255,255,255,0.3); }
.adm-error { color: #ef4444; font-size: 13px; margin: 0; }

/* Main layout */
.adm-wrap { min-height: 100vh; background: var(--cb-black); display: flex; flex-direction: column; }
.adm-header {
  height: 56px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
}
.adm-main {
  flex: 1;
  padding: 32px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.adm-signout {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.adm-signout:hover { border-color: rgba(255,255,255,0.4); color: var(--cb-white); }

/* Stats */
.adm-stats {
  display: flex;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.adm-stat {
  flex: 1;
  background: var(--cb-black);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.adm-stat-n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--cb-white);
  line-height: 1;
}
.adm-stat-l {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Filters */
.adm-table-wrap { display: flex; flex-direction: column; gap: 16px; }
.adm-filters { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.adm-search {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  color: var(--cb-white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 16px;
  outline: none;
  width: 280px;
  border-radius: 0;
  -webkit-appearance: none;
}
.adm-search:focus { border-color: var(--cb-yellow); }
.adm-search::placeholder { color: rgba(255,255,255,0.3); }
.adm-tier-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-pill {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.adm-pill:hover { border-color: rgba(255,255,255,0.4); color: var(--cb-white); }
.adm-pill.adm-pill-on { border-color: transparent; }

/* Table */
.adm-table { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 14px; }
.adm-table th {
  text-align: left;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.adm-tr {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background 0.12s;
}
.adm-tr:hover { background: rgba(255,255,255,0.04); }
.adm-table td { padding: 14px 16px; color: var(--cb-white); vertical-align: middle; }
.adm-td-bold { font-weight: 600; }
.adm-td-dim { color: rgba(255,255,255,0.5); }
.adm-of { color: rgba(255,255,255,0.3); font-size: 11px; margin-left: 2px; }
.adm-badge {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.adm-view-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.45);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.adm-view-btn:hover { border-color: var(--cb-yellow); color: var(--cb-yellow); }
.adm-empty { text-align: center; padding: 48px !important; color: rgba(255,255,255,0.25) !important; }
.adm-loading { text-align: center; padding: 80px; color: rgba(255,255,255,0.3); font-family: var(--font-body); }

/* Results viewer */
.adm-viewer {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--cb-black);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.adm-viewer-bar {
  height: 60px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
  gap: 16px;
}
.adm-back {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
  white-space: nowrap;
}
.adm-back:hover { color: var(--cb-white); }
.adm-viewer-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  min-width: 0;
}
.adm-viewer-meta > span {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-body);
}
.adm-pdf-btn { padding: 10px 20px !important; font-size: 13px !important; white-space: nowrap; flex-shrink: 0; }
.adm-viewer-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* Print — admin */
@media print {
  .no-print { display: none !important; }
  .adm-viewer { position: static !important; overflow: visible !important; }
  .adm-viewer-body { overflow: visible !important; }
}
.adm-del-btn {
  background: none;
  border: 1px solid rgba(239,68,68,0.3);
  color: rgba(239,68,68,0.5);
  font-size: 12px;
  padding: 7px 10px;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.adm-del-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}
