/* Design tokens — mesma identidade visual da campanha original (206-2/index.php) */
:root {
  --color-primary: #0aa0ca;
  --color-primary-dark: #0f766e;
  --color-accent-green: #10b981;
  --color-bg: #f9fafb;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ===== Header ===== */
.site-header { background: var(--color-surface); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 40; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-header .logo img { max-width: 60px; }
.nav-links { display: none; align-items: center; gap: 0.5rem; }
.nav-links a { padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; color: #374151; }
.nav-links a:hover { color: var(--color-primary); background: #f9fafb; }
.nav-links .btn-cta { background: var(--color-primary); color: #fff; }
.nav-links .btn-cta:hover { background: var(--color-primary-dark); color: #fff; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-toggle { display: none; } }

.nav-toggle { border: 0; background: transparent; padding: 0.5rem; cursor: pointer; color: #374151; }

.mobile-menu { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.5); display: none; }
.mobile-menu.open { display: block; }
.mobile-menu .panel { background: #fff; width: 84vw; max-width: 320px; height: 100%; margin-left: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-menu .panel a { padding: 0.75rem; border-radius: var(--radius-sm); font-weight: 500; color: #374151; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.25rem; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline { background: #fff; border-color: var(--color-border); color: var(--color-text); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-block { width: 100%; }
.btn-danger { background: #fdeaea; color: #b3261e; }

/* ===== Cards ===== */
.card { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.card-pad { padding: 1.5rem; }

/* ===== Forms ===== */
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.4rem; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field select, .field textarea {
  width: 100%; padding: 0.6rem 0.85rem; border: 1px solid #d1d5db; border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem; color: var(--color-text); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(10,160,202,.15); }
.field .hint { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.3rem; }
.field .error { font-size: 0.8rem; color: #b3261e; margin-top: 0.3rem; }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; }

/* ===== Grid helpers ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ===== Campaign card ===== */
.campaign-card { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.campaign-card-link { color: inherit; display: contents; }
.campaign-favorite-form { position: absolute; top: .65rem; right: .65rem; z-index: 2; }
.campaign-favorite-form button { width: 38px; height: 38px; border: 1px solid #e5e7eb; border-radius: 999px; background: rgba(255,255,255,.95); color: #dc2626; font-size: 1.45rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(15,23,42,.12); }
.campaign-card img { width: 100%; height: 180px; object-fit: cover; }
.campaign-card .body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.campaign-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.campaign-card .category-tag { align-self: flex-start; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--color-primary-dark); background: #ecfdf5; padding: 0.25rem 0.6rem; border-radius: 999px; }
.progress-track { width: 100%; background: #e5e7eb; border-radius: 999px; height: 8px; overflow: hidden; }
.progress-fill { background: var(--color-primary); height: 100%; border-radius: 999px; }
.campaign-card .meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--color-text-muted); }
.campaign-card .raised { font-weight: 700; color: var(--color-primary-dark); font-size: 1rem; }

/* ===== Hero ===== */
.hero { background-color: #0f766e; line-height: 0; }
.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1983 / 690; /* proporção nativa de banner-principal.png (1983x690), sem cortes */
  object-fit: cover;
}

/* ===== Section titles ===== */
.section { padding: 3rem 0; }
.section-title { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.75rem; }
.section-title .bar { width: 12px; height: 26px; border-radius: 20px; background: var(--color-accent-green); display: inline-block; }
.section-title h2 { font-size: 1.4rem; font-weight: 700; margin: 0; }

/* ===== Badges / verified ===== */
.badge-verified { background: var(--color-primary-dark); padding: 4px 10px; color: #fff; font-weight: 500; border-radius: 20px; font-size: 0.7rem; display: inline-block; }

/* ===== Alerts / toasts ===== */
.alert { padding: 0.9rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 1.25rem; }
.alert-error { background: #fdeaea; color: #8d1c13; border: 1px solid #f2c3bf; }
.alert-success { background: #e8faf0; color: #137333; border: 1px solid #b7ebc6; }

.toast-container { position: fixed; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.toast { min-width: 280px; max-width: 420px; padding: 12px 14px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.15); background: #fff; font-size: 14px; display: grid; grid-template-columns: 20px 1fr 20px; gap: 10px; }
.toast--error { border-left: 4px solid #ef4444; }
.toast--success { border-left: 4px solid #16a34a; }

/* ===== Auth pages ===== */
.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 2.5rem 1rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.5rem; margin: 0 0 0.4rem; }
.auth-card .sub { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 1.75rem; }
.auth-links { display: flex; justify-content: space-between; font-size: 0.85rem; margin-top: 1rem; }
.auth-links a { color: var(--color-primary-dark); font-weight: 500; }

/* ===== Dashboard ===== */
.dash-layout { display: block; gap: 2rem; }
@media (min-width: 960px) { .dash-layout { display: flex; align-items: flex-start; } }
.dash-sidebar { width: 100%; background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.25rem; margin-bottom: 1.5rem; }
@media (min-width: 960px) { .dash-sidebar { width: 260px; flex: 0 0 260px; position: sticky; top: 88px; margin-bottom: 0; } }
.dash-sidebar a { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; color: #374151; margin-bottom: 2px; }
.dash-sidebar a:hover { background: #f3f4f6; }
.dash-sidebar a.active { background: #e6f7fb; color: var(--color-primary-dark); }
.dash-sidebar hr { border: none; border-top: 1px solid var(--color-border); margin: 0.75rem 0; }
.dash-main { flex: 1; min-width: 0; }
.stat-tile { background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.25rem; }
.stat-tile .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); font-weight: 700; margin-bottom: 0.5rem; }
.stat-tile .value { font-size: 1.6rem; font-weight: 800; color: var(--color-text); }

.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
table.data-table td { padding: 0.85rem 1rem; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }

.status-pill { display: inline-flex; align-items: center; padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status-pill.draft { background: #f1f5f9; color: #475569; }
.status-pill.pending_review { background: #fff8db; color: #9a6700; }
.status-pill.approved, .status-pill.active { background: #e8faf0; color: #137333; }
.status-pill.rejected { background: #fdeaea; color: #b3261e; }
.status-pill.paused { background: #f1f5f9; color: #475569; }
.status-pill.completed { background: #e6f7fb; color: #0a6475; }
.status-pill.paid { background: #e8faf0; color: #137333; }
.status-pill.pending { background: #fff8db; color: #9a6700; }
.status-pill.failed, .status-pill.cancelled { background: #fdeaea; color: #b3261e; }

/* ===== Wizard ===== */
.wizard-steps { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.wizard-steps .step { flex: 1; min-width: 90px; text-align: center; padding: 0.6rem 0.5rem; border-radius: var(--radius-sm); background: #f1f5f9; color: var(--color-text-muted); font-size: 0.75rem; font-weight: 600; }
.wizard-steps .step.active { background: var(--color-primary); color: #fff; }
.wizard-steps .step.done { background: #e8faf0; color: #137333; }

/* ===== Footer ===== */
.site-footer { background: #1f2937; color: #d1d5db; padding: 2.5rem 0 1.75rem; margin-top: 3rem; }

.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid #374151; margin-bottom: 2rem; }
.footer-social { display: flex; align-items: center; gap: 0.9rem; }
.footer-social-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #374151; color: #d1d5db; }

.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(4, 1fr); text-align: left; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
    .footer-top { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
    .footer-brand p { max-width: 320px; margin-left: auto; margin-right: auto; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; text-align: left; }
    .footer-seals { justify-content: center; }
}
.footer-grid h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 1rem; }
.footer-grid a { display: block; font-size: 0.85rem; color: #9ca3af; margin-bottom: 0.6rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { max-width: 80px; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.82rem; color: #9ca3af; line-height: 1.6; max-width: 320px; margin: 0; }
.footer-seals { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 2rem; }
.footer-seal-img { display: block; width: 115px; height: 40px; }
.footer-divider { border-top: 1px solid #374151; margin: 2rem 0 1.5rem; }
.footer-bottom { text-align: center; font-size: 0.75rem; color: #9ca3af; line-height: 1.8; }

/* ===== Conteúdo original da história (classes copiadas de 206-2/index.php, valores idênticos) ===== */
.campaign-story-body { font-size: .9rem; }
.titulo-bloco { display: flex; align-items: flex-start; gap: .5rem; }
.titulo-barra { width: 12px; height: 26px; border-radius: 20px; background: #10b981; display: inline-block; margin-top: 4px; }
.titulo-texto { font-size: 20px; font-weight: 700; color: #0f172a; line-height: 1.2; margin: 0; }
.destacar-no-texto { background-color: #ecf3fd !important; color: #11acd6 !important; padding: 2px 6px !important; border-radius: 6px !important; }
.paragrafo-historia { font-size: .9rem; line-height: 1.75; margin-bottom: 1.5rem; color: #334155 !important; letter-spacing: -0.01em !important; }
.btn-donation { width: 100%; background-color: #27adec; color: #fff; padding: .75rem 1rem; border-radius: .375rem; font-weight: 500; box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); border: none; cursor: pointer; display: inline-block; text-align: center; text-decoration: none; }
.btn-donation:hover { background-color: #0f766e; }
.max-w-xs { max-width: 20rem; }

/* ===== Avatares de comentário (iniciais) ===== */
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--color-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }

/* ===== Modal de feedback (sucesso/erro) — usado pela denúncia de campanha =====
   Overlay + card centralizados, animação só em CSS/SVG (sem iframe, sem lib externa). */
.rf-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  opacity: 0;
  transition: opacity .25s ease;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .rf-overlay {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}
.rf-overlay[hidden] { display: none; }
.rf-overlay.rf-open { opacity: 1; }

.rf-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 20px;
  padding: 2.25rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.35);
  transform: scale(.92) translateY(6px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
  outline: none;
}
.rf-overlay.rf-open .rf-card { transform: scale(1) translateY(0); opacity: 1; }

.rf-close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.rf-close:hover { background: #f3f4f6; color: #111827; }

.rf-icon { width: 68px; height: 68px; margin: 0 auto 1.1rem; }
.rf-icon[hidden] { display: none; }
.rf-icon svg { width: 100%; height: 100%; }

.rf-ring { stroke: #16a34a; stroke-width: 2.5; fill: none; stroke-dasharray: 151; stroke-dashoffset: 151; animation: rf-draw-ring .5s ease forwards; }
.rf-check { stroke: #16a34a; stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: rf-draw-mark .3s .35s ease forwards; }
.rf-icon--error .rf-ring { stroke: #dc2626; }
.rf-x { stroke: #dc2626; stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: rf-draw-mark .3s .35s ease forwards; }

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

.rf-title { font-size: 1.25rem; font-weight: 700; color: var(--color-text); margin: 0 0 .5rem; }
.rf-desc { font-size: .92rem; line-height: 1.65; color: var(--color-text-muted); margin: 0 0 1.5rem; }
.rf-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

.btn[data-loading="1"] { opacity: .75; cursor: progress; }
.btn-spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: rf-spin .7s linear infinite; margin-right: .45rem; vertical-align: -2px; }
@keyframes rf-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .rf-overlay, .rf-card, .rf-ring, .rf-check, .rf-x, .btn-spinner {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
  }
  .rf-ring, .rf-check, .rf-x { stroke-dashoffset: 0 !important; }
}

/* ===== Página /obrigado — mesma linguagem visual do modal de feedback (.rf-*),
   só que como conteúdo inline da página em vez de modal sobreposto. ===== */
.ty-wrap { max-width: 560px; margin: 0 auto; padding: 3rem 1rem 4rem; }
.ty-card {
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: ty-fade-in .5s ease forwards;
}
.ty-card .rf-icon { transform: scale(.8); animation: ty-icon-scale .4s .1s ease forwards; }
@keyframes ty-fade-in { to { opacity: 1; transform: translateY(0); } }
@keyframes ty-icon-scale { to { transform: scale(1); } }

.ty-amount-card { background: #f7fafc; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; margin: 1.75rem 0; }
.ty-amount-card .label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); margin-bottom: .4rem; }
.ty-amount-card .value { font-size: 2rem; font-weight: 800; color: var(--color-primary-dark); }
.ty-amount-card .campaign { margin-top: .5rem; font-size: .9rem; color: var(--color-text); }

.ty-upsell-intro { text-align: center; margin: 2.5rem 0 1.25rem; font-weight: 600; color: var(--color-text); }
.ty-upsell-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  animation: ty-fade-in .5s .15s ease forwards;
}
.ty-upsell-card img { width: 100%; height: 160px; object-fit: cover; background: #f1f5f9; }
.ty-upsell-card .body { padding: 1.25rem; text-align: center; }
.ty-upsell-card .prices { margin: .75rem 0 1.1rem; }
.ty-upsell-card .price-original { color: var(--color-text-muted); text-decoration: line-through; font-size: .9rem; margin-right: .5rem; }
.ty-upsell-card .price-offer { color: var(--color-primary-dark); font-size: 1.4rem; font-weight: 800; }
.ty-upsell-skip { display: block; text-align: center; margin-top: .85rem; font-size: .85rem; color: var(--color-text-muted); }

@media (prefers-reduced-motion: reduce) {
  .ty-card, .ty-card .rf-icon, .ty-upsell-card {
    animation-duration: .001s !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Utility ===== */
.text-muted { color: var(--color-text-muted); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 2rem; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
