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

:root {
  /* Cores Principais */
  --green-primary: #10b981;
  --green-dark: #059669;
  --green-light: #d1fae5;
  --green-lighter: #f0fdf4;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #10b981, #059669);
  --gradient-bg: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
  
  /* Texto */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  
  /* Backgrounds */
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  
  /* Bordas */
  --border-light: #e5e7eb;
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 50px rgba(16, 185, 129, 0.15);
  --shadow-primary: 0 8px 24px rgba(16, 185, 129, 0.3);
  
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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 Globais - Sistema Premium */
.btn-primary {
  padding: 18px 56px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-primary);
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.5px;
  text-align: center;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

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

.btn-secondary {
  padding: 14px 28px;
  background: white;
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--green-lighter);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-large {
  padding: 18px 56px;
  font-size: 18px;
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
}

/* Inputs Globais */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

/* Loading State Global */
.loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--green-primary);
  font-weight: 600;
  background: var(--gradient-bg);
}
.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 #10b981;
}

.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: #10b981;
}

.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(--green-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 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(16, 185, 129, 0.3);
}

.auth-form .btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 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(--green-primary);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.auth-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
}
.dashboard-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
}

.dashboard-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 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(--green-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, #10b981, #059669);
  -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(16, 185, 129, 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, #10b981, #059669);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 50px rgba(16, 185, 129, 0.15);
}

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

.card-content {
  flex: 1;
}

.card-content h3 {
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-value {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981, #059669);
  -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, #10b981 0%, #059669 100%) !important;
  color: white !important;
  border: 2px solid transparent !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 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(--green-primary) !important;
  border: 2px solid var(--green-primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(16, 185, 129, 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, #10b981 0%, #059669 100%) !important;
  color: white !important;
  border: 2px solid transparent !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 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(--green-primary) !important;
  border: 2px solid var(--green-primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 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: #10b981;
  font-weight: 600;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 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%;
  }
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

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

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

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.modal-body {
  padding: 1.5rem;
}
.limit-modal {
  padding: 0;
}

.limit-message {
  margin-bottom: 2rem;
}

.limit-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.limit-subtitle {
  color: #6b7280;
  font-size: 0.95rem;
}

.coupon-section {
  margin-bottom: 2rem;
}

.coupon-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1.5rem;
}

.coupon-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.75rem;
}

.coupon-card p {
  color: #78350f;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.coupon-button {
  width: 100%;
  padding: 0.875rem;
  background: #f59e0b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.coupon-button:hover:not(:disabled) {
  background: #d97706;
}

.coupon-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.upgrade-section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.upgrade-info {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.plans-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.plan-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.plan-option:hover {
  border-color: #10b981;
  background: #f0fdf4;
}

.plan-option-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.plan-option-info p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0.125rem 0;
}

.plan-option-price {
  font-weight: 600;
  color: #10b981 !important;
}

.plan-option-button {
  padding: 0.5rem 1.5rem;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.plan-option-button:hover:not(:disabled) {
  background: #059669;
}

.plan-option-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.view-all-plans {
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  color: #10b981;
  border: 2px solid #10b981;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-all-plans:hover {
  background: #10b981;
  color: white;
}
/* Analyze v2.0 - Grid Layout Moderno */
/* Paleta de cores: Verde Esmeralda (consistente com Login) */
/* Mobile Safari Fix - v2.12 - 2025-11-30 - Unified Filter Buttons */
/* ============================================================================
 * VERSÃO ATUALIZADA - 30/11/2025 00:00
 * Melhorias implementadas:
 * - Botões de filtro no Resumo Técnico: Normais [N], Alterados [A], Todos
 * - TODOS os botões com cor verde uniforme (#10b981)
 * - Cópia sem quebras de linha (texto concatenado com espaços)
 * - Hover consistente: fundo branco + borda verde + elevação
 * - Responsivo: botões flexíveis em mobile
 * - Campo "Exame Clínico" com placeholder coerente
 * ============================================================================ */

.analyze-container-v2 {
  min-height: 100vh;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  flex-direction: column;
}

.analyze-main-v2 {
  flex: 1;
  padding: 2rem;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.analyze-title {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.analyze-title h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #059669;
  margin: 0 0 0.5rem 0;
}

.analyze-title p {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}

.analyze-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.analyze-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.analyze-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.input-section {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-left: 4px solid #10b981;
}

.output-section {
  background: white;
  border-left: 4px solid #e2e8f0;
  transition: border-color 0.3s;
}

.output-section:has(textarea:not(:placeholder-shown)) {
  border-left-color: #10b981;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e2e8f0;
}

.section-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

/* Botões no Header - Desktop: horizontal, Mobile: vertical */
.header-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Mobile First - Botões empilhados por padrão em telas pequenas */
@media (max-width: 768px) {
  .header-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  
  .btn-action {
    width: 100%;
    min-height: 50px;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
  
  .timer-display {
    width: 100%;
    order: -1;
  }
}

/* Cronômetro */
.timer-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  border-radius: 6px;
  font-weight: 600;
  color: #059669;
  white-space: nowrap;
}

.timer-text {
  font-size: 0.9rem;
  min-width: 32px;
}

.timer-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #d1fae5;
  border-top-color: #10b981;
  border-radius: 50%;
  animation: timer-spin 0.8s linear infinite;
}

@keyframes timer-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Botões de Ação - Tamanho adequado para desktop e mobile */
.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  min-height: 48px;
  min-width: 140px;
}

.btn-action svg {
  flex-shrink: 0;
}

/* Todos os botões de ação com estilo verde uniforme */
.btn-start,
.btn-load,
.btn-clear {
  background: #10b981;
  color: white;
  border: 2px solid transparent;
}

.btn-start:hover:not(:disabled),
.btn-load:hover:not(:disabled),
.btn-clear:hover:not(:disabled) {
  background: white;
  color: #10b981;
  border: 2px solid #10b981;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-start:disabled,
.btn-load:disabled,
.btn-clear:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.section-textarea {
  flex: 1;
  min-height: 180px;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}

.input-section .section-textarea {
  min-height: 200px;
  background: #ffffff;
  border-color: #10b981;
  font-weight: 500;
}

.section-textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.section-textarea:read-only {
  background: #f7fafc;
  color: #2d3748;
  cursor: default;
}

.section-textarea::placeholder {
  color: #a0aec0;
}

/* Campo de entrada do Exame Clínico */
.exam-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #10b981;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #1f2937;
  background: white;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.exam-input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.exam-input:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
  opacity: 0.6;
}

.exam-input::placeholder {
  color: #9ca3af;
}

/* Botão Copiar - Estilo verde consistente */
.btn-copy {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem !important;
  background: #10b981 !important;
  color: white !important;
  border: 2px solid transparent !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  width: 36px !important;
  height: 36px !important;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2) !important;
}

.btn-copy:hover {
  background: white !important;
  color: #10b981 !important;
  border-color: #10b981 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3) !important;
}

.btn-copy:active {
  transform: scale(0.95) translateY(0) !important;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2) !important;
}

/* Botão Secundário - Header */
.btn-secondary {
  padding: 0.75rem 1.5rem;
  background: #10b981;
  color: white;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-secondary:hover {
  background: white;
  color: #10b981;
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Botões de Filtro - Resumo Técnico */
.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-filter {
  padding: 0.5rem 1rem;
  background: #10b981;
  color: white;
  border: 2px solid transparent;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
  white-space: nowrap;
}

.btn-filter:hover {
  background: white;
  color: #10b981;
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.btn-filter:active {
  transform: scale(0.95) translateY(0);
}

/* Todos os botões de filtro com estilo verde uniforme */
.btn-filter-normal,
.btn-filter-altered,
.btn-filter-all {
  background: #10b981;
}

.btn-filter-normal:hover,
.btn-filter-altered:hover,
.btn-filter-all:hover {
  background: white;
  color: #10b981;
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.analyze-actions-v2 {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-compact {
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.analyze-loading-v2 {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.analyze-loading-v2 p {
  margin-top: 1rem;
  color: #4a5568;
  font-size: 1rem;
}

.spinner-small {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Responsivo Desktop - Sobrescreve mobile */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Regras para tablet se necessário */
}

/* Responsivo - Mobile Específico */
@media only screen and (max-width: 768px) {
  .analyze-main-v2 {
    padding: 1rem;
  }
  
  .section-textarea {
    min-height: 150px;
    font-size: 0.9rem;
  }
  
  .btn-large, .btn-compact {
    width: 100%;
    max-width: 400px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .analyze-actions-v2 {
    flex-direction: column;
    align-items: center;
  }
  
  .analyze-header-content {
    padding: 0.75rem 1rem !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  
  .analyze-header h1 {
    font-size: 1.25rem !important;
    flex: 1 1 auto !important;
    min-width: 120px !important;
    max-width: calc(100% - 180px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  
  .analyze-header .btn-secondary {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  
  /* Forçar layout vertical em mobile */
  .section-header .header-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  
  .section-header .btn-action {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 50px !important;
    font-size: 0.95rem !important;
    padding: 0.875rem 1rem !important;
  }
  
  .section-header .timer-display {
    width: 100% !important;
    order: -1 !important;
  }
  
  .section-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .section-header h3 {
    font-size: 1rem;
    flex: 1 1 100%;
  }
  
  .btn-copy {
    width: 44px !important;
    height: 44px !important;
    padding: 0.75rem !important;
  }
  
  /* Botões de filtro em mobile */
  .filter-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .btn-filter {
    flex: 1 1 auto;
    min-width: 80px;
    font-size: 0.8rem;
    padding: 0.625rem 0.75rem;
  }
  
  .analyze-title {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .analyze-title h2 {
    font-size: 1.25rem;
    line-height: 1.3;
  }
  
  .analyze-title p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .analyze-grid {
    margin: 1rem 0;
  }
  
  .analyze-section {
    padding: 1rem;
  }
}

/* Animações */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

.analyze-section {
  animation: fadeIn 0.3s ease-out;
}

.analyze-section:nth-child(1) { animation-delay: 0s; }
.analyze-section:nth-child(2) { animation-delay: 0.1s; }
.analyze-section:nth-child(3) { animation-delay: 0.2s; }
.analyze-section:nth-child(4) { animation-delay: 0.3s; }
.analyze-section:nth-child(5) { animation-delay: 0.4s; }

/* Header da página */
.analyze-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.analyze-header-content {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  min-height: 80px;
  position: relative;
  z-index: 1001;
}

.analyze-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #10b981;
  margin: 0;
}

/* FAB Button - Floating Action Button - SEMPRE visível e clicável */
.fab-button {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  color: white !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
  z-index: 999999 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

/* Expandir área de toque para mobile */
.fab-button::before {
  content: '' !important;
  position: absolute !important;
  top: -12px !important;
  left: -12px !important;
  right: -12px !important;
  bottom: -12px !important;
  border-radius: 50% !important;
}

.fab-button:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 12px 32px rgba(16,185,129,0.5) !important;
}

.fab-button:active {
  transform: scale(0.95) !important;
}

/* Mobile: garantir área de toque mínima de 48x48px */
@media (max-width: 768px) {
  .fab-button {
    bottom: 20px !important;
    right: 20px !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    font-size: 24px !important;
  }
}

/* Botões personalizados */
.analyze-container-v2 .btn-primary {
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.analyze-container-v2 .btn-primary:hover:not(:disabled) {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.analyze-container-v2 .btn-primary:active {
  transform: translateY(0);
}

.analyze-container-v2 .btn-secondary {
  background: white;
  color: #10b981;
  border: 2px solid #10b981;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  padding: 12px 24px;
  min-height: 44px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.analyze-container-v2 .btn-secondary:hover:not(:disabled) {
  background: #d1fae5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Estados de Sucesso */
.output-section.has-content {
  border: 2px solid #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Spinner com cores do tema */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(16, 185, 129, 0.2);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

/* Print styles */
@media print {
  .analyze-header,
  .analyze-actions-v2,
  .btn-copy {
    display: none;
  }
  
  .analyze-container-v2 {
    background: white;
  }
  
  .section-textarea {
    border: 1px solid #e2e8f0;
    min-height: auto;
  }
}
.billing-container {
  min-height: 100vh;
  background: var(--gradient-bg);
}

.billing-header {
  background: var(--gradient-primary);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 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(--green-primary);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 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(16, 185, 129, 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: #10b981;
  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(--green-primary);
  border: 2px solid var(--green-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(--green-lighter);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 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(16, 185, 129, 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(16, 185, 129, 0.1);
}

.billing-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-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(--green-primary);
  font-weight: 700;
  font-size: 1.125rem;
}
.profile-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
}

.profile-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 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, #10b981, #059669);
  -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(16, 185, 129, 0.1);
  transition: all 0.3s ease;
}

.profile-section:hover {
  box-shadow: 0 15px 50px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}

.profile-section h3 {
  font-size: 22px;
  font-weight: 700;
  color: #059669;
  margin: 0 0 32px 0;
  padding-bottom: 16px;
  border-bottom: 3px solid #d1fae5;
  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, #f0fdf4 0%, #d1fae5 100%);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #10b981;
}

.info-item label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.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(--green-primary);
  border-radius: 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--green-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(16, 185, 129, 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(16, 185, 129, 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%, #f0fdf4 100%);
  border-radius: 16px;
  text-align: center;
  border: 2px solid #d1fae5;
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
  border-color: #10b981;
}

.stat-value {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981, #059669);
  -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: #f0fdf4;
  border: 2px solid #10b981;
  border-radius: 8px;
  text-align: center;
}

.convert-section p {
  margin: 0 0 16px 0;
  color: #065f46;
  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: #10b981;
  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, #10b981, #059669);
  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(16, 185, 129, 0.3);
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Loading state */
.loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #10b981;
  font-weight: 600;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 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, #10b981, #059669);
  color: white;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
  align-self: flex-start;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 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, #10b981, #059669);
  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(16, 185, 129, 0.3);
}

.btn-manage:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 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: #f0fdf4;
  border: 2px solid #10b981;
  border-radius: 12px;
}

.upgrade-section h4 {
  font-size: 18px;
  font-weight: 700;
  color: #065f46;
  margin: 0 0 12px 0;
}

.upgrade-description {
  font-size: 14px;
  color: #065f46;
  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 #d1fae5;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s;
}

.upgrade-plan-card:hover {
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

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

.upgrade-plan-info h5 {
  font-size: 18px;
  font-weight: 700;
  color: #10b981;
  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: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-upgrade:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* Sem Assinatura */
.no-subscription {
  padding: 48px 32px;
  text-align: center;
  background: linear-gradient(135deg, #f0fdf4, #d1fae5);
  border-radius: 12px;
}

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

.no-subscription-message {
  font-size: 24px;
  font-weight: 700;
  color: #065f46;
  margin: 0 0 16px 0;
}

.no-subscription-description {
  font-size: 16px;
  color: #047857;
  margin: 0 0 32px 0;
  line-height: 1.6;
}

.btn-subscribe {
  padding: 16px 32px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-subscribe:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .subscription-actions {
    flex-direction: column;
  }
  
  .btn-manage,
  .btn-cancel {
    width: 100%;
  }
  
  .upgrade-plans {
    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(--green-primary);
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(16, 185, 129, 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(16, 185, 129, 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: #10b981;
}

.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(16, 185, 129, 0.3);
}

.plan-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 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(--green-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(--green-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, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
  padding-bottom: 40px;
}

.admin-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #10b981;
  font-weight: 600;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
}

.admin-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 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: 12px 24px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid white;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-back-admin:hover {
  background: white;
  color: #10b981;
  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 #10b981;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

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

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981, #059669);
  -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: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.btn-refresh {
  padding: 16px 32px;
  background: linear-gradient(135deg, #10b981 0%, #059669 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(16, 185, 129, 0.25);
}

.btn-refresh:hover {
  background: white;
  color: #10b981;
  border: 2px solid #10b981;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 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, #10b981 0%, #059669 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, #10b981, #059669);
  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: #d1fae5;
  color: #065f46;
}

.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: #d1fae5;
}

.btn-enable:hover {
  background: #10b981;
  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: #d1fae5 !important;
  color: #065f46 !important;
  border-color: transparent !important;
}

.btn-activate:hover {
  background: #10b981 !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, #10b981, #059669);
  -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, #d1fae5, #a7f3d0);
  border-radius: 12px;
  margin-bottom: 24px;
}

.user-info strong {
  font-size: 18px;
  color: #065f46;
}

.user-info span {
  font-size: 14px;
  color: #059669;
}

.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: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 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, #10b981 0%, #059669 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(16, 185, 129, 0.25);
}

.btn-save:hover {
  background: white;
  color: #10b981;
  border: 2px solid #10b981;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 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: 140px 1fr auto;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  border-left: 4px solid #10b981;
  align-items: center;
}

.history-date {
  font-size: 13px;
  color: #6b7280;
  font-weight: 600;
}

.history-type {
  font-size: 14px;
  color: #374151;
  font-weight: 600;
}

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

.history-status.status-completed {
  background: #d1fae5;
  color: #065f46;
}

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