/* ================================================
   CAREER QUEST - COMPLETE DESIGN SYSTEM
   Modern, Vibrant, Teen-Friendly
   ================================================ */

:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --secondary: #22c55e;
  --secondary-light: #4ade80;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --danger: #ef4444;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --cyan: #06b6d4;
  --bg-start: #f0f9ff;
  --bg-mid: #e0e7ff;
  --bg-end: #fce7f3;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --white: #ffffff;
  --card-shadow: 0 10px 40px rgba(79, 70, 229, 0.12);
  --card-shadow-hover: 0 20px 60px rgba(79, 70, 229, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
  min-height: 0;
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ================================================
   CONFETTI
   ================================================ */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -20px;
  animation: confetti-fall 3s ease-out forwards;
  border-radius: 2px;
}

@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ================================================
   MUSIC BUTTON
   ================================================ */
.music-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.music-btn.off {
  background: var(--white);
  color: var(--text-secondary);
}

.music-btn.on {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--white);
  animation: pulse-music 2s ease-in-out infinite;
}

@keyframes pulse-music {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.music-btn:hover {
  transform: scale(1.1);
}

/* ================================================
   BACKGROUND
   ================================================ */
.game-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  animation: gradientPulse 15s ease-in-out infinite;
}

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

.floating-shapes { position: absolute; width: 100%; height: 100%; }

.shape {
  position: absolute;
  font-size: 2rem;
  opacity: 0.12;
  filter: blur(1px);
  animation: float 25s ease-in-out infinite;
}

.s1 { top: 8%; left: 5%; animation-delay: 0s; }
.s2 { top: 15%; right: 10%; animation-delay: -4s; font-size: 2.5rem; }
.s3 { top: 45%; left: 3%; animation-delay: -8s; }
.s4 { top: 65%; right: 8%; animation-delay: -12s; font-size: 3rem; }
.s5 { top: 35%; left: 85%; animation-delay: -16s; }
.s6 { top: 80%; left: 25%; animation-delay: -20s; font-size: 2.2rem; }
.s7 { top: 5%; left: 50%; animation-delay: -3s; font-size: 1.8rem; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -30px) rotate(10deg); }
  50% { transform: translate(-10px, -50px) rotate(-5deg); }
  75% { transform: translate(-30px, -20px) rotate(5deg); }
}

/* ================================================
   LAYOUT
   ================================================ */
.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page { animation: pageIn 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

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

/* ================================================
   LANDING PAGE
   ================================================ */
.hero-section { text-align: center; margin-bottom: 30px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(139, 92, 246, 0.1));
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.hero-icon {
  font-size: 5rem;
  animation: heroBounce 2s ease-in-out infinite;
  display: block;
  margin-bottom: 15px;
}

@keyframes heroBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.game-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
  margin-bottom: 10px;
}

.game-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: var(--white);
  padding: 15px 25px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  min-width: 100px;
}

.stat-icon { font-size: 1.5rem; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.75rem; color: var(--text-light); font-weight: 500; }

/* ================================================
   START CARD
   ================================================ */
.start-card {
  position: relative;
  background: var(--white);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.card-glow {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
  animation: glowRotate 10s linear infinite;
}

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

.card-content { position: relative; z-index: 1; }

.category-preview {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  min-width: 70px;
}

.cat-item span:first-child { font-size: 1.5rem; }
.cat-item span:last-child { font-size: 0.7rem; font-weight: 600; color: var(--text-secondary); }

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover { box-shadow: 0 12px 35px rgba(79, 70, 229, 0.45); }

.btn-secondary {
  background: var(--white);
  color: var(--text-primary);
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-download {
  background: linear-gradient(135deg, #059669, #10b981);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.35);
}
.btn-download:hover {
  box-shadow: 0 12px 35px rgba(5, 150, 105, 0.45);
  transform: translateY(-3px);
}

.btn-google {
  width: 100%;
  background: var(--white);
  color: var(--text-primary);
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-google:hover { border-color: var(--primary); transform: translateY(-2px); }

.btn-xl { padding: 18px 36px; font-size: 1.1rem; width: 100%; }

.btn-glow { animation: buttonPulse 3s ease-in-out infinite; }

@keyframes buttonPulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35); }
  50% { box-shadow: 0 8px 50px rgba(79, 70, 229, 0.5), 0 0 80px rgba(79, 70, 229, 0.2); }
}

.btn-icon { font-size: 1.3rem; }

/* ================================================
   FORM CARD
   ================================================ */
.form-card {
  background: var(--white);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(79, 70, 229, 0.1);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 25px;
  padding: 8px 0;
  transition: color 0.2s;
}

.back-btn:hover { color: var(--primary); }

.form-header { text-align: center; margin-bottom: 30px; }
.form-icon { font-size: 3rem; display: block; margin-bottom: 15px; }
.form-header h2 { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }
.form-header p { color: var(--text-secondary); }

.divider-text {
  text-align: center;
  margin: 25px 0;
  color: var(--text-light);
  font-size: 0.85rem;
  position: relative;
}

.divider-text::before, .divider-text::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: #e2e8f0;
}

.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

.input-group { display: flex; flex-direction: column; gap: 18px; margin-bottom: 25px; }
.input-wrapper { text-align: left; }
.input-wrapper label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.input-wrapper input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
  background: var(--white);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* ================================================
   QUIZ PAGE
   ================================================ */
.quiz-container { animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1); }

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

.quiz-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.quiz-progress-info { display: flex; align-items: center; gap: 15px; }

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(139, 92, 246, 0.1));
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.section-indicator { font-size: 0.85rem; color: var(--text-light); font-weight: 500; }

.xp-display {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 700;
  color: var(--white);
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.progress-container { margin-bottom: 25px; }
.progress-info { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px; font-weight: 500; }

.progress-bar {
  height: 12px;
  background: #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--purple) 50%, var(--secondary) 100%);
  border-radius: 12px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.5);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.question-card {
  background: var(--white);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  border: 1px solid rgba(79, 70, 229, 0.08);
}

.question-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.question-number { font-size: 0.85rem; font-weight: 700; color: var(--primary); background: rgba(79, 70, 229, 0.1); padding: 6px 12px; border-radius: 8px; }
.question-category-tag { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); background: #f1f5f9; padding: 6px 12px; border-radius: 8px; }
.question-text { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); line-height: 1.5; margin-bottom: 12px; }
.question-description { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; font-style: italic; padding: 12px 16px; background: #f8fafc; border-radius: 10px; border-left: 3px solid var(--primary); }

.answers-container { display: flex; flex-direction: column; gap: 12px; }

.answer-btn {
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.answer-btn:hover {
  border-color: var(--primary);
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.12);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.03), rgba(139, 92, 246, 0.03));
}

.answer-btn.selected { border-color: var(--secondary); background: #d1fae5; }
.answer-icon { font-size: 1.6rem; min-width: 45px; text-align: center; }
.answer-text { flex: 1; line-height: 1.5; }

/* ================================================
   RESULT PAGE
   ================================================ */
.result-container { animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1); }

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

.result-header { text-align: center; margin-bottom: 25px; }
.celebration { margin-bottom: 15px; }

.confetti-icon {
  font-size: 5rem;
  animation: celebrateBounce 1s ease-in-out infinite;
  display: inline-block;
}

@keyframes celebrateBounce {
  0%, 100% { transform: scale(1) rotate(-5deg); }
  25% { transform: scale(1.1) rotate(5deg); }
  50% { transform: scale(1.15) rotate(-3deg); }
  75% { transform: scale(1.1) rotate(3deg); }
}

.result-greeting { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); margin-bottom: 5px; }
.result-tagline { color: var(--text-secondary); font-size: 1.05rem; }

.result-main-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  border-radius: 28px;
  padding: 35px;
  text-align: center;
  color: var(--white);
  margin-bottom: 25px;
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.35);
  position: relative;
  overflow: hidden;
}

.result-main-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: shimmerCard 5s linear infinite;
}

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

.result-badge { font-size: 4rem; margin-bottom: 15px; position: relative; z-index: 1; }
.result-main-card h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; color: var(--white); position: relative; z-index: 1; }
.result-main-card p { font-size: 1rem; line-height: 1.7; opacity: 0.95; position: relative; z-index: 1; }
.result-tags { display: flex; justify-content: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; position: relative; z-index: 1; }
.result-tag { background: rgba(255, 255, 255, 0.2); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; backdrop-filter: blur(10px); }

/* XP & Badges Row */
.xp-badges-row {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.xp-earned {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  padding: 12px 24px;
  border-radius: 30px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.xp-icon-large { font-size: 1.5rem; }

.result-section {
  background: var(--white);
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(79, 70, 229, 0.06);
}

.section-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 22px; font-family: 'Kudryashev Display Sans', Georgia, serif; }
.section-title span { font-size: 1.4rem; }
.section-hint { font-size: 0.85rem; color: var(--text-secondary); margin-top: -15px; margin-bottom: 15px; }

/* Skill Bars */
.skill-bars { display: flex; flex-direction: column; gap: 18px; }

.skill-bar-item { animation: slideInRight 0.5s ease-out backwards; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.skill-bar-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.skill-bar-icon { font-size: 1.3rem; }
.skill-bar-name { flex: 1; font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.skill-bar-score { font-weight: 800; font-size: 0.95rem; }
.skill-bar-track { height: 14px; background: #e2e8f0; border-radius: 14px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05); }
.skill-bar-fill { height: 100%; border-radius: 14px; transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }

/* Career Matches */
.career-matches { display: flex; flex-direction: column; gap: 12px; }

.career-match-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.career-match-card:hover { border-color: var(--primary); transform: translateX(5px); box-shadow: 0 8px 25px rgba(79, 70, 229, 0.1); }
.career-match-card.primary { background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(139, 92, 246, 0.05)); border-color: rgba(79, 70, 229, 0.2); }
.career-icon { font-size: 2rem; min-width: 50px; text-align: center; }
.career-info { flex: 1; }
.career-info h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.career-info p { font-size: 0.85rem; color: var(--text-secondary); }
.career-match-percent { background: linear-gradient(135deg, var(--secondary), var(--secondary-light)); color: var(--white); padding: 8px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; }

/* Studies Grid */
.studies-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }

.study-card {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid var(--secondary);
  border-radius: 18px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.study-card:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(34, 197, 94, 0.25); }

.study-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.study-card-icon { font-size: 1.8rem; }
.study-card-title { font-size: 1.05rem; font-weight: 700; color: #15803d; }
.study-card-desc { font-size: 0.85rem; color: #166534; line-height: 1.5; margin-bottom: 12px; }
.study-card-unis { display: flex; flex-wrap: wrap; gap: 8px; }
.study-card-btn { background: var(--white); color: var(--secondary); border: 1px solid var(--secondary); padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.study-card-btn:hover { background: var(--secondary); color: var(--white); }

/* Career Path */
.path-section { background: linear-gradient(135deg, #f8fafc, #f1f5f9); }

.path-timeline { display: flex; flex-direction: column; gap: 15px; }

.path-step { display: flex; align-items: center; gap: 15px; }

.path-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.path-content { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.path-label { font-weight: 600; color: var(--text-primary); }
.path-arrow { color: var(--primary); font-weight: 700; }

/* Next Steps */
.next-steps-section { background: linear-gradient(135deg, #fef3c7, #fde68a); border-color: #f59e0b; }

.steps-list { display: flex; flex-direction: column; gap: 12px; }

.step-item { display: flex; align-items: flex-start; gap: 12px; }
.step-icon { font-size: 1.2rem; }
.step-text { font-weight: 500; color: var(--text-primary); line-height: 1.5; }

/* Comparison */
.comparison-section { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); border-color: var(--primary-light); }

.comparison-item {
  background: var(--white);
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 10px;
  border-left: 4px solid var(--primary);
}

.comparison-text { font-weight: 500; color: var(--text-primary); }

/* Badges */
.badges-section { background: linear-gradient(135deg, #fef3c7, #fde68a); border-color: #f59e0b; }

.badges-row { display: flex; gap: 15px; flex-wrap: wrap; }

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 12px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.badge-item span:first-child { font-size: 1.5rem; }
.badge-item span:last-child { font-weight: 700; font-size: 0.9rem; color: #92400e; }

/* AI Section */
.ai-section { text-align: center; margin: 25px 0; }

.btn-ai {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: var(--white);
  padding: 18px 40px;
  font-size: 1.1rem;
  box-shadow: 0 8px 25px rgba(30, 41, 59, 0.3);
}

.btn-ai:hover { box-shadow: 0 12px 35px rgba(30, 41, 59, 0.4); transform: translateY(-3px); }

.ai-tag {
  background: var(--accent);
  color: #1e293b;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  margin-left: 5px;
}

/* Result Actions */
.result-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }

/* ================================================
   MODALS
   ================================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background: var(--white);
  border-radius: 28px;
  padding: 35px;
  max-width: 550px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { background: #e2e8f0; color: var(--text-primary); }
.modal-subtitle { color: var(--text-secondary); margin-bottom: 20px; font-size: 0.95rem; }
.modal-content h2 { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; padding-right: 50px; }

/* AI Modal */
.ai-modal-content { max-width: 680px; }

.ai-loading { text-align: center; padding: 50px 0; }

.ai-brain-container { position: relative; display: inline-block; margin-bottom: 30px; }

.brain-icon { font-size: 5rem; animation: brainPulse 1.5s ease-in-out infinite; position: relative; z-index: 1; }

@keyframes brainPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  animation: pulseRing 1.5s ease-out infinite;
}

@keyframes pulseRing { 0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }

.ai-loading h3 { font-size: 1.3rem; color: var(--text-primary); margin-bottom: 8px; }
.ai-loading p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; }

.thinking-dots { display: flex; justify-content: center; gap: 8px; }
.thinking-dots span { width: 10px; height: 10px; background: var(--primary); border-radius: 50%; 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.5; } 40% { transform: scale(1); opacity: 1; } }

.ai-results { text-align: left; }
.ai-header { text-align: center; margin-bottom: 25px; }
.ai-badge-icon { font-size: 3rem; display: block; margin-bottom: 10px; }
.ai-header h3 { font-size: 1.4rem; color: var(--text-primary); }

.ai-summary-card { background: linear-gradient(135deg, #f8fafc, #f1f5f9); border-radius: 18px; padding: 22px; margin-bottom: 20px; border-left: 4px solid var(--primary); }
.ai-summary-card h4 { font-size: 0.9rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.ai-summary-card p { font-size: 1.05rem; line-height: 1.7; color: var(--text-primary); white-space: pre-line; }

/* Enhanced AI sections */
.ai-archetype-card { background: linear-gradient(135deg, #fef3c7, #fde68a); border-radius: 18px; padding: 20px; margin-bottom: 20px; border: 1px solid #f59e0b; }
.ai-archetype-card h4 { font-size: 0.9rem; color: #92400e; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
#ai-archetype { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.archetype-icon { font-size: 2rem; }
.archetype-name { font-size: 1.2rem; font-weight: 700; color: #92400e; }
.archetype-desc { font-size: 0.9rem; color: #a16207; width: 100%; margin-top: 4px; }

.ai-strengths, .ai-hidden-potential, .ai-challenges, .ai-work-env,
.ai-careers-section, .ai-studies, .ai-action-plan, .ai-final-message {
  margin-bottom: 20px;
}
.ai-strengths h4, .ai-hidden-potential h4, .ai-challenges h4, .ai-work-env h4,
.ai-careers-section h4, .ai-studies h4, .ai-action-plan h4, .ai-final-message h4 {
  font-size: 1rem; color: var(--text-primary); margin-bottom: 12px;
}
.ai-strengths ul { list-style: none; padding: 0; }
.ai-strengths li { padding: 10px 15px; background: #f0fdf4; border-radius: 10px; margin-bottom: 8px; color: #166534; font-weight: 500; }
.ai-hidden-potential p { padding: 16px; background: linear-gradient(135deg, #e0e7ff, #c7d2fe); border-radius: 12px; color: #3730a3; line-height: 1.6; font-weight: 500; }
.ai-challenges ul { list-style: none; padding: 0; }
.ai-challenges li { padding: 10px 15px; background: #fef2f2; border-radius: 10px; margin-bottom: 8px; color: #991b1b; font-weight: 500; }
.ai-work-env p { padding: 16px; background: #f8fafc; border-radius: 12px; color: var(--text-primary); line-height: 1.6; border-left: 3px solid var(--cyan); }

.ai-careers-list { display: flex; flex-direction: column; }

.recommendations-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.recommendation-tag { display: inline-block; padding: 8px 16px; background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #3730a3; border-radius: 20px; font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(79,70,229,0.15); }

.ai-action-plan .action-step { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; padding: 12px 14px; background: #fef3c7; border-radius: 12px; }
.action-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.action-step-text { font-weight: 500; color: #92400e; line-height: 1.5; font-size: 0.9rem; }

.ai-final-message p { padding: 20px; background: linear-gradient(135deg, var(--primary), var(--purple)); border-radius: 16px; color: #fff; line-height: 1.7; font-size: 1.05rem; font-weight: 500; text-align: center; }

/* Universities List */
.universities-list { display: flex; flex-direction: column; gap: 12px; }

.university-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s;
  font-weight: 500;
}

.university-btn:hover { background: #f0fdf4; border-color: var(--secondary); color: #15803d; }

/* ================================================
   TOAST
   ================================================ */
#toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 500;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-20px); } }

.toast-success { background: linear-gradient(135deg, var(--secondary), var(--secondary-light)); color: var(--white); }
.toast-error { background: linear-gradient(135deg, var(--danger), #f87171); color: var(--white); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 600px) {
  .game-title { font-size: 2.5rem; }
  .stats-row { gap: 12px; }
  .stat-item { padding: 12px 18px; min-width: 85px; }
  .category-preview { gap: 8px; }
  .cat-item { padding: 10px 12px; }
  .start-card, .form-card { padding: 28px 22px; }
  .question-card { padding: 22px; }
  .question-text { font-size: 1.1rem; }
  .result-greeting { font-size: 1.5rem; }
  .result-main-card { padding: 28px; }
  .result-section { padding: 22px; }
  .studies-grid { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column; }
  .result-actions .btn { width: 100%; }
  .xp-display { padding: 6px 12px; font-size: 0.8rem; }
  .music-btn { width: 45px; height: 45px; font-size: 1.3rem; }
}

@media (max-width: 400px) {
  .container { padding: 15px; }
  .game-title { font-size: 2rem; }
  .hero-icon { font-size: 4rem; }
}
