/* ============================================================
   COMPONENTS — botões, cards, badges, toast, progress
   ============================================================ */

/* ── Botão primário ── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--indigo);
  border: none;
  color: #fff;
  padding: 15px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.18);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
  background: var(--indigo-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.22);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary .btn-arrow {
  transition: transform 0.2s;
}

.btn-primary:hover:not(:disabled) .btn-arrow {
  transform: translateX(3px);
}

/* ── Botão secundário (outline) ── */
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-secondary:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

/* ── Card genérico ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.card--accent-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--indigo);
}

.card--indigo-border {
  border-color: rgba(22, 163, 74, 0.25);
  background: var(--surface);
}

.card--indigo-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--indigo);
}

/* ── Badge/pill genérico ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.badge--indigo {
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
  color: var(--indigo-dark);
}

.badge--green {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--green);
}

.badge--dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--indigo-light);
  animation: pulse 2s infinite;
}

/* ── Trust pills ── */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text2);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Progress bar ── */
.progress-track {
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--indigo);
  border-radius: 999px;
  width: 0%;
  transition: width 0.6s ease;
}

/* ── Progress steps (success page) ── */
.prog-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.prog-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text3);
  transition: color 0.4s;
}

.prog-step.active,
.prog-step.done {
  color: var(--text1);
}

.prog-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: all 0.4s;
}

.prog-dot.active {
  background: var(--indigo);
  animation: pulse 1.4s infinite;
}

.prog-dot.done {
  background: var(--green);
}

.prog-bar-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
  margin-top: 18px;
}

.prog-bar {
  height: 100%;
  background: var(--indigo);
  border-radius: 999px;
  width: 0%;
  transition: width 1.2s ease;
}

.prog-pct {
  font-size: 11px;
  color: var(--text3);
  text-align: right;
  margin-top: 5px;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13px;
  color: var(--text1);
  max-width: 280px;
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.3s;
  display: flex;
  gap: 9px;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

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

/* ── Loading overlay ── */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.loading-overlay.show {
  display: flex;
}

.loading-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  position: relative;
  overflow: hidden;
}

.loading-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--indigo);
}

.loading-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  border: 3px solid var(--border2);
  border-top-color: var(--indigo);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-title {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.loading-sub {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  font-weight: 300;
}

.loading-dots span {
  display: inline-block;
  animation: blink 1.4s infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
