/* ============================================================
   AI HR VOICE INTERVIEWER — style.css  (FIXED & UPDATED)
   Theme: Retro-Futuristic Neon Glassmorphism
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800&family=Syne:wght@300;400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --neon-cyan:    #00f5ff;
  --neon-purple:  #b700ff;
  --neon-blue:    #2563ff;
  --neon-pink:    #ff2d78;
  --bg-dark:      #050810;
  --bg-card:      rgba(255,255,255,0.04);
  --border-glow:  rgba(0,245,255,0.18);
  --text-primary: #e8f4ff;
  --text-muted:   #6b8cad;
  --font-display: 'Orbitron', monospace;
  --font-body:    'Syne', sans-serif;
  --transition:   0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

/* FIX: html/body must NOT hide overflow entirely — result screen needs to scroll */
html {
  height: 100%;
  background: var(--bg-dark);
}
body {
  height: 100%;
  overflow: hidden; /* screens handle their own scrolling */
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
}

/* ============================================================
   CANVAS & ORBS
   ============================================================ */
#particleCanvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

.orb {
  position: fixed; border-radius: 50%; filter: blur(90px);
  opacity: 0.18; pointer-events: none; z-index: 0;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.orb1 { width: 500px; height: 500px; background: var(--neon-blue);   top: -200px; left: -150px; animation-delay: 0s; }
.orb2 { width: 400px; height: 400px; background: var(--neon-purple); bottom: -150px; right: -100px; animation-delay: -4s; }
.orb3 { width: 300px; height: 300px; background: var(--neon-pink);   top: 40%; left: 55%; animation-delay: -8s; }

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

/* ============================================================
   SCREENS
   FIX: Start & Interview screens use fixed layout (overflow hidden).
   Result screen must scroll — handled separately below.
   ============================================================ */
.screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  /* FIX: each screen manages its own overflow */
  overflow: hidden;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
}

/* FIX: Result screen needs to scroll */
#resultScreen {
  overflow-y: auto;
  overflow-x: hidden;
  align-items: flex-start;
  padding: 40px 20px;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(0,245,255,0.2) transparent;
}
#resultScreen::-webkit-scrollbar { width: 5px; }
#resultScreen::-webkit-scrollbar-track { background: transparent; }
#resultScreen::-webkit-scrollbar-thumb { background: rgba(0,245,255,0.2); border-radius: 3px; }

/* ============================================================
   START SCREEN
   ============================================================ */
#startScreen {
  overflow-y: auto;
  overflow-x: hidden;
  align-items: flex-start;
  justify-content: center;
}

.start-container {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: 24px; padding: 40px 20px; max-width: 640px; width: 100%;
  margin: auto; /* center vertically when content is short */
}

/* Logo */
.logo-mark {
  position: relative; width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
}
.logo-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 20px var(--neon-cyan), inset 0 0 20px rgba(0,245,255,0.08);
  animation: spinSlow 8s linear infinite;
}
.logo-inner { width: 48px; height: 48px; color: var(--neon-cyan); }
.logo-inner svg { width: 100%; height: 100%; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* Title */
.main-title {
  font-family: var(--font-display);
  text-align: center; line-height: 1.1;
  display: flex; flex-direction: column; gap: 4px;
}
.title-line1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800; letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(0,245,255,0.5));
}
.title-line2 {
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  font-weight: 400; letter-spacing: 0.2em; color: var(--text-muted);
}
.main-subtitle {
  font-size: 0.9rem; color: var(--text-muted); letter-spacing: 0.05em;
  text-align: center;
}

/* Setup Card */
.setup-card {
  width: 100%; background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px; padding: 32px 28px;
  backdrop-filter: blur(24px);
  box-shadow: 0 0 60px rgba(0,245,255,0.04), 0 24px 80px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; gap: 20px;
}

.setup-grid { display: grid; gap: 16px; }

/* Form Group */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--neon-cyan); font-family: var(--font-display); font-weight: 600;
}

.form-group input, .form-group select {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,245,255,0.12);
  border-radius: 10px; padding: 12px 16px;
  color: var(--text-primary); font-family: var(--font-body); font-size: 0.95rem;
  outline: none; transition: var(--transition);
  appearance: none; -webkit-appearance: none;
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0,245,255,0.1), 0 0 20px rgba(0,245,255,0.12);
}
.form-group select option { background: #0a0d1f; color: var(--text-primary); }

.select-wrapper { position: relative; }
.select-wrapper select { padding-right: 40px; cursor: pointer; }
.select-arrow {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--neon-cyan); pointer-events: none; font-size: 1.1rem;
}

/* Chips */
.info-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  font-size: 0.75rem; padding: 5px 12px; border-radius: 20px;
  background: rgba(0,245,255,0.07); border: 1px solid rgba(0,245,255,0.18);
  color: var(--neon-cyan); letter-spacing: 0.04em;
}

/* Start Button */
.btn-start {
  position: relative; width: 100%; padding: 16px 24px;
  border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, rgba(0,245,255,0.15), rgba(37,99,255,0.2));
  border: 1px solid var(--neon-cyan);
  color: var(--text-primary); font-family: var(--font-display);
  font-size: 0.95rem; letter-spacing: 0.1em; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  overflow: hidden; transition: var(--transition);
  box-shadow: 0 0 30px rgba(0,245,255,0.12);
}
.btn-start:hover {
  background: linear-gradient(135deg, rgba(0,245,255,0.25), rgba(37,99,255,0.3));
  box-shadow: 0 0 50px rgba(0,245,255,0.28);
  transform: translateY(-2px);
}
.btn-start:active { transform: translateY(0); }
.btn-glow {
  position: absolute; inset: -2px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  border-radius: inherit; z-index: -1; opacity: 0; filter: blur(12px);
  transition: opacity 0.3s;
}
.btn-start:hover .btn-glow { opacity: 0.3; }
.btn-icon { width: 20px; height: 20px; }

.disclaimer {
  font-size: 0.72rem; color: var(--text-muted); text-align: center; letter-spacing: 0.04em;
}

/* ============================================================
   INTERVIEW SCREEN — ZOOM-STYLE 3-COLUMN LAYOUT
   ============================================================ */
#interviewScreen {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
}

/* ---- TOP BAR ---- */
.interview-topbar {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; flex-shrink: 0;
  background: rgba(8,10,22,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124,58,237,0.2);
  gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-ai-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.4);
  display: flex; align-items: center; justify-content: center;
}
.topbar-ai-avatar svg { width: 22px; height: 22px; }
.topbar-ai-info { display: flex; flex-direction: column; }
.topbar-ai-name {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  color: var(--text-primary); letter-spacing: 0.06em;
}
.topbar-online {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.7rem; color: #4ade80;
}
.online-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: onlinePulse 2s ease-in-out infinite;
}
@keyframes onlinePulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.5; }
}

.topbar-center {
  display: flex; align-items: center; gap: 20px; flex: 1; justify-content: center;
}
.topbar-stat { display: flex; flex-direction: column; align-items: center; }
.topbar-stat-label { font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.topbar-stat-val {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  color: var(--text-primary);
}
.topbar-stat-val.cyan { color: var(--neon-cyan); }
.topbar-stat-val.purple { color: #c084fc; }
.topbar-progress-wrap {
  width: 120px;
}
.progress-track {
  height: 4px; background: rgba(255,255,255,0.08);
  overflow: hidden; border-radius: 2px;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #7c3aed, var(--neon-cyan));
  box-shadow: 0 0 8px var(--neon-cyan);
  transition: width 0.6s cubic-bezier(0.23,1,0.32,1);
}

.topbar-right { flex-shrink: 0; }
.btn-end-interview {
  padding: 7px 16px; border-radius: 8px; border: 1.5px solid #ef4444;
  background: rgba(239,68,68,0.08); color: #ef4444;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; cursor: pointer; transition: var(--transition);
}
.btn-end-interview:hover {
  background: rgba(239,68,68,0.18); box-shadow: 0 0 20px rgba(239,68,68,0.25);
}

/* ---- 3-COLUMN LAYOUT ---- */
.interview-layout {
  flex: 1; display: grid;
  grid-template-columns: 270px 1fr 230px;
  overflow: hidden; min-height: 0;
  position: relative; z-index: 10;
  gap: 0;
}

/* ======== LEFT CHAT COLUMN ======== */
.chat-col {
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(8,10,22,0.7); border-right: 1px solid rgba(124,58,237,0.15);
}

.chat-col-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 12px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  color: var(--text-primary); letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(124,58,237,0.12);
  flex-shrink: 0;
}
.chat-wave-icon {
  display: flex; align-items: flex-end; gap: 2px; height: 16px; margin-left: auto;
}
.chat-wave-icon span {
  display: block; width: 3px; border-radius: 1.5px; background: #7c3aed;
  height: 4px; opacity: 0.4;
}
.chat-wave-icon.active span {
  opacity: 1;
  animation: waveBar 0.45s ease-in-out infinite alternate;
}
.chat-wave-icon span:nth-child(1) { animation-delay: 0s; }
.chat-wave-icon span:nth-child(2) { animation-delay: 0.08s; }
.chat-wave-icon span:nth-child(3) { animation-delay: 0.16s; }
.chat-wave-icon span:nth-child(4) { animation-delay: 0.08s; }
.chat-wave-icon span:nth-child(5) { animation-delay: 0s; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 16px;
  scroll-behavior: smooth; min-height: 0;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.25); border-radius: 2px; }

/* Message Bubbles */
.msg {
  display: flex; flex-direction: column; gap: 4px;
  animation: msgSlide 0.4s ease;
}
@keyframes msgSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg.ai  { align-self: flex-start; max-width: 92%; }
.msg.user { align-self: flex-end; max-width: 92%; }

.msg-avatar {
  display: none; /* hidden in this layout */
}
.msg-bubble {
  padding: 11px 14px; border-radius: 14px; font-size: 0.85rem; line-height: 1.65;
}
.msg.ai .msg-bubble {
  background: rgba(15,18,35,0.9); border: 1px solid rgba(124,58,237,0.2);
  border-bottom-left-radius: 4px; color: var(--text-primary);
}
.msg.user .msg-bubble {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(37,99,255,0.2));
  border: 1px solid rgba(124,58,237,0.3); border-bottom-right-radius: 4px;
  color: var(--text-primary);
}
.msg-time {
  font-size: 0.65rem; color: var(--text-muted); padding: 0 4px;
}
.msg.user .msg-time { text-align: right; }

/* Typing indicator */
.typing-dots { display: flex; gap: 5px; align-items: center; padding: 4px 0; }
.typing-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7c3aed; opacity: 0.4;
  animation: typingDot 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.1); }
}

/* ======== CENTER VIDEO COLUMN ======== */
.video-col {
  display: flex; flex-direction: column; overflow: hidden;
  background: #0a0c16; position: relative;
}

.video-frame {
  flex: 1; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 0;
}

/* Both videos stack on top of each other; only the active one is visible */
.ai-video-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.ai-video-layer.ai-video-active {
  opacity: 1;
}

/* Speaking ring overlay on video */
.video-ring-overlay {
  position: absolute; inset: 0; pointer-events: none;
  border: 3px solid transparent; border-radius: 0;
  transition: border-color 0.3s;
}
.video-ring-overlay.speaking {
  border-color: var(--neon-cyan);
  box-shadow: inset 0 0 40px rgba(0,245,255,0.12);
  animation: videoSpeakPulse 0.8s ease-in-out infinite alternate;
}
@keyframes videoSpeakPulse {
  from { border-color: rgba(0,245,255,0.4); }
  to   { border-color: rgba(0,245,255,0.9); box-shadow: inset 0 0 60px rgba(0,245,255,0.18); }
}

/* Neon AI HR badge overlay on video */
.video-neon-badge {
  position: absolute; top: 18px; right: 18px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(5,8,20,0.5); border-radius: 10px; padding: 8px 12px;
  border: 1px solid rgba(0,245,255,0.2); backdrop-filter: blur(8px);
}
.video-neon-text {
  font-family: var(--font-display); font-size: 0.65rem; font-weight: 700;
  color: var(--neon-cyan); letter-spacing: 0.12em; text-transform: uppercase;
  line-height: 1.4; text-shadow: 0 0 12px var(--neon-cyan);
}
.video-neon-text small { font-size: 0.5rem; color: rgba(0,245,255,0.7); display: block; }

/* Video controls inside video frame (like Zoom) */
.video-controls {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  background: rgba(5,8,20,0.65); border-radius: 50px; padding: 10px 20px;
  backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.06);
}
.vcl-btn {
  width: 46px; height: 46px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); flex-shrink: 0;
  position: relative;
}
.vcl-btn svg { width: 20px; height: 20px; }
.vcl-btn.purple {
  background: rgba(124,58,237,0.8); color: white;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.vcl-btn.purple:hover { background: rgba(124,58,237,1); box-shadow: 0 4px 30px rgba(124,58,237,0.6); }
.vcl-btn.purple.listening {
  background: var(--neon-pink); box-shadow: 0 0 30px rgba(255,45,120,0.5);
  animation: micPop 0.3s ease;
}
.vcl-btn.grey {
  background: rgba(60,65,80,0.8); color: rgba(255,255,255,0.6);
}
.vcl-btn.grey:hover { background: rgba(80,85,100,0.8); }
.vcl-btn.red {
  background: #ef4444; color: white;
  box-shadow: 0 4px 20px rgba(239,68,68,0.4);
}
.vcl-btn.red:hover { background: #dc2626; box-shadow: 0 4px 30px rgba(239,68,68,0.6); }
.vcl-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.mic-pulse {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--neon-pink); opacity: 0; pointer-events: none;
}
.vcl-btn.purple.listening .mic-pulse {
  animation: pulsering 1.2s ease-out infinite;
}
@keyframes pulsering {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes micPop { from { transform: scale(0.88); } to { transform: scale(1); } }

/* ---- ANSWER BAR (bottom of video col) ---- */
.answer-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; flex-shrink: 0;
  background: rgba(8,10,22,0.95); border-top: 1px solid rgba(124,58,237,0.15);
}

.answer-mic-btn {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(124,58,237,0.5); background: rgba(124,58,237,0.12);
  color: #c084fc; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); position: relative;
}
.answer-mic-btn svg { width: 22px; height: 22px; }
.answer-mic-btn:hover { background: rgba(124,58,237,0.2); border-color: #a78bfa; }
.answer-mic-btn.listening {
  background: rgba(255,45,120,0.12); border-color: var(--neon-pink);
  color: var(--neon-pink); box-shadow: 0 0 28px rgba(255,45,120,0.35);
}
.answer-mic-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.mic-pulse2 {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid var(--neon-pink); opacity: 0; pointer-events: none;
}
.answer-mic-btn.listening .mic-pulse2 {
  animation: pulsering 1.2s ease-out infinite;
}

.answer-text-col {
  display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0;
}
.answer-main-hint {
  font-size: 0.88rem; color: var(--text-primary); font-weight: 500;
}
.answer-sub-hint {
  font-size: 0.72rem; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.answer-waveform {
  display: flex; align-items: flex-end; gap: 2.5px; height: 28px;
}
.answer-waveform span {
  display: block; width: 3px; border-radius: 1.5px; height: 4px;
  background: linear-gradient(180deg, var(--neon-cyan), #7c3aed); opacity: 0.2;
  transition: height 0.1s;
}
.answer-waveform.active span {
  opacity: 1;
  animation: waveBarAns 0.4s ease-in-out infinite alternate;
}
.answer-waveform span:nth-child(1)  { animation-delay: 0s;     }
.answer-waveform span:nth-child(2)  { animation-delay: 0.05s;  }
.answer-waveform span:nth-child(3)  { animation-delay: 0.10s;  }
.answer-waveform span:nth-child(4)  { animation-delay: 0.15s;  }
.answer-waveform span:nth-child(5)  { animation-delay: 0.20s;  }
.answer-waveform span:nth-child(6)  { animation-delay: 0.25s;  }
.answer-waveform span:nth-child(7)  { animation-delay: 0.20s;  }
.answer-waveform span:nth-child(8)  { animation-delay: 0.15s;  }
.answer-waveform span:nth-child(9)  { animation-delay: 0.10s;  }
.answer-waveform span:nth-child(10) { animation-delay: 0.05s;  }
.answer-waveform span:nth-child(11) { animation-delay: 0s;     }
.answer-waveform span:nth-child(12) { animation-delay: 0.05s;  }
.answer-waveform span:nth-child(13) { animation-delay: 0.10s;  }
.answer-waveform span:nth-child(14) { animation-delay: 0.15s;  }
.answer-waveform span:nth-child(15) { animation-delay: 0.20s;  }

@keyframes waveBarAns {
  from { height: 4px; }
  to   { height: 22px; }
}
@keyframes waveBar {
  from { height: 3px; }
  to   { height: 14px; }
}

.answer-countdown {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(0,245,255,0.3); background: rgba(0,245,255,0.05);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display);
}
#countdownNum { font-size: 1.1rem; font-weight: 700; color: var(--neon-cyan); line-height: 1; }
.answer-countdown small { font-size: 0.55rem; color: var(--text-muted); }

/* ======== RIGHT TIPS COLUMN ======== */
.tips-col {
  display: flex; flex-direction: column; gap: 0; overflow: hidden;
  background: rgba(8,10,22,0.7); border-left: 1px solid rgba(124,58,237,0.15);
}

.tips-section {
  padding: 16px 16px 12px; border-bottom: 1px solid rgba(124,58,237,0.1);
}
.tips-header {
  display: flex; align-items: center; gap: 7px; margin-bottom: 14px;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: 0.1em;
}
.tips-list {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  padding: 0;
}
.tips-list li {
  font-size: 0.8rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
  padding: 0 0 0 4px;
}
.tips-list li::before {
  content: '•'; color: rgba(156,163,175,0.5); font-size: 0.9rem; flex-shrink: 0;
}

.status-section {
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.status-header {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: 0.1em; margin-bottom: 2px;
}
.status-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem;
}
.status-label { color: var(--text-muted); }
.status-val { font-weight: 600; }
.status-val.green { color: #4ade80; }
.status-val.yellow { color: #fbbf24; }
.status-val.red { color: #f87171; }

/* Legacy helpers (kept for JS compatibility) */
.ai-status { display: none; }
.avatar-container { display: none; }
.badge-skill, .badge-level { display: none; }

/* THINKING OVERLAY — updated */
.thinking-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; background: rgba(5,8,16,0.75); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.thinking-overlay.visible { opacity: 1; pointer-events: all; }
.thinking-dots { display: flex; gap: 8px; }
.thinking-dots span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--neon-cyan);
  animation: thinkBounce 1s ease-in-out infinite;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.15s; background: #7c3aed; }
.thinking-dots span:nth-child(3) { animation-delay: 0.30s; background: var(--neon-purple); }
@keyframes thinkBounce {
  0%, 100% { transform: translateY(0);    opacity: 0.5; }
  50%       { transform: translateY(-14px); opacity: 1; }
}
.thinking-overlay p {
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.15em;
  color: var(--neon-cyan); text-transform: uppercase;
}



/* ============================================================
   RESULT SCREEN
   ============================================================ */
#confettiCanvas {
  position: fixed; inset: 0; pointer-events: none; z-index: 5;
}

.result-container {
  position: relative; z-index: 10;
  max-width: 700px; width: 100%; margin: 0 auto;
  display: flex; flex-direction: column; gap: 24px;
  padding-bottom: 60px;
}

.result-header { text-align: center; }
.result-trophy {
  font-size: 3.5rem;
  animation: trophyBounce 1s ease 0.3s both;
  display: block;
}
@keyframes trophyBounce {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  70%  { transform: scale(1.15) rotate(5deg); }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
.result-title {
  font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800; margin-top: 12px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.result-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-top: 6px; }

.result-cards { display: flex; flex-direction: column; gap: 16px; }

.result-card {
  background: var(--bg-card); border-radius: 16px; padding: 22px 24px;
  border: 1px solid var(--border-glow); backdrop-filter: blur(20px);
  animation: cardReveal 0.5s ease both;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-card h3 {
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--neon-cyan); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.result-card h3 .card-icon { font-size: 1rem; }

.result-card p, .result-card li {
  font-size: 0.88rem; color: var(--text-primary); line-height: 1.7;
}
.result-card ul {
  padding-left: 18px; display: flex; flex-direction: column; gap: 4px;
}
.result-card li::marker { color: var(--neon-cyan); }

/* Rating card */
.rating-display {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px;
}
.rating-number {
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.rating-denom {
  font-family: var(--font-display); font-size: 1.2rem; color: var(--text-muted);
}

.rating-bar-track {
  height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden;
  margin-top: 6px;
}
.rating-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
  box-shadow: 0 0 10px var(--neon-cyan);
  width: 0; transition: width 1s cubic-bezier(0.23,1,0.32,1) 0.3s;
}

.btn-restart {
  padding: 14px 32px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,245,255,0.1), rgba(37,99,255,0.15));
  border: 1px solid var(--neon-cyan);
  color: var(--text-primary); font-family: var(--font-display);
  font-size: 0.85rem; letter-spacing: 0.1em; cursor: pointer;
  transition: var(--transition); align-self: center; margin-top: 8px;
}
.btn-restart:hover {
  box-shadow: 0 0 30px rgba(0,245,255,0.25);
  transform: translateY(-2px);
}
.btn-restart:active { transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .interview-layout {
    grid-template-columns: 220px 1fr 0px;
  }
  .tips-col { display: none; }
  .topbar-center { gap: 12px; }
}

@media (max-width: 680px) {
  .interview-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .chat-col { display: none; }
  .tips-col { display: none; }
  .interview-topbar { padding: 8px 10px; flex-wrap: wrap; gap: 6px; }
  .topbar-center { gap: 8px; }
  .topbar-progress-wrap { display: none; }
  .video-neon-badge { display: none; }
  .answer-waveform { display: none; }
  .setup-card { padding: 20px 16px; }
  .result-container { padding: 0 4px 60px; }
  #resultScreen { padding: 24px 12px; }
}
