/* Identidade Hunt Sales — mesma paleta de link.huntsales.com.br */
:root {
  --bg: #08060f;
  --bg2: #0d0a1a;
  --card: #130d24;
  --card-2: #1a1230;
  --fg: #ffffff;
  --fg2: rgba(196, 181, 253, 0.86);
  --fg3: rgba(196, 181, 253, 0.66);
  --fg4: rgba(196, 181, 253, 0.42);
  --purple: #6b21a8;
  --violet: #7c3aed;
  --lilac: #a78bfa;
  --pink: #f0abfc;
  --line: rgba(167, 139, 250, 0.18);
  --line-2: rgba(167, 139, 250, 0.28);
  --field: rgba(8, 6, 15, 0.6);
  --err: #fda4af;
  --ok: #86efac;
  --warn: #fcd34d;
  --grad: linear-gradient(135deg, #7c3aed, #6b21a8);
  --grad-text: linear-gradient(100deg, #fff 10%, #c4b5fd 55%, #f0abfc 95%);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--fg);
  font: 16px/1.6 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--lilac); }
::selection { background: rgba(167, 139, 250, 0.35); }

/* Fundo animado: orbes de luz + grade de pontos (padrão da Hunt) */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.backdrop::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(167, 139, 250, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 70%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; will-change: transform; }
.orb.o1 { width: 60vmax; height: 60vmax; top: -25vmax; right: -18vmax; background: radial-gradient(circle, rgba(107, 33, 168, 0.9), transparent 65%); animation: drift1 22s ease-in-out infinite alternate; }
.orb.o2 { width: 50vmax; height: 50vmax; bottom: -25vmax; left: -18vmax; background: radial-gradient(circle, rgba(167, 139, 250, 0.45), transparent 65%); animation: drift2 26s ease-in-out infinite alternate; }
.orb.o3 { width: 28vmax; height: 28vmax; top: 40%; left: 55%; background: radial-gradient(circle, rgba(240, 171, 252, 0.22), transparent 65%); animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-8vmax, 6vmax) scale(1.08); } }
@keyframes drift2 { to { transform: translate(7vmax, -6vmax) scale(1.12); } }
@keyframes drift3 { to { transform: translate(-14vmax, -10vmax) scale(0.9); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 'Poppins', sans-serif; padding: 15px 26px; border-radius: 999px; border: 0;
  color: #fff; background: var(--grad);
  box-shadow: 0 12px 30px -10px rgba(124, 58, 237, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.2s var(--ease), box-shadow 0.25s, filter 0.25s, opacity 0.2s;
  position: relative; overflow: hidden; white-space: nowrap; text-decoration: none;
}
.btn::after { /* brilho que atravessa o botão no hover */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -10px rgba(124, 58, 237, 0.85); filter: brightness(1.08); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.ghost { background: rgba(167, 139, 250, 0.08); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--fg2); }
.btn.ghost:hover { background: rgba(167, 139, 250, 0.14); color: #fff; }
.btn.danger { background: rgba(253, 164, 175, 0.1); color: var(--err); box-shadow: inset 0 0 0 1px rgba(253, 164, 175, 0.3); }
.btn.sm { padding: 10px 16px; font-size: 13px; }
.btn.icon { padding: 10px; border-radius: 12px; }

.input, .select, .textarea {
  width: 100%; padding: 14px 16px; font-size: 16px; color: var(--fg);
  background: var(--field); border: 1px solid var(--line-2); border-radius: var(--radius); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--fg4); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.18); background: rgba(8, 6, 15, 0.8); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select option { background: var(--card); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lilac); padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.32); background: rgba(167, 139, 250, 0.06);
}
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.card {
  position: relative; background: rgba(19, 13, 36, 0.82); border: 1px solid var(--line);
  border-radius: 24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(107, 33, 168, 0.55);
}
.card.glow::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, #6b21a8 18%, #a78bfa 50%, #6b21a8 82%, transparent);
}

.icon-svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }

/* Toasts */
.toasts { position: fixed; z-index: 1000; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; font-size: 14px;
  background: rgba(26, 18, 48, 0.96); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  animation: toastIn 0.4s var(--spring);
}
.toast.err { border-color: rgba(253, 164, 175, 0.4); color: var(--err); }
.toast.ok svg { color: var(--ok); }
.toast.out { animation: toastOut 0.25s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

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