/* public/components/interview/interview.css */

.interview-readiness-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(16, 185, 129, 0.06));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius, 14px);
  padding: 18px;
  margin-bottom: 16px;
}

.readiness-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.readiness-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.readiness-info {
  flex: 1;
}

.readiness-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px 0;
}

.readiness-sub {
  font-size: 12px;
  color: var(--text2);
  margin: 0;
  line-height: 1.5;
}

.readiness-score-box {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  text-align: center;
  min-width: 90px;
}

.readiness-score-box .score-number {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--accent, #6366f1);
  font-family: var(--mono);
}

.readiness-score-box .score-label {
  display: block;
  font-size: 10px;
  color: var(--text3);
  margin-top: 2px;
}

.readiness-meters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 12px;
}

.meter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meter-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text2);
}

.meter-val {
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text);
}

.meter-track {
  height: 6px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #10b981);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.interview-profile-ctx-banner {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 11px;
  color: var(--text2);
  line-height: 1.6;
}

.interview-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.interview-filters-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.interview-progress-pill {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
}

.interview-count-text {
  font-size: 11px;
  color: var(--text3);
  margin-bottom: 12px;
}

.qa-card {
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--radius, 12px);
  padding: 16px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.qa-card.completed {
  border-color: rgba(16, 185, 129, 0.4) !important;
  background: linear-gradient(180deg, var(--bg3), rgba(16, 185, 129, 0.03));
}

.qa-question {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.qa-q-badge {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--mono);
}

.qa-header-actions {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

[dir="ltr"] .qa-header-actions {
  margin-right: 0;
  margin-left: auto;
}

.practice-check-btn {
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.practice-check-btn.checked {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

/* Why This Question Matters Accordion */
.why-matters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent, #6366f1);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
}

.why-matters-box {
  display: none;
  background: rgba(99, 102, 241, 0.05);
  border-right: 3px solid #6366f1;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 11px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 12px;
}

[dir="ltr"] .why-matters-box {
  border-right: none;
  border-left: 3px solid #6366f1;
  border-radius: 8px 0 0 8px;
}

/* Weak vs Better Answer Comparison Box */
.answer-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .answer-comparison-grid {
    grid-template-columns: 1fr;
  }
}

.answer-box-weak {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--text2);
  line-height: 1.6;
}

.answer-box-better {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--text2);
  line-height: 1.6;
}

.answer-box-title-weak {
  font-weight: 800;
  color: #ef4444;
  margin-bottom: 4px;
}

.answer-box-title-better {
  font-weight: 800;
  color: #10b981;
  margin-bottom: 4px;
}

.why-better-tip {
  font-size: 10px;
  color: var(--text3);
  margin-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 4px;
}

.qa-answer {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.7;
}

.qa-tip {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.06);
  border-right: 2px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 11px;
  color: var(--amber);
}

[dir="ltr"] .qa-tip {
  border-right: none;
  border-left: 2px solid var(--amber);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* Phase 2A: Interactive Practice & AI Evaluation Styles */
.practice-interactive-box {
  margin-top: 12px;
  background: var(--bg2);
  border: 1px dashed rgba(99, 102, 241, 0.35);
  border-radius: 10px;
  padding: 14px;
}

.practice-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.practice-textarea {
  width: 100%;
  min-height: 85px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
  outline: none;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.practice-textarea:focus {
  border-color: var(--accent);
}

.practice-eval-btn {
  background: linear-gradient(135deg, var(--accent, #6366f1), #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.practice-eval-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Evaluation Output Container */
.eval-result-card {
  margin-top: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  padding: 16px;
}

.eval-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.eval-score-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.eval-score-badge {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent, #6366f1);
  font-family: var(--mono);
  background: rgba(99, 102, 241, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
}

.eval-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

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

.eval-metric-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.eval-metric-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 4px;
}

.eval-metric-track {
  height: 5px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}

.eval-metric-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #10b981);
  border-radius: 3px;
}

.eval-strengths-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--text);
}

.eval-strengths-box h5 {
  font-size: 11px;
  font-weight: 800;
  color: #10b981;
  margin: 0 0 6px 0;
}

.eval-weaknesses-box {
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--text);
}

.eval-weaknesses-box h5 {
  font-size: 11px;
  font-weight: 800;
  color: #f59e0b;
  margin: 0 0 6px 0;
}

.eval-suggested-box {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--text2);
  line-height: 1.6;
}

.eval-suggested-box h5 {
  font-size: 11px;
  font-weight: 800;
  color: #6366f1;
  margin: 0 0 6px 0;
}

.eval-retry-btn {
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   INTERVIEW SIMULATOR
   ============================================================ */

.interview-hub-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.interview-tab-btn {
  flex: 1;
  min-width: 180px;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.interview-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.interview-tab-btn.active {
  background: linear-gradient(135deg, var(--accent, #6366f1), #8b5cf6) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.sim-new-badge {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  padding: 2px 7px;
  border-radius: 999px;
  animation: simBadgePulse 1.8s ease-in-out infinite;
}

@keyframes simBadgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

#interview-simulator-panel {
  animation: simFadeUp 0.45s ease;
}

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

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

@keyframes simSlideIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes simFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes simRing {
  0% { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

@keyframes simLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

@keyframes simTyping {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.35; }
  40% { transform: scale(1); opacity: 1; }
}

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

@keyframes simScorePop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes simBarFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .sim-new-badge,
  .sim-hero-orb,
  .sim-connect-ring,
  .sim-live-dot,
  .sim-typing span {
    animation: none !important;
  }
  #interview-simulator-panel,
  .sim-msg,
  .sim-mode-card,
  .sim-report-wrap {
    animation: none !important;
  }
}

/* ---- Lobby ---- */

.sim-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 28px 24px 24px;
  margin-bottom: 18px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background:
    radial-gradient(900px 280px at 90% -20%, rgba(139, 92, 246, 0.28), transparent 55%),
    radial-gradient(700px 240px at 0% 120%, rgba(16, 185, 129, 0.16), transparent 50%),
    linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(15, 23, 42, 0.35));
}

.sim-hero-orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
  animation: simFloat 6s ease-in-out infinite;
}

.sim-hero-orb.a { background: #6366f1; top: -60px; inset-inline-end: -30px; }
.sim-hero-orb.b { background: #10b981; bottom: -70px; inset-inline-start: -20px; animation-delay: -2s; }

.sim-hero-inner { position: relative; z-index: 1; }

.sim-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 8px;
}

.sim-hero h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.3px;
}

.sim-hero p {
  margin: 0;
  max-width: 640px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text2);
}

.sim-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.sim-profile-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sim-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #10b981);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
}

.sim-profile-meta h3 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.sim-profile-meta span {
  font-size: 12px;
  color: var(--text2);
}

.sim-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sim-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

.sim-section-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
}

.sim-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.sim-mode-card {
  text-align: start;
  cursor: pointer;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--bg3);
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.sim-mode-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.sim-mode-card.active {
  border-color: rgba(99, 102, 241, 0.7);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.16), rgba(99, 102, 241, 0.04));
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.2);
}

.sim-mode-ico { font-size: 22px; display: block; margin-bottom: 8px; }
.sim-mode-title { font-size: 13px; font-weight: 800; color: var(--text); }
.sim-mode-desc { font-size: 11px; color: var(--text3); line-height: 1.5; margin-top: 4px; }

.sim-opts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .sim-opts-row { grid-template-columns: 1fr; }
}

.sim-opt-group {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.sim-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sim-chip {
  border: 1px solid var(--line);
  background: var(--bg3);
  color: var(--text2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-chip.active {
  background: var(--accent, #6366f1);
  border-color: transparent;
  color: #fff;
}

.sim-start-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #10b981, #6366f1);
  background-size: 300% 100%;
  animation: simGradientShift 6s ease infinite;
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.sim-start-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.sim-start-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; animation: none; }

.sim-history {
  margin-top: 22px;
}

.sim-hist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--bg2);
  border-radius: 12px;
  margin-bottom: 8px;
  animation: simSlideIn 0.35s ease;
}

.sim-hist-score {
  font-family: var(--mono);
  font-weight: 900;
  font-size: 16px;
  color: var(--accent);
}

/* ---- Connecting ---- */

.sim-connect {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: radial-gradient(600px 280px at 50% 30%, rgba(99, 102, 241, 0.18), transparent 70%), var(--bg2);
}

.sim-connect-visual {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 22px;
}

.sim-connect-core {
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  z-index: 2;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.45);
}

.sim-connect-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.45);
  animation: simRing 1.8s ease-out infinite;
}

.sim-connect-ring.d2 { animation-delay: 0.6s; }
.sim-connect-ring.d3 { animation-delay: 1.2s; }

.sim-connect h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.sim-connect-step {
  font-size: 13px;
  color: var(--text2);
  min-height: 20px;
}

.sim-connect-bar {
  width: min(280px, 80%);
  height: 5px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 16px;
}

.sim-connect-bar > span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #6366f1, #10b981, transparent);
  background-size: 200% 100%;
  animation: simShimmer 1.2s linear infinite;
}

/* ---- Live call ---- */

.sim-call {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg2);
}

.sim-call-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.sim-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #fecaca;
}

.sim-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  animation: simLivePulse 1.4s ease-in-out infinite;
}

.sim-timer {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.sim-q-progress {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
}

.sim-end-btn {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.sim-call-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 480px;
}

@media (max-width: 860px) {
  .sim-call-body { grid-template-columns: 1fr; }
}

.sim-stage {
  padding: 14px;
  border-inline-end: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(400px 180px at 50% 0%, rgba(99, 102, 241, 0.12), transparent 70%),
    var(--bg3);
}

[dir="ltr"] .sim-stage { border-inline-end: none; border-right: 1px solid var(--line); }

.sim-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.12));
}

.sim-tile.you { min-height: 110px; }

.sim-tile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, rgba(99,102,241,0.35), rgba(16,185,129,0.25));
  border: 2px solid rgba(255,255,255,0.12);
  margin-bottom: 8px;
  background-size: cover;
  background-position: center;
}

.sim-tile.you .sim-tile-avatar { width: 52px; height: 52px; font-size: 22px; }

.sim-tile-name { font-size: 13px; font-weight: 800; color: var(--text); }
.sim-tile-role { font-size: 11px; color: var(--text3); text-align: center; line-height: 1.4; }

.sim-tile-tag {
  position: absolute;
  bottom: 8px;
  inset-inline-start: 8px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border-radius: 6px;
  padding: 3px 7px;
}

.sim-chat {
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.sim-transcript {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  max-height: 420px;
}

.sim-msg {
  max-width: 92%;
  margin-bottom: 12px;
  animation: simSlideIn 0.35s ease;
}

.sim-msg.client { margin-inline-end: auto; }
.sim-msg.you { margin-inline-start: auto; }

.sim-msg-bubble {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}

.sim-msg.client .sim-msg-bubble {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-inline-start: 3px solid #f59e0b;
}

.sim-msg.you .sim-msg-bubble {
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-inline-start: 3px solid var(--accent, #6366f1);
}

.sim-msg-who {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
  color: var(--text3);
}

.sim-typing {
  display: inline-flex;
  gap: 5px;
  padding: 10px 12px;
}

.sim-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text3);
  animation: simTyping 1s infinite;
}

.sim-typing span:nth-child(2) { animation-delay: 0.15s; }
.sim-typing span:nth-child(3) { animation-delay: 0.3s; }

.sim-composer {
  border-top: 1px solid var(--line);
  padding: 12px;
  background: var(--bg);
}

.sim-composer textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.sim-composer textarea:focus { border-color: var(--accent); }

.sim-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.sim-hint { font-size: 11px; color: var(--text3); }

.sim-send-btn {
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent, #6366f1), #8b5cf6);
}

.sim-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- Report ---- */

.sim-report-wrap {
  animation: simFadeUp 0.5s ease;
}

.sim-report-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(16,185,129,0.08));
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .sim-report-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

.sim-ring {
  width: 150px;
  height: 150px;
  position: relative;
  animation: simScorePop 0.7s ease;
}

.sim-ring svg { transform: rotate(-90deg); }

.sim-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sim-ring-num {
  font-size: 32px;
  font-weight: 900;
  font-family: var(--mono);
  color: var(--text);
}

.sim-ring-sub { font-size: 10px; font-weight: 700; color: var(--text3); }

.sim-hire-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.sim-hire-badge.yes { background: rgba(16,185,129,0.15); color: #34d399; }
.sim-hire-badge.lean_yes { background: rgba(59,130,246,0.15); color: #60a5fa; }
.sim-hire-badge.maybe { background: rgba(245,158,11,0.15); color: #fbbf24; }
.sim-hire-badge.no { background: rgba(239,68,68,0.15); color: #f87171; }

.sim-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

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

.sim-metric {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.sim-metric-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 6px;
}

.sim-metric-track {
  height: 7px;
  background: var(--bg);
  border-radius: 99px;
  overflow: hidden;
}

.sim-metric-fill {
  height: 100%;
  transform-origin: inline-start;
  border-radius: 99px;
  background: linear-gradient(90deg, #6366f1, #10b981);
  animation: simBarFill 0.9s ease forwards;
}

[dir="ltr"] .sim-metric-fill { transform-origin: left; }
[dir="rtl"] .sim-metric-fill { transform-origin: right; }

.sim-feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 700px) {
  .sim-feedback-grid { grid-template-columns: 1fr; }
}

.sim-q-fb {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
}

.sim-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.sim-actions-row .sim-start-btn,
.sim-actions-row .eval-retry-btn {
  flex: 1;
  min-width: 160px;
  text-align: center;
  justify-content: center;
}
