:root {
  /* Tema base (estilo página de doações) */
  --bg: #250000;
  --bg-dark: #180101;
  --bg-glow: #4a1f1f;
  --card: #2a0d0d;
  --card-border: #4a1f1f;
  --text: #efeff1;
  --text-muted: #c9a8a8;
  --accent: #d11f1f;
  --accent-strong: #b81616;
  --highlight: #3ad15f;
  --gold: #f0c14b;
  --danger: #ff382f;
  --warning: #ff5900;

  /* Marcas */
  --twitch: #9146ff;
  --twitch-hover: #7d2ff5;
  --discord: #5865f2;
  --discord-hover: #4752eb;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px circle at 50% -10%, var(--bg-glow), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
}

/* ---------- Card ---------- */
.card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  overflow: hidden;
}

.card__head {
  text-align: center;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.brand__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.card__subtitle {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  transition: all ease 0.3s;
}

/* ---------- Indicador de etapas ---------- */
.steps {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step__bullet {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #342222;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.35s ease;
}

.step__label {
  font-size: 11px;
  color: var(--text-muted);
  transition: color 0.35s ease;
}

.step__line {
  flex: 1;
  max-width: 48px;
  height: 2px;
  background: var(--card-border);
  border-radius: 2px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.step__line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: #FFF;
  transition: width 0.4s ease;
}

.step__line.is-filled::after {
  width: 100%;
}

.step.is-active .step__bullet {
  background: var(--accent);
  border-color: var(--accent);
  color: #230606;
  box-shadow: 0 0 0 4px rgb(209 31 31 / 0.15);
}

.step.is-active .step__bullet.twitch {
  color: #FFF !important;
  background: var(--twitch) !important;
  border: 1px solid var(--twitch) !important;
}

.step.is-active .step__bullet.discord {
  color: #FFF !important;
  background: var(--discord) !important;
  border: 1px solid var(--discord) !important;
}

.step.is-active .step__label {
  color: var(--text);
}

.step.is-done .step__bullet {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #FFF;
}

.step.is-done .step__bullet.twitch {
  color: #FFF !important;
  background: var(--twitch) !important;
  border: 1px solid var(--twitch) !important;
  opacity: 0.6;
}

.step.is-done .step__bullet.discord {
  color: #FFF !important;
  background: var(--discord) !important;
  border: 1px solid var(--discord) !important;
  opacity: 0.6;
}

/* ---------- Painéis (etapas) ---------- */
.panel {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fade-in 0.45s ease both;
}

.panel.is-active {
  display: flex;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
}

.panel__icon--twitch {
  background: rgba(145, 70, 255, 0.15);
  color: var(--twitch);
}

.panel__icon--discord {
  background: rgba(88, 101, 242, 0.15);
  color: var(--discord);
}

.panel__icon--success {
  background: rgb(209 31 31 / 0.15);
  color: var(--accent);
}

.panel__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.panel__text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 340px;
  margin-bottom: 24px;
}

/* ---------- Botões ---------- */
.btn {
  width: 100%;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  cursor: default;
  opacity: 0.85;
}

.btn--twitch {
  background: var(--twitch);
  box-shadow: 0 10px 24px rgba(145, 70, 255, 0.3);
}

.btn--twitch:hover:not(:disabled) {
  background: var(--twitch-hover);
}

.btn--discord {
  background: var(--discord);
  box-shadow: 0 10px 24px rgba(88, 101, 242, 0.3);
}

.btn--discord:hover:not(:disabled) {
  background: var(--discord-hover);
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
  margin-top: 20px;
  box-shadow: 0 10px 24px rgb(209 31 31 / 0.3);
}

.btn--primary:hover:not(:disabled) {
  background: var(--accent-strong);
}

/* Spinner de carregamento */
.btn.is-loading [data-label] {
  visibility: hidden;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn {
  position: relative;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Bloco de alerta ---------- */
.alert {
  width: 100%;
  margin-top: 20px;
  display: flex;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 12px;
  text-align: left;
  background: #1f1f24;
  border: 1px solid var(--card-border);
}

.alert__icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.alert__text {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.alert--twitch {
  border-color: rgba(145, 70, 255, 0.35);
  background: rgba(145, 70, 255, 0.08);
}

.alert--twitch .alert__icon {
  color: var(--twitch);
}

.alert--discord {
  border-color: rgba(88, 101, 242, 0.35);
  background: rgba(88, 101, 242, 0.08);
}

.alert--discord .alert__icon {
  color: var(--discord);
}

/* ---------- Sucesso ---------- */
.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgb(209 31 31 / 0.12);
  border: 1px solid rgb(209 31 31 / 0.3);
  margin-bottom: 24px;
}

.success-badge__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(209 31 31 / 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(31, 209, 163, 0);
  }
}

/* Animação do check */
.check__circle {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: draw-circle 0.6s ease forwards;
}

.check__mark {
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw-mark 0.4s 0.5s ease forwards;
}

@keyframes draw-circle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes draw-mark {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- Rodapé ---------- */
.footer-note {
  cursor: default;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

@media (max-width: 480px) {
  .card {
    padding: 26px 20px;
  }
  .step__line {
    max-width: 32px;
  }
}

.brand .logo {
  width: 250px;
  margin-bottom: 20px;
}

.social__icon {
  font-size: 30px;
}

.loading {
  animation: spin 2s ease-in-out infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* width */
::-webkit-scrollbar {
  width: 6px;
  z-index: 999;
}

/* Track */
::-webkit-scrollbar-track {
  background: #1a1a1a;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #c95555;
  border-radius:50px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #f54343;
}

::-moz-selection { /* Code for Firefox */
  color: #FFF;
  background: #a62a2a;
}

::selection {
  color: #FFF;
  background: #a62a2a;
}

.captcha {
  width: 100%;       /* Ocupa toda a largura do pai */
  max-width: 100%;   /* Garante que não ultrapasse */
  display: none;
  justify-content: center;
  margin-bottom: 20px;
}

/* ---------- Toast notifications ---------- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  width: 100%;
  max-width: 380px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--bg-dark);
  border: 1px solid var(--border);
  border-left: 4px solid var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

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

.toast--success {
  border-left-color: var(--highlight);
}
.toast--error {
  border-left-color: var(--danger);
}
.toast--warning {
  border-left-color: var(--warning);
}
.toast--info {
  border-left-color: var(--gold);
}

.toast__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-weight: 800;
  border-radius: 50%;
  font-size: 0.8rem;
}

.toast--success .toast__icon {
  background-color: rgba(58, 209, 95, 0.15);
  color: var(--highlight);
}
.toast--error .toast__icon {
  background-color: rgba(255, 90, 82, 0.15);
  color: var(--danger);
}
.toast--warning .toast__icon {
  background-color: rgb(255 154 82 / 0.15);
  color: var(--warning);
}
.toast--info .toast__icon {
  background-color: rgba(240, 193, 75, 0.15);
  color: var(--gold);
}

.toast__body {
  flex: 1;
  font-size: 0.88rem;
}

.toast__title {
  font-weight: 700;
  margin-bottom: 2px;
}

.toast__message {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.toast__close {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}

.toast__close:hover {
  color: var(--text);
}

.alert__error {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  background: var(--bg-dark);
  border: 1px solid var(--bg-glow);
  padding: 10px 15px;
  border-radius: var(--radius);
  cursor: default;
  margin-bottom: 20px;
}

.alert__error .bi, .alert__error .mark {
  color: var(--text);
  text-transform: uppercase;
}