/* ===== Referência: fundo branco, verde primário, Poppins ===== */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #94a3b8;
  --primary: #16a34a;
  --primary-hover: #15803d;
  --primary-soft: rgba(22, 163, 74, 0.12);
  --primary-muted: #22c55e;
  --bar-track: #e2e8f0;
  --border: #e8edf3;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 -8px 32px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --cta-height: 72px;
  --font: "Poppins", system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Topo: logo ===== */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand__logo {
  display: block;
  height: 60px;
  width: auto;
  max-width: min(220px, 58vw);
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.header-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-left: auto;
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.header-icon-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.header-icon {
  display: block;
}

/* ===== Conteúdo ===== */
.main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem 0.5rem;
}

/* ===== Card da campanha (banner + título + valores + barra) ===== */
.campaign-card {
  margin: 0 0 1.35rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.06),
    0 10px 28px rgba(15, 23, 42, 0.07);
}

.campaign-card__banner.banner {
  margin: 0;
}

.campaign-card .banner__frame {
  border-radius: 0;
  box-shadow: none;
}

.campaign-card__body {
  padding: 1.15rem 1.2rem 1.25rem;
}

/* ===== Banner (vertical, cantos arredondados) ===== */
.banner {
  margin: 0 0 1.25rem;
}

.banner__frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #f1f5f9;
}

.banner__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

/* ===== Título abaixo do banner ===== */
.campaign-head {
  margin-bottom: 1rem;
}

.campaign-title {
  font-size: clamp(1.35rem, 4.5vw, 1.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.03em;
}

.campaign-created,
.campaign-beneficiary {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.campaign-created {
  margin: 0.65rem 0 0;
}

.campaign-beneficiary {
  margin: 0.35rem 0 0;
}

.campaign-created time,
.campaign-beneficiary span {
  font-weight: 600;
  color: var(--primary);
}

/* ===== Progresso (valor verde + linha cinza + barra verde) ===== */
.progress-section {
  margin-bottom: 0;
}

.progress-section__raised {
  margin: 0;
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.progress-section__meta {
  margin: 0.4rem 0 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.progress-section__meta span {
  color: var(--text-muted);
  font-weight: 500;
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--bar-track);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-muted) 100%);
  transition: width 0.5s ease;
}

.progress-section__footer {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.progress-section__percent {
  font-weight: 700;
  color: var(--primary);
  margin-right: 0.25rem;
}

/* ===== História (card 3D) ===== */
.story {
  padding-bottom: 0.5rem;
}

.story__content h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  color: var(--text);
}

.story__content .story__meta {
  position: relative;
  z-index: 1;
  margin: 0 0 1.05rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.story__content .story__meta .campaign-created {
  margin-top: 0;
}

.story__content .story__meta .campaign-beneficiary {
  margin-top: 0.35rem;
}

.story-card {
  position: relative;
}

.story__content {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.45rem;
  border-radius: var(--radius);
  background: linear-gradient(
    160deg,
    #ffffff 0%,
    #f8fafc 38%,
    #eef2f7 100%
  );
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow:
    0 2px 1px rgba(255, 255, 255, 0.95) inset,
    0 -4px 12px rgba(15, 23, 42, 0.04) inset,
    0 4px 12px rgba(15, 23, 42, 0.06),
    0 10px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Brilho superior (não cobre o texto: fica atrás do conteúdo) */
.story__content::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.08) 38%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

@media (hover: hover) and (pointer: fine) {
  .story-card:hover .story__content {
    transform: translateY(-2px);
    box-shadow:
      0 2px 1px rgba(255, 255, 255, 0.95) inset,
      0 -4px 12px rgba(15, 23, 42, 0.04) inset,
      0 6px 16px rgba(15, 23, 42, 0.08),
      0 14px 36px rgba(15, 23, 42, 0.09);
  }
}

.story__content p {
  position: relative;
  z-index: 1;
  margin: 0 0 0.85rem;
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.65;
}

.story__content p:last-child {
  margin-bottom: 0;
}

.story__article {
  position: relative;
  z-index: 1;
  text-align: justify;
  line-height: 1.6;
}

.story__article h3 {
  margin: 1.15rem 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.story__article h3:first-of-type {
  margin-top: 0.35rem;
}

.story__article ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.65;
}

.story__article li {
  margin-bottom: 0.35rem;
}

.story__article li:last-child {
  margin-bottom: 0;
}

.story__article p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .story__content {
    transition: none;
  }

  .story-card:hover .story__content {
    transform: none;
  }
}

/* ===== CTA fixa + fade branco ===== */
.cta-spacer {
  height: calc(var(--cta-height) + var(--safe-bottom) + 8px);
}

.cta-fade {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--cta-height) + var(--safe-bottom));
  height: 56px;
  pointer-events: none;
  z-index: 90;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.75) 45%,
    rgba(255, 255, 255, 0.98) 100%
  );
  animation: fadePulse 4s ease-in-out infinite;
}

.cta-fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem calc(0.75rem + var(--safe-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.btn-cta {
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(22, 163, 74, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(22, 163, 74, 0.45);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-cta:focus-visible {
  outline: 3px solid var(--primary-soft);
  outline-offset: 3px;
}

@keyframes fadePulse {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
}

/* ===== Rodapé (logo abaixo do bloco da história) ===== */
.site-footer {
  text-align: center;
  margin: 1.75rem auto 0;
  padding: 1.5rem 0 0.25rem;
  border-top: 1px solid var(--border);
}

.site-footer__brand {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}

.site-footer__rights {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

body.modal-open {
  overflow: hidden;
}

/* Quando o modal de sucesso abre, esconde qualquer outro modal por segurança */
body.pix-success-open #donation-modal,
body.pix-success-open #pix-modal,
body.pix-success-open #pix-loading-modal,
body.pix-success-open #pix-limit-modal {
  display: none !important;
}

/* ===== Modal ===== */
.modal-overlay[hidden],
.modal[hidden] {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: overlayIn 0.25s ease;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  pointer-events: none;
}

.modal--success {
  z-index: 230;
}

.modal:not([hidden]) {
  pointer-events: auto;
}

.modal__inner {
  position: relative;
  width: min(100%, 360px);
  max-width: calc(100vw - 2.25rem);
  overflow: visible;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.65rem 0.65rem calc(0.85rem + var(--safe-bottom));
  padding-top: 2.35rem;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.06),
    0 24px 48px -12px rgba(15, 23, 42, 0.22),
    0 12px 24px -8px rgba(15, 23, 42, 0.12);
  pointer-events: auto;
  animation: modalFloatIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal__inner--loading {
  padding-top: 1.3rem;
  padding-bottom: 1.2rem;
  text-align: center;
}

.pix-loading__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.pix-loading__hint {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 4px solid rgba(148, 163, 184, 0.35);
  border-top-color: var(--primary);
  margin: 0 auto;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalFloatIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal__brand {
  text-align: center;
  margin: 0 0 0.5rem;
  padding: 0 0.5rem;
}

.modal__brand-icon {
  display: block;
  width: 250px;
  height: 50px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.modal__brand-caption {
  margin: 0.35rem auto 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.45;
  text-align: center;
  max-width: 17rem;
}

.modal__title {
  margin: 0 0 0.25rem;
  font-size: 1.02rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

.modal__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.modal__close:hover {
  background: var(--border);
}

.modal__close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.modal__hint {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.35;
}

.donation-grid {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  overflow: visible;
}

.donation-item {
  position: relative;
  overflow: visible;
}

.donation-item--popular {
  z-index: 1;
}

.donation-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0.75rem 0.6rem;
  font-family: var(--font);
  font-size: clamp(0.9rem, 3.4vw, 1.05rem);
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border: 2px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.donation-btn--popular {
  position: relative;
  min-height: 56px;
  padding: 0.75rem 0.6rem;
  border-color: rgba(22, 163, 74, 0.45);
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.12) 0%, var(--primary-soft) 100%);
}

.donation-btn__amount {
  font-size: inherit;
  font-weight: 700;
}

.donation-seal {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  max-width: calc(100% - 4px);
  padding: 0.25rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 1px 6px rgba(22, 163, 74, 0.4);
  z-index: 2;
}

.donation-btn:hover {
  background: rgba(22, 163, 74, 0.2);
  border-color: var(--primary);
}

.donation-btn--popular:hover {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.22) 0%, rgba(22, 163, 74, 0.18) 100%);
}

.donation-btn:active {
  transform: scale(0.98);
}

.donation-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== PIX (modo API) ===== */
.pix-flow {
  margin: 0.4rem 0 0.1rem;
  padding: 0.25rem 0.15rem 0.15rem;
}

.pix-flow__title {
  margin: 0.15rem 0 0.6rem;
  font-size: 0.98rem;
  font-weight: 800;
  text-align: center;
  color: var(--text);
}

.pix-form {
  padding: 0 0.25rem 0.2rem;
}

.pix-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.pix-field__label {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.pix-field__input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.6rem 0.7rem;
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
}

.pix-field__input:focus {
  border-color: rgba(22, 163, 74, 0.6);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

.pix-submit {
  margin: 0.7rem 0 0;
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(22, 163, 74, 0.28);
}

.pix-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.pix-error {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b91c1c;
  text-align: center;
}

.pix-qr {
  padding: 0.15rem 0.25rem 0;
  text-align: center;
}

.pix-qr__hint {
  margin: 0.15rem 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pix-qr__img {
  width: 260px;
  height: 260px;
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  display: block;
  margin: 0 auto;
}

.pix-code {
  width: 100%;
  margin: 0.65rem 0 0;
  min-height: 92px;
  resize: none;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.6rem 0.7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text);
  background: #fff;
}

.pix-qr__actions {
  margin: 0.7rem 0 0.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.pix-copy,
.pix-back {
  border-radius: 12px;
  border: 1px solid rgba(22, 163, 74, 0.28);
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--font);
  font-weight: 800;
  padding: 0.65rem 0.7rem;
  cursor: pointer;
}

.pix-back {
  border-color: var(--border);
  background: #f1f5f9;
  color: var(--text);
}

.pix-status {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
}

.pix-title {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
  color: var(--text);
}

.pix-subtitle {
  margin: 0 0 0.9rem;
  text-align: center;
  color: #334155;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.45;
}

.pix-subtitle__amount {
  color: var(--primary);
  font-weight: 900;
}

.pix-subtitle__pix {
  color: var(--primary);
  font-weight: 900;
}

.pix-validity {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.85rem;
  border-radius: 14px;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
  margin: 0 0 0.95rem;
  text-align: center;
}

.pix-validity__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #16a34a;
}

.pix-validity__time {
  display: block;
  margin-top: 0.1rem;
  font-size: 1.45rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.pix-stepblock__title {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
}

.pix-code-pill {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f1f5f9;
  padding: 0.65rem 0.75rem;
}

.pix-code-pill__input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.82rem;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pix-copy-big {
  margin: 0.75rem 0 0.55rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: none;
  border-radius: 14px;
  background: #22c55e;
  color: #fff;
  font-family: var(--font);
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 0.9rem 1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.26);
}

.pix-copy-big:active {
  transform: scale(0.99);
}

.pix-copy-big__icon {
  display: grid;
  place-items: center;
}

.pix-procedures {
  margin: 0.65rem 0 0;
  padding-left: 0;
  list-style: none;
}

.pix-procedure {
  display: block;
  margin: 0.65rem 0;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: anywhere;
}

.pix-footer {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.pix-status-row {
  margin: 0.25rem 0 0.75rem;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  color: #64748b;
  font-weight: 700;
  font-size: 0.9rem;
}


.mini-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.45);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
  flex: 0 0 auto;
}

.mini-spinner--time {
  border-color: rgba(34, 197, 94, 0.18);
  border-top-color: #22c55e;
}

.mini-spinner--status {
  width: 12px;
  height: 12px;
  border-width: 2px;
}

.pix-success {
  padding-top: 1.1rem;
}

.pix-success__icon {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
  background: rgba(22, 163, 74, 0.12);
  color: var(--primary);
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.16) inset;
}

.pix-success__title {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text);
}

.pix-success__msg {
  margin: 0 auto 0.9rem;
  max-width: 22rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: #475569;
  line-height: 1.45;
}

@media (min-width: 600px) {
  .modal {
    padding: max(1.25rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right))
      max(1.25rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  }

  .modal__inner {
    overflow: visible;
    padding: 0.85rem 0.85rem 1.1rem;
    padding-top: 2.5rem;
    width: min(100%, 360px);
  }

  .donation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .donation-btn {
    min-height: 42px;
    font-size: 0.5rem;
    padding: 0.45rem 0.4rem;
  }

  .donation-btn--popular {
    min-height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-fade {
    animation: none;
  }

  .modal__inner {
    animation: none;
  }

  .modal-overlay {
    animation: none;
  }
}
