:root {
  --bg-dark: #08080a;
  --card-bg: rgba(18, 18, 26, 0.85);
  --gold-primary: #f59e0b;
  --gold-hover: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --border-color: rgba(245, 158, 11, 0.35);
  --text-main: #f0f0f5;
  --text-muted: #8a8a9e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  padding: 20px;
}

button,
input,
select {
  font: inherit;
}

.bg-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.bg-gif {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  opacity: 0.22;
  filter: contrast(120%) brightness(70%);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.9) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.95) 0%, transparent 50%);
  animation: pulse-glow 8s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes pulse-glow {
  0% {
    opacity: 0.6;
    transform: scale(0.98);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.logo .white {
  color: #ffffff;
}

.logo .gold {
  color: var(--gold-primary);
}

.header-actions {
  display: grid !important;
  grid-auto-flow: column;
  grid-template-columns: max-content max-content;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.header-btn {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--gold-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  white-space: nowrap;
  width: max-content;
}

.header-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 15px var(--gold-glow);
}

.header-btn {
  text-decoration: none;
}

.legacy-modal {
  display: none !important;
}

@media (max-width: 560px) {
  header {
    padding: 16px;
  }

  .logo {
    font-size: 0.92rem;
  }

  .header-actions {
    gap: 5px;
    grid-template-columns: max-content max-content;
  }

  .header-btn {
    padding: 7px 9px;
    font-size: 0.66rem;
    gap: 4px;
  }
}

main {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 480px;
  margin-top: 50px;
}

.hero {
  background: var(--card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--gold-glow);
  position: relative;
  overflow: hidden;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero h1 {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: 0;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 340px;
}

.vip-button {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-primary) 0%, #ea580c 100%);
  color: #08080a;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 16px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vip-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
}

.vip-button:active {
  transform: scale(0.97);
}

.microcopy {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
}

.text-emerald-400 {
  color: #34d399;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #121216;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 0 35px var(--gold-glow);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.modal-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 4px;
}

.modal h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0;
}

.modal-description {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #d0d0e0;
  text-align: left;
}

.lead-form input,
.lead-form select {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}

.lead-form input:focus,
.lead-form select:focus {
  border-color: var(--gold-primary);
}

.password-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-field-wrapper input {
  width: 100%;
  padding-right: 44px !important;
}

.btn-toggle-password {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.05rem;
  padding: 6px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s, background-color 0.2s;
  z-index: 2;
}

.btn-toggle-password:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-toggle-password:focus-visible {
  outline: 2px solid var(--gold-primary);
  color: #ffffff;
}

.senha-alerta-msg {
  display: none;
  font-size: 0.76rem;
  line-height: 1.4;
  margin-top: 2px;
}

.senha-alerta-msg.visible {
  display: flex;
  align-items: center;
  gap: 6px;
}

.senha-alerta-msg.erro {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 6px 10px;
  border-radius: 8px;
}

.lead-form input.input-senha-invalida {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4);
}

.submit-button {
  background: var(--gold-primary);
  color: #000000;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s;
}

.submit-button:hover {
  background: var(--gold-hover);
}

.form-error {
  margin: 12px 0 0;
  color: #fb7185;
  font-size: 0.84rem;
  line-height: 1.4;
}

.text-button {
  display: block;
  margin: 12px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-primary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
}

.text-button:hover:not(:disabled) {
  color: var(--gold-hover);
}

.text-button:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.65;
}

.form-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.success-state {
  text-align: center;
  padding: 10px 0;
}

.success-icon {
  width: 50px;
  height: 50px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--gold-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--gold-primary);
  font-size: 1.2rem;
}

.success-state h2 {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.success-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
}

.success-state .submit-button {
  width: 100%;
}
