/* =====================================================
   IA OU NÃO? - ULTRA MODERN MINIMAL DESIGN
   Clean, Sophisticated & Interactive
   ===================================================== */

/* ========== CUSTOM PROPERTIES (VARIÁVEIS) ========== */
:root {
  /* Cores Neutras e Suaves - Fundo Branco */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFBFC;
  --bg-tertiary: #F5F7FA;
  --bg-card: #FFFFFF;
  --bg-hover: #F9FAFB;
  
  /* Cores de Texto - Minimalista */
  --text-primary: #0A0A0A;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-light: #D1D5DB;
  
  /* Cores da Marca - Jornada Pedagógica Moderna */
  --cyan: #00C9E0;
  --cyan-light: #33D7E8;
  --cyan-dark: #00A3B8;
  --golden: #F5B800;
  --golden-light: #F7C933;
  --golden-dark: #D99F00;
  --navy: #0B1E3F;
  --navy-light: #1A3B5F;
  --navy-dark: #071528;
  
  /* Azuis Modernos (secundário) */
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-900: var(--navy);
  
  /* Accent Principal - Cyan Vibrante */
  --accent-primary: var(--cyan);
  --accent-light: var(--cyan-light);
  --accent-dark: var(--cyan-dark);
  --accent-subtle: #E5F8FB;
  --accent-glow: rgba(0, 201, 224, 0.08);
  
  /* Accent Secundário - Dourado */
  --accent-secondary: var(--golden);
  --accent-secondary-light: var(--golden-light);
  --accent-secondary-dark: var(--golden-dark);
  --accent-secondary-subtle: #FEF8E5;
  --accent-secondary-glow: rgba(245, 184, 0, 0.08);
  
  /* Opacity Variants - Cyan */
  --accent-10: rgba(0, 201, 224, 0.1);
  --accent-20: rgba(0, 201, 224, 0.2);
  --accent-30: rgba(0, 201, 224, 0.3);
  
  /* Opacity Variants - Golden */
  --secondary-10: rgba(245, 184, 0, 0.1);
  --secondary-20: rgba(245, 184, 0, 0.2);
  --secondary-30: rgba(245, 184, 0, 0.3);
  
  /* Cores de Estado - Suaves */
  --success: #22C55E;
  --success-light: #4ADE80;
  --success-bg: #ECFDF5;
  --success-10: rgba(34, 197, 94, 0.1);
  --error: #DC2626;
  --error-light: #F87171;
  --error-bg: #FEF2F2;
  --error-10: rgba(220, 38, 38, 0.1);
  --warning: #FF6B35;
  --warning-light: #FF8A5C;
  --warning-bg: #FFF3EF;
  --warning-10: rgba(255, 107, 53, 0.1);
  
  /* Bordas Ultra Suaves */
  --border-light: #F3F4F6;
  --border-default: #E5E7EB;
  --border-dark: #D1D5DB;
  
  /* Sombras Sofisticadas */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 0 1px rgba(0, 201, 224, 0.05), 0 1px 3px rgba(0, 201, 224, 0.1);
  --shadow-spotlight: 0 0 0 1px rgba(0, 201, 224, 0.08), 0 8px 24px -4px rgba(0, 201, 224, 0.15);
  
  /* Border Radius Moderno */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Transições Suaves */
  --transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Spotlight Effect Variables */
  --spotlight-size: 200px;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}

/* ========== TIPOGRAFIA MODERNA ========== */
.text-display {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.text-headline {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.text-title {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.text-body {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

.text-caption {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-secondary);
}

.text-small {
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ========== GRADIENTES MINIMALISTAS ========== */
.gradient-bg {
  background: var(--bg-primary);
  min-height: 100vh;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--border-light) 0%, var(--border-default) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ========== ÍCONES SVG ========== */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }
.icon-2xl { width: 40px; height: 40px; }
.icon-3xl { width: 48px; height: 48px; }

.icon-primary { color: var(--accent-primary); }
.icon-success { color: var(--success); }
.icon-error { color: var(--error); }
.icon-warning { color: var(--warning); }
.icon-muted { color: var(--text-muted); }

/* ========== SPOTLIGHT CARDS - Ultra Modern ========== */
.spotlight-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    var(--spotlight-size) circle at var(--mouse-x) var(--mouse-y),
    rgba(37, 99, 235, 0.06),
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    calc(var(--spotlight-size) * 0.6) circle at var(--mouse-x) var(--mouse-y),
    rgba(37, 99, 235, 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
  z-index: 2;
  filter: blur(20px);
}

.spotlight-card:hover::after {
  opacity: 1;
}

.spotlight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-spotlight);
  border-color: rgba(37, 99, 235, 0.1);
}

.spotlight-card-content {
  position: relative;
  z-index: 3;
}

/* Cards Simples - Minimalistas */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-default);
}

.card-flat {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.card-elevated {
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ========== BOTÕES ULTRA MODERNOS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.1);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-default);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-subtle);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ========== BOTÕES DE OPÇÃO (PLAY) ========== */
.btn-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-base);
  outline: none;
}

.btn-option:hover {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-option:active {
  transform: translateY(0);
}

.btn-option.selected {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-option.correct {
  background: var(--success-bg);
  border-color: var(--success-light);
  color: var(--success-light);
}

.btn-option.incorrect {
  background: var(--danger-bg);
  border-color: var(--danger-light);
  color: var(--danger-light);
}

.btn-option:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent-subtle);
  color: var(--accent-primary);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.btn-option:hover .option-letter {
  background: var(--accent-primary);
  color: white;
}

.btn-option.selected .option-letter {
  background: var(--accent-primary);
  color: white;
}

.btn-option.correct .option-letter {
  background: var(--success-light);
  color: white;
}

.btn-option.incorrect .option-letter {
  background: var(--danger-light);
  color: white;
}

/* ========== BADGES MODERNOS ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.badge-primary {
  background: var(--accent-subtle);
  color: var(--accent-dark);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(5, 150, 105, 0.1);
}

.badge-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(220, 38, 38, 0.1);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(217, 119, 6, 0.1);
}

.badge-neutral {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

/* ========== UTILITÁRIOS DE LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

.container-sm {
  max-width: 640px;
}

.container-md {
  max-width: 768px;
}

.container-lg {
  max-width: 1200px;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

/* Padding & Margin */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Min Width */
.min-w-0 { min-width: 0; }

/* ========== ANIMAÇÕES MODERNAS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease-out forwards;
}

.animate-fadeInDown {
  animation: fadeInDown 0.5s ease-out forwards;
}

.animate-fadeIn {
  animation: fadeIn 0.4s ease-out forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.3s ease-out forwards;
}

.score-chip-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-light);
}

.score-chip-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== STAT BAR (Voting) ========== */
.stat-bar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.stat-bar-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--border-accent);
  border-radius: var(--radius-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.stat-bar-track {
  flex: 1;
  height: 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-light) 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-bar-fill.correct {
  background: linear-gradient(90deg, var(--success) 0%, var(--success-light) 100%);
}

.stat-bar-percentage {
  width: 3.5rem;
  text-align: right;
  font-weight: 700;
  font-size: 1rem;
}

.stat-bar-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== RANKING ITEM ========== */
.ranking-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast);
}

.ranking-item:hover {
  transform: translateX(4px);
}

.ranking-item.highlight {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid var(--accent-primary);
}

.ranking-item.gold {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.ranking-item.silver {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.2) 0%, rgba(156, 163, 175, 0.1) 100%);
  border: 1px solid rgba(192, 192, 192, 0.3);
}

.ranking-item.bronze {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.2) 0%, rgba(180, 83, 9, 0.1) 100%);
  border: 1px solid rgba(205, 127, 50, 0.3);
}

.ranking-position {
  font-size: 1.5rem;
  line-height: 1;
}

.ranking-name {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-score {
  font-weight: 700;
  color: var(--accent-light);
}

/* ========== PLAYER AVATAR ========== */
.player-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-dark) 100%);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
}

/* ========== CALLOUT / EXPLANATION ========== */
.callout {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  display: flex;
  gap: 0.75rem;
}

.callout-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.callout-success {
  background: var(--success-bg);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.callout-warning {
  background: var(--warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.callout-error {
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.callout-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.callout-content {
  flex: 1;
}

.callout-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 28rem;
  width: 100%;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-body {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ========== ANIMAÇÕES ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes fadeInDown {
  from { 
    opacity: 0; 
    transform: translateY(-20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes slideInLeft {
  from { 
    opacity: 0; 
    transform: translateX(-20px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes slideInRight {
  from { 
    opacity: 0; 
    transform: translateX(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes scaleIn {
  from { 
    opacity: 0; 
    transform: scale(0.9); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  75% { transform: translateX(-4px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 40px var(--accent-glow), 0 0 60px var(--accent-glow); }
}

@keyframes pointsUp {
  0% { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
  100% { 
    opacity: 0; 
    transform: translateY(-40px) scale(1.2); 
  }
}

@keyframes confetti {
  0% { 
    opacity: 1; 
    transform: translateY(0) rotate(0deg); 
  }
  100% { 
    opacity: 0; 
    transform: translateY(-100px) rotate(720deg); 
  }
}

/* Animation Classes */
.animate-fadeIn { animation: fadeIn var(--transition-base) ease-out; }
.animate-fadeInUp { animation: fadeInUp var(--transition-slow) ease-out; }
.animate-fadeInDown { animation: fadeInDown var(--transition-slow) ease-out; }
.animate-slideInLeft { animation: slideInLeft var(--transition-slow) ease-out; }
.animate-slideInRight { animation: slideInRight var(--transition-slow) ease-out; }
.animate-scaleIn { animation: scaleIn var(--transition-slow) ease-out; }
.animate-shake { animation: shake 0.4s ease; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-glow { animation: glow 2s ease-in-out infinite; }
.animate-pointsUp { animation: pointsUp 1s ease-out forwards; }

/* Staggered Animations */
.animate-stagger > *:nth-child(1) { animation-delay: 0ms; }
.animate-stagger > *:nth-child(2) { animation-delay: 50ms; }
.animate-stagger > *:nth-child(3) { animation-delay: 100ms; }
.animate-stagger > *:nth-child(4) { animation-delay: 150ms; }
.animate-stagger > *:nth-child(5) { animation-delay: 200ms; }
.animate-stagger > *:nth-child(6) { animation-delay: 250ms; }
.animate-stagger > *:nth-child(7) { animation-delay: 300ms; }
.animate-stagger > *:nth-child(8) { animation-delay: 350ms; }

/* ========== LOADING SKELETON ========== */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 0%,
    var(--border-accent) 50%,
    var(--bg-tertiary) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--border-accent);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ========== UTILITIES ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-sm {
  max-width: 480px;
}

.container-md {
  max-width: 640px;
}

.container-lg {
  max-width: 960px;
}

.hidden { display: none !important; }
.invisible { visibility: hidden; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.transition { transition: all var(--transition-base); }

.pointer-events-none { pointer-events: none; }

/* ========== SCREEN-SPECIFIC (Projetor) ========== */
.screen-mode {
  overflow: hidden;
  user-select: none;
}

.screen-mode .text-screen-display {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.screen-mode .text-screen-headline {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.screen-mode .text-screen-body {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }
  
  .btn-xl {
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }
  
  .btn-option {
    padding: 0.875rem 1rem;
  }
  
  .input {
    padding: 0.875rem 1rem;
  }
  
  .input-code {
    font-size: 1.5rem;
  }
  
  .card {
    border-radius: var(--radius-lg);
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .md\:grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  
  .lg\:col-span-2 {
    grid-column: span 2;
  }
}

/* ========== CONFETTI EFFECT ========== */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
}

/* ========== SOUND TOGGLE ========== */
.sound-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sound-toggle:hover {
  background: var(--bg-tertiary);
}

.sound-toggle.muted {
  opacity: 0.5;
}

/* ========== QR CODE ========== */
.qr-container {
  background: white;
  padding: 1rem;
  border-radius: var(--radius-lg);
  display: inline-block;
}

.qr-container img,
.qr-container canvas {
  display: block;
}

/* ========== PUBLIC HEADER ========== */
.public-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.public-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.public-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.public-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.public-nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.public-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.public-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--accent-primary);
  color: white !important;
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
}

.public-nav-cta:hover {
  background: var(--accent-dark) !important;
}

.public-nav-cta svg {
  width: 1.125rem;
  height: 1.125rem;
}

.public-menu-toggle {
  display: none;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

.public-menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.public-mobile-menu {
  display: none;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-primary);
}

.public-mobile-menu.active {
  display: block;
}

.public-mobile-link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
}

.public-mobile-link:last-child {
  border-bottom: none;
}

.public-mobile-link:hover {
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .public-nav {
    display: none;
  }
  
  .public-menu-toggle {
    display: block;
  }
}

/* ========== PUBLIC FOOTER ========== */
.public-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.public-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
}

.public-footer-brand {
  max-width: 320px;
}

.public-footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.public-footer-description {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.public-footer-links {
  display: flex;
  gap: 4rem;
}

.public-footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.public-footer-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.public-footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.public-footer-link:hover {
  color: var(--accent-primary);
}

.public-footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 1.5rem;
  text-align: center;
}

.public-footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .public-footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .public-footer-links {
    gap: 2rem;
  }
}
