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

:root {
  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --blue-light: #eff6ff;
  --green: #059669;
  --green-light: #d1fae5;
  --red: #dc2626;
  --red-light: #fee2e2;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
  --primary:        #1d4ed8;
  --primary-dark:   #1e3a8a;
  --primary-light:  #eff6ff;
  --primary-mid:    #bfdbfe;
  --success:        #059669;
  --success-dark:   #047857;
  --success-light:  #d1fae5;
  --warning:        #d97706;
  --warning-light:  #fffbeb;
  --danger:         #dc2626;
  --danger-light:   #fee2e2;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--gray-100);
  color: var(--gray-800);
  min-height: 100vh;
  line-height: 1.5;
}

/* ── Header ── */
header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #fff;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
}
header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
header p {
  margin-top: .4rem;
  font-size: .95rem;
  opacity: .85;
}

main { max-width: 900px; margin: 0 auto; padding: 2rem 1rem 4rem; }

/* ── Upload card ── */
#upload-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2rem;
}

#drop-zone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
#drop-zone.drag-over {
  border-color: var(--blue);
  background: var(--blue-light);
}
#drop-zone svg { width: 48px; height: 48px; color: var(--gray-400); margin-bottom: 1rem; }
#drop-zone p { color: var(--gray-600); font-size: .95rem; }
#drop-zone span { color: var(--blue); font-weight: 600; text-decoration: underline; cursor: pointer; }
#file-input { display: none; }

#selected-file {
  display: none;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  padding: .75rem 1rem;
  background: var(--blue-light);
  border-radius: 8px;
  font-size: .9rem;
  color: var(--blue-dark);
}
#selected-file svg { flex-shrink: 0; width: 20px; height: 20px; }
#selected-file .filename { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#selected-file .remove-btn { background: none; border: none; cursor: pointer; color: var(--blue-dark); opacity: .7; padding: 0; }

#extract-btn {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  padding: .85rem;
  background: var(--blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, opacity .2s;
}
#extract-btn:hover:not(:disabled) { background: var(--blue-dark); }
#extract-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Loading ── */
#loading {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  color: var(--gray-600);
}
.spinner {
  width: 40px; height: 40px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error ── */
#error-box {
  display: none;
  background: var(--red-light);
  border: 1px solid #fca5a5;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--red);
  margin-bottom: 1.5rem;
  font-size: .9rem;
}

/* ── Results ── */
#results { display: none; }

.section-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-400);
  margin-bottom: .75rem;
}

/* Info card */
.info-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.info-item label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-400);
  margin-bottom: .2rem;
}
.info-item span { font-size: .95rem; font-weight: 500; color: var(--gray-800); }

/* Badge */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-blue { background: var(--blue-light); color: var(--blue-dark); }
.badge-green { background: var(--green-light); color: var(--green); }

/* Auth bar */
.auth-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.25rem;
  background: var(--green-light);
  border-radius: 8px;
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--green);
}
.auth-bar a { color: var(--green); font-weight: 600; word-break: break-all; }

/* Accordion */
.accordion { margin-bottom: 1.5rem; }
.accordion-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: .75rem;
  overflow: hidden;
}
.accordion-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.accordion-header:hover { background: var(--gray-50); }
.acc-seq {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue-dark);
}
.acc-info { flex: 1; }
.acc-title { font-weight: 600; font-size: .95rem; color: var(--gray-800); }
.acc-sub { font-size: .8rem; color: var(--gray-600); margin-top: .1rem; }
.acc-chevron {
  width: 20px; height: 20px;
  color: var(--gray-400);
  transition: transform .2s;
}
.accordion-item.open .acc-chevron { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
}
.accordion-item.open .accordion-body { display: block; }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: .75rem; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
thead th {
  text-align: left;
  padding: .5rem .75rem;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--gray-200);
}
tbody td {
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--gray-50); }

/* Consolidated grid */
.cons-table th, .cons-table td { text-align: center; }
.cons-table th:first-child, .cons-table td:first-child { text-align: left; font-weight: 600; }

/* Legend */
.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .5rem;
  margin-top: .5rem;
}
.legend-item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  color: var(--gray-600);
  background: #fff;
  padding: .5rem .75rem;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.legend-key {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--blue-dark);
  min-width: 2rem;
}

/* ── Restituição ── */
.rest-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.rest-total {
  flex: 1;
  min-width: 200px;
}
.rest-total label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-400);
  margin-bottom: .3rem;
}
.rest-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -.02em;
}
.rest-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.rest-aviso {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  margin-bottom: .75rem;
  font-size: .85rem;
  color: #92400e;
}

/* ── Responsive */
@media (max-width: 600px) {
  header h1 { font-size: 1.35rem; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .rest-summary { flex-direction: column; gap: 1rem; }
  .rest-amount { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════
   NEW DESIGN SYSTEM
══════════════════════════════════════════ */

/* ── Notice bar ── */
.notice-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.88);
  text-align: center;
  padding: .45rem 1rem;
  font-size: .75rem;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.notice-bar .nb-item { display: flex; align-items: center; gap: .3rem; }

/* ── Site header (overrides old header) ── */
header.site-header {
  background: linear-gradient(155deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%);
  padding: 2.5rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
header.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 48px;
  background: var(--gray-100);
  clip-path: ellipse(55% 100% at 50% 100%);
}
header.site-header::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.header-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }

.logo-row {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 2rem;
  padding: .4rem .9rem .4rem .55rem;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
}
.logo-icon {
  width: 30px; height: 30px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.logo-name { font-size: .92rem; font-weight: 700; color: #fff; opacity: .96; letter-spacing: -.01em; }
.logo-name span { opacity: .65; font-weight: 400; }

.hero-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.08;
  margin-bottom: .875rem;
  color: #fff;
}
.hero-title em { font-style: normal; color: #86efac; }
.hero-sub { font-size: 1.025rem; opacity: .85; max-width: 720px; margin: 0 auto; line-height: 1.65; color: #fff; }

/* ── How it works ── */
#how-it-works {
  max-width: 960px;
  margin: -2rem auto 0;
  padding: 0 1rem 2rem;
  position: relative;
  z-index: 2;
}
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
}
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .6rem;
}
.step-icon { font-size: 1.6rem; margin-bottom: .4rem; display: block; }
.step-title { font-size: .875rem; font-weight: 700; color: var(--gray-800); margin-bottom: .3rem; }
.step-desc { font-size: .775rem; color: var(--gray-500); line-height: 1.55; }
.step-desc strong { color: var(--gray-600); }

/* ── main override ── */
main { max-width: 960px; margin: 0 auto; padding: 0 1rem 5rem; position: relative; z-index: 1; }

/* ── Upload card override ── */
#upload-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  margin-bottom: 1rem;
}
.upload-card-title { font-size: 1.2rem; font-weight: 800; color: var(--gray-900); margin-bottom: .25rem; letter-spacing: -.02em; }
.upload-card-sub { font-size: .875rem; color: var(--gray-500); margin-bottom: 1.5rem; }

#drop-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
#drop-zone:hover, #drop-zone.drag-over { border-color: var(--primary); background: var(--primary-light); }
.dz-icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .875rem;
}
.dz-icon svg { width: 28px; height: 28px; color: var(--primary); }
#drop-zone p { color: var(--gray-600); font-size: .9rem; }
#drop-zone p.dz-hint { font-size: .775rem; color: var(--gray-400); margin-top: .35rem; }
#drop-zone .link { color: var(--primary); font-weight: 600; text-decoration: underline; cursor: pointer; }

#selected-file {
  border: 1px solid var(--primary-mid);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .875rem;
}
#selected-file .remove-btn { display: flex; border-radius: 4px; transition: opacity .15s; }
#selected-file .remove-btn:hover { opacity: 1; }

#extract-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  padding: .95rem;
}
#extract-btn:active:not(:disabled) { transform: scale(.99); }

/* ── Trust badges ── */
#trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: .875rem 1.25rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.trust-item { display: flex; align-items: center; gap: .4rem; font-size: .775rem; color: var(--gray-500); font-weight: 500; }
.trust-item svg { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; }

/* ── Loading override ── */
#loading {
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3.5rem 2rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  color: var(--gray-700);
}
.spinner { width: 52px; height: 52px; border-width: 4px; border-top-color: var(--primary); }
.loading-title { font-size: 1.05rem; font-weight: 700; color: var(--gray-800); }
.loading-sub { font-size: .85rem; color: var(--gray-500); margin-top: .2rem; }
.loading-steps { display: flex; flex-direction: column; gap: .6rem; text-align: left; min-width: 220px; }
.loading-step { display: flex; align-items: center; gap: .65rem; font-size: .825rem; color: var(--gray-400); transition: color .3s; }
.loading-step.active { color: var(--primary); font-weight: 600; }
.loading-step.done { color: var(--success); }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ── Error override ── */
#error-box {
  border-left: 4px solid var(--danger);
  font-size: .875rem;
}
.error-title { font-weight: 700; margin-bottom: .25rem; }

/* ── Results top bar ── */
.results-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.results-top-bar h2 { font-size: 1.15rem; font-weight: 700; color: var(--gray-700); letter-spacing: -.02em; }
#new-analysis-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1rem;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .84rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
#new-analysis-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── Section title override ── */
.section-title { letter-spacing: .1em; color: var(--gray-400); }

/* ── Cards ── */
.info-card { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ── Restitution hero ── */
.rest-hero {
  background: linear-gradient(135deg, #065f46 0%, #059669 60%, #10b981 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.rest-hero::before {
  content: '';
  position: absolute; right: -50px; top: -50px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.06); pointer-events: none;
}
.rest-hero::after {
  content: '';
  position: absolute; right: 60px; bottom: -70px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.05); pointer-events: none;
}
.rest-hero-eyebrow {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; opacity: .8; margin-bottom: .6rem;
  display: flex; align-items: center; gap: .4rem;
}
.rest-hero-amount-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; opacity: .75; margin-bottom: .25rem;
  position: relative; z-index: 1;
}
.rest-hero-amount {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 900; letter-spacing: -.04em; line-height: 1;
  margin-bottom: .75rem; position: relative; z-index: 1;
}
.rest-hero-desc { font-size: .925rem; opacity: .88; max-width: 500px; line-height: 1.6; position: relative; z-index: 1; }
.rest-hero-stats {
  display: flex; gap: 2.5rem; margin-top: 1.75rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.rest-stat-item label {
  display: block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; opacity: .72; margin-bottom: .2rem;
}
.rest-stat-item span { font-size: 1.35rem; font-weight: 800; }
.rest-hero-neutral { background: linear-gradient(135deg, #1e293b 0%, #334155 100%); }

/* ── Aviso override ── */
.rest-aviso {
  background: var(--warning-light);
  border: 1px solid #fcd34d;
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-sm);
  display: flex; gap: .6rem; align-items: flex-start;
  color: #78350f; font-size: .84rem;
}
.rest-aviso svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--warning); }

/* ── Info grid override ── */
.info-grid { gap: 1.25rem; }
.info-item label { font-size: .66rem; letter-spacing: .08em; }
.info-item span { font-size: .925rem; }

/* ── Auth bar override ── */
.auth-bar {
  background: var(--success-light);
  border: 1px solid #a7f3d0;
  color: var(--success-dark);
}
.auth-bar a { color: var(--success-dark); }

/* ── Accordion overrides ── */
.accordion-item { border: 1px solid var(--gray-100); transition: box-shadow .2s, border-color .2s; }
.accordion-item.open { box-shadow: var(--shadow-md); border-color: var(--gray-200); }
.acc-seq { width: 32px; height: 32px; background: var(--primary-light); color: var(--primary); font-weight: 800; }
.acc-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-chevron { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Tables override ── */
thead th {
  padding: .55rem .875rem;
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: .68rem;
  letter-spacing: .06em;
  white-space: nowrap;
}
tbody td { padding: .55rem .875rem; }
.excess-cell { color: var(--success-dark); font-weight: 700; }
.rest-table-wrap thead th { background: #f0fdf4; }

/* ── Legend override ── */
.legend-item { background: var(--gray-50); border: 1px solid var(--gray-100); }
.legend-key { color: var(--primary); font-size: .75rem; }

/* ── Footer ── */
footer.site-footer {
  background: var(--gray-800);
  color: var(--gray-400);
  text-align: center;
  padding: 2.75rem 1.5rem;
  font-size: .8rem;
  line-height: 1.7;
}
footer.site-footer p + p { margin-top: .75rem; }
footer.site-footer strong { color: var(--gray-300); }
footer.site-footer a { color: var(--gray-400); text-decoration: underline; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 1.5rem auto; max-width: 320px; }
.footer-copy { font-size: .73rem; opacity: .55; }

/* ── New responsive overrides ── */
@media (max-width: 640px) {
  .site-header { padding-bottom: 3.5rem; }
  .hero-title { font-size: 1.75rem; }
  .steps-row { grid-template-columns: 1fr; }
  #how-it-works { margin-top: -1rem; padding-bottom: 1.5rem; }
  #upload-card { padding: 1.5rem; }
  .rest-hero { padding: 1.75rem 1.5rem; }
  .rest-hero-amount { font-size: 2.25rem; }
  .rest-hero-stats { gap: 1.5rem; }
  .notice-bar { gap: .5rem; font-size: .7rem; }
}

/* ── WhatsApp Modal ── */
#whatsapp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.wpp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

.wpp-modal-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  padding: 2.5rem 2rem 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  animation: wpp-modal-in .22s ease;
}

@keyframes wpp-modal-in {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.wpp-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: .25rem;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.wpp-modal-close:hover { color: var(--gray-700); background: var(--gray-100); }

.wpp-modal-icon {
  width: 64px;
  height: 64px;
  background: var(--success-light);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.wpp-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: .5rem;
}

.wpp-modal-amount-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: .25rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.wpp-modal-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--success);
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

.wpp-modal-body {
  font-size: .9rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.wpp-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  transition: background .15s, transform .1s;
  width: 100%;
}
.wpp-modal-btn:hover  { background: #1ebe57; }
.wpp-modal-btn:active { transform: scale(.98); }

.wpp-modal-disclaimer {
  margin-top: .875rem;
  font-size: .78rem;
  color: var(--gray-400);
}

@media (max-width: 480px) {
  .wpp-modal-box { padding: 2rem 1.25rem 1.5rem; }
  .wpp-modal-title { font-size: 1.05rem; }
  .wpp-modal-amount { font-size: 1.6rem; }
}

/* ── WhatsApp CTA bar (persistent, below hero card) ── */
#wpp-cta-bar {
  margin-top: 1rem;
}

.wpp-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.wpp-cta-text {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .88rem;
}
.wpp-cta-text strong { color: var(--gray-800); }
.wpp-cta-text span   { color: var(--gray-500); }

.wpp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  padding: .6rem 1.1rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}
.wpp-cta-btn:hover  { background: #1ebe57; }
.wpp-cta-btn:active { transform: scale(.98); }

@media (max-width: 540px) {
  .wpp-cta-inner { flex-direction: column; align-items: flex-start; }
  .wpp-cta-btn { width: 100%; justify-content: center; }
}
