/* ===== 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;
  box-shadow: 0 2px 8px rgba(91,94,244,0.25);
}

/* ===== HERO ===== */
.vl-hero {
  padding: 3.5rem 4rem 2.5rem; text-align: center;
  background:
    radial-gradient(ellipse 55% 50% at 20% 25%, rgba(91,94,244,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 80% 35%, rgba(236,72,153,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 55% 85%, rgba(124,58,237,0.06) 0%, transparent 70%),
    linear-gradient(145deg, #eef0ff 0%, #f5e8ff 35%, #fce7ff 55%, #fff0e8 100%);
  position: relative;
  overflow: hidden;
}
.vl-hero::before {
  content: '';
  position: absolute; top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(91,94,244,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.vl-hero::after {
  content: '';
  position: absolute; bottom: -30px; left: -30px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(236,72,153,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.vl-hero h1 {
  font-size: 2.2rem; font-weight: 900; margin-bottom: 0.5rem;
  position: relative; z-index: 1;
}
.vl-hero p {
  color: var(--muted); font-size: 1.05rem;
  max-width: 550px; margin: 0 auto;
  position: relative; z-index: 1;
}

/* ===== CONTAINER ===== */
.vl-container { max-width: 820px; margin: 0 auto; padding: 2rem 1.5rem; }

/* ===== MODE CARDS ===== */
.vl-modes {
  background:
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(91,94,244,0.03) 0%, transparent 70%),
    white;
}
.mode-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mode-card {
  background: var(--bg); border-radius: 20px; padding: 1.5rem;
  text-align: center; cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2.5px solid transparent;
  position: relative;
  overflow: hidden;
}
.mode-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #5b5ef4, #7c3aed, #ec4899);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(91,94,244,0.12);
}
.mode-card:hover::after { transform: scaleX(1); }
.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-card.active::after { transform: scaleX(1); }
.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:
    radial-gradient(ellipse 50% 50% at 20% 50%, rgba(91,94,244,0.03) 0%, transparent 70%),
    #fafaff;
  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: 20px; padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(91,94,244,0.06);
  border: 1px solid rgba(91,94,244,0.08);
  margin-top: 1rem;
  transition: all 0.3s;
}
.vl-response-area:hover {
  box-shadow: 0 8px 32px rgba(91,94,244,0.1);
}
.vl-response-label {
  font-size: 0.72rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 1px; color: var(--primary); margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #5b5ef4, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vl-response-text { font-size: 1rem; line-height: 1.7; color: var(--text); }

/* ===== PRONUNCIATION ===== */
.vl-target-word {
  background: white; border-radius: 20px; padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(91,94,244,0.06);
  border: 1px solid rgba(91,94,244,0.08);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.vl-target-word::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #5b5ef4, #7c3aed, #ec4899);
}
.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;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vl-hear-btn:hover { transform: translateY(-2px); }
.vl-next-word {
  background: linear-gradient(135deg, var(--secondary), var(--accent)) !important;
  box-shadow: 0 4px 16px rgba(124,58,237,0.3) !important;
}
.vl-next-word:hover {
  box-shadow: 0 8px 24px rgba(124,58,237,0.4) !important;
}

/* Score Ring */
.vl-score-display {
  display: flex; align-items: center; gap: 1.5rem;
  background: white; border-radius: 20px; padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(91,94,244,0.06);
  border: 1px solid rgba(91,94,244,0.08);
  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: 20px; padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(91,94,244,0.06);
  border: 1px solid rgba(91,94,244,0.08);
  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;
  background: linear-gradient(90deg, #5b5ef4, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.vl-oral-text { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.vl-start-exam {
  display: block; margin: 1.5rem auto 0;
  background: linear-gradient(135deg, #5b5ef4, #7c3aed);
  box-shadow: 0 4px 16px rgba(91,94,244,0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vl-start-exam:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(91,94,244,0.4);
}
.vl-oral-answers { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.oral-answer-card {
  background: white; border-radius: 14px; padding: 1rem;
  box-shadow: 0 4px 24px rgba(91,94,244,0.06);
  border-left: 4px solid var(--primary);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.oral-answer-card:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 28px rgba(91,94,244,0.1);
}
.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.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex; align-items: center; justify-content: center;
}
.vl-mic-btn::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(91,94,244,0.15), rgba(236,72,153,0.15));
  z-index: -1;
  transition: inset 0.3s ease;
}
.vl-mic-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(91,94,244,0.5);
}
.vl-mic-btn:hover::before { inset: -8px; }
.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: 18px; padding: 1rem 1.25rem;
  box-shadow: 0 4px 24px rgba(91,94,244,0.06);
  border: 1px solid rgba(91,94,244,0.08);
  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; }
}
