/* ===================================================================
   PELA ALICE — paleta rosa suave (criança, sem exagero)
   --primary:    pink-400  ≈ #f472b6  (rosa fraco, infantil)
   --primary-hover: pink-500 ≈ #ec4899
   --brand-light: pink-100 ≈ #fce7f3  (rosa muito suave, botão claro)
   --brand-light-fg: pink-800 ≈ #9d174d (texto escuro sobre rosa claro)
   =================================================================== */

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

:root {
  --background:        #ffffff;
  --foreground:        #1d2026;
  --primary:           #f472b6;
  --primary-hover:     #ec4899;
  --brand-lime:        #fce7f3;
  --brand-lime-hover:  #fbcfe8;
  --brand-lime-fg:     #9d174d;
  --muted:             #f1f5f9;
  --muted-fg:          #64748b;
  --muted-text:        #5e656f;
  --border:            #e2e8f0;
  --border-soft:       #eef2f6;
  --success:           #16a34a;

  --radius:            .5rem;
  --radius-lg:         .75rem;
  --radius-xl:         1rem;

  --shadow-sm:         0 1px 2px rgba(15,23,42,.06);
  --shadow-md:         0 4px 12px rgba(15,23,42,.08);
  --shadow-bar:        0 -4px 16px rgba(15,23,42,.10);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --col-w: 560px;
}

html, body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--foreground); font-weight: 700; letter-spacing: -0.015em; }
strong { font-weight: 600; }

/* ====================== HEADER ====================== */
.ps-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.ps-header__inner {
  max-width: var(--col-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  padding: 0 12px;
}
.ps-header__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--foreground);
  transition: background .15s;
}
.ps-header__icon:hover { background: var(--muted); }
.ps-logo { display: inline-flex; align-items: center; justify-content: center; }
.ps-logo__img { max-height: 64px; width: auto; }

/* ====================== CAMPAIGN COLUMN ====================== */
.campaign {
  max-width: var(--col-w);
  margin: 0 auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ====================== HERO + OVERLAY ====================== */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--muted);
  box-shadow: var(--shadow-sm);
}
.hero__img {
  width: 100%;
  height: auto;
  display: block;
}
/* Autor no TOPO da imagem, sob um pill semi-transparente */
.hero__author {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.hero__author .campaign__avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
  border: 1px solid #fff;
}
/* Título no RODAPÉ da imagem com gradient escuro */
.hero__title-wrap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,0) 100%);
  z-index: 1;
}
.hero__title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* ====================== AVATAR (reusable) ====================== */
.campaign__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fce7f3;
  color: #9d174d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11.5px;
  flex-shrink: 0;
}
.campaign__avatar--sm { width: 28px; height: 28px; font-size: 10.5px; }

/* ====================== DONATE CARD ====================== */
.donate-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.donate-card--inline { padding: 12px; }

.donate-card__amount strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--foreground);
}
.donate-card__goal {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted-text);
}

.progress {
  height: 6px;
  background: var(--muted);
  border-radius: 999px;
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width .5s ease;
}

/* recent-pill (Joana Pinto doou €X) */
.recent-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: #334155;
  text-align: left;
  width: 100%;
  transition: background .15s;
}
.recent-pill:hover { background: #fce7f3; }
.recent-pill__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fce7f3;
  color: #9d174d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 10.5px;
  flex-shrink: 0;
}
.recent-pill__star { color: #f59e0b; margin-left: auto; flex-shrink: 0; }

/* ====================== BUTTONS ====================== */
.donate-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: background .15s, color .15s, transform .12s;
}
.btn:active { transform: translateY(1px); }

.btn--share {
  background: var(--brand-lime);
  color: var(--brand-lime-fg);
}
.btn--share:hover { background: var(--brand-lime-hover); }

.btn--donate {
  background: var(--primary);
  color: #fff;
}
.btn--donate:hover { background: var(--primary-hover); }

/* ====================== TITLE BLOCK ====================== */
.title-block {
  padding: 4px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.campaign__title {
  font-size: 22px;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.byline strong { font-size: 14px; font-weight: 600; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  width: max-content;
  margin-left: auto;
}
.badge--protected {
  background: #fdf2f8;
  color: var(--primary);
  border: 1px solid #fbcfe8;
}

/* ====================== STORY ====================== */
.story {
  padding: 4px 4px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #2a3441;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.story h2 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  margin-top: 4px;
}
.story h2:first-child { margin-top: 0; }
.story strong { color: var(--foreground); font-weight: 600; }
.story__quote {
  border-left: 3px solid var(--brand-lime);
  background: #fdf2f8;
  padding: 12px 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: #354158;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.story__quote em { color: var(--muted-text); font-style: normal; font-size: 12.5px; }

.btn-ler-mais {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 0;
}
.btn-ler-mais:hover { text-decoration: underline; }

/* ====================== DONORS ====================== */
.donors {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.donors h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
}
.donors__count {
  font-size: 13px;
  color: var(--muted-text);
  font-weight: 600;
  margin-left: 4px;
}
.donors__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.donor {
  display: flex;
  align-items: center;
  gap: 12px;
}
.donor__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.donor__avatar--anon {
  background: var(--muted);
  color: var(--muted-fg);
  font-size: 16px;
  font-weight: 700;
}
.donor__body { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.donor__body strong { font-size: 14px; color: var(--foreground); font-weight: 600; }
.donor__body small { font-size: 12.5px; color: var(--muted-text); margin-top: 2px; }

/* ====================== ORGANIZER ====================== */
.organizer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.organizer h2 { font-size: 17px; font-weight: 700; }
.organizer__body { display: flex; align-items: center; gap: 12px; }
.organizer__info { display: flex; flex-direction: column; min-width: 0; }
.organizer__info strong { font-size: 14.5px; color: var(--foreground); font-weight: 600; }
.organizer__info small { font-size: 12.5px; color: var(--muted-text); margin-top: 2px; }
.organizer__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted-text);
}
.organizer__meta svg { color: var(--muted-fg); flex-shrink: 0; }
.organizer__cat { color: var(--primary); font-weight: 600; }
.organizer__cat:hover { text-decoration: underline; }

/* ====================== FEATURES ====================== */
.features {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.features h2 {
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 2px;
  font-weight: 700;
}
.feature {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}
.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fdf2f8;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature strong { display: block; font-size: 15px; margin-bottom: 2px; font-weight: 600; }
.feature p { font-size: 13.5px; color: var(--muted-text); line-height: 1.55; }
.feature a { color: var(--primary); font-weight: 600; }
.feature a:hover { text-decoration: underline; }

/* ====================== FOOTER ====================== */
.ps-footer {
  max-width: var(--col-w);
  margin: 24px auto 0;
  padding: 22px 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--muted-text);
  transition: background .15s;
}
.lang-switcher:hover { background: var(--muted); }
.lang-switcher strong { color: var(--foreground); font-weight: 600; }
.flag-pt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
}

.social { display: flex; gap: 12px; }
.social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.social a:hover { background: var(--primary); color: #fff; }

.ps-footer__copy {
  font-size: 12.5px;
  color: var(--muted-text);
  text-align: center;
}

.legal-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-size: 14px;
  color: var(--foreground);
}
.legal-links a {
  padding: 11px 4px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .15s;
}
.legal-links a:last-child { border-bottom: 0; }
.legal-links a:hover { color: var(--primary); }
.toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted-fg);
}

/* ====================== CTA PAIR (Doar/Partilhar entre seções) ====================== */
.cta-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px 0;
}

/* ====================== DONATE MODAL ====================== */
.donate-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
}
.donate-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.donate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  opacity: 0;
  transition: opacity .25s ease;
}
.donate-modal.is-open .donate-modal__backdrop { opacity: 1; }

.donate-modal__sheet {
  position: relative;
  width: 100%;
  max-width: var(--col-w);
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 14px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, .18);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  max-height: 92vh;
  overflow-y: auto;
}
.donate-modal.is-open .donate-modal__sheet { transform: translateY(0); }

.donate-modal__handle {
  align-self: center;
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #cbd5e1;
  margin-bottom: 2px;
}

.donate-modal__logo {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}
.donate-modal__logo img { max-height: 44px; width: auto; }

.donate-modal__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin-top: 2px;
}

.donate-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.amount-btn {
  position: relative;
  height: 60px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--foreground);
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.amount-btn:hover { border-color: #cbd5e1; }
.amount-btn:active { transform: translateY(1px); }
.amount-btn.is-selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.amount-btn--wide { grid-column: span 2; }

.amount-btn__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(244, 114, 182, .25);
}
.amount-btn.has-badge { padding-top: 6px; }

.donate-modal__custom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.donate-modal__custom[hidden] { display: none; }
.donate-modal__custom label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-text);
}
.donate-modal__custom-input {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  height: 50px;
  background: #fff;
  transition: border-color .15s;
}
.donate-modal__custom-input:focus-within { border-color: var(--primary); }
.donate-modal__custom-input span {
  font-size: 18px;
  font-weight: 700;
  color: var(--muted-text);
}
.donate-modal__custom-input input {
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--foreground);
  min-width: 0;
}
.donate-modal__custom-input input::-webkit-outer-spin-button,
.donate-modal__custom-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.donate-modal__custom-input input[type=number] { -moz-appearance: textfield; }

.donate-modal__recent {
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 13.5px;
  color: var(--muted-text);
  padding: 4px 8px;
  width: auto;
  align-self: center;
}
.donate-modal__recent:hover { background: transparent; color: var(--foreground); }
.donate-modal__recent .recent-pill__avatar { display: none; }

.donate-modal__cta {
  width: 100%;
  height: 54px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background .15s, opacity .15s;
}
.donate-modal__cta:hover { background: var(--primary-hover); }
.donate-modal__cta:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  opacity: 1;
}

body.is-modal-open { overflow: hidden; }

.donate-step { display: flex; flex-direction: column; gap: 14px; }
.donate-step[hidden] { display: none; }
.donate-step--center { align-items: center; text-align: center; gap: 14px; }
.donate-step__back {
  align-self: flex-start;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--muted-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -4px 0 -4px -8px;
  transition: background .15s, color .15s;
}
.donate-step__back:hover { background: var(--muted); color: var(--foreground); }
.donate-step__summary { font-size: 14px; color: var(--muted-text); line-height: 1.5; }
.donate-step__summary strong { color: var(--foreground); font-weight: 700; }
.donate-step__error {
  font-size: 13.5px;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.4;
}

.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-method {
  display: grid;
  grid-template-columns: 60px 1fr 24px;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  color: var(--foreground);
  transition: border-color .15s, background .15s, transform .12s;
}
.pay-method:hover { border-color: var(--primary); background: #f8fafc; }
.pay-method:active { transform: translateY(1px); }
.pay-method__icon {
  width: 60px;
  height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px;
  flex-shrink: 0;
  overflow: hidden;
}
.pay-method__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pay-method__body { display: flex; flex-direction: column; min-width: 0; }
.pay-method__body strong { font-size: 15px; font-weight: 700; }
.pay-method__body small { font-size: 12.5px; color: var(--muted-text); margin-top: 2px; }
.pay-method svg { color: var(--muted-fg); }

.mbway-label { font-size: 13px; font-weight: 600; color: var(--muted-text); margin-top: 4px; }
.mbway-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  height: 52px;
  background: #fff;
  transition: border-color .15s;
}
.mbway-input:focus-within { border-color: var(--primary); }
.mbway-input span {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted-text);
  padding-right: 8px;
  border-right: 1px solid var(--border);
}
.mbway-input input {
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--foreground);
  min-width: 0;
}
.mbway-hint { font-size: 12px; color: var(--muted-text); margin-top: -4px; }

.mb-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 0; color: var(--muted-text); }
.mb-loading[hidden] { display: none; }
.spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.mb-ref {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
}
.mb-ref[hidden] { display: none; }
.mb-ref__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.mb-ref__row:last-of-type { border-bottom: 0; }
.mb-ref__row span { color: var(--muted-text); }
.mb-ref__row strong { font-size: 17px; font-weight: 800; letter-spacing: 0.02em; color: var(--foreground); font-variant-numeric: tabular-nums; }
.mb-ref__row--soft strong { font-size: 14px; font-weight: 600; }
.mb-ref__hint { font-size: 12.5px; color: var(--muted-text); padding: 4px 4px 8px; line-height: 1.5; }

.step-success {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 4px;
}

/* ====================== EXIT POPUP ====================== */
.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
  visibility: hidden;
}
.exit-popup.is-open { pointer-events: auto; visibility: visible; }

.exit-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .65);
  opacity: 0;
  transition: opacity .25s ease;
}
.exit-popup.is-open .exit-popup__backdrop { opacity: 1; }

.exit-popup__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 28px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .35);
  transform: scale(.92);
  opacity: 0;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
.exit-popup.is-open .exit-popup__card { transform: scale(1); opacity: 1; }

.exit-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--muted-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.exit-popup__close:hover { background: var(--muted); color: var(--foreground); }

.exit-popup__heart {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  margin: 4px auto 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: exit-heart-beat 1.4s ease-in-out infinite;
}
@keyframes exit-heart-beat {
  0%, 100% { transform: scale(1); }
  10%      { transform: scale(1.12); }
  20%      { transform: scale(1); }
  30%      { transform: scale(1.08); }
  40%      { transform: scale(1); }
}

.exit-popup__title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.exit-popup__lead {
  font-size: 16px;
  line-height: 1.45;
  color: #2a3441;
  margin-top: 2px;
}
.exit-popup__lead strong { font-weight: 700; color: var(--primary); }
.exit-popup__sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted-text);
}

.exit-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.exit-popup__cta {
  width: 100%;
  height: 52px;
  font-size: 16px;
}
.exit-popup__skip {
  font-size: 13px;
  color: var(--muted-text);
  padding: 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.exit-popup__skip:hover { color: var(--foreground); }

@media (max-width: 480px) {
  .exit-popup { align-items: flex-end; padding: 0; }
  .exit-popup__card {
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 22px 18px 22px;
    transform: translateY(100%);
    opacity: 1;
  }
  .exit-popup.is-open .exit-popup__card { transform: translateY(0); }
  .exit-popup__title { font-size: 20px; }
  .exit-popup__heart { width: 70px; height: 70px; }
  .exit-popup__heart svg { width: 36px; height: 36px; }
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 480px) {
  .ps-header__inner { padding: 0 8px; }
  .campaign { padding: 10px; gap: 14px; }
  .hero__title { font-size: 20px; }
  .campaign__title { font-size: 20px; }
  .story h2, .donors h2, .organizer h2 { font-size: 16px; }
  .donate-card__amount strong { font-size: 20px; }
  .btn { font-size: 14px; height: 42px; padding: 0 12px; }
  .ps-footer { padding: 18px 12px 24px; }
  .donate-modal__sheet { padding: 14px 16px 20px; }
  .donate-modal__grid { gap: 10px; }
  .amount-btn { height: 56px; font-size: 16px; }
}
