/* ===== NAV XP ===== */
.nav-xp {
  background: linear-gradient(135deg, #5b5ef4, #7209b7);
  color: white; font-weight: 800; font-size: 0.8rem;
  padding: 0.3rem 0.8rem; border-radius: 50px;
}

/* ===== HERO ===== */
.vl-hero {
  padding: 3rem 4rem 2rem; text-align: center;
  background: linear-gradient(145deg, #eef0ff 0%, #fce7ff 50%, #fff0e8 100%);
}
.vl-hero h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 0.5rem; }
.vl-hero p { color: var(--muted); font-size: 1.05rem; max-width: 550px; margin: 0 auto; }

/* ===== CONTAINER ===== */
.vl-container { max-width: 820px; margin: 0 auto; padding: 2rem 1.5rem; }

/* ===== MODE CARDS ===== */
.vl-modes { background: white; }
.mode-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mode-card {
  background: var(--bg); border-radius: var(--radius-lg); padding: 1.5rem;
  text-align: center; cursor: pointer; transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
  border: 2.5px solid transparent;
}
.mode-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mode-card.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(91,94,244,0.06), rgba(114,9,183,0.06));
  box-shadow: 0 8px 32px rgba(91,94,244,0.15);
}
.mode-icon { font-size: 2.2rem; display: block; margin-bottom: 0.6rem; }
.mode-card h3 { font-size: 1rem; font-weight: 900; margin-bottom: 0.3rem; }
.mode-card p { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* ===== PANELS ===== */
.vl-interaction { background: var(--bg); min-height: 320px; }
.vl-panel { animation: fadeSlideIn 0.3s ease; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.vl-instruction { font-size: 1.05rem; font-weight: 700; color: var(--muted); text-align: center; margin-bottom: 1rem; }

/* ===== VOICE Q&A ===== */
.vl-response-area {
  background: white; border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow); margin-top: 1rem;
}
.vl-response-label { font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 0.5rem; }
.vl-response-text { font-size: 1rem; line-height: 1.7; color: var(--text); }

/* ===== PRONUNCIATION ===== */
.vl-target-word {
  background: white; border-radius: var(--radius-lg); padding: 2rem;
  text-align: center; box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.vl-target-label { font-size: 0.78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.vl-target-text {
  font-size: 2.6rem; font-weight: 900; color: var(--primary);
  margin-bottom: 1rem; line-height: 1.2;
}
.vl-hear-btn { margin-right: 0.5rem; }
.vl-next-word { background: linear-gradient(135deg, var(--secondary), var(--accent)) !important; }

/* Score Ring */
.vl-score-display {
  display: flex; align-items: center; gap: 1.5rem;
  background: white; border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow); margin-top: 1rem;
}
.vl-score-ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.vl-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #eeeeff; stroke-width: 10; }
.ring-fill {
  fill: none; stroke: var(--primary); stroke-width: 10;
  stroke-linecap: round; stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7; transition: stroke-dashoffset 1s ease;
}
.ring-fill.good { stroke: var(--green); }
.ring-fill.ok { stroke: var(--yellow); }
.ring-fill.poor { stroke: #f87171; }
.ring-text {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 900; color: var(--text);
}
.vl-score-detail { flex: 1; }
.vl-score-detail .vl-detected-label { font-size: 0.78rem; font-weight: 800; color: var(--muted); margin-bottom: 0.3rem; }
.vl-score-detail .vl-detected-text { font-size: 1.1rem; font-weight: 700; color: var(--text); }

/* ===== ORAL EXAM ===== */
.vl-oral-q {
  background: white; border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow); margin-top: 1rem; text-align: center;
}
.vl-oral-label { font-size: 0.78rem; font-weight: 900; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem; }
.vl-oral-text { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.vl-start-exam { display: block; margin: 1.5rem auto 0; }
.vl-oral-answers { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.oral-answer-card {
  background: white; border-radius: var(--radius); padding: 1rem;
  box-shadow: var(--shadow); border-left: 4px solid var(--primary);
}
.oa-q { font-size: 0.82rem; font-weight: 800; color: var(--muted); margin-bottom: 0.2rem; }
.oa-a { font-size: 0.92rem; font-weight: 700; }
.vl-oral-result { text-align: center; margin-top: 1.5rem; }
.vl-oral-result h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 0.75rem; }
.vl-oral-final { font-size: 1rem; color: var(--muted); }

/* ===== MIC BUTTON ===== */
.vl-mic-wrap { display: flex; flex-direction: column; align-items: center; margin: 2rem 0 1rem; }
.vl-mic-btn {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none; cursor: pointer; position: relative;
  box-shadow: 0 8px 32px rgba(91,94,244,0.4);
  transition: all 0.25s; display: flex;
  align-items: center; justify-content: center;
}
.vl-mic-btn:hover { transform: scale(1.08); box-shadow: 0 12px 40px rgba(91,94,244,0.5); }
.vl-mic-btn.recording {
  background: linear-gradient(135deg, var(--secondary), #dc2626);
  box-shadow: 0 8px 32px rgba(247,37,133,0.5);
  animation: micPulse 1.2s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(247,37,133,0.5); }
  50% { box-shadow: 0 8px 48px rgba(247,37,133,0.7), 0 0 0 14px rgba(247,37,133,0.1); }
}
.mic-icon { font-size: 2.2rem; filter: brightness(10); position: relative; z-index: 2; }
.mic-waves {
  position: absolute; inset: -12px; border-radius: 50%;
  display: none;
}
.vl-mic-btn.recording .mic-waves { display: block; }
.mic-waves span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(247,37,133,0.4);
  animation: waveExpand 1.5s ease-out infinite;
}
.mic-waves span:nth-child(2) { animation-delay: 0.4s; }
.mic-waves span:nth-child(3) { animation-delay: 0.8s; }
@keyframes waveExpand {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}
.vl-mic-status {
  margin-top: 0.75rem; font-weight: 800; font-size: 0.88rem;
  color: var(--muted); text-align: center;
}
.vl-mic-status.recording { color: var(--secondary); }

/* ===== DETECTED TEXT ===== */
.vl-detected {
  background: white; border-radius: var(--radius); padding: 1rem 1.25rem;
  box-shadow: var(--shadow); margin-top: 1rem; text-align: center;
}
.vl-detected-label { font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 0.3rem; }
.vl-detected-text { font-size: 1.05rem; font-weight: 700; color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .vl-hero { padding: 2rem 1.5rem 1.5rem; }
  .vl-hero h1 { font-size: 1.6rem; }
  .mode-cards { grid-template-columns: 1fr; }
  .vl-container { padding: 1.5rem 1rem; }
  .vl-target-text { font-size: 1.8rem; }
  .vl-score-display { flex-direction: column; text-align: center; }
  .vl-mic-btn { width: 76px; height: 76px; }
}
