/* ===================================================================
   SHEPHERD Leadership Assessment — Stylesheet v3
   Brand colours: Black · Red · Grey · White
   Fonts: Plus Jakarta Sans (UI) + Playfair Display (brand mark only)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

:root {
  /* Brand palette */
  --red:          #CC0000;
  --red-dark:     #A80000;
  --red-hover:    #B20000;
  --red-tint:     #FFF0F0;
  --red-mid:      rgba(204,0,0,0.12);

  --black:        #1E293B;
  --charcoal:     #263346;
  --charcoal-mid: #334155;

  --grey-dark:    #374151;
  --grey:         #6B7280;
  --grey-light:   #9CA3AF;
  --silver:       #D1D5DB;
  --silver-light: #F0F0F0;

  /* Text */
  --text-dark:    #111111;
  --text-mid:     #374151;
  --text-light:   #6B7280;

  /* Surfaces */
  --white:        #FFFFFF;
  --off-white:    #F8F8F8;
  --border:       #E5E7EB;
  --border-light: #F0F0F0;

  /* Radii & shadows */
  --radius:       14px;
  --radius-sm:    9px;
  --radius-pill:  999px;
  --shadow-xs:    0 1px 2px rgba(0,0,0,0.06);
  --shadow:       0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.08);
  --shadow-md:    0 2px 8px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
}

/* ===================================================================
   BASE
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Playfair reserved for brand mark only */
.brand-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

/* ===================================================================
   NAVBAR
   =================================================================== */
.navbar {
  background: var(--black) !important;
  padding: 0.65rem 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.navbar-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white) !important;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand .brand-icon {
  width: 34px;
  height: 34px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.navbar .nav-link {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem !important;
  border-radius: 7px;
  transition: all 0.15s;
}
.navbar .nav-link:hover {
  color: var(--white) !important;
  background: rgba(255,255,255,0.09);
}

.navbar .btn-nav-cta {
  background: var(--red);
  color: var(--white) !important;
  font-weight: 700;
  padding: 0.4rem 1.15rem !important;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  transition: background 0.15s;
}
.navbar .btn-nav-cta:hover {
  background: var(--red-hover);
  color: var(--white) !important;
}

/* ===================================================================
   HERO / LANDING
   =================================================================== */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal red glow */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(204,0,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::before {
  content: 'SHEPHERD';
  position: absolute;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17vw;
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--white);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  color: var(--red);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero p {
  color: rgba(255,255,255,0.78);
  font-size: 1.02rem;
  max-width: 540px;
  line-height: 1.75;
}

.hero .hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Acronym grid */
.acronym-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.65rem;
  margin-top: 3rem;
}

.acronym-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.2s, border-color 0.2s;
}
.acronym-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(204,0,0,0.4);
}

.acronym-letter {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  min-width: 32px;
  letter-spacing: -0.02em;
}

.acronym-label {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.15rem;
  font-size: 0.92rem;
}
.acronym-desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.4rem;
  transition: all 0.18s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--charcoal-mid);
  border-color: var(--charcoal-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.btn-gold {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.4rem;
  transition: all 0.18s;
}
.btn-gold:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(204,0,0,0.35);
}

.btn-outline-primary {
  border: 1.5px solid var(--black);
  color: var(--black);
  border-radius: var(--radius-sm);
  background: transparent;
}
.btn-outline-primary:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-outline-secondary {
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.btn-outline-secondary:hover {
  background: var(--off-white);
  border-color: var(--silver);
  color: var(--text-dark);
}

.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.45);
  color: var(--white);
  border-radius: var(--radius-sm);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

/* ===================================================================
   CARDS
   =================================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  border-radius: var(--radius) var(--radius) 0 0 !important;
  padding: 1rem 1.5rem;
}

.card-header h5, .card-header h6 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-body { padding: 1.5rem; }

/* ===================================================================
   FORMS
   =================================================================== */
.form-control, .form-select {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.95rem;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-dark);
}
.form-control:focus, .form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.1);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--text-mid);
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

/* ===================================================================
   AUTH PAGES
   =================================================================== */
.auth-wrapper {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-header {
  background: var(--black);
  padding: 2.25rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.auth-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(204,0,0,0.2) 0%, transparent 65%);
  pointer-events: none;
}

.auth-header h2 {
  color: var(--white);
  margin: 0.5rem 0 0.25rem;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.auth-header p {
  color: rgba(255,255,255,0.65);
  margin: 0;
  font-size: 0.9rem;
}

.auth-body {
  padding: 2rem;
}

/* ===================================================================
   DASHBOARD
   =================================================================== */
.page-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.page-header h2 {
  margin: 0 0 0.2rem;
  font-size: 1.85rem;
  font-weight: 800;
}
.page-header p { color: var(--text-light); margin: 0; font-size: 0.9rem; }

.assessment-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.assessment-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.assessment-card-header {
  background: var(--black);
  padding: 1.25rem 1.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.assessment-card-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(204,0,0,0.15));
  pointer-events: none;
}
.assessment-card-header .year-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.assessment-card-header h5 {
  color: var(--white);
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.status-inprogress  { background: #FEF3C7; color: #92400E; }
.status-selfcomplete { background: #F3F4F6; color: #374151; }
.status-complete    { background: #111; color: #fff; }

/* Score mini bar */
.score-mini-bar {
  height: 5px;
  background: var(--border-light);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 5px;
}
.score-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--charcoal));
  border-radius: 99px;
  transition: width 0.9s cubic-bezier(0.22,1,0.36,1);
}

/* ===================================================================
   ASSESSMENT SECTION
   =================================================================== */
.assessment-progress-bar {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.dim-progress-track {
  height: 3px;
  background: rgba(255,255,255,0.1);
}

.dim-progress-fill {
  height: 3px;
  background: var(--red);
  transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
}

.dim-steps {
  display: flex;
  padding: 0.55rem 0.75rem;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dim-steps::-webkit-scrollbar { display: none; }

.dim-step {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  cursor: default;
  letter-spacing: 0.01em;
}
.dim-step.done  { color: rgba(255,255,255,0.75); }
.dim-step.active {
  background: rgba(204,0,0,0.2);
  color: var(--white);
  border: 1px solid rgba(204,0,0,0.4);
}
.dim-step .step-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.dim-step.done .step-dot  { background: var(--red); }
.dim-step.active .step-dot { background: var(--red); }

/* Section header */
.section-header {
  background: var(--black);
  padding: 2.5rem 0 2rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-header::before {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 45%; height: 160%;
  background: radial-gradient(ellipse, rgba(204,0,0,0.14) 0%, transparent 65%);
  pointer-events: none;
}

.section-letter-badge {
  width: 60px;
  height: 60px;
  background: var(--red);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(204,0,0,0.4);
  letter-spacing: -0.02em;
}

.section-header h2 { color: var(--white); margin: 0.25rem 0 0.5rem; font-size: 1.6rem; font-weight: 800; }
.section-header p  { color: rgba(255,255,255,0.7); margin: 0; font-size: 0.93rem; }

.scripture-quote {
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--red);
  padding: 0.7rem 1rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  margin-top: 1rem;
  max-width: 580px;
  line-height: 1.6;
}

/* Question cards */
.question-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-xs);
}
.question-card.answered {
  border-color: var(--silver);
  border-left: 3px solid var(--black);
  background: var(--off-white);
}

.question-card.unanswered-highlight {
  border-color: var(--red);
  background: var(--red-tint);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.15);
  animation: shake 0.4s ease;
}
.question-card.unanswered-highlight .question-number::after {
  content: ' — Please rate this question';
  color: var(--red);
  font-weight: 700;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%  { transform: translateX(-5px); }
  75%  { transform: translateX(5px); }
}

.question-number {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
}

.question-text {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1.1rem;
  line-height: 1.6;
}

/* Rating buttons */
.rating-options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.rating-btn input[type="radio"] { display: none; }

.rating-btn label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  min-height: 66px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  padding: 0.4rem 0.3rem;
  text-align: center;
  background: var(--white);
}

.rating-btn label .rating-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--grey-light);
  line-height: 1;
  letter-spacing: -0.02em;
}

.rating-btn label .rating-word {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--grey-light);
  line-height: 1.2;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rating-btn label:hover:not(:has(input:checked)) {
  border-color: var(--silver);
  background: var(--off-white);
  transform: translateY(-1px);
}

/* Value 1: Red (Significant Gap) */
.rating-btn[data-val="1"] input:checked + label {
  border-color: var(--red); background: var(--red-tint);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.12);
}
.rating-btn[data-val="1"] input:checked + label .rating-num { color: var(--red); }
.rating-btn[data-val="1"] input:checked + label .rating-word { color: var(--red-dark); }

/* Value 2: Amber */
.rating-btn[data-val="2"] input:checked + label {
  border-color: #D97706; background: #FFFBEB;
  box-shadow: 0 0 0 3px rgba(217,119,6,0.12);
}
.rating-btn[data-val="2"] input:checked + label .rating-num { color: #B45309; }
.rating-btn[data-val="2"] input:checked + label .rating-word { color: #B45309; }

/* Value 3: Mid grey */
.rating-btn[data-val="3"] input:checked + label {
  border-color: var(--grey); background: #F9F9F9;
  box-shadow: 0 0 0 3px rgba(107,114,128,0.12);
}
.rating-btn[data-val="3"] input:checked + label .rating-num { color: var(--grey-dark); }
.rating-btn[data-val="3"] input:checked + label .rating-word { color: var(--grey); }

/* Value 4: Dark charcoal */
.rating-btn[data-val="4"] input:checked + label {
  border-color: var(--charcoal); background: #F3F4F6;
  box-shadow: 0 0 0 3px rgba(28,28,28,0.12);
}
.rating-btn[data-val="4"] input:checked + label .rating-num { color: var(--charcoal); }
.rating-btn[data-val="4"] input:checked + label .rating-word { color: var(--grey-dark); }

/* Value 5: Black (Consistently Strong) */
.rating-btn[data-val="5"] input:checked + label {
  border-color: var(--black); background: var(--black); color: white;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.15);
}
.rating-btn[data-val="5"] input:checked + label .rating-num { color: var(--white); }
.rating-btn[data-val="5"] input:checked + label .rating-word { color: rgba(255,255,255,0.75); }

/* Navigation bar */
.assessment-nav {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 1rem 0;
  position: sticky;
  bottom: 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.07);
}

/* ===================================================================
   SCORES / COMPLETE PAGE
   =================================================================== */
.score-hero {
  background: var(--black);
  padding: 3.5rem 0;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.score-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 50%; height: 160%;
  background: radial-gradient(ellipse, rgba(204,0,0,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.total-score-circle {
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 3px solid var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 0 8px rgba(204,0,0,0.1);
}
.total-score-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.04em;
}
.total-score-max {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 2px;
}
.overall-band-label {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  font-weight: 500;
}

/* Dim score cards */
.dim-score-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.dim-score-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
}
.dim-score-card .dim-letter {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}
.dim-score-card .score-val {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.03em;
}
.dim-score-bar {
  height: 7px;
  background: var(--border-light);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 10px;
}
.dim-score-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1.1s cubic-bezier(0.22,1,0.36,1);
}

.band-exceptional { background: var(--black); }
.band-strong      { background: var(--charcoal-mid); }
.band-developing  { background: var(--grey); }
.band-growth      { background: #D97706; }
.band-critical    { background: var(--red); }

/* ===================================================================
   RADAR CHART
   =================================================================== */
.chart-wrapper {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}

/* ===================================================================
   AI REVIEW
   =================================================================== */
.ai-review-section {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ai-review-header {
  background: var(--black);
  padding: 1.25rem 1.5rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ai-review-body {
  padding: 1.5rem;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.8;
}
.ai-review-body h3, .ai-review-body h4, .ai-review-body h5 {
  color: var(--black);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.ai-review-body h3 { font-size: 1.2rem; }
.ai-review-body h4 { font-size: 1.05rem; }
.ai-review-body p  { margin-bottom: 0.75rem; }
.ai-review-body ul { padding-left: 1.25rem; }
.ai-review-body li { margin-bottom: 0.35rem; }

#ai-stream-output { min-height: 60px; }

.streaming-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--grey);
  font-size: 0.88rem;
  font-weight: 500;
}
.streaming-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.2s infinite;
}
.streaming-dot:nth-child(2) { animation-delay: 0.2s; }
.streaming-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.75); }
  40%            { opacity: 1;    transform: scale(1); }
}

/* ===================================================================
   REVIEWER FORM
   =================================================================== */
.reviewer-hero {
  background: var(--black);
  padding: 2.75rem 0;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.reviewer-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 50%; height: 160%;
  background: radial-gradient(ellipse, rgba(204,0,0,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.reviewer-hero h1 { color: var(--white); font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.reviewer-hero p  { color: rgba(255,255,255,0.7); }

.subject-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 0.7rem 1.25rem;
  display: inline-block;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===================================================================
   REPORT
   =================================================================== */
.report-header {
  background: var(--black);
  padding: 3rem 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.report-header::before {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 50%; height: 160%;
  background: radial-gradient(ellipse, rgba(204,0,0,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.report-header h1 { color: var(--white); font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.report-header p  { color: rgba(255,255,255,0.7); }

.comparison-table th {
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.02em;
}

.gap-positive { color: #111; font-weight: 700; }
.gap-negative { color: var(--red); font-weight: 700; }

/* ===================================================================
   FLASH MESSAGES
   =================================================================== */
.flash-container {
  position: fixed;
  top: 70px;
  right: 1rem;
  z-index: 9999;
  max-width: 370px;
}
.flash-msg {
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  animation: slideIn 0.3s cubic-bezier(0.22,1,0.36,1);
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
.flash-success { background: #F3F4F6; color: #111; border-left: 3px solid #111; }
.flash-info    { background: #EFF6FF; color: #1E40AF; border-left: 3px solid #3B82F6; }
.flash-warning { background: #FFFBEB; color: #92400E; border-left: 3px solid #F59E0B; }
.flash-error   { background: var(--red-tint); color: var(--red-dark); border-left: 3px solid var(--red); }

/* ===================================================================
   FOOTER
   =================================================================== */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: 0.83rem;
  text-align: center;
}
footer a { color: rgba(255,255,255,0.75); }

/* ===================================================================
   UTILITIES
   =================================================================== */
.text-red   { color: var(--red); }
.text-grey  { color: var(--grey); }
.bg-off-white { background: var(--off-white); }
.bg-black   { background: var(--black); }

.section-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 2rem 0;
}

.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--text-light);
}
.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 768px) {
  .hero h1        { font-size: 2.2rem; }
  .hero           { padding: 3rem 0 2.5rem; }
  .rating-btn label { width: 58px; min-height: 58px; }
  .rating-btn label .rating-num { font-size: 1.25rem; }
  .total-score-circle { width: 130px; height: 130px; }
  .total-score-num    { font-size: 2.4rem; }
  .dim-steps      { gap: 2px; }
  .dim-step       { padding: 0.22rem 0.5rem; font-size: 0.7rem; }
  .card-body      { padding: 1.1rem; }
}
