/* ══════════════════════════════════════════════════════════════
   NSB ELITE INTERVIEW SIMULATOR — style.css v6.0
   Theme: Sky & White · Clean Authority · Professional Light
   Fonts: Playfair Display (display) · DM Mono (mono) · Syne (body)
   ══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ────────────────────────────────────────────── */
:root {
  --ink:        #111111;
  --ink-2:      #161616;
  --ink-3:      #1c1c1c;
  --panel:      rgba(17, 17, 17, 0.95);
  --glass:      rgba(20, 20, 20, 0.82);
  --glass-2:    rgba(25, 25, 25, 0.55);

  --sky:        #6b3a1f;
  --sky-d:      #4a2510;
  --sky-dim:    rgba(107, 58, 31, 0.15);
  --sky-glow:   rgba(107, 58, 31, 0.07);

  --sky-light:  #8b4513;
  --sky-pale:   #a0522d;
  --sky-soft:   rgba(107, 58, 31, 0.10);

  --cream:      #ffffff;
  --light:      #f5f5f5;
  --muted:      #7a7a7a;
  --dim:        #2a1a0e;

  --border:     rgba(107, 58, 31, 0.22);
  --border-2:   rgba(107, 58, 31, 0.10);

  --red:        #e84040;
  --green:      #3db88a;
  --yellow:     #8b4513;

  --f-display: 'Playfair Display', serif;
  --f-mono:    'DM Mono', monospace;
  --f-body:    'Syne', sans-serif;
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 15px;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── Phase Wrapper ────────────────────────────────────────────── */
.phase {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: phaseIn 0.55s cubic-bezier(0.2, 0, 0.3, 1);
}
.hidden { display: none !important; }

@keyframes phaseIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Ambient Effects ──────────────────────────────────────────── */
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.015'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.orb {
  position: fixed; border-radius: 50%; filter: blur(100px);
  pointer-events: none; z-index: 0;
  animation: orbFloat 10s ease-in-out infinite alternate;
}
.orb-1 { width:600px; height:600px; background:radial-gradient(circle,rgba(107,58,31,.10) 0%,transparent 70%); top:-150px; left:-150px; animation-delay:0s; }
.orb-2 { width:500px; height:500px; background:radial-gradient(circle,rgba(107,58,31,.07) 0%,transparent 70%); bottom:-200px; right:-100px; animation-delay:-4s; }
.orb-3 { width:350px; height:350px; background:radial-gradient(circle,rgba(107,58,31,.06) 0%,transparent 70%); top:40%; left:50%; animation-delay:-7s; }

@keyframes orbFloat {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.15) translate(20px, 30px); }
}

.grid-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(107,58,31,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,58,31,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Shared: Status Indicator ─────────────────────────────────── */
.sys-status { display: flex; align-items: center; gap: 8px; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: statusPulse 2s ease-in-out infinite;
}
.status-text { font-family: var(--f-mono); font-size: 10px; letter-spacing: 2px; color: var(--green); }

@keyframes statusPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(61,184,138,.4); }
  50%     { box-shadow: 0 0 0 6px rgba(29,168,122,0); }
}

/* ══════════════════════════════════════
   PHASE 1 — SELECTION HUB
══════════════════════════════════════ */
.p1-header {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
}
.p1-logo-wrap { display: flex; align-items: center; gap: 20px; }
.p1-logo {
  font-family: var(--f-display); font-size: 42px; font-weight: 900;
  color: var(--sky); letter-spacing: -2px; line-height: 1;
}
.p1-divider { width: 1px; height: 42px; background: var(--border); }
.p1-title-main { font-family: var(--f-body); font-size: 11px; font-weight: 700; letter-spacing: 4px; color: var(--cream); }
.p1-title-sub  { font-family: var(--f-mono); font-size: 9px; letter-spacing: 2px; color: var(--muted); margin-top: 4px; }

.p1-hero {
  position: relative; z-index: 2;
  text-align: center; padding: 70px 48px 40px;
}
.p1-hero-eyebrow { font-family: var(--f-mono); font-size: 10px; letter-spacing: 4px; color: var(--sky); margin-bottom: 16px; }
.p1-hero-title {
  font-family: var(--f-display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 900; line-height: 0.9;
  color: var(--cream); letter-spacing: -3px;
}
.p1-hero-title em { color: var(--sky); font-style: normal; }
.p1-hero-sub { font-family: var(--f-mono); font-size: 11px; letter-spacing: 3px; color: var(--muted); margin-top: 20px; }

.exam-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; padding: 24px 48px 60px;
  max-width: 1400px; margin: 0 auto; width: 100%;
}

.p1-footer {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 48px; border-top: 1px solid var(--border-2);
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 2px; color: var(--muted);
}

/* ── Photo Cards ─────────────────────────────────────────────── */
.exam-card {
  cursor: pointer;
  position: relative;
  height: 240px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(33,150,243,0.12);
  transition: box-shadow 0.3s, transform 0.3s;
  opacity: 0;
  border: 1px solid var(--border);
}
.exam-card.exam-card-visible {
  animation: cardReveal 0.5s ease forwards;
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.exam-card:hover {
  box-shadow: 0 20px 60px rgba(33,150,243,0.22);
  transform: translateY(-6px);
}
.exam-card:hover .exam-card-img    { transform: scale(1.08); }
.exam-card:hover .exam-card-action { opacity: 1; transform: translateY(0); }
.exam-card:hover .exam-card-glow   { opacity: 1; }

.exam-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.exam-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.90) 0%, rgba(13,27,42,0.15) 60%, transparent 100%);
}
.exam-card-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}
.exam-card-name {
  font-family: var(--f-display);
  font-size: 1.45rem; font-weight: 700;
  color: #ffffff; margin-bottom: 4px; letter-spacing: -0.5px;
}
.exam-card-tag {
  font-family: var(--f-mono);
  font-size: 0.7rem; letter-spacing: 2px;
  color: rgba(255,255,255,0.65);
}
.exam-card-action {
  display: flex; align-items: center; gap: 8px;
  color: var(--sky-light);
  font-family: var(--f-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 3px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
}
.exam-card-glow {
  position: absolute; inset: 0;
  border: 2px solid var(--sky);
  border-radius: 10px; opacity: 0;
  transition: opacity 0.3s; pointer-events: none;
}

/* ══════════════════════════════════════
   PHASE 2 — BRIEFING
══════════════════════════════════════ */
.p2-topbar {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px; border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.88); backdrop-filter: blur(20px);
}
.back-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--border); border-radius: 3px;
  color: var(--light); font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 2px; padding: 8px 16px; cursor: pointer; transition: all 0.25s;
}
.back-btn:hover { border-color: var(--sky); color: var(--sky); }
.p2-examid { font-family: var(--f-mono); font-size: 10px; letter-spacing: 3px; color: var(--sky); }

.p2-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 60px 48px; }

.p2-hero    { margin-bottom: 48px; }
.p2-tag     { font-family: var(--f-mono); font-size: 9px; letter-spacing: 4px; color: var(--sky); margin-bottom: 16px; }
.p2-title   { font-family: var(--f-display); font-size: clamp(40px,5vw,68px); font-weight: 900; color: var(--cream); line-height: .95; letter-spacing: -2px; }
.p2-sub     { font-family: var(--f-mono); font-size: 10px; letter-spacing: 3px; color: var(--muted); margin-top: 16px; }

.instruction-banner {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--sky-dim); border: 1px solid rgba(107,58,31,.28);
  border-left: 3px solid var(--sky); border-radius: 4px;
  padding: 24px 28px; margin-bottom: 40px;
}
.instruction-icon  { font-size: 18px; color: var(--sky); line-height: 1; margin-top: 2px; }
.instruction-label { font-family: var(--f-mono); font-size: 9px; letter-spacing: 3px; color: var(--sky); margin-bottom: 8px; }
.instruction-text  { font-family: var(--f-body); font-size: 14px; color: var(--light); line-height: 1.7; font-weight: 500; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 48px; }

.info-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 4px; padding: 24px 28px; backdrop-filter: blur(12px);
}
.warn-card {
  background: rgba(33,150,243,.06); border: 1px solid rgba(107,58,31,.22);
  border-radius: 4px; padding: 24px 28px;
}
.card-head     { font-family: var(--f-mono); font-size: 9px; letter-spacing: 3px; color: var(--muted); margin-bottom: 16px; }
.warn-head     { color: var(--sky); }
.card-list     { list-style: none; padding: 0; }
.card-list li  {
  font-size: 13px; color: var(--light); padding: 6px 0;
  border-bottom: 1px solid var(--border-2);
  display: flex; gap: 10px; font-weight: 500;
}
.card-list li::before { content: '—'; color: var(--sky); flex-shrink: 0; }
.card-body-text { font-size: 13px; color: var(--light); line-height: 1.8; font-weight: 500; }
.warn-text      { font-size: 13px; color: var(--light); line-height: 1.8; font-weight: 500; }

.begin-btn {
  width: 100%; padding: 22px 40px;
  background: var(--sky); border: none; border-radius: 4px;
  font-family: var(--f-body); font-size: 15px; font-weight: 700;
  letter-spacing: 3px; color: white; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.3s cubic-bezier(0.2, 0, 0.3, 1);
  position: relative; overflow: hidden;
}
.begin-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,rgba(255,255,255,.15),transparent); }
.begin-btn:hover { background: var(--sky-d); transform: translateY(-2px); box-shadow: 0 20px 60px rgba(107,58,31,.35); }
.begin-arrow { font-size: 20px; }

/* ══════════════════════════════════════
   PHASE 3 — INTERVIEW
══════════════════════════════════════ */
.interview-phase { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

.p3-bar {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(0,0,0,0.92); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px); flex-shrink: 0;
}
.p3-bar-left  { display: flex; flex-direction: column; gap: 2px; }
.p3-exam-id   { font-family: var(--f-mono); font-size: 9px; letter-spacing: 3px; color: var(--sky); }
.p3-exam-name { font-family: var(--f-body); font-size: 12px; font-weight: 600; color: var(--light); letter-spacing: 1px; }

.q-dots { display: flex; gap: 8px; align-items: center; }
.q-dot {
  width: 28px; height: 4px; background: var(--dim); border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.2, 0, 0.3, 1);
}
.q-dot.done   { background: var(--sky-d); }
.q-dot.active { background: var(--sky); box-shadow: 0 0 12px rgba(107,58,31,.55); width: 44px; }

.p3-bar-right { display: flex; align-items: baseline; gap: 4px; }
.q-label { font-family: var(--f-mono); font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.q-num   { font-family: var(--f-display); font-size: 28px; font-weight: 700; color: var(--sky); line-height: 1; }
.q-of    { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }

.voice-selector-wrap { display: flex; align-items: center; gap: 10px; margin-left: 20px; }
.voice-selector-wrap label { font-family: var(--f-mono); font-size: 9px; letter-spacing: 2px; color: var(--muted); }
.voice-select {
  background: var(--glass); border: 1px solid var(--border); border-radius: 3px;
  color: var(--cream); font-family: var(--f-mono); font-size: 10px;
  padding: 5px 10px; outline: none; cursor: pointer;
}
.voice-select:focus { border-color: var(--sky); }

/* AI Speaking Bar */
.ai-speak-bar {
  position: relative; z-index: 9;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 32px;
  background: rgba(107,58,31,.10); border-bottom: 1px solid rgba(107,58,31,.22);
  flex-shrink: 0;
}
.speak-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); animation: statusPulse 1.2s ease-in-out infinite; }
.speak-waves { display: flex; gap: 3px; align-items: center; height: 20px; }
.speak-waves span { display: block; width: 3px; background: var(--sky); border-radius: 2px; animation: waveAnim 1.2s ease-in-out infinite; }
.speak-waves span:nth-child(1) { height: 6px;  animation-delay: 0.00s; }
.speak-waves span:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.speak-waves span:nth-child(3) { height: 20px; animation-delay: 0.30s; }
.speak-waves span:nth-child(4) { height: 14px; animation-delay: 0.45s; }
.speak-waves span:nth-child(5) { height: 6px;  animation-delay: 0.60s; }
@keyframes waveAnim { 0%,100%{transform:scaleY(.5);opacity:.5;} 50%{transform:scaleY(1);opacity:1;} }
.speak-label { font-family: var(--f-mono); font-size: 10px; letter-spacing: 2px; color: var(--sky); flex: 1; }
.skip-btn {
  background: none; border: 1px solid rgba(107,58,31,.35); border-radius: 3px;
  color: var(--sky); font-family: var(--f-mono); font-size: 9px;
  letter-spacing: 2px; padding: 5px 12px; cursor: pointer; transition: all .2s;
}
.skip-btn:hover { background: var(--sky-dim); }

/* Messages */
.messages {
  flex: 1; overflow-y: auto; padding: 28px 32px;
  display: flex; flex-direction: column; gap: 20px;
  scroll-behavior: smooth;
}

.msg        { display: flex; gap: 14px; align-items: flex-start; }
.user-msg   { flex-direction: row-reverse; }

.msg-av {
  width: 36px; height: 36px; border-radius: 3px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.io { background: var(--sky-dim); border: 1px solid rgba(107,58,31,.28); color: var(--sky); font-family: var(--f-display); }
.us { background: rgba(107,58,31,.22); border: 1px solid rgba(107,58,31,.35); color: var(--sky-d); font-family: var(--f-mono); font-size: 11px; }

.bubble { max-width: 75%; border-radius: 4px; padding: 16px 20px; line-height: 1.7; }
.io-b   { background: var(--glass); border: 1px solid var(--border); }
.us-b   { background: rgba(107,58,31,.15); border: 1px solid rgba(107,58,31,.25); text-align: right; }

.question-display {
  font-family: var(--f-display); font-size: 20px; font-weight: 700;
  color: var(--cream); letter-spacing: -.5px; line-height: 1.3; margin-bottom: 10px;
}
.io-detail { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.7; font-family: var(--f-body); }

.typing-dots { display: flex; gap: 6px; align-items: center; padding: 4px 0; }
.typing-dots span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sky);
  animation: tdot 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes tdot { 0%,80%,100%{transform:scale(.6);opacity:.4;} 40%{transform:scale(1);opacity:1;} }

/* Input Area */
.input-area {
  position: relative; z-index: 5;
  padding: 20px 32px 24px;
  background: rgba(0,0,0,0.92); border-top: 1px solid var(--border);
  backdrop-filter: blur(20px); flex-shrink: 0;
}
.mic-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }

.mic-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--border); border-radius: 3px;
  color: var(--light); font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 2px; padding: 10px 18px; cursor: pointer; transition: all .25s; flex-shrink: 0;
}
.mic-btn:hover { border-color: var(--sky); color: var(--sky); }
.mic-btn.recording    { background: rgba(232,64,64,.08); border-color: var(--red); color: var(--red); animation: recBlink 1.5s ease-in-out infinite; }
.mic-btn.append-mode  { border-color: rgba(200,168,130,.4); color: var(--sky); }
@keyframes recBlink { 50%{ box-shadow: 0 0 12px rgba(232,64,64,.25); } }

.waveform { display: flex; gap: 3px; align-items: center; height: 28px; }
.waveform span {
  display: block; width: 3px; min-height: 3px; background: var(--dim);
  border-radius: 2px; transition: height .1s, background .2s;
}
.waveform.live span { background: var(--sky); animation: micWave .8s ease-in-out infinite alternate; }
.waveform.live span:nth-child(1)  { animation-delay: 0.00s; }
.waveform.live span:nth-child(2)  { animation-delay: 0.10s; }
.waveform.live span:nth-child(3)  { animation-delay: 0.20s; }
.waveform.live span:nth-child(4)  { animation-delay: 0.30s; }
.waveform.live span:nth-child(5)  { animation-delay: 0.40s; }
.waveform.live span:nth-child(6)  { animation-delay: 0.30s; }
.waveform.live span:nth-child(7)  { animation-delay: 0.20s; }
.waveform.live span:nth-child(8)  { animation-delay: 0.10s; }
.waveform.live span:nth-child(9)  { animation-delay: 0.05s; }
.waveform.live span:nth-child(10) { animation-delay: 0.15s; }
@keyframes micWave { from{height:3px;} to{height:20px;} }

.countdown  { font-family: var(--f-mono); font-size: 11px; color: var(--sky); min-width: 24px; }
.mic-status { font-family: var(--f-mono); font-size: 10px; letter-spacing: 2px; color: var(--muted); margin-left: auto; }

.text-row { display: flex; gap: 12px; align-items: stretch; }
textarea {
  flex: 1; background: var(--glass); border: 1px solid var(--border); border-radius: 4px;
  color: var(--cream); font-family: var(--f-body); font-size: 14px; font-weight: 500;
  padding: 12px 18px; resize: none; outline: none; transition: border-color .2s; line-height: 1.6;
}
textarea:focus    { border-color: rgba(107,58,31,.50); }
textarea::placeholder { color: var(--muted); font-size: 13px; }

.send-btn {
  background: var(--sky); border: none; border-radius: 4px;
  color: white; font-family: var(--f-body); font-size: 13px;
  font-weight: 700; letter-spacing: 2px; padding: 0 28px;
  cursor: pointer; transition: all .25s; white-space: nowrap;
}
.send-btn:hover    { background: var(--sky-d); }
.send-btn:disabled { background: var(--dim); cursor: not-allowed; }

.input-hint { font-family: var(--f-mono); font-size: 9px; letter-spacing: 1.5px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ══════════════════════════════════════
   PHASE 4 — REPORT
══════════════════════════════════════ */
#phase-4 { overflow-y: auto; }

.report-inner {
  position: relative; z-index: 2;
  max-width: 960px; margin: 0 auto; padding: 60px 48px;
}
.report-stamp   { font-family: var(--f-mono); font-size: 9px; letter-spacing: 6px; color: rgba(200,168,130,.4); text-align: right; margin-bottom: 24px; }
.report-heading { font-family: var(--f-display); font-size: clamp(36px,5vw,60px); font-weight: 900; color: var(--cream); letter-spacing: -2px; line-height: .95; margin-bottom: 8px; }
.report-exam    { font-family: var(--f-mono); font-size: 10px; letter-spacing: 3px; color: var(--sky); margin-bottom: 48px; }

/* Verdict Banner */
.r-banner {
  border-radius: 8px; padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 40px; border: 1px solid;
}
.r-banner.rec     { background: rgba(61,184,138,.07); border-color: rgba(61,184,138,.2); }
.r-banner.not-rec { background: rgba(232,64,64,.07);  border-color: rgba(232,64,64,.2); }
.r-banner-tag { font-family: var(--f-mono); font-size: 9px; letter-spacing: 3px; color: var(--muted); margin-bottom: 8px; }
.r-verdict { font-family: var(--f-display); font-size: 36px; font-weight: 900; letter-spacing: -1px; }
.r-verdict.g { color: var(--green); }
.r-verdict.r { color: var(--red); }

.r-overall-wrap { text-align: center; }
.r-score-big  { font-family: var(--f-display); font-size: 80px; font-weight: 900; color: var(--cream); line-height: 1; }
.r-score-denom { font-family: var(--f-mono); font-size: 14px; color: var(--muted); margin-top: -4px; }
.r-score-label { font-family: var(--f-mono); font-size: 9px; letter-spacing: 4px; color: var(--sky); margin-top: 4px; }

.r-sec { margin-bottom: 40px; }
.r-sec-label {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 4px; color: var(--muted);
  margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border-2);
}
.r-text  { font-size: 15px; color: var(--light); line-height: 1.9; font-weight: 500; }
.obs-text { font-size: 14px; color: var(--light); line-height: 1.9; }

/* Score Cards Grid */
.score-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.score-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 8px; padding: 20px 24px;
  transition: border-color 0.2s;
}
.score-card:hover { border-color: rgba(107,58,31,.40); }
.score-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.sc-factor { font-family: var(--f-body); font-size: 12px; font-weight: 700; color: var(--cream); letter-spacing: 0.5px; flex: 1; line-height: 1.3; }
.sc-grade  { font-family: var(--f-mono); font-size: 9px; letter-spacing: 2px; font-weight: 600; flex-shrink: 0; margin-left: 8px; }
.sc-score-row { display: flex; align-items: baseline; gap: 4px; margin-bottom: 10px; }
.sc-num   { font-family: var(--f-display); font-size: 44px; font-weight: 900; line-height: 1; color: var(--sky); }
.sc-denom { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.sc-remark { font-size: 11px; color: var(--muted); font-family: var(--f-body); line-height: 1.6; margin-top: 10px; }

.bar-track { height: 4px; background: var(--dim); border-radius: 2px; margin-bottom: 2px; overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: 2px; width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-fill.hi { background: linear-gradient(90deg, var(--green), #2ed573); }
.bar-fill.md { background: linear-gradient(90deg, var(--sky), var(--sky-light)); }
.bar-fill.lo { background: linear-gradient(90deg, var(--red), #ff6b6b); }

/* Improvement Tips */
.tips-section {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 8px; padding: 28px 32px;
}
.tips-header { font-family: var(--f-mono); font-size: 9px; letter-spacing: 4px; color: var(--sky); margin-bottom: 20px; }
.tip-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border-2);
}
.tip-item:last-child { border-bottom: none; }
.tip-num  { font-family: var(--f-mono); font-size: 11px; color: var(--sky); flex-shrink: 0; min-width: 20px; }
.tip-body { font-size: 13px; color: var(--light); line-height: 1.7; font-weight: 500; }

/* Chairperson Note */
.chair-note {
  background: var(--sky-dim); border: 1px solid rgba(107,58,31,.25);
  border-radius: 8px; padding: 28px 32px; margin-bottom: 32px;
}
.chair-note-label { font-family: var(--f-mono); font-size: 9px; letter-spacing: 4px; color: var(--sky); margin-bottom: 12px; }
.chair-note-text  { font-size: 15px; color: var(--cream); line-height: 1.9; font-style: italic; }

.restart-btn {
  width: 100%; padding: 20px;
  background: none; border: 1px solid var(--border); border-radius: 4px;
  color: var(--light); font-family: var(--f-body); font-size: 13px;
  font-weight: 600; letter-spacing: 3px; cursor: pointer; transition: all .3s; margin-top: 16px;
}
.restart-btn:hover { border-color: var(--sky); color: var(--sky); background: var(--sky-dim); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .p1-header, .p1-footer { padding: 20px; }
  .exam-grid  { grid-template-columns: 1fr; padding: 16px 20px 40px; }
  .p2-topbar, .p2-content { padding-left: 20px; padding-right: 20px; }
  .info-grid  { grid-template-columns: 1fr; }
  .p3-bar     { padding: 12px 16px; }
  .messages   { padding: 20px 16px; }
  .input-area { padding: 14px 16px 18px; }
  .report-inner { padding: 40px 20px; }
  .p1-logo    { font-size: 32px; }
  .p1-hero-title { font-size: 40px; }
  .r-score-big { font-size: 56px; }
  .score-cards-grid { grid-template-columns: 1fr; }
  .r-banner { flex-direction: column; gap: 20px; }
  .voice-selector-wrap { display: none; }
  .q-dots     { display: none; }
}

/* ══════════════════════════════════════
   EXAM PHOTO BACKGROUND — PHASES 2, 3, 4
══════════════════════════════════════ */
.has-bg-photo {
  position: relative;
}
.has-bg-photo::before {
  content: '';
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1; pointer-events: none;
}
.has-bg-photo > * {
  position: relative; z-index: 2;
}
.has-bg-photo .noise-overlay,
.has-bg-photo .grid-overlay,
.has-bg-photo .orb {
  z-index: 3;
}
