:root {
  /* Paleta Dark & Brand Colors */
  --bg-body: #050505;
  --bg-card: #121212;
  --bg-card-hover: #1a1a1a;
  
  --brand-red: #d22a35;
  --brand-yellow: #f3a605;
  
  --text-main: #ffffff;
  --text-muted: #b0b0b0;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --shadow-glow: 0 0 20px rgba(210, 42, 53, 0.15);
  
  --radius-lg: 18px;
  --max-w: 500px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* --- AJUSTE CRÍTICO DE LARGURA --- */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  /* Reduzi para 10px nas laterais para ganhar espaço no mobile */
  padding: 10px 10px 40px; 
}

img { display: block; max-width: 100%; }

/* Tipografia */
h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", serif;
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
}

/* Texto padrão centralizado e com melhor leitura */
p {
  margin: 0;
  line-height: 1.5;
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 14px;
}

/* Header & Logo */
.header-clean {
  width: 100%;
  padding: -1px 0 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-logo-wrapper {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-logo-wrapper::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 166, 5, 0.15) 0%, rgba(210, 42, 53, 0.05) 60%, transparent 80%);
  filter: blur(10px);
  z-index: 0;
}

.header-logo {
  width: 60%;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

/* --- HERO E SEÇÕES PADRONIZADOS --- */

/* Configuração Base para Hero e Seções */
.hero, .section {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  margin-top: 20px;
  
  /* AQUI O SEGREDO: Padding reduzido e igual para ambos */
  padding: 24px 16px; 
  
  /* Centraliza todo o texto */
  text-align: center; 
  
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  
  /* Animação */
  opacity: 1; /* Reset para garantir visibilidade se JS falhar */
}

/* Animação específica da Section (Hero geralmente não anima entrada) */
.section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.section.visible { opacity: 1; transform: translateY(0); }

/* Títulos */
.hero__title {
  font-size: 1.75rem;
  line-height: 1.15;
  background: linear-gradient(180deg, #fff 0%, #ddd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.hero__subtitle, .section__subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 15px;
}

.section__title {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--brand-yellow);
}

/* Imagens dentro dos cards */
.imager {
  border-radius: 12px;
  margin-top: 12px;
  border: 1px solid var(--border-light);
  width: 100%;
}

/* Versículo */
.hero__verse {
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: #ccc;
  font-style: italic;
}
.hero__verse strong {
  display: block;
  margin-top: 6px;
  color: var(--brand-yellow);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-style: normal;
}

/* Botões */
.donate-btn, .js-donate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #2fb07a;
  color: #fff;
  box-shadow: 0 4px 15px rgba(148, 238, 59, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.donate-btn:active { transform: scale(0.98); }

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(243, 166, 5, 0.1);
  border: 1px solid rgba(243, 166, 5, 0.3);
  font-size: 0.75rem;
  color: var(--brand-yellow);
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

/* Vídeo */
.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-light);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  margin-top: 15px;
  aspect-ratio: 16/9;
}
.video-overlay-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-transform: uppercase;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.video-overlay-play:hover { transform: scale(1.01); }
.video-overlay-play.hidden { opacity: 0; pointer-events: none; }
.overlay-hint {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f3a605;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

/* Melhorias para mobile */
@media (max-width: 768px) {
  .video-wrapper {
    touch-action: manipulation;
  }
  
  .hero-video {
    -webkit-playsinline: true;
    playsinline: true;
  }
  
  .video-overlay-play {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

/* Pix Area */
.pix-card-custom {
  background: #1a1a1a;
  border: 1px solid rgba(243, 166, 5, 0.2);
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
}
.pix-steps {
  text-align: left; /* Passos do PIX ficam melhor alinhados à esquerda para leitura */
  background: #252525;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.pix-step-item { display: flex; gap: 10px; margin-bottom: 12px; text-align: left; }
.step-num {
  background: var(--brand-yellow);
  color: #000;
  font-weight: 800;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.pix-key-wrapper input {
  background: #000;
  border: 1px dashed var(--brand-yellow);
  color: #fff;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  text-align: center;
  font-family: monospace;
  font-size: 0.9rem;
}
.pix-copy-btn {
  background: transparent;
  border: 1px solid var(--brand-yellow);
  color: var(--brand-yellow);
  margin-top: 10px;
}

/* Destino da Doação (Checklist) */
.doacao-destino h2 { color: var(--text-main); font-size: 1.5rem; text-align: center; }
.doacao-destino .sub { text-align: center; color: var(--brand-yellow); font-size: 1rem; margin-bottom: 20px; }

.destino-item {
  background: #1a1a1a;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--brand-yellow);
  border-radius: 8px;
  padding: 12px;
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 10px;
  text-align: left; /* Mantive o item alinhado à esquerda pois é uma lista com ícone */
}
.destino-item p { margin: 0; color: #eee; font-size: 0.95rem; }
.doacao-impacto__ico--pos { color: var(--brand-yellow); border-color: var(--brand-yellow); background: transparent; }

/* Financeiro */
.finance-summary {
  background: linear-gradient(45deg, #1a1a1a, #222);
  border: 1px solid var(--border-light);
  padding: 16px; border-radius: 12px; text-align: center;
}
.finance-summary__label {
  background: var(--brand-red);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}
.finance-summary__value {
  color: #fff;
  font-size: 1.6rem;
  margin-top: 10px;
  text-shadow: 0 0 10px rgba(255,255,255,0.2);
}
.finance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.finance-card {
  background: #1a1a1a;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  text-align: center; /* Cards centralizados */
}
.finance-card strong { color: var(--brand-yellow); display: block; margin-bottom: 4px; font-size: 0.85rem; }
.finance-card span { display: block; font-weight: 700; color: #fff; margin-bottom: 4px; }
.finance-card small { color: #888; font-size: 0.75rem; line-height: 1.2; display: block; }
.finance-warning {
  border: 1px dashed var(--brand-red);
  background: rgba(210, 42, 53, 0.05);
  color: #ffcccc;
  padding: 12px;
  border-radius: 10px;
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
}

/* FAQ */
.faq-item {
  background: #1a1a1a;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  margin-top: 10px;
  overflow: hidden;
  text-align: left; /* FAQ fica melhor alinhado à esquerda */
}
.faq-question {
  padding: 14px;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff; font-weight: 600; cursor: pointer;
}
.faq-answer {
  padding: 0 14px; color: #bbb; max-height: 0; overflow: hidden; transition: all 0.3s;
}
.faq-item.open .faq-answer { padding-bottom: 14px; max-height: 300px; }
.faq-toggle { color: var(--brand-yellow); }

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 30px 16px;
  background: #000;
  border-top: 2px solid var(--brand-red);
  text-align: center;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.logo-sm { width: 60px;  }
.footer-brand .desc { color: #888; font-size: 0.85rem; margin-top: 10px; }
.footer-links a {
  color: #fff;
  margin: 0 8px;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 1; color: var(--brand-yellow); }
.social-row { display: flex; gap: 12px; margin-top: 10px; }
.social-btn {
  background: #222;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid #333;
  transition: all 0.2s;
}
.social-btn img { width: 20px; height: 20px; filter: invert(1); }
.social-btn:hover { background: var(--brand-red); border-color: var(--brand-red); }
.footer-legal { color: #555; font-size: 0.75rem; margin-top: 20px; }

/* MODAL & UTILS */
.donation-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(5px);
}
.donation-modal.show { display: flex; animation: fadeIn 0.3s; }
.donation-modal__dialog {
  width: 100%; max-width: 500px;
  background: #181818;
  border: 1px solid #333;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.donation-modal__header {
  background: #222;
  padding: 16px 20px;
  border-bottom: 1px solid #333;
  display: flex; justify-content: space-between; align-items: center;
}
.donation-modal__header h2 { color: #fff; font-size: 1.2rem; }
.donation-modal__close { background: none; border: none; color: #888; font-size: 24px; cursor: pointer; }

.donation-modal__body { padding: 20px; }
.donation-table {
  background: #111;
  border: 1px solid rgba(243, 166, 5, 0.35);
  box-shadow: 0 10px 25px rgba(243, 166, 5, 0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}
.donation-table__header {
  text-align: left;
  color: #bbb;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.donation-table__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.cta-amount-btn {
  font-weight: 800;
  background: radial-gradient(circle at 20% 20%, rgba(243,166,5,0.35), rgba(47,176,122,0.18));
  border-color: rgba(243,166,5,0.5);
}
.cta-amount-btn.selected {
  background: linear-gradient(135deg, #f3a605, #2fb07a);
  color: #000;
  border-color: #f3a605;
  box-shadow: 0 8px 20px rgba(47,176,122,0.4);
}
.donation-amount-btn {
  background: #2a2a2a; color: #fff;
  border: 1px solid #333;
  padding: 12px; border-radius: 8px; cursor: pointer;
  transition: all 0.2s;
}
.donation-amount-btn:hover { border-color: var(--brand-yellow); }
.donation-amount-btn.selected {
  background: var(--brand-yellow);
  color: #000;
  border-color: var(--brand-yellow);
  font-weight: 800;
}
.donation-custom p { color: #bbb; margin: 15px 0 5px; text-align: center; font-size: 0.9rem; }
.donation-custom-input {
  display: flex; background: #000; border: 1px solid #333; border-radius: 8px; overflow: hidden;
}
.currency-symbol {
  background: #222; color: #888; padding: 12px; font-weight: 700;
}
.donation-custom-input input {
  background: transparent; border: none; color: #fff; width: 100%; padding: 10px; font-size: 1.1rem; outline: none;
}
.donation-info label { display: block; color: #888; font-size: 0.85rem; margin-top: 12px; margin-bottom: 6px; }
.donor-input, .donor-textarea {
  width: 100%; background: #000; border: 1px solid #333;
  color: #fff; padding: 10px; border-radius: 8px; outline: none;
}
.donor-input:focus, .donor-textarea:focus { border-color: var(--brand-yellow); }
.donor-input.disabled-field,
.donor-input:disabled {
  background: #0a0a0a;
  border-color: #222;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.donation-submit-btn {
  width: 100%; margin-top: 20px; padding: 16px;
  background: #2fb07a;
  color: #fff; font-weight: 800; border: none; border-radius: 12px;
  font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 5px 20px rgba(210, 42, 53, 0.3);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 768px) {
  .page { margin-top: 40px; margin-bottom: 40px; }
  .donation-table__grid { grid-template-columns: repeat(3, 1fr); }
  .hero, .section { padding: 40px; } /* Desktop com mais espaço */
}
@media (max-width: 480px) {
  .donation-table__grid { grid-template-columns: repeat(2, 1fr); }
}

.toast-custom {
  background: #222; color: #fff; border: 1px solid #333;
}
.toast-icon { background: var(--brand-yellow); color: #000; }
/* --- ESTILO DA ÁREA PIX (DARK MODE) --- */

.pix-card-custom {
  background: #1a1a1a;
  border: 1px solid rgba(243, 166, 5, 0.2); /* Borda amarela sutil */
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  margin-top: 15px;
}

.pix-steps {
  text-align: left;
  background: #252525;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.05);
}

.pix-step-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.pix-step-item:last-child { margin-bottom: 0; }

.step-num {
  background: var(--brand-yellow); /* Amarelo da marca */
  color: #000;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pix-step-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #ddd; /* Texto claro */
  line-height: 1.4;
}

.pix-key-wrapper {
  margin-bottom: 16px;
  text-align: center;
}

.pix-key-wrapper label {
  display: block;
  font-size: 0.85rem;
  color: #bbb;
  margin-bottom: 6px;
  font-weight: 600;
}

.pix-key-wrapper input {
  width: 100%;
  padding: 14px;
  background: #000; /* Fundo preto */
  border: 2px dashed var(--brand-yellow); /* Borda tracejada amarela */
  border-radius: 8px;
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  outline: none;
  transition: all 0.2s;
}

.pix-key-wrapper input:focus {
  background: #111;
  box-shadow: 0 0 0 4px rgba(243, 166, 5, 0.15);
}

.pix-key-wrapper small {
  display: block;
  font-size: 0.75rem;
  color: #666;
  margin-top: 6px;
}

.pix-action-wrapper { margin-bottom: 20px; }

/* Botão de copiar específico */
.pix-copy-btn {
  width: 100%; 
  font-size: 1rem;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--brand-yellow);
  border: 1px solid var(--brand-yellow);
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
}

.pix-copy-btn:hover {
  background: rgba(243, 166, 5, 0.1);
}

.pix-copy-btn:active {
  transform: scale(0.98);
}

.pix-safe-text {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #2FB07A; /* Verde de segurança */
  font-weight: 600;
}

.receiver-box {
  background: #252525;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 14px;
  font-size: 0.9rem;
}

.receiver-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 6px;
}
.receiver-row:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.receiver-row span { color: #888; }
.receiver-row strong { color: #fff; font-weight: 700; }

/* TOAST Notification */
.toast-custom {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #222;
  border: 1px solid #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 10000;
  min-width: 280px;
}
.toast-custom.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.toast-icon { 
  background: var(--brand-yellow); 
  width: 32px; height: 32px; 
  border-radius: 50%; 
  display: flex; align-items: center; justify-content: center; 
  color: #000; 
}
.toast-content { display: flex; flex-direction: column; text-align: left; }
.toast-content strong { font-size: 0.95rem; display: block; }
.toast-content span { font-size: 0.8rem; opacity: 0.8; }

.footer-brand {
  display: flex;
  flex-direction: column; /* Garante que fique um em cima do outro */
  align-items: center;    /* Centraliza horizontalmente */
  gap: 10px;              /* Espaço entre o logo e o texto */
  width: 100%;
}

.logo-sm {
  width: 60px;
  height: auto;
  margin: 0 auto; /* Força a imagem a ir para o centro */
  display: block;
  
  opacity: 0.9;
}

.footer-brand .desc {
  color: #888;
  font-size: 0.85rem;
  text-align: center; /* Garante que o texto também centralize */
  margin-top: 0;      /* Remove margem extra pois já usamos gap */
}

/* Spinner de Carregamento Global */
.global-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  backdrop-filter: blur(5px);
}

.loading-spinner {
  text-align: center;
  color: var(--text-main);
}

.loading-spinner p {
  margin-top: 20px;
  font-size: 16px;
  color: var(--brand-yellow);
  font-weight: 600;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(243, 166, 5, 0.2);
  border-top-color: var(--brand-yellow);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}