/* ============================================================================
   MEDSCAN - INDEX CSS
   ============================================================================
   Importa sistema de design e componentes globais
   ============================================================================ */

/* Importar Design System e Componentes */

/* ============================================================================
   MEDSCAN DESIGN SYSTEM
   ============================================================================
   Data: 30/11/2025
   Objetivo: Variáveis CSS globais para consistência total
   ============================================================================ */

:root {
  /* ========== CORES (tema personalizável) ========== */
  
  /* Cores Primary - PADRÃO VERDE */
  --orange-primary: var(--orange-primary);
  --orange-dark: var(--orange-dark);
  --orange-darker: var(--orange-darker);
  --orange-darkest: var(--orange-darkest);
  
  /* Cores Lighter - PADRÃO VERDE */
  --orange-lighter: var(--orange-lighter);
  --orange-lightest: var(--orange-lightest);
  --orange-ultra-light: var(--orange-ultra-light);
  
  /* Gradientes - PADRÃO VERDE */
  --gradient-primary: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%);
  --gradient-light: linear-gradient(135deg, var(--orange-ultra-light) 0%, var(--orange-lightest) 50%, var(--orange-lighter) 100%);
  --gradient-card: linear-gradient(135deg, var(--orange-lighter), var(--orange-lighter));
  
  /* Neutros */
  --text-primary: #1f2937;
  --text-secondary: #4b5563;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  
  /* Background */
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-lighter: #f3f4f6;
  
  /* Status Colors */
  --success: var(--orange-primary);
  --error: #ef4444;
  --error-dark: #dc2626;
  --warning: #f59e0b;
  --info: #3b82f6;
  
  /* ========== BORDER RADIUS ========== */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* ========== BOX SHADOWS ========== */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Shadows específicas - PADRÃO VERDE */
  --shadow-primary: 0 4px 16px rgba(16, 185, 129, 0.25);
  --shadow-primary-hover: 0 6px 20px rgba(16, 185, 129, 0.35);
  --shadow-primary-strong: 0 8px 28px rgba(16, 185, 129, 0.4);
  
  /* ========== SPACING ========== */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  --space-4xl: 40px;
  
  /* ========== TYPOGRAPHY ========== */
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* ========== TRANSITIONS ========== */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* ========== Z-INDEX ========== */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 9999;
  --z-header: 10000;
  --z-header-content: 10001;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

/* Reset básico */

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

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  line-height: 1.5;
}

/* Container padrão */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-3xl);
}

/* Card padrão */

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

/* Section padrão */

.section {
  margin-bottom: var(--space-3xl);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--orange-primary);
  transition: all var(--transition-base);
}

.section:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================================
   COMENTÁRIO: Por que este arquivo é importante?
   ============================================================================
   
   ANTES: Cada página CSS definia suas próprias cores, tamanhos, shadows
   - Resultado: Inconsistência visual, difícil manter
   
   AGORA: Um único lugar define tudo
   - Mudar uma cor? Muda em toda aplicação
   - Garantia de consistência visual
   - Fácil criar temas no futuro
   
   ============================================================================ */

/* ============================================================================
   MEDSCAN COMPONENTS
   ============================================================================
   Componentes reutilizáveis (botões, inputs, etc)
   Usa variáveis do design-system.css
   ============================================================================ */

/* ========== BOTÕES ========== */

/* Botão Primary - Principal */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  background: var(--gradient-primary);
  color: var(--bg-white);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  box-shadow: var(--shadow-primary);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

.btn-primary:hover:not(:disabled) {
  background: var(--bg-white);
  color: var(--orange-primary);
  border-color: var(--orange-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-hover);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Botão Primary Large */

.btn-primary.btn-large {
  padding: 16px 40px;
  font-size: var(--text-base);
  min-width: 170px;
}

/* Botão Secondary - Navegação */

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--bg-white);
  border: 2px solid var(--bg-white);
  border-radius: 10px;
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-white);
  color: var(--orange-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(0);
}

/* Botão Admin (vermelho com pulse) */

.btn-admin {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  animation: adminPulse 2s ease-in-out infinite;
}

.btn-admin:hover {
  background: var(--bg-white);
  color: var(--error-dark);
  border-color: var(--error-dark);
}

@keyframes adminPulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
  }
  50% {
    box-shadow: 0 4px 24px rgba(220, 38, 38, 0.5);
  }
}

/* Botão Success (verde sólido) */

.btn-success {
  background: var(--orange-primary);
  color: var(--bg-white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-success:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

/* Botão Warning (amarelo) */

.btn-warning {
  background: var(--warning);
  color: var(--bg-white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-warning:hover {
  background: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Botão Info (azul) */

.btn-info {
  background: var(--info);
  color: var(--bg-white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-info:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Botão Danger (vermelho) */

.btn-danger,
.btn-cancel {
  background: var(--bg-white);
  color: var(--error);
  border: 2px solid var(--error);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-danger:hover,
.btn-cancel:hover {
  background: #fef2f2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Botão Outline */

.btn-outline {
  background: var(--bg-white);
  color: var(--orange-primary);
  border: 2px solid var(--orange-primary);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-outline:hover {
  background: var(--orange-lighter);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

/* Botão Copy */

.btn-copy {
  padding: 8px 16px;
  background: var(--orange-primary);
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: var(--orange-dark);
  transform: scale(1.05);
}

/* ========== INPUTS ========== */

.input,
.textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-white);
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-family: var(--font-family);
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px rgba(255, 184, 132, 0.1);
}

.input:disabled,
.textarea:disabled {
  background: var(--bg-lighter);
  cursor: not-allowed;
  opacity: 0.6;
}

.textarea {
  resize: vertical;
  min-height: 100px;
  font-family: 'Courier New', monospace;
}

/* ========== BADGES ========== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
}

.badge-success {
  background: var(--orange-lighter);
  color: var(--orange-darkest);
}

.badge-error {
  background: #fee2e2;
  color: #991b1b;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

/* ========== ALERTS ========== */

.alert {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid;
  margin-bottom: var(--space-xl);
}

.alert-success {
  background: var(--orange-ultra-light);
  border-color: var(--orange-primary);
  color: var(--orange-darkest);
}

.alert-error {
  background: #fef2f2;
  border-color: var(--error);
  color: #991b1b;
}

.alert-warning {
  background: #fffbeb;
  border-color: var(--warning);
  color: #92400e;
}

.alert-info {
  background: #eff6ff;
  border-color: var(--info);
  color: #1e40af;
}

/* ========== LOADING ========== */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-size: var(--text-lg);
  color: var(--orange-primary);
  font-weight: var(--font-semibold);
  background: var(--gradient-light);
}

/* ========== COMENTÁRIO TÉCNICO ========== */

/*
  Este arquivo define componentes REUTILIZÁVEIS.
  
  ANTES: Cada página redefinia .btn-primary com estilos diferentes
  AGORA: Um único .btn-primary usado em toda aplicação
  
  Benefícios:
  - Consistência visual total
  - Manutenção simplificada (mudar 1 vez, afeta tudo)
  - Menor tamanho de CSS (sem duplicação)
  - Sem necessidade de !important
*/

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

#root {
  min-height: 100vh;
  width: 100%;
}

button {
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Botões e Inputs agora em ./styles/components.css */

/* Loading state agora em ./styles/components.css */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 300px;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  background: white;
}

.toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-hidden {
  opacity: 0;
  transform: translateX(100%);
}

.toast-success {
  border-left: 4px solid var(--orange-primary);
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-info {
  border-left: 4px solid #3b82f6;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon {
  font-size: 20px;
  font-weight: bold;
}

.toast-success .toast-icon {
  color: var(--orange-primary);
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-info .toast-icon {
  color: #3b82f6;
}

.toast-message {
  color: #1f2937;
  font-size: 14px;
}
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 450px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: 48px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.auth-header p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input {
  padding: 14px 18px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px rgba(255, 184, 132, 0.1);
}

.form-group input:disabled {
  background: var(--bg-light);
  cursor: not-allowed;
  opacity: 0.6;
}

.auth-form .btn-primary {
  padding: 16px 32px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 12px;
  box-shadow: 0 6px 20px rgba(255, 184, 132, 0.3);
}

.auth-form .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 184, 132, 0.4);
}

.auth-form .btn-primary:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
}

.auth-footer p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.auth-link {
  color: var(--orange-primary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.auth-link:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}
.dashboard-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--orange-ultra-light) 0%, var(--orange-lightest) 50%, var(--orange-lighter) 100%);
}

.dashboard-header {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%);
  box-shadow: 0 4px 20px rgba(255, 184, 132, 0.2);
  padding: 20px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.dashboard-header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.5px;
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-name {
  font-size: 14px;
  color: white;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* Botão Sair no header */
.dashboard-header .btn-secondary {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
  font-size: 14px;
}

.dashboard-header .btn-secondary:hover {
  background: white;
  color: var(--orange-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.dashboard-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
}

.dashboard-welcome {
  margin-bottom: 48px;
  text-align: center;
}

.dashboard-welcome h2 {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
  letter-spacing: -1px;
}

.dashboard-welcome p {
  font-size: 18px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid rgba(255, 184, 132, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-primary), var(--orange-dark));
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(255, 184, 132, 0.15);
}

.card-icon {
  font-size: 48px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(255, 184, 132, 0.2));
}

.card-content {
  flex: 1;
}

.card-content h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-dark);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-value {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px 0;
  line-height: 1;
}

.card-description {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
}

/* Botão primário - Analisar Laudo */
.dashboard-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  min-width: 170px;
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%) !important;
  color: white !important;
  border: 2px solid transparent !important;
  box-shadow: 0 6px 20px rgba(255, 184, 132, 0.3) !important;
  border-radius: 12px !important;
  letter-spacing: 0px !important;
  transition: all 0.3s ease !important;
}

.dashboard-actions .btn-primary:hover {
  background: white !important;
  color: var(--orange-primary) !important;
  border: 2px solid var(--orange-primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(255, 184, 132, 0.4) !important;
}

/* Botões secundários - Verde com hover branco */
.secondary-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  min-width: 170px;
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%) !important;
  color: white !important;
  border: 2px solid transparent !important;
  box-shadow: 0 4px 16px rgba(255, 184, 132, 0.25) !important;
  border-radius: 12px !important;
  letter-spacing: 0px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.secondary-actions .btn-secondary:hover {
  background: white !important;
  color: var(--orange-primary) !important;
  border: 2px solid var(--orange-primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 184, 132, 0.3) !important;
}

.secondary-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Botão Admin - Estilo especial */
.btn-admin {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
  animation: adminPulse 2s ease-in-out infinite;
}

.btn-admin:hover {
  background: white !important;
  color: #dc2626 !important;
  border: 2px solid #dc2626 !important;
}

@keyframes adminPulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
  }
  50% {
    box-shadow: 0 4px 24px rgba(220, 38, 38, 0.5);
  }
}

.dashboard-alert {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-left: 5px solid #f59e0b;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.dashboard-alert p {
  margin: 0;
  color: #92400e;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.dashboard-alert a {
  color: #b45309;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s;
}

.dashboard-alert a:hover {
  color: #92400e;
}

.loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--orange-primary);
  font-weight: 600;
  background: linear-gradient(135deg, var(--orange-ultra-light) 0%, var(--orange-lightest) 50%, var(--orange-lighter) 100%);
}

/* Responsividade */
@media (max-width: 768px) {
  .dashboard-main {
    padding: 32px 20px;
  }
  
  .dashboard-welcome h2 {
    font-size: 32px;
  }
  
  .dashboard-cards {
    grid-template-columns: 1fr;
  }
  
  .secondary-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-secondary {
    width: 100%;
  }
}
.billing-container {
  min-height: 100vh;
  background: var(--gradient-bg);
}

.billing-header {
  background: var(--gradient-primary);
  box-shadow: 0 4px 20px rgba(255, 184, 132, 0.2);
  padding: 20px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.billing-header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.billing-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.5px;
}

.billing-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
}

.billing-title {
  text-align: center;
  margin-bottom: 56px;
}

.billing-title h2 {
  font-size: 42px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
  letter-spacing: -1px;
}

.billing-title p {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.plan-card {
  background: white;
  border: 2px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  transition: all 0.3s;
  box-shadow: var(--shadow-md);
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}

.plan-popular {
  border: 3px solid var(--orange-primary);
  box-shadow: 0 8px 30px rgba(255, 184, 132, 0.25);
  transform: scale(1.02);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 184, 132, 0.3);
}

.plan-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.plan-header h3 {
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-currency {
  font-size: 18px;
  color: #6b7280;
  font-weight: 600;
}

.price-value {
  font-size: 44px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  font-size: 14px;
  color: #6b7280;
}

.plan-features {
  margin-bottom: 24px;
}

.plan-credits {
  font-size: 18px;
  font-weight: 600;
  color: var(--orange-primary);
  text-align: center;
  margin-bottom: 8px;
}

.plan-features p {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 16px 0;
}

.plan-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features li {
  padding: 8px 0;
  color: #4b5563;
  font-size: 14px;
}

.btn-plan {
  width: 100%;
  padding: 16px 32px;
  background: white;
  color: var(--orange-primary);
  border: 2px solid var(--orange-primary);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.btn-plan:hover:not(:disabled) {
  background: var(--orange-lighter);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 184, 132, 0.2);
}

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

.btn-plan-popular:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(255, 184, 132, 0.4);
}

.btn-plan:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.billing-info {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 184, 132, 0.1);
}

.billing-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange-dark);
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--green-light);
}

.billing-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.billing-info li {
  color: #6b7280;
  font-size: 14px;
  padding-left: 24px;
  position: relative;
}

.billing-info li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange-primary);
  font-weight: 700;
  font-size: 1.125rem;
}
.profile-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--orange-ultra-light) 0%, var(--orange-lightest) 50%, var(--orange-lighter) 100%);
}

.profile-header {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%);
  box-shadow: 0 4px 20px rgba(255, 184, 132, 0.2);
  padding: 20px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.profile-header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.5px;
}

.profile-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 32px;
}

.profile-title {
  margin-bottom: 40px;
  text-align: center;
}

.profile-title h2 {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 12px 0;
  letter-spacing: -1px;
}

.profile-title p {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

.profile-section {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 32px;
  border: 1px solid rgba(255, 184, 132, 0.1);
  transition: all 0.3s ease;
}

.profile-section:hover {
  box-shadow: 0 15px 50px rgba(255, 184, 132, 0.15);
  transform: translateY(-2px);
}

.profile-section h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--orange-dark);
  margin: 0 0 32px 0;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--orange-lighter);
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.info-item {
  background: linear-gradient(135deg, var(--orange-ultra-light) 0%, var(--orange-lighter) 100%);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--orange-primary);
}

.info-item label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.profile-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.btn-color-settings {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 184, 132, 0.3);
}

.btn-color-settings:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 184, 132, 0.4);
}

.info-item p {
  font-size: 18px;
  color: #1f2937;
  margin: 0;
  font-weight: 600;
}

.referral-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.referral-code-section label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

.referral-code-display {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.referral-code-display code {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 0 24px;
  background: white;
  border: 2px solid var(--orange-primary);
  border-radius: 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--orange-primary);
  letter-spacing: 2px;
  text-align: center;
}

.btn-copy {
  height: 80px;
  padding: 0 32px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 184, 132, 0.3);
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
}

.btn-copy::before {
  content: '📋';
  font-size: 16px;
}

.btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 184, 132, 0.45);
}

.referral-hint {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-box {
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, var(--orange-ultra-light) 100%);
  border-radius: 16px;
  text-align: center;
  border: 2px solid var(--orange-lighter);
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 184, 132, 0.2);
  border-color: var(--orange-primary);
}

.stat-value {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.convert-section {
  padding: 20px;
  background: var(--orange-ultra-light);
  border: 2px solid var(--orange-primary);
  border-radius: 8px;
  text-align: center;
}

.convert-section p {
  margin: 0 0 16px 0;
  color: var(--orange-darkest);
  font-size: 14px;
  line-height: 1.6;
}

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

.referral-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.referral-info {
  flex: 1;
}

.referral-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.referral-email {
  font-size: 13px;
  color: #6b7280;
}

.referral-date {
  font-size: 13px;
  color: #9ca3af;
}

/* Botão Secondary (Header) */
.btn-secondary {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: white;
  color: var(--orange-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Botão Primary */
.btn-primary {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(255, 184, 132, 0.3);
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 184, 132, 0.4);
}

/* Loading state */
.loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--orange-primary);
  font-weight: 600;
  background: linear-gradient(135deg, var(--orange-ultra-light) 0%, var(--orange-lightest) 50%, var(--orange-lighter) 100%);
}

/* Seção de Assinatura */
.subscription-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.subscription-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.subscription-current {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-badge {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  color: white;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
  align-self: flex-start;
  box-shadow: 0 4px 16px rgba(255, 184, 132, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.plan-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-usage {
  font-size: 16px;
  color: #1f2937;
  margin: 0;
}

.plan-renewal {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.subscription-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-manage {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(255, 184, 132, 0.3);
}

.btn-manage:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 184, 132, 0.4);
}

.btn-cancel {
  padding: 14px 28px;
  background: white;
  color: #ef4444;
  border: 2px solid #ef4444;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-cancel:hover {
  background: #fef2f2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Upgrade Section */
.upgrade-section {
  padding: 24px;
  background: var(--orange-ultra-light);
  border: 2px solid var(--orange-primary);
  border-radius: 12px;
}

.upgrade-section h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange-darkest);
  margin: 0 0 12px 0;
}

.upgrade-description {
  font-size: 14px;
  color: var(--orange-darkest);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.upgrade-plans {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.upgrade-plan-card {
  background: white;
  border: 2px solid var(--orange-lighter);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s;
}

.upgrade-plan-card:hover {
  border-color: var(--orange-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 184, 132, 0.2);
}

.upgrade-plan-info {
  flex: 1;
}

.upgrade-plan-info h5 {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange-primary);
  margin: 0 0 12px 0;
}

.upgrade-plan-analyses {
  font-size: 14px;
  color: #374151;
  margin: 0 0 8px 0;
}

.upgrade-plan-price {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.upgrade-plan-unit {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.btn-upgrade {
  width: 100%;
  padding: 12px 24px;
  background: var(--orange-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-upgrade:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* Sem Assinatura */
.no-subscription {
  padding: 48px 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--orange-ultra-light), var(--orange-lighter));
  border-radius: 12px;
}

.no-subscription-content {
  max-width: 500px;
  margin: 0 auto;
}

.no-subscription-message {
  font-size: 24px;
  font-weight: 700;
  color: var(--orange-darkest);
  margin: 0 0 16px 0;
}

.no-subscription-description {
  font-size: 16px;
  color: var(--orange-darker);
  margin: 0 0 32px 0;
  line-height: 1.6;
}

.btn-subscribe {
  padding: 16px 32px;
  background: var(--orange-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-subscribe:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 184, 132, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .profile-main {
    padding: 32px 16px;
  }

  .profile-section {
    padding: 24px 16px;
  }

  .profile-title h2 {
    font-size: 28px;
  }

  /* Fix referral code display - stack vertically on mobile */
  .referral-code-display {
    flex-direction: column;
    gap: 12px;
  }

  .referral-code-display code {
    width: 100%;
    height: 60px;
    font-size: 20px;
  }

  .btn-copy {
    width: 100%;
    height: 50px;
    min-width: auto;
  }

  /* Fix stats grid - single column on mobile */
  .referral-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-box {
    padding: 20px;
  }

  .stat-value {
    font-size: 32px;
  }

  .subscription-actions {
    flex-direction: column;
  }
  
  .btn-manage,
  .btn-cancel {
    width: 100%;
  }
  
  .upgrade-plans {
    grid-template-columns: 1fr;
  }

  .profile-info {
    grid-template-columns: 1fr;
  }
}
.plans-page {
  min-height: 100vh;
  background: var(--gradient-primary);
  padding: 3rem 2rem;
}

.plans-header {
  text-align: center;
  color: white;
  margin-bottom: 2rem;
}

.plans-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.plans-subtitle {
  font-size: 1.125rem;
  opacity: 0.95;
}

.plans-info {
  max-width: 800px;
  margin: 0 auto 3rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  color: white;
}

.plans-info p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.plans-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.plan-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.plan-card.current {
  border: 3px solid var(--orange-primary);
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(255, 184, 132, 0.3);
}

.current-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 184, 132, 0.3);
}

.plan-name {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.plan-description {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 1rem;
}

.plan-price .currency {
  font-size: 1.25rem;
  color: #6b7280;
  margin-right: 0.25rem;
}

.plan-price .amount {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-price .period {
  font-size: 1rem;
  color: #6b7280;
  margin-left: 0.5rem;
}

.plan-analyses {
  font-size: 1.125rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.plan-analyses strong {
  font-weight: 700;
  color: var(--orange-primary);
}

.plan-unit-price {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.plan-cta {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 20px rgba(255, 184, 132, 0.3);
}

.plan-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 184, 132, 0.4);
}

.plan-cta:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  box-shadow: none;
}

.plan-card.current .plan-cta {
  background: var(--text-secondary);
  cursor: not-allowed;
  box-shadow: none;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature {
  font-size: 0.875rem;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature::before {
  content: '✓';
  color: var(--orange-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

.plans-footer {
  max-width: 1400px;
  margin: 3rem auto 0;
  text-align: center;
}

.back-button {
  padding: 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid white;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
  background: white;
  color: var(--orange-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Responsivo */
@media (max-width: 768px) {
  .plans-page {
    padding: 1rem;
  }

  .plans-header h1 {
    font-size: 1.875rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .plan-card.current {
    transform: scale(1);
  }
}
.admin-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--orange-ultra-light) 0%, var(--orange-lightest) 50%, var(--orange-lighter) 100%);
  padding-bottom: 40px;
}

.admin-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--orange-primary);
  font-weight: 600;
  background: linear-gradient(135deg, var(--orange-ultra-light) 0%, var(--orange-lightest) 50%, var(--orange-lighter) 100%);
}

.admin-header {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%);
  box-shadow: 0 4px 20px rgba(255, 184, 132, 0.3);
  padding: 24px 32px;
  margin-bottom: 32px;
}

.admin-header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin: 0 0 4px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin: 0;
}

.btn-back-admin {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid white;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}

.btn-back-admin:hover {
  background: white;
  color: var(--orange-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.admin-stats {
  max-width: 1400px;
  margin: 0 auto 32px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--orange-primary);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 184, 132, 0.15);
}

.stat-icon {
  font-size: 40px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange-lighter), var(--orange-lighter));
  border-radius: 12px;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: #6b7280;
  font-weight: 600;
}

.admin-search {
  max-width: 1400px;
  margin: 0 auto 24px;
  padding: 0 32px;
  display: flex;
  gap: 16px;
}

.search-input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px rgba(255, 184, 132, 0.1);
}

.btn-refresh {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%);
  color: white;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 184, 132, 0.25);
}

.btn-refresh:hover {
  background: white;
  color: var(--orange-primary);
  border: 2px solid var(--orange-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 184, 132, 0.3);
}

.users-table-container {
  overflow-x: auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 32px 0;
  max-width: 100%;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table thead {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%);
}

.users-table th {
  padding: 14px 10px;
  text-align: left;
  color: white;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.users-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: all 0.2s ease;
}

.users-table tbody tr:hover {
  background: #f9fafb;
}

.users-table tbody tr.user-inactive {
  opacity: 0.6;
  background: #fef2f2;
}

.users-table td {
  padding: 12px 10px;
  font-size: 13px;
  color: #374151;
}

.admin-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

.plan-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
}

.no-plan {
  color: #9ca3af;
  font-size: 12px;
  font-style: italic;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.status-badge.active {
  background: var(--orange-lighter);
  color: var(--orange-darkest);
}

.status-badge.inactive {
  background: #fee2e2;
  color: #991b1b;
}

.action-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.btn-action {
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  min-height: 36px;
  max-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-edit {
  background: #dbeafe;
}

.btn-edit:hover {
  background: #3b82f6;
  filter: brightness(1.1);
}

.btn-history {
  background: #fef3c7;
}

.btn-history:hover {
  background: #f59e0b;
  filter: brightness(1.1);
}

.btn-credits {
  background: #e9d5ff;
}

.btn-credits:hover {
  background: #a855f7;
  filter: brightness(1.1);
}

.btn-disable {
  background: #fee2e2;
}

.btn-disable:hover {
  background: #ef4444;
  filter: brightness(1.1);
}

.btn-enable {
  background: var(--orange-lighter);
}

.btn-enable:hover {
  background: var(--orange-primary);
  filter: brightness(1.1);
}

/* ===== VERSÃO 30/11/2025 02:47 - TODOS BOTÕES MESMO TAMANHO ===== */
.btn-action-text {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid transparent !important;
  border-radius: 8px !important;
  font-size: 18px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.btn-action-text:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.btn-deactivate {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: transparent !important;
}

.btn-deactivate:hover {
  background: #ef4444 !important;
  color: white !important;
  border-color: transparent !important;
}

.btn-activate {
  background: var(--orange-lighter) !important;
  color: var(--orange-darkest) !important;
  border-color: transparent !important;
}

.btn-activate:hover {
  background: var(--orange-primary) !important;
  color: white !important;
  border-color: transparent !important;
}

.no-results {
  text-align: center;
  padding: 48px 20px !important;
  color: #9ca3af;
  font-size: 16px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

.modal-content.modal-large {
  max-width: 800px;
}

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

.modal-header {
  padding: 24px;
  border-bottom: 2px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
}

.modal-close:hover {
  background: #ef4444;
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: linear-gradient(135deg, var(--orange-lighter), var(--orange-lighter));
  border-radius: 12px;
  margin-bottom: 24px;
}

.user-info strong {
  font-size: 18px;
  color: var(--orange-darkest);
}

.user-info span {
  font-size: 14px;
  color: var(--orange-dark);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

.form-group input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-group input[type="number"]:focus {
  outline: none;
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px rgba(255, 184, 132, 0.1);
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-label span {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
}

.warning-text {
  display: block;
  margin-top: 8px;
  color: #ef4444;
  font-size: 12px;
  font-weight: 600;
}

.modal-footer {
  padding: 24px;
  border-top: 2px solid #f3f4f6;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-cancel {
  padding: 12px 24px;
  background: #f3f4f6;
  color: #6b7280;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: #e5e7eb;
}

.btn-save {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-dark) 100%);
  color: white;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 184, 132, 0.25);
}

.btn-save:hover {
  background: white;
  color: var(--orange-primary);
  border: 2px solid var(--orange-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 184, 132, 0.3);
}

.no-history {
  text-align: center;
  padding: 48px 20px;
  color: #9ca3af;
  font-size: 16px;
}

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

.history-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid var(--orange-primary);
  align-items: center;
}

.history-date {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  white-space: nowrap;
}

.history-type {
  font-size: 13px;
  color: #374151;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-metrics-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.metric-inline {
  font-size: 12px;
  color: var(--orange-dark);
  font-weight: 600;
  white-space: nowrap;
}

.history-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.history-status.status-completed {
  background: var(--orange-lighter);
  color: var(--orange-darkest);
}

.history-status.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.history-status.status-failed {
  background: #fee2e2;
  color: #991b1b;
}

/* Responsivo */
@media (max-width: 1024px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .users-table {
    font-size: 13px;
  }
  
  .users-table th,
  .users-table td {
    padding: 12px 8px;
  }
}

@media (max-width: 768px) {
  .admin-header-content {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .admin-stats {
    grid-template-columns: 1fr;
  }
  
  .admin-search {
    flex-direction: column;
  }
  
  .users-table-container {
    overflow-x: auto;
  }
  
  .users-table {
    min-width: 1000px;
  }
  
  /* Histórico mobile */
  .history-item {
    grid-template-columns: 90px 1fr auto;
    gap: 8px;
    padding: 10px 12px;
  }
  
  .history-date {
    font-size: 11px;
  }
  
  .history-type {
    font-size: 12px;
  }
  
  .metric-inline {
    font-size: 11px;
  }
  
  .history-metrics-inline {
    gap: 6px;
  }
}
.color-settings-page {
  min-height: 100vh;
  background: var(--gradient-light);
  padding: 32px 20px;
}

.color-settings-header {
  max-width: 1200px;
  margin: 0 auto 40px;
  text-align: center;
}

.color-settings-header .back-btn {
  position: fixed;
  top: 24px;
  left: 24px;
  background: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
  z-index: 100;
}

.color-settings-header .back-btn:hover {
  transform: translateX(-4px);
  box-shadow: var(--shadow-lg);
}

.color-settings-header h1 {
  font-size: 36px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.color-settings-header p {
  font-size: 16px;
  color: var(--text-light);
}

.message {
  max-width: 600px;
  margin: 0 auto 32px;
  padding: 16px 24px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  animation: slideDown 0.3s ease;
}

.message.success {
  background: var(--orange-lighter);
  color: var(--orange-darkest);
}

.message.error {
  background: #fee2e2;
  color: #991b1b;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.themes-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.theme-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.theme-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.theme-card.selected {
  border: 3px solid var(--orange-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.theme-card.saving {
  pointer-events: none;
  opacity: 0.7;
}

.theme-preview {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.theme-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.theme-emoji {
  font-size: 48px;
  position: relative;
  z-index: 1;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.theme-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.theme-colors {
  display: flex;
  gap: 8px;
  align-items: center;
}

.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selected-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--orange-primary);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.color-settings-footer {
  max-width: 600px;
  margin: 48px auto 0;
  text-align: center;
}

.hint {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* Responsivo */
@media (max-width: 768px) {
  .color-settings-page {
    padding: 24px 16px;
  }

  .color-settings-header .back-btn {
    position: static;
    margin-bottom: 24px;
  }

  .color-settings-header h1 {
    font-size: 28px;
  }

  .themes-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
  }

  .theme-preview {
    height: 100px;
  }

  .theme-emoji {
    font-size: 36px;
  }
}
