/* ============================================================================
   🎨 STYLES.CSS - JOÃO PEREIRA LP
   ============================================================================ */

/* ========= Tokens ========= */
:root {
  --pill: #00B44A;
  --pill-hover: #0a8f3b;
  --ink: #333;
  --muted: #575757;
  --line: #E6ECF2;
  --card: #fff;
  --soft: #F8FBFD;
}

/* ========= Base ========= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--soft);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: var(--pill);
  text-decoration: none;
}

/* As fotos agora vem dentro de <picture> para o navegador escolher o tamanho
   que cabe na tela. O <picture> e inline por padrao, e numa caixa inline a
   linha reserva espaco para o "rabo" de letras como o g e o p, o que abriria
   uma faixa de alguns pixels embaixo de cada foto. */
picture {
  display: block;
}

/* Shell */
.sheet {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pad {
  padding: 10px 18px 20px;
}

@media (min-width: 480px) {
  .pad {
    padding: 10px 22px 22px;
  }
}

@media (min-width: 640px) {
  .pad {
    padding: 8px 28px 22px;
  }
}

/* Header */
.logo {
  width: min(220px, 78vw);
  height: auto;
  display: block;
  margin: 0 auto 8px;
}

@media (min-width: 400px) {
  .logo {
    width: min(260px, 85vw);
  }
}

@media (min-width: 480px) {
  .logo {
    width: 280px;
  }
}

/* H1 */
h1 {
  margin: 12px auto 22px;
  max-width: 760px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 4.6vw + 0.3rem, 36px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-align: center;
  color: #0e2e33;
}

/* Hero */
.hero-wrap {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  max-width: 520px;
  margin: 0 auto 16px;
  overflow: hidden;
}

.hero {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center center;
  border-radius: 20px;
  display: block;
  background: #fff;
}

/* Texto */
.copy {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: #1f2f33;
  text-wrap: pretty;
}

.copy p {
  margin: 14px 0;
}

.copy img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 10px;
  margin: 16px 0;
}

/* Imagens fluidas */
.img-fluid {
  display: block;
  width: 240px;
  height: 300px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 10px;
  margin: 16px auto;
}

/* Meta / Progresso */
.meta {
  max-width: 760px;
  margin: 40px auto 28px;
}

.money {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  margin: 0 2px 12px;
}

.label {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: #2a3c31;
}

.amt {
  display: inline-block;
  white-space: nowrap;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--pill);
  font-size: clamp(22px, 6.4vw, 32px);
}

.target {
  white-space: nowrap;
  text-align: right;
  font-weight: 700;
  color: #2a3c31;
  font-size: 16px;
}

.progress {
  position: relative;
  margin-top: 10px;
  margin-bottom: 14px;
}

.progress .bar {
  height: 28px;
  background: #e9efe9;
  border-radius: 999px;
  overflow: hidden;
  border: 0;
}

.progress .bar > span {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 1%);
  background: var(--pill);
  border-radius: inherit;
}

.progress .pct {
  position: absolute;
  left: calc(var(--p, 0) * 1%);
  transform: translate(-50%, 6px);
  bottom: -14px;
  background: var(--pill);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12.5px;
  white-space: nowrap;
}

/* Seção de apoio */
.secTitle-wrap {
  max-width: 720px;
  margin: 50px auto 24px;
  text-align: center;
}

.secHeadline {
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0e2e33;
  margin: 0 0 6px;
}

/* Grade */
.gridWrap {
  max-width: 760px;
  margin: 0 auto;
}

.grid[aria-label="Sugestões de apoio"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Botões */
.opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 14px;
  border-radius: 22px;
  background: var(--pill);
  border: 3px solid var(--pill);
  color: #fff;
  transition: transform 0.08s ease, background 0.12s ease, border-color 0.12s ease;
  cursor: pointer;
}

.opt strong {
  color: #fff;
  font-weight: 800;
  font-size: clamp(20px, 5.4vw, 26px);
}

.opt small {
  color: #fff;
  font-size: clamp(12px, 3.6vw, 13.5px);
}

.opt:hover {
  background: var(--pill-hover);
  border-color: var(--pill-hover);
}

.opt:active {
  transform: translateY(1px);
}

.opt:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Badge */
.opt.has-label .opt-label {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #13c75d;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

/* CTA */
.cta {
  display: block;
  margin: 18px auto 22px;
  background: var(--pill);
  color: #fff;
  text-align: center;
  padding: 16px 26px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  max-width: 760px;
  cursor: pointer;
}

.cta:hover {
  background: var(--pill-hover);
}

/* Comentários */
.comments {
  max-width: 760px;
  margin: 40px auto 0;
}

.comments h2.secTitle {
  text-align: center;
  color: #0e2e33;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 17px;
  margin: 40px 0 26px;
}

.cm {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  margin: 0 0 18px;
  align-items: flex-start;
}

.cm-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 4px;
}

.cm-dot {
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border-radius: 50%;
  border: 1px solid #d7e6dd;
  background: #fff;
  color: #2a3c31;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cm-dot:hover {
  border-color: var(--pill);
  color: var(--pill);
}

.cm-dot.is-active {
  background: var(--pill);
  border-color: var(--pill);
  color: #fff;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #e2efe6;
  background: #eaf4ee;
  overflow: hidden;
  margin-top: 29px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.who {
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--pill);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
}

.time {
  color: #86a2ab;
  font-size: 12.5px;
}

.bubble {
  background: #fff;
  border: 1px solid #e3edf1;
  border-radius: 14px;
  padding: 14px 16px;
  color: #233c43;
  line-height: 1.55;
  box-shadow: 0 6px 18px rgba(3, 35, 41, 0.06);
}

/* Rodapé */
.foot {
  max-width: 760px;
  margin: 24px auto 18px;
  text-align: center;
  color: #36433d;
  padding-top: 20px;
  border-top: 1px solid #e6eeea;
}

.logo-foot {
  width: 280px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.copyright {
  margin: 8px 0 12px;
  font-size: 14px;
  color: #3b4a44;
}

.minor {
  max-width: 680px;
  margin: 0 auto 14px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #566861;
}

.minor b {
  color: #2c3d36;
}

.policy a {
  text-decoration: underline;
  font-weight: 600;
}

/* ========= Espaçamento harmonizado (mobile) ========= */
@media (max-width: 639px) {
  .sheet {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .pad {
    padding: 8px 14px 18px;
  }

  .logo {
    margin: 2px auto 6px;
  }

  h1 {
    margin: 6px auto 14px;
    font-size: clamp(22px, 6vw, 27px);
    line-height: 1.22;
  }

  .hero-wrap {
    margin: 0 auto 12px;
    border-radius: 16px;
    max-width: 100%;
  }

  .hero {
    border-radius: 12px;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }

  .meta {
    margin: 18px auto 16px;
  }

  .money {
    gap: 10px;
    margin: 0 0 10px;
  }

  .target {
    font-size: 14px;
  }

  .progress .bar {
    height: 22px;
  }

  .copy {
    font-size: 15.5px;
    line-height: 1.62;
  }

  .copy p {
    margin: 11px 0;
  }

  .img-fluid {
    width: 100%;
    max-width: min(100%, 260px);
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    padding: 6px;
    margin: 14px auto;
    border-radius: 14px;
  }

  .secTitle-wrap {
    margin: 26px auto 14px;
  }

  .secHeadline {
    font-size: 18px;
    line-height: 1.28;
    padding: 0 6px;
  }

  .grid[aria-label="Sugestões de apoio"] {
    gap: 10px;
  }

  .opt {
    min-height: 48px;
    padding: 9px 8px;
    border-radius: 14px;
  }

  .opt strong {
    font-size: clamp(18px, 5vw, 22px);
  }

  .opt.has-label .opt-label {
    top: -11px;
    font-size: 10px;
    padding: 3px 10px;
  }

  .cta {
    margin: 14px auto 16px;
    padding: 14px 18px;
    font-size: 15px;
    border-radius: 12px;
  }

  .comments {
    margin: 24px auto 0;
  }

  .comments h2.secTitle {
    margin: 22px 0 14px;
    font-size: 15px;
  }

  .cm {
    grid-template-columns: 48px 1fr;
    gap: 10px;
    margin: 0 0 14px;
    align-items: center;
  }

  .avatar {
    margin-top: 0;
    width: 48px;
    height: 48px;
  }

  .bubble {
    padding: 12px 14px;
  }

  .who {
    font-size: 14px;
    flex-wrap: wrap;
  }

  .foot {
    margin: 20px auto 14px;
    padding-top: 16px;
  }

  .logo-foot {
    width: min(240px, 72vw);
  }

  .minor {
    padding: 0 4px;
  }
}

/* ==================== MODAL PIX ==================== */
/* Visibilidade no CSS (não no HTML inline): cache do .css não some com o layout */
#pix-modal.modal:not(.is-open) {
  display: none;
}

#pix-modal.modal.is-open {
  display: flex;
}

.modal {
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 220ms ease;
}

.modal-panel {
  position: relative;
  background: #fafbfc;
  padding: 32px 20px;
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10001;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: opacity 250ms ease, transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: center;
  border: 1px solid #e8eaed;
}

@media (min-width: 480px) {
  .modal-panel {
    padding: 36px 24px;
  }
}

@media (min-width: 640px) {
  .modal-panel {
    padding: 40px 28px;
  }
}

.modal.show .modal-backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.modal.show .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  border: none;
  background: #fff;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  font-weight: 400;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (min-width: 640px) {
  .modal-close {
    right: 18px;
    top: 16px;
    font-size: 26px;
    width: 34px;
    height: 34px;
  }
}

.modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.modal-logo {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  opacity: 0.9;
}

@media (min-width: 480px) {
  .modal-logo {
    width: 160px;
    margin: 0 auto 22px;
  }
}

@media (min-width: 640px) {
  .modal-logo {
    width: 180px;
    margin: 0 auto 24px;
  }
}

.modal-panel h3 {
  margin: 0 0 20px 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #5b6270;
  letter-spacing: 0.5px;
}

@media (min-width: 480px) {
  .modal-panel h3 {
    font-size: 17px;
    margin: 0 0 22px 0;
  }
}

@media (min-width: 640px) {
  .modal-panel h3 {
    font-size: 18px;
    margin: 0 0 24px 0;
  }
}

.modal-success {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(90deg, #00B44A, #0a8f3b);
  color: white;
  border-radius: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0, 180, 74, 0.3);
}

@media (min-width: 640px) {
  .modal-success {
    font-size: 1.05rem;
    padding: 22px;
  }
}

.modal .qrcode {
  width: 180px;
  display: block;
  margin: 16px auto;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

@media (min-width: 480px) {
  .modal .qrcode {
    width: 200px;
    padding: 18px;
  }
}

@media (min-width: 640px) {
  .modal .qrcode {
    width: 220px;
    padding: 20px;
  }
}

.modal .qrcode svg,
.modal .qrcode img,
.modal .qrcode canvas {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.modal .pix-text-wrap {
  display: flex;
  gap: 0;
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

@media (min-width: 640px) {
  .modal .pix-text-wrap {
    margin-top: 24px;
  }
}

.modal input#modal-pix-text {
  flex: 1;
  padding: 14px 12px;
  border: 2px solid #00B44A;
  border-radius: 12px;
  background: #fff;
  width: 100%;
  max-width: 440px;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #374151;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 180, 74, 0.1);
}

@media (min-width: 480px) {
  .modal input#modal-pix-text {
    padding: 15px 14px;
    font-size: 0.76rem;
  }
}

@media (min-width: 640px) {
  .modal input#modal-pix-text {
    padding: 16px;
    font-size: 0.8rem;
  }
}

.modal .status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .modal .status-row {
    gap: 12px;
    margin-top: 18px;
  }
}

.modal #modal-timer {
  color: #6b7280;
  font-weight: 500;
  font-size: 0.82rem;
}

@media (min-width: 640px) {
  .modal #modal-timer {
    font-size: 0.9rem;
  }
}

.modal-status {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px 0;
  color: #374151;
}

@media (min-width: 640px) {
  .modal-status {
    font-size: 18px;
    margin: 0 0 10px 0;
  }
}

.blink {
  animation: blink 1.8s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.modal-subtitle {
  text-align: center;
  color: #9ca3af;
  margin-top: 0;
  font-size: 0.82rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .modal-subtitle {
    font-size: 0.88rem;
  }
}

.modal-amount {
  text-align: center;
  font-size: 34px;
  font-weight: 900;
  color: #00B44A;
  margin: 8px 0 20px 0;
  letter-spacing: -0.5px;
}

@media (min-width: 480px) {
  .modal-amount {
    font-size: 36px;
    margin: 10px 0 22px 0;
  }
}

@media (min-width: 640px) {
  .modal-amount {
    font-size: 38px;
    margin: 12px 0 24px 0;
  }
}

.copy-btn-wrap {
  text-align: center;
  margin-top: 24px;
}

.primary-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #00B44A;
  border: none;
  color: #fff;
  padding: 15px 28px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 180, 74, 0.3);
  transition: all 0.2s;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  width: 100%;
  max-width: 360px;
}

.primary-copy svg {
  fill: white;
}

@media (min-width: 480px) {
  .primary-copy {
    padding: 16px 32px;
    gap: 9px;
    font-size: 0.96rem;
  }
}

@media (min-width: 640px) {
  .primary-copy {
    padding: 17px 36px;
    gap: 10px;
    font-size: 1rem;
  }
}

.primary-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 180, 74, 0.4);
  background: #0a8f3b;
}

.primary-copy:active {
  transform: translateY(0);
}

.pix-instructions {
  font-size: 0.82rem;
  color: #6b7280;
  text-align: center;
  margin-top: 28px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  line-height: 1.8;
}

.pix-instructions p {
  margin: 0;
  font-size: 0.84rem;
  color: #9ca3af;
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .pix-instructions {
    font-size: 0.86rem;
  }
}

/* Modal PIX: mobile — bottom sheet limpo */
@media (max-width: 639px) {
  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal-panel {
    padding: 26px 18px calc(20px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
  }

  .modal-close {
    right: 12px;
    top: 12px;
  }

  .modal-status {
    font-size: 14px;
    margin: 2px 0 2px;
  }

  .modal-subtitle {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .modal-amount {
    font-size: 30px;
    margin: 2px 0 14px;
  }

  .modal .qrcode {
    width: 164px;
    padding: 10px;
    margin: 6px auto 14px;
  }

  .modal .pix-text-wrap {
    margin-top: 10px;
  }

  .modal input#modal-pix-text {
    padding: 12px;
    font-size: 0.7rem;
  }

  .copy-btn-wrap {
    margin-top: 12px;
  }

  .primary-copy {
    padding: 15px 16px;
    font-size: 0.96rem;
    width: 100%;
    max-width: none;
  }

  .pix-instructions {
    margin-top: 14px;
  }

  .pix-instructions p {
    font-size: 0.74rem;
  }

  .modal-success {
    margin-top: 12px;
    padding: 14px;
    font-size: 0.9rem;
  }
}



/* ===== Outro valor ===== */
.ov{margin:22px auto 0;padding:18px 16px 16px;border:1.5px dashed #cfe9d9;border-radius:18px;background:#f6fbf8;text-align:center;max-width:760px}
.ov-label{margin:0 0 12px;font-weight:800;font-size:15px;color:#0e2e33}
.ov-row{display:flex;align-items:center;justify-content:center;gap:10px}
.ov-step{width:46px;height:46px;flex:0 0 46px;border-radius:50%;border:2px solid var(--pill);background:#fff;color:var(--pill);font-size:24px;font-weight:700;line-height:1;cursor:pointer}
.ov-step:active{transform:translateY(1px)}
.ov-field{display:flex;align-items:center;gap:6px;height:52px;padding:0 16px;border-radius:14px;background:#fff;border:2px solid #e3efe8;min-width:0;flex:0 1 170px}
.ov-field:focus-within{border-color:var(--pill)}
.ov-field span{font-weight:800;color:#6b7c80;font-size:16px}
.ov-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;font-size:24px;font-weight:800;color:#0e2e33;text-align:center;-moz-appearance:textfield}
.ov-field input::-webkit-outer-spin-button,.ov-field input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ov-hint{margin:8px 0 12px;font-size:12.5px;color:#7a8a8d}
.ov-hint.is-err{color:#d64545;font-weight:700}
.ov-go{display:block;width:100%;padding:15px 20px;border:0;border-radius:14px;background:var(--pill);color:#fff;font-weight:800;font-size:16px;cursor:pointer}
.ov-go:hover{background:var(--pill-hover)}
.ov-go:disabled{opacity:.6;cursor:not-allowed}

/* ===== Ritmo mobile ===== */
@media (max-width: 639px) {
  .pad { padding: 16px 18px 28px; }
  .logo { width: min(200px, 60vw); margin: 0 auto 18px; }
  h1 { margin: 0 auto 18px; font-size: clamp(23px, 6.4vw, 27px); line-height: 1.2; padding: 0 4px; text-wrap: balance; }
  .hero-wrap { margin: 0 auto 22px; border-radius: 18px; }
  .hero { border-radius: 18px; }
  .meta { margin: 0 auto 26px; }
  .money { margin: 0 0 10px; }
  .progress { margin: 0; }
  .progress .bar { height: 18px; }
  .copy { font-size: 16px; line-height: 1.65; }
  .copy p { margin: 0 0 16px; }
  .copy > :last-child { margin-bottom: 0; }
  .copy .cta { margin: 22px 0; }
  .img-fluid { width: 100%; max-width: 100%; height: auto; aspect-ratio: 1 / 1; padding: 0; margin: 24px auto; border-radius: 18px; }
  .cta { margin: 24px auto; padding: 16px 18px; }
  .secTitle-wrap { margin: 40px auto 18px; }
  .secHeadline { font-size: 18px; line-height: 1.3; }
  .grid[aria-label="Sugestões de apoio"] { gap: 10px; }
  .opt { min-height: 54px; }
  .ov { margin: 18px auto 0; padding: 18px 16px; }
  .comments { margin: 44px auto 0; }
  .comments h2.secTitle { margin: 0 0 18px; font-size: 18px; }
  .cm { margin: 0 0 14px; gap: 12px; }
  .cm-pager { margin: 20px 0 0; }
  .foot { margin: 36px auto 0; padding: 24px 0 8px !important; }
}

/* ===== Modal Pix v2: cartão centralizado ===== */
#pix-modal.modal { align-items: center; justify-content: center; padding: 18px; }
#pix-modal .modal.show .modal-backdrop, #pix-modal.show .modal-backdrop { background: rgba(10, 25, 20, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#pix-modal .modal-panel {
  max-width: 380px; width: 100%; max-height: calc(100dvh - 36px);
  padding: 26px 20px 20px; border-radius: 24px; border: 0;
  background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  transform: translateY(12px) scale(.96);
}
#pix-modal.show .modal-panel { transform: none; }
#pix-modal .modal-close {
  top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: #f2f5f4; box-shadow: none; color: #5d6b67; font-size: 22px;
}
#pix-modal .modal-close:hover { background: #e7ecea; }

#pix-modal .px-head { text-align: center; padding: 0 30px; }
#pix-modal .px-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #e8f7ee; color: var(--pill); margin-bottom: 8px;
}
#pix-modal .modal-subtitle {
  margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #8a9692;
}
#pix-modal .modal-amount {
  margin: 2px 0 10px; font-size: 34px; font-weight: 900; line-height: 1.1;
  letter-spacing: -.02em; color: #0e2e33;
}
#pix-modal .modal-status {
  display: inline-block; margin: 0; padding: 6px 12px; border-radius: 999px;
  background: #fff6e5; color: #9a6a00; font-size: 12.5px !important; font-weight: 700; letter-spacing: 0;
}

#pix-modal .qrcode {
  width: 184px; margin: 18px auto 0; padding: 12px;
  border: 1.5px solid #e6ecea; border-radius: 18px; box-shadow: none; background: #fff;
}
#pix-modal .qrcode:empty { height: 184px; background: #f6f8f7; }

#pix-modal .px-or {
  display: flex; align-items: center; gap: 10px; margin: 18px 0 12px;
  font-size: 12px; color: #9aa5a1; font-weight: 600;
}
#pix-modal .px-or::before, #pix-modal .px-or::after { content: ""; flex: 1; height: 1px; background: #e9eeec; }

#pix-modal .pix-text-wrap { margin: 0; }
#pix-modal input#modal-pix-text {
  max-width: none; padding: 13px 14px; border: 1.5px dashed #cfdcd6; border-radius: 12px;
  background: #f7faf9; box-shadow: none; font-size: 12px; color: #4b5753; text-align: center;
}
#pix-modal .copy-btn-wrap { margin-top: 10px; }
#pix-modal .primary-copy {
  width: 100%; max-width: none; padding: 15px 18px; border-radius: 14px;
  font-size: 15.5px; font-weight: 800; letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(0, 180, 74, .25);
}
#pix-modal .primary-copy:hover { transform: none; }
#pix-modal .px-foot { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: #8a9692; line-height: 1.5; }
#pix-modal .px-foot b { color: #4b5753; }

#pix-modal .modal-success {
  margin-top: 14px; padding: 14px; border-radius: 14px; font-size: 14.5px;
  background: #e8f7ee; color: #0a6b32; box-shadow: none;
}

@media (max-width: 639px) {
  #pix-modal.modal { align-items: center; padding: 16px; }
  #pix-modal .modal-panel { border-radius: 24px; padding: 24px 18px 18px; max-height: calc(100dvh - 32px); }
  #pix-modal .modal-amount { font-size: 32px; margin: 2px 0 10px; }
  #pix-modal .modal-status { margin: 0; }
  #pix-modal .qrcode { width: 172px; padding: 10px; margin: 16px auto 0; }
  #pix-modal .pix-text-wrap { margin: 0; }
  #pix-modal input#modal-pix-text { padding: 12px; font-size: 11.5px; }
  #pix-modal .copy-btn-wrap { margin-top: 10px; }
  #pix-modal .primary-copy { padding: 15px 16px; font-size: 15px; }
}