/* =====================================================================
   CADVISION - REDESIGN COMPLETO DAS VERTICAIS
   Design profissional, moderno e funcional
   Versão: 7.0 - Ícone Cérebro SVG + Formulário Revertido
   ===================================================================== */

/* =====================================================================
   1. DESIGN SYSTEM - EXTENSÕES
   ===================================================================== */
:root {
  /* Gradientes Premium - Tons Azul/Verde Escuro */
  --gradient-primary: linear-gradient(135deg, #0A101F 0%, #0068E0 100%);
  --gradient-success: linear-gradient(135deg, #0A2540 0%, #006B7D 100%);
  --gradient-info: linear-gradient(135deg, #1E3A5F 0%, #2E7D9A 100%);
  --gradient-warning: linear-gradient(135deg, #1A3A52 0%, #2D5F7E 100%);
  --gradient-purple: linear-gradient(135deg, #0F2942 0%, #1D5D6E 100%);
  --gradient-ocean: linear-gradient(135deg, #1B3A57 0%, #2C5F77 100%);
  --gradient-sunset: linear-gradient(135deg, #0D3B4F 0%, #1E6B7A 100%);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  
  /* Sombras Aprimoradas */
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.15);
  
  /* Animações */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

:root[data-theme="dark"] {
  --glass-bg: rgba(31, 41, 55, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

/* =====================================================================
   2. SEÇÃO DE VERTICAIS - LAYOUT PRINCIPAL
   ===================================================================== */

#vertical-selector {
  padding: 0 var(--space-5);
  max-height: calc(100vh - 80px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s var(--ease-smooth);
}

.section-header {
  text-align: center;
  margin-bottom: 1rem;
  margin-top: 0;
  padding-top: 0.5rem;
  flex-shrink: 0;
  animation: fadeInDown 0.8s var(--ease-smooth);
}

.section-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =====================================================================
   3. GRID DE VERTICAIS - REDESIGN COMPLETO
   ===================================================================== */

.vertical-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  flex: 1;
  align-items: start;
}

@media (max-width: 768px) {
  .vertical-selector-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 500px;
  }
}

/* =====================================================================
   4. CARTÕES DE VERTICAL - GLASSMORPHISM PREMIUM
   ===================================================================== */

.vertical-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 24px;
  background: var(--surface-primary);
  overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.vertical-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-ocean);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
  z-index: 0;
}

.vertical-card:hover::before {
  opacity: 0.05;
}

.vertical-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: 24px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
  z-index: -1;
}

.vertical-card:hover {
  box-shadow: none;
  border-color: transparent;
}

.vertical-card:hover::after {
  opacity: 1;
}

.vertical-card:focus-visible {
  outline: 3px solid var(--primary-400);
  outline-offset: 4px;
}

.vertical-card:active {
  transform: none;
}

/* =====================================================================
   5. CABEÇALHO DO CARTÃO - GRADIENTE PREMIUM
   ===================================================================== */

.vertical-card-header {
  position: relative;
  padding: 1.5rem;
  background: var(--gradient-ocean);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1;
  overflow: hidden;
}

.vertical-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
}

.vertical-card[data-vertical="supermercado"] .vertical-card-header {
  background: #0068E0;
}

.vertical-card[data-vertical="vestuario"] .vertical-card-header {
  background: #01bb88;
}

/* =====================================================================
   6. ÍCONE DA VERTICAL - DESIGN MODERNO
   ===================================================================== */

.vertical-icon {
  position: relative;
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-spring);
  z-index: 1;
  box-shadow: none;
}

.vertical-card:hover .vertical-icon {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.vertical-icon i {
  font-size: 2.5rem;
  color: white;
  filter: none;
  transition: all 0.3s var(--ease-smooth);
}

/* =====================================================================
   7. CONTEÚDO DA VERTICAL - TIPOGRAFIA E LAYOUT
   ===================================================================== */

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

.vertical-content h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: white;
  margin: 0;
  text-shadow: none;
  letter-spacing: -0.01em;
}

.vertical-content .subtitle {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.9);
  margin-top: var(--space-2);
  line-height: 1.5;
  font-weight: 500;
}

/* =====================================================================
   8. CORPO DO CARTÃO - INFORMAÇÕES E FEATURES
   ===================================================================== */

.vertical-card-body {
  position: relative;
  padding: 1.5rem;
  background: var(--surface-primary);
  z-index: 1;
}

:root[data-theme="dark"] .vertical-card-body {
  background: var(--gray-800);
}

.vertical-description {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

/* =====================================================================
   9. FEATURES E BADGES - VISUAL PROFISSIONAL
   ===================================================================== */

.vertical-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.vertical-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--surface-secondary);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-smooth);
}

.vertical-feature-item:hover {
  background: var(--primary-50);
  transform: translateX(1px);
}

:root[data-theme="dark"] .vertical-feature-item {
  background: var(--gray-700);
}

:root[data-theme="dark"] .vertical-feature-item:hover {
  background: var(--gray-600);
}

.vertical-feature-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  box-shadow: none;
}

.vertical-feature-text {
  flex: 1;
}

.vertical-feature-text strong {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.vertical-feature-text span {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* =====================================================================
   10. BADGES DE TECNOLOGIA
   ===================================================================== */

.vertical-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--primary-700);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-smooth);
}

.tech-badge:hover {
  background: var(--primary-100);
  transform: none;
  box-shadow: none;
}

.tech-badge i {
  font-size: 0.875rem;
}

/* =====================================================================
   11. RODAPÉ DO CARTÃO - CTA E AÇÃO
   ===================================================================== */

.vertical-card-footer {
  position: relative;
  padding: var(--space-6) var(--space-8);
  background: var(--surface-secondary);
  border-top: 1px solid var(--border);
  z-index: 1;
}

:root[data-theme="dark"] .vertical-card-footer {
  background: var(--gray-900);
  border-top-color: var(--gray-700);
}

.vertical-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.vertical-cta-text {
  flex: 1;
}

.vertical-cta-text strong {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.vertical-cta-text span {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.vertical-arrow {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  transition: all 0.3s var(--ease-spring);
  box-shadow: none;
}

.vertical-card:hover .vertical-arrow {
  transform: none;
  box-shadow: none;
}

/* =====================================================================
   12. ANIMAÇÕES E MICRO-INTERAÇÕES
   ===================================================================== */

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.vertical-card {
  animation: fadeInUp 0.6s var(--ease-smooth) backwards;
}

.vertical-card:nth-child(1) {
  animation-delay: 0.1s;
}

.vertical-card:nth-child(2) {
  animation-delay: 0.2s;
}

.vertical-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* =====================================================================
   13. ESTADOS INTERATIVOS E FEEDBACK
   ===================================================================== */

.vertical-card.selected {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px var(--primary-100), var(--shadow-float);
}

.vertical-card.disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

.vertical-card.disabled * {
  pointer-events: none !important;
  cursor: not-allowed !important;
}

.vertical-card.disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

.vertical-card.disabled:active {
  transform: none !important;
}

.vertical-card.loading {
  pointer-events: none;
}

.vertical-card.loading .vertical-icon i {
  animation: pulse 1.5s ease-in-out infinite;
}

/* =====================================================================
   14. RESPONSIVIDADE - MOBILE FIRST
   ===================================================================== */

@media (max-width: 768px) {
  #vertical-selector {
    padding: var(--space-6) var(--space-4);
  }
  
  .section-header h1 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: var(--font-size-base);
  }
  
  .vertical-card-header {
    padding: var(--space-6);
    flex-direction: column;
    text-align: center;
  }
  
  .vertical-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
  }
  
  .vertical-icon i {
    font-size: 2rem;
  }
  
  .vertical-content h3 {
    font-size: var(--font-size-xl);
  }
  
  .vertical-card-body {
    padding: var(--space-6);
  }
  
  .vertical-card-footer {
    padding: var(--space-5) var(--space-6);
  }
}

@media (max-width: 480px) {
  .vertical-selector-grid {
    gap: var(--space-4);
  }
  
  .vertical-feature-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .vertical-tech-badges {
    justify-content: center;
  }
}

/* =====================================================================
   15. ACESSIBILIDADE E FOCO
   ===================================================================== */

.vertical-card:focus-visible {
  outline: 3px solid var(--primary-400);
  outline-offset: 4px;
  border-radius: 24px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================================================================
   16. TEMAS - DARK MODE OTIMIZADO
   ===================================================================== */

:root[data-theme="dark"] .vertical-card {
  background: var(--gray-800);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .vertical-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .vertical-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

:root[data-theme="dark"] .vertical-feature-icon {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
}

:root[data-theme="dark"] .tech-badge {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--primary-300);
}

:root[data-theme="dark"] .vertical-arrow {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
}

/* =====================================================================
   11. FILE PREVIEWS - XML E IMAGEM
   ===================================================================== */

.file-preview-container {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.4s var(--ease-smooth);
}

.xml-preview {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.xml-preview-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-ocean);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
  box-shadow: var(--shadow-card);
}

.xml-preview-info {
  flex: 1;
}

.xml-preview-name {
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.xml-preview-size {
  font-size: 0.75rem;
  color: var(--neutral-600);
}

.xml-preview-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: none;
  color: #dc2626;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-smooth);
}

.xml-preview-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
}

.image-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.image-preview-thumbnail {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  box-sizing: border-box;
  background: #f5f6fa;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.image-preview-info {
  text-align: center;
  width: 100%;
}

.image-preview-name {
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.image-preview-dimensions {
  font-size: 0.75rem;
  color: var(--neutral-600);
}

/* =====================================================================
   12. AI PROCESSING LOADER - MINIMALISTA INLINE
   ===================================================================== */

/* ===== MODAL DE PROCESSAMENTO IA ===== */
.ai-processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s var(--ease-smooth);
}

.ai-processing-overlay.show {
  display: flex;
}

/* Container do Modal - Tema Claro */
.ai-loader-container {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
  max-width: 420px;
  width: 90%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transform: scale(0.95);
  opacity: 0;
  animation: modalAppear 0.3s var(--ease-smooth) forwards;
}

/* Container do Modal - Tema Escuro */
:root[data-theme="dark"] .ai-loader-container {
  background: #1a1f2e;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

@keyframes modalAppear {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Ícone do Cérebro IA */
.ai-loader-icon {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
}

.ai-loader-brain {
  width: 100%;
  height: 100%;
  background: #0068E0;
  border-radius: 50%;
  position: relative;
  animation: pulseSlow 2.5s infinite var(--ease-smooth);
  box-shadow: 
    0 0 30px rgba(0, 104, 224, 0.4), 
    0 0 60px rgba(0, 104, 224, 0.2),
    inset 0 -8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

:root[data-theme="dark"] .ai-loader-brain {
  box-shadow: 
    0 0 40px rgba(0, 104, 224, 0.6), 
    0 0 80px rgba(0, 104, 224, 0.3),
    inset 0 -8px 20px rgba(0, 0, 0, 0.3);
}

.ai-loader-brain::before {
  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z'/%3E%3Cpath d='M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z'/%3E%3Cpath d='M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4'/%3E%3Cpath d='M17.599 6.5a3 3 0 0 0 .399-1.375'/%3E%3Cpath d='M6.003 5.125A3 3 0 0 0 6.401 6.5'/%3E%3Cpath d='M3.477 10.896a4 4 0 0 1 .585-.396'/%3E%3Cpath d='M19.938 10.5a4 4 0 0 1 .585.396'/%3E%3Cpath d='M6 18a4 4 0 0 1-1.967-.516'/%3E%3Cpath d='M19.967 17.484A4 4 0 0 1 18 18'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.4));
  animation: brainPulse 2s infinite ease-in-out;
}

@keyframes pulseSlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 0 30px rgba(0, 104, 224, 0.4), 
      0 0 60px rgba(0, 104, 224, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 
      0 0 40px rgba(0, 104, 224, 0.6), 
      0 0 80px rgba(0, 104, 224, 0.3);
  }
}

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

/* Título */
.ai-loader-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1f2e;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

:root[data-theme="dark"] .ai-loader-title {
  color: #ffffff;
}

/* Mensagem */
.ai-loader-message {
  font-size: 0.9375rem;
  color: #64748b;
  margin-bottom: 32px;
  min-height: 24px;
  line-height: 1.5;
}

:root[data-theme="dark"] .ai-loader-message {
  color: #94a3b8;
}

/* Barra de Progresso */
.ai-loader-progress {
  width: 100%;
  height: 4px;
  background: rgba(0, 104, 224, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

:root[data-theme="dark"] .ai-loader-progress {
  background: rgba(0, 104, 224, 0.15);
}

.ai-loader-progress-bar {
  height: 100%;
  background: #0068E0;
  border-radius: 4px;
  animation: progressBar 2s infinite var(--ease-smooth);
  box-shadow: 0 0 12px rgba(0, 104, 224, 0.5);
}

@keyframes progressBar {
  0% {
    width: 0%;
    opacity: 0.8;
  }
  50% {
    width: 70%;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 0.8;
  }
}

/* Estatísticas do Loader */
.ai-loader-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 8px;
}

.ai-loader-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ai-loader-stat-icon {
  font-size: 1.5rem;
  opacity: 0.9;
}

.ai-loader-stat-label {
  font-size: 0.6875rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

:root[data-theme="dark"] .ai-loader-stat-label {
  color: #64748b;
}

.ai-loader-stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1f2e;
  font-variant-numeric: tabular-nums;
}

:root[data-theme="dark"] .ai-loader-stat-value {
  color: #ffffff;
}

/* Efeitos e Animações Sparkle */
.ai-loader-brain::after {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 104, 224, 0.2) 0%, transparent 70%);
  animation: ripple 2s 1s infinite var(--ease-smooth);
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.ai-loader-sparkles {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ai-loader-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: sparkle 3s infinite;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.ai-loader-sparkle:nth-child(1) {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.ai-loader-sparkle:nth-child(2) {
  top: 20%;
  left: 80%;
  animation-delay: 0.5s;
}

.ai-loader-sparkle:nth-child(3) {
  top: 80%;
  left: 10%;
  animation-delay: 1s;
}

.ai-loader-sparkle:nth-child(4) {
  top: 70%;
  left: 85%;
  animation-delay: 1.5s;
}

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

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

/* Responsividade do Modal */
@media (max-width: 480px) {
  .ai-loader-container {
    padding: 40px 24px;
    max-width: 90%;
  }

  .ai-loader-icon {
    width: 80px;
    height: 80px;
  }

  .ai-loader-title {
    font-size: 1.25rem;
  }

  .ai-loader-stats {
    gap: 24px;
  }
}

/* Fim dos estilos do Modal de IA */

/* Form locked state */
.form-locked {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
  filter: blur(1px);
  transition: all 0.3s ease;
}

/* =====================================================================
   13. ANIMAÇÕES
   ===================================================================== */

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(0, 104, 224, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 104, 224, 0.7);
  }
}

@keyframes pulseSlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 40px rgba(0, 104, 224, 0.6), 0 0 80px rgba(0, 104, 224, 0.3);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 50px rgba(0, 104, 224, 0.8), 0 0 100px rgba(0, 104, 224, 0.4);
  }
}

@keyframes progressBar {
  0% {
    transform: translateX(-100%);
    background-position: 0% 50%;
  }
  100% {
    transform: translateX(400%);
    background-position: 200% 50%;
  }
}
