/* Botões Ultra Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 16px);
  transition: var(--transition);
  min-height: 48px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: scale(0.98);
  box-shadow: 0 8px 35px rgba(99, 102, 241, 0.6), 0 0 20px rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  border-color: var(--border-default);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--primary-light);
  background: rgba(99, 102, 241, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
  min-height: 56px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  min-height: 38px;
}

.btn-block {
  width: 100%;
}

/* Animação Glow Pulsante CTA */
.btn-glow {
  animation: pulse-glow-ultra 2.5s infinite ease-in-out;
}

@keyframes pulse-glow-ultra {
  0%, 100% {
    box-shadow: 0 0 20px var(--primary-glow);
  }
  50% {
    box-shadow: 0 0 40px var(--primary-glow), 0 0 80px var(--primary-glow);
  }
}

/* Cards com Glassmorphism Avançado e Camadas */
.card {
  background: linear-gradient(180deg, rgba(30, 30, 35, 0.6) 0%, rgba(15, 15, 20, 0.4) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 10px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Pseudo-element for inner glow */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* 3D Tilt container setup */
.card-tilt {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg);
}

/* Badges */
.badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

/* Form Control & Newsletter Input */
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
  min-height: 44px;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ============================================================
   TOAST NOTIFICATIONS (Premium Glassmorphism)
   ============================================================ */
#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(19, 19, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  border-radius: 12px;
  color: #fafafa;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateX(100%) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 300px;
  max-width: 400px;
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.toast.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon svg {
  width: 20px;
  height: 20px;
}

.toast.success::before {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.toast.success .toast-icon {
  color: #10b981;
}

.toast.error::before {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}
.toast.error .toast-icon {
  color: #ef4444;
}

.toast.warning::before {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}
.toast.warning .toast-icon {
  color: #f59e0b;
}

.toast.info::before {
  background: #6366f1;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}
.toast.info .toast-icon {
  color: #6366f1;
}

.toast-message {
  flex: 1;
  line-height: 1.4;
}

/* ============================================================
   MODALS E UTILITÁRIOS
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  position: relative;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.d-none { display: none !important; }
.flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.w-100 { width: 100%; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.font-bold { font-weight: bold; }
.font-medium { font-weight: 500; }
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.inline-block { display: inline-block; }
.border-none { border: none; }
.bg-transparent { background: transparent; }
.cursor-pointer { cursor: pointer; }
.rounded-md { border-radius: var(--radius-md); }
.border-dashed { border: 1px dashed var(--border-default); }
.outline-none { outline: none; }
.bg-placeholder { background: rgba(255,255,255,0.02); }
.transition-colors { transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.hover\:text-primary:hover { color: var(--primary); }
.focus\:border-primary:focus { border-color: var(--primary); }

.star-filled {
  color: var(--warning);
  fill: var(--warning);
}

