/* ================================================
   FUTUREADY AI INTERVIEW — ULTRA PREMIUM UI
   ================================================ */

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

/* ── RESET & TOKENS ─────────────────────────── */
:root {
  --bg:               #060912;
  --bg-2:             #0a0f1e;
  --glass:            rgba(255,255,255,0.055);
  --glass-strong:     rgba(255,255,255,0.10);
  --glass-border:     rgba(255,255,255,0.10);
  --glass-border-h:   rgba(255,255,255,0.18);
  --accent:           #7c9cff;
  --accent-2:         #a78bfa;
  --success:          #00e5a8;
  --danger:           #ff5c5c;
  --text:             #eef0f8;
  --text-muted:       #8892b0;
  --text-faint:       #4a5270;
  --shadow-deep:      0 32px 80px rgba(0,0,0,0.6);
  --shadow-card:      0 8px 32px rgba(0,0,0,0.4);
  --radius-lg:        20px;
  --radius-md:        14px;
  --radius-sm:        10px;
  --transition:       0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── BACKGROUND ORBS ────────────────────────── */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #1e2d6b, transparent 70%);
  top: -200px; left: -150px;
  animation-duration: 14s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #0d2b4e, transparent 70%);
  top: -100px; right: -100px;
  animation-duration: 10s;
  animation-delay: -3s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #1a0b3b, transparent 70%);
  bottom: 0; left: 20%;
  animation-duration: 16s;
  animation-delay: -6s;
}
.orb-4 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #0b2840, transparent 70%);
  bottom: 100px; right: 10%;
  animation-duration: 12s;
  animation-delay: -2s;
}

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

/* ── GRID OVERLAY ───────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124,156,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,156,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── START SCREEN ───────────────────────────── */
.start-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  backdrop-filter: blur(0);
  animation: fadeIn 0.4s ease;
}

.start-card {
  position: relative;
  z-index: 1;
  background: var(--glass);
  backdrop-filter: blur(32px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 52px 48px;
  max-width: 520px;
  width: 92%;
  text-align: center;
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(124,156,255,0.08);
  animation: slideUp 0.5s cubic-bezier(0.4,0,0.2,1);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* LOGO */
.header-logo,
.start-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(124,156,255,0.15), rgba(167,139,250,0.1));
  border: 1px solid rgba(124,156,255,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(124,156,255,0.15);
}

.logo-icon.small {
  width: 30px; height: 30px;
  border-radius: 8px;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.logo-text.small {
  font-size: 15px;
}

.logo-ai {
  background: linear-gradient(135deg, #7c9cff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 2px;
}

/* BADGE */
.start-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,156,255,0.12);
  border: 1px solid rgba(124,156,255,0.25);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.start-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #7c9cff 0%, #a78bfa 50%, #00e5a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.start-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.start-subtitle strong {
  color: var(--text);
}

/* INFO GRID */
.start-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.start-info-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  transition: var(--transition);
}

.start-info-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--glass-border-h);
}

.info-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.info-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* START BUTTON */
.start-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 28px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #5a79ff, #7c9cff, #a78bfa);
  background-size: 200% 200%;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  letter-spacing: 0.2px;
  overflow: hidden;
  animation: gradientShift 4s ease infinite;
  box-shadow: 0 8px 32px rgba(124,156,255,0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 16px;
}

.start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124,156,255,0.55), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.start-btn:active {
  transform: scale(0.98);
}

.start-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  animation: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.start-btn-icon {
  font-size: 14px;
}

.start-btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}

.start-disclaimer {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.6;
}

/* ── INTERVIEW WRAPPER ──────────────────────── */
.interview-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 0 32px;
}

/* ── HEADER ─────────────────────────────────── */
.interview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(6,9,18,0.7);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  justify-content: flex-start;
}

.header-center {
  display: flex;
  align-items: center;
}

.session-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,229,168,0.08);
  border: 1px solid rgba(0,229,168,0.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--success);
}

.session-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.header-right {
  display: flex;
  align-items: center;
}

.header-time {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

/* ── MAIN CONTAINER ─────────────────────────── */
.container {
  width: 94%;
  max-width: 1280px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  align-items: start;
}

/* ── GLASS PANEL BASE ───────────────────────── */
.panel {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(28px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

/* Animated gradient border effect */
.panel-gradient-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(124,156,255,0.3) 0%,
    rgba(167,139,250,0.15) 40%,
    rgba(0,229,168,0.1) 70%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  animation: borderRotate 8s linear infinite;
}

@keyframes borderRotate {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ── QUESTION PANEL ─────────────────────────── */
.question-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Panel Header */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* AI Avatar */
.ai-avatar {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.ai-avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(124,156,255,0.8) 90deg,
    rgba(167,139,250,0.6) 180deg,
    transparent 270deg
  );
  animation: ringRotate 3s linear infinite;
}

.ai-avatar-inner {
  position: absolute;
  inset: 3px;
  background: linear-gradient(135deg, #0e1528, #131b35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124,156,255,0.2);
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.1px;
}

.panel-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.question-number-badge {
  background: rgba(124,156,255,0.12);
  border: 1px solid rgba(124,156,255,0.25);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

/* Timer Bar */
.question-timer-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.question-timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #7c9cff, #a78bfa);
  border-radius: 100px;
  transform-origin: left;
  transition: width 1s linear, background 1s ease;
  box-shadow: 0 0 8px rgba(124,156,255,0.6);
}

/* Question Box */
.question-box-wrapper {
  position: relative;
}

.question-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  min-height: 130px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.question-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,156,255,0.04), transparent);
  pointer-events: none;
}

/* Question Loading */
.question-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.question-loading p {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.thinking-dots {
  display: flex;
  gap: 6px;
}

.thinking-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c9cff, #a78bfa);
  animation: dotBounce 1.4s ease-in-out infinite;
}

.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%            { transform: scale(1.2); opacity: 1; }
}

.question-text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
  width: 100%;
  animation: questionFadeIn 0.5s ease;
}

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

/* Answer Section */
.answer-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.answer-label-icon {
  font-size: 14px;
}

textarea#answerBox {
  width: 100%;
  background: rgba(10,15,30,0.8);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  resize: none;
  outline: none;
  min-height: 110px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  caret-color: var(--accent);
}

textarea#answerBox::placeholder {
  color: var(--text-faint);
}

textarea#answerBox:focus {
  border-color: rgba(124,156,255,0.4);
  box-shadow: 0 0 0 3px rgba(124,156,255,0.1), 0 0 20px rgba(124,156,255,0.08);
}

/* Controls */
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons base */
button {
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Mic Button */
.btn-mic {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: linear-gradient(135deg, rgba(124,156,255,0.2), rgba(90,121,255,0.15));
  border: 1px solid rgba(124,156,255,0.35);
  border-radius: var(--radius-md);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
}

.btn-mic:hover {
  background: linear-gradient(135deg, rgba(124,156,255,0.3), rgba(90,121,255,0.2));
  border-color: rgba(124,156,255,0.6);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124,156,255,0.2);
}

.mic-icon-wrap {
  display: flex;
  align-items: center;
}

.mic-ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

/* Submit Button */
.btn-submit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: linear-gradient(135deg, #00e5a8, #00c896);
  border-radius: var(--radius-md);
  color: #003d2b;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(0,229,168,0.3);
  white-space: nowrap;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,229,168,0.45);
}

.btn-submit:active {
  transform: scale(0.97);
}

/* Hidden timer for JS */
.timer {
  display: none !important;
}

/* ── SIDEBAR ────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-card {
  padding: 22px 24px;
}

.sidebar-card-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

/* Status Card */
.status-card {}

.status-indicator-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.status-orb-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.status-orb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(124,156,255,0.2);
  border: 2px solid rgba(124,156,255,0.4);
  position: relative;
  transition: all 0.4s ease;
}

.status-orb::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  transition: all 0.4s ease;
}

.status-text-block {}

.status-main {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  transition: color 0.3s ease;
}

.status-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Divider */
.divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 4px 0 18px;
}

/* Progress */
.progress-block {
  margin-bottom: 18px;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.progress-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.progress-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: visible;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c9cff, #a78bfa);
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 10px rgba(167,139,250,0.8);
  transition: all 0.6s ease;
}

.progress-glow {
  position: absolute;
  top: -3px;
  left: 0;
  height: 12px;
  width: 0%;
  background: linear-gradient(90deg, rgba(124,156,255,0.3), rgba(167,139,250,0.2));
  border-radius: 100px;
  filter: blur(4px);
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}

/* Sidebar Timer */
.sidebar-timer-block {
  text-align: center;
}

.sidebar-timer-label {
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.sidebar-timer-display {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -3px;
  background: linear-gradient(135deg, #7c9cff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: color 0.3s ease;
}

.sidebar-timer-unit {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 500;
  margin-top: 4px;
}

/* Tips Card */
.tips-card {}

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.tip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c9cff, #a78bfa);
  flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 6px rgba(124,156,255,0.5);
}

/* Powered By */
.powered-by {
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.powered-brand {
  background: linear-gradient(135deg, #7c9cff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ── AI STATE OVERRIDES ──────────────────────── */

/* ASKING STATE */
body[data-state="asking"] .question-box {
  border-color: rgba(124,156,255,0.3);
  box-shadow: 0 0 0 1px rgba(124,156,255,0.15), 0 0 40px rgba(124,156,255,0.12);
}

body[data-state="asking"] .ai-avatar-ring {
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    #7c9cff 90deg,
    #a78bfa 180deg,
    transparent 270deg
  );
  animation: ringRotate 2s linear infinite;
}

body[data-state="asking"] .status-orb {
  background: rgba(124,156,255,0.25);
  border-color: rgba(124,156,255,0.7);
  box-shadow: 0 0 20px rgba(124,156,255,0.4);
}

body[data-state="asking"] .status-orb::after {
  background: #7c9cff;
  opacity: 1;
  animation: orbPulse 1.5s ease-in-out infinite;
}

/* LISTENING STATE */
body[data-state="listening"] .btn-mic {
  background: linear-gradient(135deg, rgba(255,92,92,0.25), rgba(255,47,47,0.2));
  border-color: rgba(255,92,92,0.6);
  color: var(--danger);
  box-shadow: 0 0 30px rgba(255,92,92,0.3);
  animation: micPulse 1s ease-in-out infinite;
}

body[data-state="listening"] .status-orb {
  background: rgba(255,92,92,0.2);
  border-color: rgba(255,92,92,0.6);
  box-shadow: 0 0 20px rgba(255,92,92,0.4);
}

body[data-state="listening"] .status-orb::after {
  background: var(--danger);
  opacity: 1;
  animation: orbPulse 0.8s ease-in-out infinite;
}

@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,92,92,0.3); }
  50%       { box-shadow: 0 0 40px rgba(255,92,92,0.6); }
}

/* THINKING STATE */
body[data-state="thinking"] .question-box {
  filter: blur(0.5px);
  opacity: 0.8;
}

body[data-state="thinking"] .ai-avatar-ring {
  animation: ringRotate 1s linear infinite;
}

body[data-state="thinking"] .status-orb {
  background: rgba(167,139,250,0.2);
  border-color: rgba(167,139,250,0.5);
}

body[data-state="thinking"] .status-orb::after {
  background: #a78bfa;
  opacity: 1;
  animation: orbPulse 0.6s ease-in-out infinite;
}

/* COMPLETED STATE */
body[data-state="completed"] .question-panel {
  border-color: rgba(0,229,168,0.4);
  box-shadow: 0 0 0 1px rgba(0,229,168,0.15), 0 0 60px rgba(0,229,168,0.1);
}

body[data-state="completed"] .question-box {
  border-color: rgba(0,229,168,0.3);
}

body[data-state="completed"] .status-orb {
  background: rgba(0,229,168,0.2);
  border-color: rgba(0,229,168,0.6);
  box-shadow: 0 0 20px rgba(0,229,168,0.4);
}

body[data-state="completed"] .status-orb::after {
  background: var(--success);
  opacity: 1;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50%       { transform: scale(1); opacity: 1; }
}

/* ── COMPLETION SCREEN ──────────────────────── */
.completion-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 300px;
  gap: 16px;
  animation: questionFadeIn 0.6s ease;
}

.completion-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(0,229,168,0.2), rgba(0,200,150,0.1));
  border: 2px solid rgba(0,229,168,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 40px rgba(0,229,168,0.3);
  animation: completionBounce 0.6s cubic-bezier(0.4,0,0.2,1);
}

@keyframes completionBounce {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.completion-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--success);
  letter-spacing: -0.3px;
}

.completion-sub {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.6;
}

/* Timer critical state */
.timer-critical .sidebar-timer-display {
  background: linear-gradient(135deg, #ff5c5c, #ff2f2f);
  -webkit-background-clip: text;
  background-clip: text;
  animation: timerFlash 0.5s ease-in-out infinite;
}

.timer-critical .question-timer-fill {
  background: linear-gradient(90deg, #ff5c5c, #ff2f2f);
  box-shadow: 0 0 12px rgba(255,92,92,0.6);
}

@keyframes timerFlash {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .tips-card { display: none; }

  .powered-by { display: none; }

  .start-card {
    padding: 36px 28px;
  }

  .start-title {
    font-size: 28px;
  }

  .interview-header {
    padding: 0 16px;
  }

  .container {
    width: 96%;
    margin-top: 20px;
  }

  .question-text {
    font-size: 17px;
  }
}

@media (max-width: 600px) {
  .sidebar {
    grid-template-columns: 1fr;
  }

  .controls {
    flex-wrap: wrap;
  }

  .btn-mic, .btn-submit {
    flex: 1;
    justify-content: center;
  }

  .start-info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .start-title {
    font-size: 24px;
  }

  .sidebar-timer-display {
    font-size: 42px;
  }

   /* Hide per-question 60s timer */
  .header-time,
  #hiddenTimer,
  #timerBar {
    display: none !important;
  }
   /* Hide interview progress bar */
  #progressFill,
  #progressGlow,
  #progressPct,
  .progress-container,
  .interview-progress {
    display: none !important;
  }
  #sidebarTimer {
    display: none !important;
  }
  .start-feature:nth-child(2) {
    display: none !important;
  } 
}
