/* ================================
   QUEST4YOU - Main Stylesheet
   Paleta Excitante & Elegante - Color Emotion Guide
   Paix�o � Desejo � Mist�rio � Conex�o
   ================================ */

:root {
  /* Cores Principais - Paleta Excitante */
  --primary: #C41E3A;          /* Vermelho Cardinal - paix�o, desejo */
  --primary-dark: #9B1B30;     /* Vermelho escuro - profundo */
  --primary-light: #E63950;    /* Vermelho coral - energia */
  --secondary: #2D1B4E;        /* Roxo escuro - mist�rio, sedu��o */
  --secondary-light: #4A3270;  /* Roxo m�dio */
  --accent-gold: #D4AF37;      /* Dourado rico - premium */
  --accent-copper: #E8833A;    /* Coral/Laranja - energia quente */
  --accent-teal: #1A6B6B;      /* Teal escuro - equil�brio */
  --accent-pink: #FF6B8A;      /* Rosa quente - rom�ntico */
  --accent-rainbow: linear-gradient(90deg, #C41E3A, #E8833A, #D4AF37, #1A6B6B);
  
  /* Quiz Colors - vibrantes mas elegantes */
  --quiz-vanilla: #E63950;
  --quiz-orientation: #FF6B8A;
  --quiz-cuckold: #4A3270;
  --quiz-swing: #E8833A;
  --quiz-kinks: #C41E3A;
  
  /* Status */
  --success: #2E8B57;
  --warning: #D4AF37;
  --danger: #C41E3A;
  
  /* Neutrals - tons quentes e sofisticados */
  --bg-light: #FDFBF9;
  --bg-warm: #FBF7F4;
  --bg-card: #ffffff;
  --bg-dark: #1A1218;          /* Preto quente para contraste */
  --text-primary: #1A1218;
  --text-secondary: #4A4045;
  --text-muted: #7A7075;
  --border: #E8E0DC;
  
  /* Gradients - mais din�micos e excitantes */
  --gradient-primary: linear-gradient(135deg, #C41E3A 0%, #9B1B30 100%);
  --gradient-secondary: linear-gradient(135deg, #2D1B4E 0%, #4A3270 100%);
  --gradient-warm: linear-gradient(135deg, #E8833A 0%, #C41E3A 100%);
  --gradient-elegant: linear-gradient(135deg, #1A1218 0%, #2D1B4E 50%, #C41E3A 100%);
  --gradient-hero: linear-gradient(135deg, #1A1218 0%, #2D1B4E 35%, #4A3270 70%, #C41E3A 100%);
  --gradient-rainbow: linear-gradient(135deg, #C41E3A, #E8833A, #D4AF37, #1A6B6B);
  
  /* Shadows - mais pronunciadas */
  --shadow-sm: 0 2px 4px rgba(26, 18, 24, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 18, 24, 0.10);
  --shadow-lg: 0 10px 40px rgba(26, 18, 24, 0.15);
  --shadow-xl: 0 25px 60px rgba(26, 18, 24, 0.20);
  --shadow-primary: 0 4px 25px rgba(196, 30, 58, 0.35);
  --shadow-glow: 0 0 30px rgba(196, 30, 58, 0.25);
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 50%;
}

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

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: 
    /* Padr�es sutis - tons neutros quentes */
    radial-gradient(circle at 10% 20%, rgba(139, 74, 94, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(92, 75, 107, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 50% 5%, rgba(196, 169, 98, 0.02) 0%, transparent 30%),
    /* Fundo base mais limpo */
    linear-gradient(180deg, #ffffff 0%, #FAFAFA 100%);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  font-size: 16px;
}

/* ================================
   EXPERIMENTAL VERSION BANNER
   ================================ */
.experimental-banner {
  background: linear-gradient(135deg, #1A1218, #2D1B4E);
  color: white;
  padding: 10px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(45, 27, 78, 0.3);
  position: relative;
  z-index: 101;
}

.experimental-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.experimental-icon {
  font-size: 1.4rem;
  animation: pulse 2s ease-in-out infinite;
}

.experimental-text {
  font-size: 0.95rem;
  line-height: 1.4;
}

.experimental-text strong {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

@media (max-width: 768px) {
  .experimental-banner {
    padding: 10px 15px;
  }
  
  .experimental-text {
    font-size: 0.85rem;
  }
  
  .experimental-icon {
    font-size: 1.2rem;
  }
}

/* ================================
   HEADER
   ================================ */
.header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C41E3A, #E8833A, #D4AF37, #1A6B6B);
  opacity: 1;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 50px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ================================
   HERO
   ================================ */
.hero {
  background: var(--gradient-hero);
  padding: var(--spacing-2xl) var(--spacing-lg);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Padr�o de pontos decorativos - sofisticado */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(196, 30, 58, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(232, 131, 58, 0.1) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 30px 30px;
  opacity: 1;
  pointer-events: none;
}

/* Efeito de brilho sutil nas bordas */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(196, 30, 58, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

/* Logo destaca-se no fundo escuro */
.hero .hero-logo,
.hero img,
.hero-content img {
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.5));
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: var(--spacing-xl);
}

.promo-banner {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  backdrop-filter: blur(10px);
  text-align: left;
}

.promo-banner.free-banner {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.30) 0%, rgba(40, 167, 69, 0.30) 100%);
  border: 1px solid rgba(76, 175, 80, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); box-shadow: 0 0 20px rgba(76, 175, 80, 0.3); }
}

.promo-icon {
  font-size: 2rem;
}

.user-input-section {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  border: 1px solid rgba(255,255,255,0.2);
}

.input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.input-group label {
  font-weight: 500;
}

.name-input {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.15);
  color: white;
  font-size: 1rem;
  min-width: 250px;
  transition: all 0.3s ease;
}

.name-input::placeholder {
  color: rgba(255,255,255,0.7);
}

.name-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.2);
}

.action-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================
   BUTTONS
   ================================ */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E63950, #C41E3A);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.45);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-3px);
}

.btn-accent {
  background: linear-gradient(135deg, #E8833A, #D4AF37);
  color: #1A1218;
  box-shadow: 0 4px 20px rgba(232, 131, 58, 0.35);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #D4B972, #C88343);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(196, 169, 98, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #5D8A66, #6B9A76);
  color: white;
  box-shadow: 0 4px 15px rgba(93, 138, 102, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #6B9A76, #7BAA86);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(93, 138, 102, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid #8B4A5E;
  color: #8B4A5E;
}

.btn-outline:hover {
  background: #8B4A5E;
  color: white;
}

/* Next Quiz Suggestion */
.result-next-quiz {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light, #eee);
  text-align: center;
}

.result-next-quiz .btn {
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
}

/* Result Breakdown - shared heading style (replaces inline color: #333) */
.result-breakdown-heading {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

/* Result tag list */
.result-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.result-tag-badge {
  display: inline-block;
  color: var(--primary, #8B4A5E);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Result match section (compatible roles) */
.result-match-section {
  margin-top: 20px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.1), rgba(194, 24, 91, 0.1));
  border-radius: 12px;
}

.result-match-tag {
  display: inline-block;
  background: var(--bg-card, white);
  padding: 6px 12px;
  border-radius: 20px;
  margin: 4px;
  font-size: 14px;
  color: var(--text-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ================================
   QUIZZES SECTION
   ================================ */
.quizzes-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-lg);
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

.quizzes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

/* Quiz Group Title - spans full grid row */
.quiz-group-title {
  grid-column: 1 / -1;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.5rem 0;
  margin-top: 1rem;
  margin-bottom: -0.25rem;
  border-bottom: 2px solid var(--primary);
  letter-spacing: 0.02em;
}

.quiz-group-title:first-child {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .quizzes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .quizzes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ================================
   QUIZ CARD
   ================================ */
.quiz-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.quiz-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-rainbow);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quiz-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(139, 74, 94, 0.15);
}

.quiz-card:hover::before {
  opacity: 1;
}

.quiz-card-header {
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Padr�o de pontos no header do card */
.quiz-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 30px 30px, 15px 15px;
  opacity: 0.8;
}

.quiz-card-icon {
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
  margin-bottom: var(--spacing-xs);
}

.quiz-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.quiz-card-body {
  padding: var(--spacing-md);
}

.quiz-card-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: var(--spacing-sm);
  min-height: 50px;
  line-height: 1.4;
}

.quiz-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border);
}

.quiz-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.quiz-badge {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.quiz-badge.free {
  background: linear-gradient(135deg, var(--success) 0%, #38a169 100%);
  color: white;
}

/* Quiz Card - Completed State */
.quiz-card.completed {
  position: relative;
}

.quiz-completed-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* Quiz Progress Bar */
.quiz-card-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.quiz-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.quiz-progress-score {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 45px;
  text-align: right;
}

/* Quiz Card Actions */
.quiz-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.quiz-card-actions .btn {
  flex: 1;
  font-size: 0.75rem;
  padding: 6px 8px;
}

/* Full width button for View Results */
.quiz-card-actions .btn-secondary {
  flex: none;
  width: 100%;
}

.quiz-start-btn {
  margin-top: 12px;
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* Legacy - manter compatibilidade */
.quiz-credits {
  background: var(--accent);
  color: white;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.quiz-credits.free {
  background: var(--success);
}

/* Quiz specific colors */
.quiz-card[data-quiz="vanilla"] .quiz-card-header { background: var(--quiz-vanilla); }
.quiz-card[data-quiz="orientation"] .quiz-card-header { background: var(--quiz-orientation); }
.quiz-card[data-quiz="cuckold"] .quiz-card-header { background: var(--quiz-cuckold); }
.quiz-card[data-quiz="swing"] .quiz-card-header { background: var(--quiz-swing); }
.quiz-card[data-quiz="kinks"] .quiz-card-header { background: var(--quiz-kinks); }

/* ================================
   FOOTER
   ================================ */
.footer {
  background: var(--text-primary);
  color: white;
  padding: var(--spacing-xl) var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

/* ================================
   LANGUAGE SELECTOR (i18n)
   ================================ */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 1rem;
  padding: 3px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  opacity: 0.55;
  line-height: 1;
}

.lang-option:hover {
  opacity: 0.85;
  background: rgba(0, 0, 0, 0.06);
  transform: scale(1.1);
}

.lang-option.active {
  opacity: 1;
  border-color: var(--primary);
  background: rgba(196, 30, 58, 0.08);
  transform: scale(1.1);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    position: relative;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card, white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
  }
  
  .nav.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
  }
  
  .hero-title-main {
    font-size: 2.5rem !important;
  }
  
  .hero-logo-large {
    max-width: 150px !important;
  }
  
  .smart-match-promo {
    flex-direction: column;
    text-align: center;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* ================================
   HERO LARGE - Redesign
   ================================ */
.hero-large {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--spacing-2xl);
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.4) 0%, transparent 70%);
  top: 5%;
  left: 5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 131, 58, 0.35) 0%, transparent 70%);
  top: 50%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
  bottom: 15%;
  left: 15%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-logo-container {
  margin-bottom: var(--spacing-lg);
}

.hero-logo-large {
  max-width: 220px;
  height: auto;
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4)) brightness(1.05);
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
}

.hero-title-main {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  letter-spacing: -2px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle-main {
  font-size: 1.3rem;
  opacity: 0.95;
  margin-bottom: var(--spacing-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Smart Match Promo Card */
.smart-match-promo {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.smart-match-promo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C41E3A, #E8833A, #D4AF37);
}

.smart-match-promo:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), var(--shadow-glow);
  border-color: rgba(196, 30, 58, 0.3);
}

.promo-icon-large {
  font-size: 4rem;
  flex-shrink: 0;
}

.promo-content {
  text-align: left;
  flex: 1;
}

.promo-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.promo-content p {
  margin-bottom: var(--spacing-xs);
}

.promo-content small {
  opacity: 0.85;
  font-size: 0.9rem;
}

/* Button Glow Effect */
.btn-glow {
  background: linear-gradient(135deg, #C41E3A, #E63950);
  color: white;
  padding: 16px 32px;
  font-weight: 700;
  animation: glow 2.5s ease-in-out infinite;
  flex-shrink: 0;
  border: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(196, 30, 58, 0.4); }
  50% { box-shadow: 0 0 40px rgba(196, 30, 58, 0.6), 0 0 60px rgba(232, 131, 58, 0.3); }
}

.btn-glow:hover {
  transform: translateY(-4px) scale(1.05);
  background: linear-gradient(135deg, #E63950, #C41E3A);
}

/* Hero CTA */
.hero-cta {
  margin-top: var(--spacing-xl);
}

.btn-xl {
  padding: 20px 48px;
  font-size: 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero-cta-note {
  margin-top: var(--spacing-md);
  opacity: 0.85;
  font-size: 0.95rem;
}

/* Hero Welcome (for logged users) */
.hero-welcome {
  margin-top: var(--spacing-xl);
  animation: fadeIn 0.5s ease;
}

.welcome-text {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.welcome-text span {
  background: rgba(196, 30, 58, 0.3);
  padding: 0.2rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(196, 30, 58, 0.4);
}

.welcome-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Button variants for hero welcome */
.btn-white {
  background: var(--bg-card, white);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background: #FAFAFA;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 12px;
}

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

/* Nav Login Button */
.btn-nav-login {
  background: var(--gradient-primary);
  color: white !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}

.btn-nav-login:hover {
  transform: scale(1.05);
}

.btn-nav-login::after {
  display: none;
}

/* ================================
   HOW IT WORKS SECTION
   ================================ */
.how-it-works {
  background: linear-gradient(180deg, rgba(229, 57, 53, 0.05) 0%, transparent 100%);
  padding: var(--spacing-2xl) var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.step-card {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-primary);
}

.step-icon {
  font-size: 3rem;
  margin: var(--spacing-md) 0;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.step-card p {
  color: var(--text-secondary);
}

/* ================================
   LOGIN NOTICE
   ================================ */
.login-notice {
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.1), rgba(194, 24, 91, 0.1));
  border: 2px dashed var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  margin-top: var(--spacing-xl);
}

.notice-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.login-notice p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
}

/* ================================
   MODAL
   ================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
}

.modal-content h2 {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.modal-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

.modal-actions {
  margin-top: var(--spacing-lg);
}

.btn-full {
  width: 100%;
}

/* ================================
   FOOTER REDESIGN
   ================================ */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: var(--spacing-2xl) var(--spacing-lg);
  margin-top: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.footer-brand {
  text-align: center;
}

.footer-logo {
  height: 60px;
  margin-bottom: var(--spacing-sm);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-brand p {
  opacity: 0.8;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  text-align: center;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  color: white;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: var(--spacing-sm);
  transition: all 0.2s;
}

.footer-column a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
}

/* ================================
   PROGRESS SECTION - STATS OVERVIEW
   ================================ */
.progress-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: linear-gradient(180deg, rgba(229, 57, 53, 0.03) 0%, transparent 100%);
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

@media (max-width: 900px) {
  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-overview {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.stat-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Stats Progress Bar */
.stats-progress-bar {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
}

.stats-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.stats-progress-label span:last-child {
  color: var(--primary);
}

.stats-progress-track {
  height: 16px;
  background: var(--bg-light);
  border-radius: 10px;
  overflow: hidden;
}

.stats-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  transition: width 0.8s ease;
  position: relative;
}

.stats-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;
}

/* Legacy Progress Grid - keep for compatibility */
.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-lg);
}

.progress-card {
  background: var(--bg-card, white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
}

.progress-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.progress-card.completed {
  border: 2px solid var(--success);
}

.progress-card.completed::after {
  content: '?';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  z-index: 10;
}

.progress-header {
  padding: var(--spacing-md) var(--spacing-lg);
  color: white;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.progress-icon {
  font-size: 1.5rem;
}

.progress-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.progress-body {
  padding: var(--spacing-lg);
}

.progress-bar-container {
  background: var(--bg-light);
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  transition: width 0.5s ease;
  position: relative;
}

.progress-bar::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 {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.progress-percent {
  font-weight: 600;
  color: var(--primary);
}

.progress-status {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border);
}

.progress-status.completed {
  color: var(--success);
}

.progress-status.in-progress {
  color: var(--warning);
}

.progress-status.not-started {
  color: var(--text-muted);
}

.progress-action {
  margin-top: var(--spacing-md);
}

.progress-action .btn {
  width: 100%;
  padding: 10px;
  font-size: 0.9rem;
}

/* Admin Link (discrete) */
.admin-link {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.admin-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ================================
   RESULT MODAL (Home Page)
   ================================ */
.result-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

.result-content {
  background: var(--bg-card, white);
  border-radius: 24px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.result-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.1);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-close:hover {
  background: rgba(0,0,0,0.2);
}

.result-header {
  background: linear-gradient(135deg, #8B4A5E, #6B3A4E 50%, #5C4B6B);
  color: white;
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 24px 24px 0 0;
  position: relative;
  overflow: hidden;
}

.result-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 2px, transparent 2px);
  background-size: 40px 40px;
  pointer-events: none;
}

.result-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 1;
}

.result-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 1;
}

.result-body {
  padding: 2rem;
}

.result-score-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.result-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-warm, #FAFAFA), var(--bg-card, #fff));
  border: 5px solid #8B4A5E;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(139, 74, 94, 0.2);
}

.result-score-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #8B4A5E;
  line-height: 1;
}

.result-score-label {
  font-size: 0.8rem;
  color: var(--text-muted, #888);
}

.result-category {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--gradient-secondary, linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%));
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.result-category-emoji {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.result-category-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
}

.result-description {
  font-size: 1rem;
  color: var(--text-secondary, #666);
  line-height: 1.6;
  text-align: center;
  margin: 0 0 1.5rem;
}

.result-breakdown {
  margin-top: 1.5rem;
}

.result-breakdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-warm, #f9f9f9);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.result-breakdown-label {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-secondary, #666);
}

.result-breakdown-bar {
  flex: 2;
  height: 8px;
  background: var(--border, #E8E4E0);
  border-radius: 4px;
  overflow: hidden;
}

.result-breakdown-fill {
  height: 100%;
  background: linear-gradient(90deg, #8B4A5E, #5C4B6B, #C4A962);
  border-radius: 4px;
}

.result-breakdown-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #8B4A5E;
  min-width: 40px;
  text-align: right;
}

.result-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.result-actions .btn {
  flex: 1;
  min-width: 100px;
}

.result-actions .btn-secondary {
  background: var(--bg-warm, #F8F6F4);
  color: var(--text-secondary, #5A5A5A);
  border: none;
}

.result-actions .btn-secondary:hover {
  background: var(--border, #E8E4E0);
}

.result-actions .btn-outline {
  background: transparent;
  border: 2px solid #8B4A5E;
  color: #8B4A5E;
}

.result-actions .btn-outline:hover {
  background: #8B4A5E;
  color: white;
}
