@charset "UTF-8";
/* ============================================================================
   Checkout Doações — Redesign 2026
   Sistema premium, mobile-first, sofisticado e confiável
   ============================================================================ */

:root {
  /* ----- Paleta verde "money" ----- */
  --green-900: #064e28;
  --green-800: #075c2f;
  --green-700: #0a6e3a;     /* primário (mais profundo, premium) */
  --green-600: #0d8a48;
  --green-500: #16a34a;
  --green-400: #4ade80;
  --green-100: #dcf5c8;     /* fundo suave */
  --green-50:  #f1fae5;     /* hover suave */

  /* ----- Neutros refinados ----- */
  --bg:        #fafbfa;     /* off-white esverdeado sutil */
  --surface:   #ffffff;
  --surface-2: #f4f6f4;

  --ink:       #0c1612;     /* "carbon dark" — quase preto com tom verde */
  --ink-2:     #2c3733;     /* texto secundário */
  --ink-3:     #5a6b65;     /* texto muted */
  --ink-4:     #8a9590;     /* placeholder, hint */

  --line:      #e8ece9;     /* bordas suaves */
  --line-2:    #d6dcd8;

  /* ----- Sombras coloridas (premium) ----- */
  --shadow-xs:    0 1px 2px rgba(12, 22, 18, 0.04);
  --shadow-sm:    0 2px 8px rgba(12, 22, 18, 0.05);
  --shadow-md:    0 8px 24px rgba(12, 22, 18, 0.07);
  --shadow-lg:    0 20px 50px rgba(12, 22, 18, 0.10);
  --shadow-green: 0 8px 30px rgba(10, 110, 58, 0.18);
  --shadow-green-soft: 0 4px 20px rgba(10, 110, 58, 0.10);

  /* ----- Border radius ----- */
  --r-xs:   8px;
  --r-sm:   12px;
  --r-md:   16px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  /* ----- Tipografia ----- */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
               "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* ----- Safe areas ----- */
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ----------- Reset moderno ----------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 15px;
  font-feature-settings: "ss01", "cv11", "tnum";  /* numerals tabulares + alts */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}

button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ----------- Container ----------- */
.app {
  max-width: 460px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ----------- Header (esconde na tela 1) ----------- */
.header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  padding-top: calc(14px + var(--safe-top));
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header .back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  margin-left: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
}
.header .back-btn:hover { background: var(--line); }
.header .back-btn:active { transform: scale(0.92); }
.header h1 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

/* ----------- Screens ----------- */
.screen { display: none; }
.screen.active {
  display: block;
  animation: screenIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SCREEN 1 — Valor da doação (HERO + cards)
   ============================================================ */

.hero-card {
  position: relative;
  margin: 0 0 12px;
  padding: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #0a6e3a 0%, #075c2f 100%);
  color: #fff;
  box-shadow: var(--shadow-green-soft);
}
.hero-card-inner {
  padding: calc(20px + var(--safe-top)) 20px 18px;
  position: relative;
  z-index: 2;
}
.hero-card::before {
  /* halo decorativo */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(74, 222, 128, 0.25), transparent 60%);
  z-index: 1;
}
.hero-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.hero-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-meta {
  flex: 1;
  min-width: 0;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(220, 245, 200, 0.95);
  margin-bottom: 2px;
}
.hero-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.2;
}

.hero-progress {
  margin-top: 6px;
}
.hero-progress-numbers {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.hero-progress-raised {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-progress-raised small {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 4px;
}
.hero-progress-goal {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.hero-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--r-pill);
  overflow: hidden;
  position: relative;
}
.hero-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #b8e986, #4ade80);
  border-radius: var(--r-pill);
  width: 0;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}
.hero-progress-stats {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}
.hero-progress-stats span::before {
  content: "•";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.4);
}
.hero-progress-stats span:first-child::before { display: none; }

/* IRS banner — agora mais sofisticado */
.irs-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 0 16px 16px;
  background: linear-gradient(135deg, var(--green-100) 0%, #c8f0a3 100%);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--green-900);
  font-weight: 600;
  line-height: 1.4;
  box-shadow: var(--shadow-xs);
}
.irs-banner svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--green-700);
}

/* ----------- Toast de prova social ----------- */
.social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 14px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  color: var(--ink-2);
  animation: socialProofPulse 0.5s ease-out;
  transition: opacity 0.25s ease;
}
@keyframes socialProofPulse {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.social-proof-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.social-proof-text {
  flex: 1;
  min-width: 0;
}
.social-proof-text strong {
  color: var(--ink);
  font-weight: 700;
}
.social-proof-text small {
  color: var(--ink-4);
  font-size: 11px;
  margin-left: 4px;
}
.social-proof-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  position: relative;
  flex-shrink: 0;
}
.social-proof-pulse::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--green-500);
  opacity: 0.3;
  animation: pulseDot 1.6s ease-out infinite;
}
@keyframes pulseDot {
  0%   { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ----------- Seção principal ----------- */
.section {
  padding: 0 16px;
}
.section + .section { margin-top: 18px; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 10px;
  padding-left: 4px;
}

/* ----------- Grid de valores (cards limpos) ----------- */
.amounts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.amount-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 12px;
  cursor: pointer;
  position: relative;
  text-align: left;
  font-family: inherit;
  width: 100%;
  min-height: 130px;
  transition: border-color 0.2s, background 0.2s,
              transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.amount-card:hover {
  border-color: var(--green-400);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.amount-card:active { transform: scale(0.97); }
.amount-card.selected {
  border-color: var(--green-700);
  background: var(--green-50);
  box-shadow: var(--shadow-green-soft), 0 0 0 4px rgba(10, 110, 58, 0.08);
}
.amount-card .value {
  font-size: 22px;
  font-weight: 800;
  color: var(--green-700);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.amount-card .desc {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.35;
  font-weight: 500;
  /* Limita a 4 linhas pra manter altura uniforme mas mostrar mais texto */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.amount-card .badge {
  position: absolute;
  top: -10px;
  left: 12px;
  transform: none;
  background: var(--green-700);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  line-height: 1.2;
  text-transform: uppercase;
  box-shadow: var(--shadow-green-soft);
}

/* ----------- Input de valor livre ----------- */
.custom-amount-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 16px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  cursor: text;
  min-height: 64px;
}
.custom-amount-row:focus-within {
  border-color: var(--green-700);
  background: var(--green-50);
  box-shadow: var(--shadow-green-soft);
}
.custom-amount-row.has-value {
  border-color: var(--green-700);
  background: var(--green-50);
}
.custom-amount-prefix {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-4);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.custom-amount-row:focus-within .custom-amount-prefix,
.custom-amount-row.has-value .custom-amount-prefix {
  color: var(--green-700);
}
.custom-amount-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  font-family: inherit;
  min-width: 0;
  -moz-appearance: textfield;
  font-variant-numeric: tabular-nums;
}
.custom-amount-input::placeholder {
  color: var(--ink-4);
  font-weight: 500;
}
.custom-amount-input::-webkit-outer-spin-button,
.custom-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.custom-amount-display {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-4);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  min-width: 24px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.custom-amount-row:focus-within .custom-amount-display,
.custom-amount-row.has-value .custom-amount-display {
  color: var(--green-700);
}
.custom-amount-submit {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s, background 0.15s;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  padding: 0;
  margin-left: 4px;
  box-shadow: var(--shadow-green);
}
.custom-amount-submit svg { width: 20px; height: 20px; }
.custom-amount-row.has-value .custom-amount-submit {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}
.custom-amount-submit:hover { background: var(--green-800); }
.custom-amount-submit:active { transform: scale(0.92); }

/* ----------- Selos de confiança ----------- */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 16px calc(18px + var(--safe-bottom));
  margin-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}
.trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--green-700);
  flex-shrink: 0;
}
.trust-divider {
  width: 1px;
  height: 14px;
  background: var(--line-2);
}

/* ============================================================
   SCREEN 2 — Identificação
   ============================================================ */

.screen-pad { padding: 18px 16px 24px; }

.donation-summary-card {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: #fff;
  padding: 16px 18px;
  border-radius: var(--r-md);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-green-soft);
}
.donation-summary-card .label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: 2px;
}
.donation-summary-card .value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.donation-summary-card .heart {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.donation-summary-card .heart svg { width: 18px; height: 18px; color: #fff; }

/* legacy fallback */
.donation-summary {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 14px;
  font-weight: 500;
}

.option-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-family: inherit;
  width: 100%;
  text-align: left;
  min-height: 76px;
  transition: border-color 0.2s, background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.option-card:hover {
  border-color: var(--green-400);
  box-shadow: var(--shadow-sm);
}
.option-card:active { transform: scale(0.99); }
.option-card.selected {
  border-color: var(--green-700);
  background: var(--green-50);
  box-shadow: var(--shadow-green-soft);
}
.option-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.option-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--green-700);
  fill: none;
  stroke-width: 2;
}
.option-text { min-width: 0; flex: 1; }
.option-text h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--ink);
}
.option-text p {
  font-size: 13px;
  color: var(--ink-3);
}
.option-arrow {
  color: var(--ink-4);
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.15s, color 0.15s;
}
.option-card:hover .option-arrow {
  color: var(--green-700);
  transform: translateX(2px);
}

/* ============================================================
   SCREEN 3/4 — Confirmar doação
   ============================================================ */

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.form-group label .optional {
  color: var(--ink-4);
  font-weight: 400;
  font-size: 12.5px;
  margin-left: 4px;
}
.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: 16px;
  background: var(--surface);
  font-family: inherit;
  outline: none;
  color: var(--ink);
  min-height: 50px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-group input::placeholder { color: var(--ink-4); }
.form-group input:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(10, 110, 58, 0.12);
  background: var(--surface);
}

.phone-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  min-height: 50px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.phone-input:focus-within {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(10, 110, 58, 0.12);
}
.phone-input .prefix {
  font-weight: 700;
  color: var(--ink-3);
  font-size: 15px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.phone-input input {
  border: none;
  padding: 14px 0;
  flex: 1;
  background: transparent;
  font-size: 16px;
  outline: none;
  color: var(--ink);
  min-width: 0;
}

.method-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 4px;
  color: var(--ink-2);
}
.methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.method-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  min-height: 70px;
  transition: border-color 0.2s, background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.method-card:hover {
  border-color: var(--green-400);
  box-shadow: var(--shadow-xs);
}
.method-card:active { transform: scale(0.98); }
.method-card.selected {
  border-color: var(--green-700);
  background: var(--green-50);
  box-shadow: var(--shadow-green-soft);
}
.method-card .mbway-logo,
.method-card .mb-logo {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.method-card .mbway-logo .mb {
  background: #ffeb3b;
  color: #000;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 900;
}
.method-card .mb-logo .mb-box {
  background: #fff;
  color: #004a9f;
  border: 2px solid #004a9f;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 900;
}

/* Resumo do pagamento (mais bonito) */
.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 14px;
  color: var(--ink-2);
}
.summary-line.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}
.summary-line .v { font-variant-numeric: tabular-nums; }

/* ----------- Botões ----------- */
.btn-primary {
  width: 100%;
  background: var(--green-700);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: var(--r-pill);
  font-size: 15.5px;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s, box-shadow 0.2s;
  font-family: inherit;
  min-height: 54px;
  letter-spacing: 0.005em;
  box-shadow: var(--shadow-green-soft);
}
.btn-primary:hover:not(:disabled) {
  background: var(--green-800);
  box-shadow: var(--shadow-green);
}
.btn-primary:active:not(:disabled) { transform: scale(0.98); }
.btn-primary:disabled {
  background: #c5d3cb;
  cursor: not-allowed;
  opacity: 0.8;
  box-shadow: none;
}
.btn-cancel {
  background: var(--surface);
  color: var(--ink-2);
  border: 1.5px solid var(--line-2);
  padding: 15px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  min-height: 50px;
  transition: background 0.15s;
}
.btn-cancel:hover { background: var(--surface-2); }

/* Selo de pagamento seguro abaixo do botão */
.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
}
.secure-badge svg { width: 13px; height: 13px; color: var(--green-700); }

/* ============================================================
   SCREEN 5 — Aguardando pagamento (timeline)
   ============================================================ */

.waiting-screen {
  text-align: center;
  padding: 32px 20px;
}

/* Timeline de status */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px auto 28px;
  max-width: 280px;
  text-align: left;
}
.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}
.timeline-step:not(:last-child) { padding-bottom: 18px; }
.timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline-step.done::after { background: var(--green-700); }
.timeline-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  color: var(--ink-4);
}
.timeline-step.done .timeline-icon {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}
.timeline-step.active .timeline-icon {
  background: #fff;
  border-color: var(--green-700);
  color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(10, 110, 58, 0.15);
  animation: timelinePulse 1.6s ease-in-out infinite;
}
@keyframes timelinePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(10, 110, 58, 0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(10, 110, 58, 0.05); }
}
.timeline-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  line-height: 1.3;
  padding-top: 2px;
}
.timeline-step.done .timeline-text { color: var(--ink-2); }
.timeline-step.active .timeline-text { color: var(--ink); }

.waiting-screen h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.waiting-screen p {
  color: var(--ink-3);
  font-size: 14px;
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Card MB (referência) — premium */
.mb-reference-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 20px;
  margin: 22px auto 0;
  max-width: 340px;
  text-align: left;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.mb-reference-card .title {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 14px;
  color: var(--green-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mb-ref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
  gap: 12px;
}
.mb-ref-row:last-child { border-bottom: none; padding-bottom: 0; }
.mb-ref-row .label {
  color: var(--ink-3);
  flex-shrink: 0;
  font-weight: 500;
}
.mb-ref-row .value {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--ink);
  text-align: right;
  word-break: break-all;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   SCREEN 6 — Sucesso (+ confete)
   ============================================================ */

.result-screen {
  text-align: center;
  padding: 56px 24px 32px;
  position: relative;
  overflow: hidden;
}
.result-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 42px;
  font-weight: 800;
  position: relative;
  animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes iconPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.result-icon.success {
  background: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow-green);
}
.result-icon.success::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--green-100);
  z-index: -1;
}
.result-icon.failure { background: #fde2e2; color: #c0392b; }
.result-icon.warning { background: #fef0c7; color: #b58305; }

.result-screen h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.result-screen p {
  color: var(--ink-3);
  font-size: 14.5px;
  margin-bottom: 26px;
  line-height: 1.55;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.result-screen p strong { color: var(--ink); }

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
}
.btn-share {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  min-height: 50px;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}
.btn-share:hover { background: #1eb558; }
.btn-share:active { transform: scale(0.98); }
.btn-share svg { width: 18px; height: 18px; }
.btn-link {
  background: none;
  border: none;
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px;
  font-family: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  transition: color 0.15s;
}
.btn-link:hover { color: var(--green-700); }

/* Confetti container */
.confetti {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
  overflow: hidden;
}
.confetti span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
  animation: confettiFall 2.5s ease-out forwards;
}
@keyframes confettiFall {
  0%   { opacity: 1; transform: translateY(-30px) rotate(0deg); }
  100% { opacity: 0; transform: translateY(220px) rotate(720deg); }
}

/* ============================================================
   Responsivo
   ============================================================ */

@media (max-width: 380px) {
  .amounts-grid { gap: 8px; }
  .amount-card { padding: 12px 10px; min-height: 130px; }
  .amount-card .value { font-size: 20px; }
  .amount-card .desc { font-size: 11.5px; -webkit-line-clamp: 4; }
  .hero-card-inner { padding-left: 16px; padding-right: 16px; }
  .hero-name { font-size: 16px; }
  .hero-progress-raised { font-size: 20px; }
  .section { padding: 0 12px; }
  .irs-banner { margin-left: 12px; margin-right: 12px; font-size: 12.5px; }
  .social-proof { margin-left: 12px; margin-right: 12px; }
  .trust-bar { gap: 12px; }
  .trust-item { font-size: 10.5px; }
}

@media (min-width: 600px) {
  .app {
    margin-top: 24px;
    margin-bottom: 24px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    min-height: auto;
    overflow: hidden;
  }
  .hero-card { border-radius: 0 0 var(--r-lg) var(--r-lg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.hidden { display: none !important; }

/* ============================================================
   CRO IMPROVEMENTS — Confirm screens + MB WAY rescue
   ============================================================ */

/* Prova social topo das telas de confirmação */
.confirm-social {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-50, #eafff3);
  border: 1px solid var(--green-200, #bde9cf);
  color: var(--green-800, #0a6e3a);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
}
.confirm-social .dot {
  width: 8px;
  height: 8px;
  background: var(--green-700, #0e7d46);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(14, 125, 70, 0.5);
  animation: socialPulse 2s ease-out infinite;
}
@keyframes socialPulse {
  0%   { box-shadow: 0 0 0 0 rgba(14, 125, 70, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(14, 125, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 125, 70, 0); }
}

/* Hint nos labels */
.field-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-400, #7a8682);
  margin-left: 4px;
}

/* Check verde quando telemóvel é válido */
.phone-input {
  position: relative;
}
.phone-check {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-700, #0a6e3a);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.phone-check svg {
  width: 12px;
  height: 12px;
}
.phone-input.valid .phone-check {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.phone-input.valid input {
  padding-right: 44px;
}

/* Toggle NIF */
.toggle-nif {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: 1px dashed var(--line-soft, #dfe6e3);
  color: var(--ink-600, #4a5550);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: all 0.15s;
}
.toggle-nif:hover {
  border-color: var(--green-700, #0a6e3a);
  color: var(--green-800, #0a6e3a);
  background: var(--green-50, #eafff3);
}
.toggle-nif svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--green-700, #0a6e3a);
}
.toggle-nif .chev {
  margin-left: auto;
  font-size: 18px;
  color: var(--ink-400, #7a8682);
  transition: transform 0.25s;
}
.toggle-nif[aria-expanded="true"] .chev {
  transform: rotate(90deg);
}
.toggle-nif[aria-expanded="true"] {
  border-color: var(--green-700, #0a6e3a);
  background: var(--green-50, #eafff3);
  color: var(--green-800, #0a6e3a);
}

/* NIF group animation */
.nif-group {
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); max-height: 0; }
  to   { opacity: 1; transform: translateY(0); max-height: 200px; }
}

/* Trust row (antes do botão Doar) */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 12px;
  justify-content: center;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-2, #f4f7f5);
  color: var(--ink-600, #4a5550);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.trust-chip svg {
  width: 13px;
  height: 13px;
  color: var(--green-700, #0a6e3a);
}

/* Botão primary com spinner */
.btn-primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-primary .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
}
.btn-primary.loading .btn-spinner {
  display: inline-block;
}
.btn-primary.loading .btn-label {
  opacity: 0.9;
}
.btn-primary.loading {
  pointer-events: none;
  opacity: 0.95;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* Card de resgate MB WAY */
.rescue-card {
  margin-top: 28px;
  background: linear-gradient(135deg, #fff8ea 0%, #fff3d6 100%);
  border: 1px solid #f0cf7a;
  border-radius: 14px;
  padding: 18px 18px 16px;
  animation: rescueIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes rescueIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rescue-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8a5a10;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}
.rescue-title svg {
  flex-shrink: 0;
  color: #b88219;
}
.rescue-text {
  color: #6b5517;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.rescue-btn {
  margin-bottom: 8px !important;
}
.rescue-link {
  display: block;
  text-align: center;
  width: 100%;
  background: transparent;
  border: none;
  color: #8a5a10;
  font-size: 13px;
  font-weight: 500;
  padding: 6px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rescue-link:hover { color: #6b4510; }

/* ============================================================
   SUCCESS SCREEN — Upgrade com foto, impacto e share
   ============================================================ */

/* Hero com emblema pulsante */
.success-hero {
  text-align: center;
  padding: 32px 20px 16px;
}
.success-badge {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
}
.success-badge-icon {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e9e5a 0%, #0a6e3a 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 28px rgba(14, 158, 90, 0.3),
    0 0 0 6px rgba(14, 158, 90, 0.1);
  animation: successPop 0.6s cubic-bezier(0.16, 1.3, 0.5, 1);
}
@keyframes successPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.success-badge-rings {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.success-badge-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(14, 158, 90, 0.4);
  animation: ringPulse 2.4s ease-out infinite;
}
.success-badge-rings span:nth-child(2) { animation-delay: 0.8s; }
.success-badge-rings span:nth-child(3) { animation-delay: 1.6s; }
@keyframes ringPulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.success-hero h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink-900, #0e1b15);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.success-hero p {
  color: var(--ink-500, #5e6a65);
  font-size: 15px;
}
.success-hero strong {
  color: var(--green-700, #0a6e3a);
  font-weight: 700;
}

/* Card do Rodrigo */
.rodrigo-card {
  margin: 20px 20px 24px;
  background: linear-gradient(135deg, #fff9ee 0%, #fff3d6 100%);
  border: 1px solid #f4d897;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(180, 140, 40, 0.08);
}
.rodrigo-photo {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe3a6 0%, #ffc96b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(180, 140, 40, 0.15);
}
.rodrigo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Ilustração aparece só se não tiver foto (fallback) */
.rodrigo-illustration {
  display: none;
}
.rodrigo-photo.no-photo .rodrigo-illustration {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  animation: heartBeat 1.8s ease-in-out infinite;
}
.rodrigo-photo.no-photo .rodrigo-illustration svg {
  width: 88%;
  height: 88%;
}
@keyframes heartBeat {
  0%, 100%  { transform: scale(1); }
  10%, 30%  { transform: scale(1.08); }
  20%       { transform: scale(0.98); }
}
.rodrigo-message {
  flex: 1;
  min-width: 0;
}
.rodrigo-name {
  font-size: 12px;
  font-weight: 700;
  color: #8a5a10;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.rodrigo-quote {
  font-size: 14px;
  color: #4a3c17;
  line-height: 1.45;
  font-style: italic;
  font-weight: 500;
}
.rodrigo-sub {
  font-size: 11px;
  color: #8a5a10;
  margin-top: 6px;
  opacity: 0.8;
}

/* Barra de progresso da campanha */
.campaign-progress {
  margin: 0 20px 28px;
  background: white;
  border: 1px solid var(--line-soft, #e4ebe8);
  border-radius: 14px;
  padding: 18px;
}
.campaign-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.campaign-progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-600, #4a5550);
}
.campaign-progress-pct {
  font-size: 15px;
  font-weight: 800;
  color: var(--green-700, #0a6e3a);
  font-variant-numeric: tabular-nums;
}
.campaign-progress-bar {
  position: relative;
  height: 10px;
  background: var(--surface-2, #f0f4f2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.campaign-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0e9e5a 0%, #34c77a 100%);
  border-radius: 999px;
  width: 0%;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 14px rgba(14, 158, 90, 0.4);
}
.campaign-progress-shine {
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.5) 50%,
    transparent 100%
  );
  animation: shine 2.4s ease-in-out infinite;
  animation-delay: 1.5s;
}
@keyframes shine {
  0%   { left: -30%; }
  100% { left: 120%; }
}
.campaign-progress-numbers {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
}
.campaign-progress-numbers .raised {
  font-size: 20px;
  font-weight: 800;
  color: var(--green-800, #0a6e3a);
  font-variant-numeric: tabular-nums;
}
.campaign-progress-numbers .goal {
  color: var(--ink-400, #7a8682);
  font-weight: 500;
}

/* Share CTA */
.share-cta {
  margin: 0 20px 28px;
  background: linear-gradient(135deg, #eaffef 0%, #d4fae0 100%);
  border: 1px solid #9ee0b4;
  border-radius: 18px;
  padding: 22px 20px;
  text-align: center;
}
.share-cta-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-800, #0a6e3a);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.share-cta-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-900, #0e1b15);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.share-cta-text {
  font-size: 13.5px;
  color: var(--ink-600, #4a5550);
  line-height: 1.45;
  margin-bottom: 16px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Botão WhatsApp GRANDE */
.btn-share-big {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: #25D366;
  background: linear-gradient(135deg, #2bda6d 0%, #1aa851 100%);
  color: white;
  padding: 14px 18px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow:
    0 10px 24px rgba(37, 211, 102, 0.35),
    0 2px 6px rgba(37, 211, 102, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 10px;
  cursor: pointer;
}
.btn-share-big:hover, .btn-share-big:active {
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px rgba(37, 211, 102, 0.45),
    0 3px 8px rgba(37, 211, 102, 0.3);
}
.btn-share-big .wa-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.btn-share-big .share-label {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}
.btn-share-big .share-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.btn-share-big .share-sub {
  font-size: 11.5px;
  opacity: 0.88;
  font-weight: 500;
}
.btn-share-big .share-arrow {
  font-size: 22px;
  font-weight: 300;
  opacity: 0.9;
  flex-shrink: 0;
}

/* Botão copiar link */
.btn-copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--green-700, #0a6e3a);
  color: var(--green-800, #0a6e3a);
  padding: 10px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-copy-link:hover {
  background: rgba(14, 125, 70, 0.06);
}
.btn-copy-link.copied {
  background: var(--green-700, #0a6e3a);
  color: white;
  border-color: var(--green-700, #0a6e3a);
}

/* Footer */
.success-footer {
  text-align: center;
  padding: 0 20px 28px;
}

/* Remove padding do result-screen no success (porque temos sections próprias) */
#screen-success.result-screen {
  padding: 0;
}
#screen-success .result-icon {
  display: none; /* escondemos o antigo porque temos novo hero */
}

/* Mobile tweaks */
@media (max-width: 380px) {
  .rodrigo-card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .rodrigo-photo {
    width: 100px;
    height: 100px;
  }
}

/* Seletor de tom da mensagem (Emotiva / Direta) */
.share-tone-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.6);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(14, 158, 90, 0.15);
}
.tone-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--ink-500, #5e6a65);
  padding: 8px 10px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.tone-btn:hover {
  color: var(--ink-700, #2b3632);
}
.tone-btn.active {
  background: white;
  color: var(--green-800, #0a6e3a);
  box-shadow: 0 2px 8px rgba(14, 158, 90, 0.15);
}
.tone-emoji {
  font-size: 15px;
}

/* Preview da mensagem */
.share-preview {
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed rgba(14, 158, 90, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--ink-600, #4a5550);
  line-height: 1.5;
  white-space: pre-line;
  text-align: left;
  min-height: 40px;
  font-style: italic;
}

/* ============================================================
   CAMPAIGN PROGRESS (estilo do site do Instituto)
   Substitui o visual antigo da barra horizontal
   ============================================================ */
.campaign-progress {
  margin: 0 20px 24px;
  background: white;
  border: 1px solid var(--line-soft, #e4ebe8);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Anel circular com percentagem ao centro */
.campaign-ring {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.campaign-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* começa do topo */
}
.campaign-ring-bg {
  fill: none;
  stroke: #eef3f0;
  stroke-width: 8;
}
.campaign-ring-fill {
  fill: none;
  stroke: #1aa851;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 213.6;  /* 2πr = 2*π*34 ≈ 213.6 */
  stroke-dashoffset: 213.6; /* inicia vazio */
  transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.campaign-ring-pct {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15px;
  font-weight: 700;
  color: #1aa851;
  letter-spacing: -0.02em;
}

/* Textos à direita do anel */
.campaign-numbers {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.campaign-raised {
  font-size: 16px;
  color: var(--ink-600, #4a5550);
  font-weight: 400;
}
.campaign-raised strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-900, #0e1b15);
  letter-spacing: -0.01em;
}
.campaign-goal-line {
  font-size: 15px;
  color: var(--ink-500, #5e6a65);
  margin-top: 1px;
}
.campaign-donations-line {
  font-size: 13px;
  color: var(--ink-400, #7a8682);
  margin-top: 4px;
}
.campaign-donations-line span {
  font-weight: 600;
  color: var(--ink-600, #4a5550);
}
