/* ==========================================================================
   home.css — página de doação
   Todos os valores foram medidos no original: largura 520px, cards 78px,
   gaps 10px, tipografia 9.5/11/12.5/14/15/20px.
   ========================================================================== */

.rn-app, .doar-page {
  min-height: 100vh;
  background: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

.doar-main {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px 4px;
}

/* ---------- botão voltar ---------- */
.doar-back {
  margin-top: 16px;
  margin-left: -8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: color .15s ease;
}
.doar-back:hover { color: #111827; }
.doar-back svg { width: 16px; height: 16px; }

/* ---------- cabeçalho ---------- */
.doar-hero {
  margin-top: 12px;
  transform: translateY(4px);
  text-align: center;
}
.doar-hero h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
}
@media (min-width: 640px) {
  .doar-hero h1 { font-size: 22px; }
}
.doar-hero figure {
  margin: 12px auto 0;
  max-width: 380px;
}
.doar-hero blockquote {
  margin: 0;
  font-size: 15px;
  font-style: italic;
  line-height: 1.625;
  color: #4b7a5a;
}
.doar-hero figcaption {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #9ca3af;
}

/* ---------- formulário ---------- */
.doar-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.doar-fields {
  margin: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.doar-field { display: block; }
.doar-field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #111827;
  margin-bottom: 2px;
}
.doar-field-hint {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  line-height: 1.375;
  color: #6b7280;
}
.doar-input-wrap { position: relative; display: block; }

.doar-input {
  width: 100%;
  height: 56px;
  padding: 0 48px 0 16px;
  font-size: 16px;
  font-family: inherit;
  color: #111827;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  outline: none;
  transition: border-color .15s ease;
}
.doar-input::placeholder { color: #9ca3af; }
.doar-input:focus { border-color: #111827; }
.doar-input.is-invalid { border-color: #dc2626; }

.doar-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: #9ca3af;
}
.doar-input-wrap.has-value .doar-clear { display: flex; }
.doar-clear svg { width: 16px; height: 16px; }

.doar-check {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
}
.doar-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  accent-color: oklch(63% .12 235);
}

/* ---------- faixas de valor ---------- */
.doar-tiers-head { margin-bottom: 12px; }
.doar-tiers-head .t {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.5;
}
.doar-tiers-head .s {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.375;
  color: #6b7280;
}

.doar-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@keyframes doarSheen {
  0%   { transform: translate3d(-140%, 0, 0) skewX(-18deg); }
  100% { transform: translate3d(260%, 0, 0) skewX(-18deg); }
}
@keyframes doarTintBreathe {
  0%, 100% { opacity: var(--tint-min, .35); }
  50%      { opacity: var(--tint-max, .65); }
}

.doar-tier {
  --intensity: 0;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 78px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  will-change: transform;
  transition:
    transform .22s cubic-bezier(.2,.7,.2,1),
    box-shadow .22s cubic-bezier(.2,.7,.2,1),
    border-color .18s ease;
}
.doar-tier:hover  { transform: translate3d(0, -2px, 0); }
.doar-tier:active { transform: translate3d(0, 0, 0) scale(.98); }
.doar-tier[data-selected="true"] {
  transform: translate3d(0, -2px, 0) scale(1.025);
  border-width: 2px;
  z-index: 4;
}
.doar-tier:focus-visible {
  outline: 2px solid rgba(100, 116, 139, .4);
  outline-offset: 2px;
}

.doar-tier-tint {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--sheen-color, transparent) 0%, transparent 60%),
    linear-gradient(180deg, var(--sheen-color, transparent) 0%, transparent 55%);
  opacity: calc(.08 + var(--intensity) * .09);
  --tint-min: calc(.06 + var(--intensity) * .08);
  --tint-max: calc(.16 + var(--intensity) * .10);
  animation: doarTintBreathe calc(5.5s + var(--intensity) * .2s) ease-in-out infinite;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.doar-tier:hover .doar-tier-tint { opacity: calc(.20 + var(--intensity) * .08); }
.doar-tier[data-selected="true"] .doar-tier-tint { opacity: calc(.28 + var(--intensity) * .08); }

.doar-tier-topline {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: var(--stripe);
  pointer-events: none;
  z-index: 1;
}
.doar-tier[data-selected="true"] .doar-tier-topline { height: 4px; }

.doar-tier-sheen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}
.doar-tier-sheen::before {
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  width: 70%;
  background: radial-gradient(50% 100% at 50% 50%,
    rgba(255,255,255,.55) 0%, rgba(255,255,255,.18) 45%, transparent 75%);
  filter: blur(8px);
  mix-blend-mode: screen;
  animation: doarSheen calc(8.5s - var(--intensity) * .4s) linear infinite;
  animation-delay: calc(var(--intensity) * -.6s);
  opacity: calc(.15 + var(--intensity) * .09);
}
.doar-tier[data-premium="true"] .doar-tier-sheen::after {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  width: 75%;
  background: radial-gradient(55% 100% at 50% 50%,
    color-mix(in oklab, var(--sheen-color, #fff) 55%, white) 0%,
    color-mix(in oklab, var(--sheen-color, #fff) 30%, white) 30%,
    transparent 75%);
  filter: blur(10px);
  mix-blend-mode: screen;
  opacity: calc(.10 + var(--intensity) * .08);
  animation: doarSheen calc(7s - var(--intensity) * .35s) linear infinite;
}

.doar-tier-name {
  position: relative;
  z-index: 10;
  margin-top: 4px;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6b7280;
  line-height: 1.5;
}
.doar-tier-value {
  position: relative;
  z-index: 10;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #111827;
}
.doar-tier-value .cur {
  font-size: 11px;
  font-weight: 700;
  vertical-align: top;
  margin-right: 2px;
}

/* ---------- meios de pagamento ---------- */
.doar-pay { margin-top: 32px; }
.doar-pay-title {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.doar-pay-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doar-pay-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  font-family: inherit;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.doar-pay-opt:hover { border-color: #94a3b8; }
.doar-pay-opt[aria-checked="true"] {
  border-color: oklch(63% .12 235);
  background: oklch(97% .015 235);
}
.doar-radio {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  border: 2px solid #d1d5db;
  background: #fff;
  transition: all .15s ease;
}
.doar-pay-opt[aria-checked="true"] .doar-radio {
  border-color: oklch(63% .12 235);
  background: oklch(63% .12 235);
}
.doar-radio svg { width: 12px; height: 12px; color: #fff; display: none; }
.doar-pay-opt[aria-checked="true"] .doar-radio svg { display: block; }

.doar-pay-txt { flex: 1; }
.doar-pay-txt .p1 {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  line-height: 1.5;
}
.doar-pay-txt .p2 {
  display: block;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

/* ---------- resumo ---------- */
.doar-summary {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}
.doar-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #374151;
}
.doar-summary-div {
  margin: 12px 0;
  border-top: 1px dashed #e5e7eb;
}
.doar-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.doar-summary-total .lbl {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}
.doar-summary-total .val {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

/* ---------- selo ---------- */
.doar-ct {
  margin-top: 16px;
  text-align: center;
}
.doar-ct p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}
.doar-ct strong { color: #111827; }

/* ---------- CTA ---------- */
.doar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 64px;
  margin-top: 24px;
  border: 2px solid oklch(73% .12 82);
  border-radius: 12px;
  background: oklch(85% .065 235);
  color: oklch(36% .07 240);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  transition: background .15s ease, transform .1s ease;
}
.doar-cta:hover  { background: oklch(80% .085 235); }
.doar-cta:active { transform: scale(.99); }
.doar-cta:disabled { opacity: .7; cursor: not-allowed; }

/* ---------- erro ---------- */
.doar-err {
  display: none;
  margin-top: 12px;
  font-size: 12.5px;
  color: #dc2626;
}
.doar-err.show { display: block; }

/* ---------- resultado ---------- */
.doar-result {
  display: none;
  margin-top: 28px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}
.doar-result.show { display: block; }
.doar-result h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.doar-result p {
  margin: 0;
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.5;
}
.doar-pixbox {
  margin-top: 16px;
  padding: 14px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  font-size: 12px;
  word-break: break-all;
  color: #374151;
  background: #fafafa;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: left;
}
.doar-result-back {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: oklch(63% .12 235);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .doar-tier-tint,
  .doar-tier-sheen::before,
  .doar-tier-sheen::after { animation: none; }
  .doar-tier { transition: none; }
}

/* ==========================================================================
   Header com imagem de fundo (papel de parede configurável)
   Troque a variável --doar-header-img pela sua imagem.
   Sem imagem, o header mostra apenas o gradiente da marca.
   ========================================================================== */

:root {
  --doar-header-img: none;
  --doar-header-h: 220px;
  --doar-header-overlay: linear-gradient(180deg,
    rgba(255, 255, 255, .05) 0%,
    rgba(255, 255, 255, .55) 62%,
    #ffffff 100%);
}

.doar-header {
  position: relative;
  width: 100%;
  min-height: var(--doar-header-h);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
  background-color: oklch(85% .065 235);
  background-image: var(--doar-header-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* camada de fotos (carrossel) */
.doar-header-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.doar-header-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .8s ease;
}
.doar-header-slide.is-active { opacity: 1; }

/* véu que funde a imagem no branco da página */
.doar-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--doar-header-overlay);
  pointer-events: none;
  z-index: 1;
}

/* conteúdo sobreposto ao header */
.doar-header-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  padding: 0 20px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* indicadores do carrossel */
.doar-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.doar-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: rgba(17, 24, 39, .38);
  cursor: pointer;
  transition: all .5s ease;
}
.doar-dot.is-active {
  width: 22px;
  background: #111827;
}
.doar-dot:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 3px;
}

/* badge opcional acima do título */
.doar-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #111827;
}
.doar-header-badge i {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #22c55e;
  animation: doarPulse 1.8s ease-in-out infinite;
}
@keyframes doarPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.8); }
}

/* ==========================================================================
   Campos do cartão de crédito
   ========================================================================== */

.doar-card-fields {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  animation: doarSlideDown .28s ease both;
  transform-origin: top;
}
@keyframes doarSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.doar-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* campo compacto (usado nos dados do cartão) */
.doar-input--sm { height: 48px; font-size: 15px; }

.doar-card-fields .doar-field-label {
  font-size: 13px;
  margin-bottom: 4px;
}

/* erro por campo */
.doar-field-err {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #dc2626;
  line-height: 1.35;
}

/* bandeira detectada */
.doar-card-brand {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #111827;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 3px 7px;
  pointer-events: none;
}

/* barra de segurança */
.doar-secure {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #6b7280;
}
.doar-secure svg { width: 13px; height: 13px; }

@media (prefers-reduced-motion: reduce) {
  .doar-card-fields { animation: none; }
  .doar-header-badge i { animation: none; }
}

/* ==========================================================================
   Estado VÁLIDO dos inputs (medido: fundo #F7FEF9, borda #86EFAC, ✓ #16A34A)
   ========================================================================== */

.doar-input.is-valid {
  background: #f7fef9;
  border-color: #86efac;
}
.doar-input.is-valid:focus { border-color: #22c55e; }

.doar-valid {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #16a34a;
  pointer-events: none;
}
.doar-valid svg { width: 16px; height: 16px; }

/* ==========================================================================
   ORDER BUMP — card adicional (foto 64px, check 18px)
   ========================================================================== */

.doar-bump-wrap { margin-top: 36px; }

.doar-bump {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  text-align: left;
  font-family: inherit;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  cursor: pointer;
  transition: all .2s ease;
}
.doar-bump:hover { border-color: #94a3b8; }

.doar-bump[aria-pressed="true"] {
  border-color: oklch(63% .12 235);
  background: oklch(97% .015 235);
  box-shadow: 0 0 0 4px oklch(93% .03 235);
}

.doar-bump-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f7;
}
.doar-bump-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.5);
  display: block;
}

.doar-bump-body { min-width: 0; flex: 1; }

.doar-bump-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.doar-bump-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  color: #fff;
  transition: all .2s ease;
}
.doar-bump[aria-pressed="true"] .doar-bump-check {
  border-color: oklch(63% .12 235);
  background: oklch(63% .12 235);
}
.doar-bump-check svg { width: 11px; height: 11px; opacity: 0; }
.doar-bump[aria-pressed="true"] .doar-bump-check svg { opacity: 1; }

.doar-bump-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.doar-bump-desc {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  color: #4b5563;
}

.doar-bump-note {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.35;
  color: #6b7280;
}

/* linha extra no resumo */
.doar-summary-extra {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: oklch(63% .12 235);
}
.doar-summary-extra span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doar-summary-extra span:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   PÁGINA PIX
   ========================================================================== */

.pix-page {
  min-height: 100vh;
  background: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

.pix-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.pix-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: color .15s ease;
}
.pix-back:hover { color: #111827; }
.pix-back svg { width: 16px; height: 16px; }

.pix-title {
  margin: 18px 0 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
  letter-spacing: -.02em;
}

.pix-sub {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #6b7280;
}

/* card do copia-e-cola */
.pix-card {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.pix-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.pix-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #111827;
}
.pix-card-amount {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
}

.pix-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.pix-code {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  overflow: hidden;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #111827;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pix-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: oklch(78% .125 232);
  color: oklch(30% .09 253);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.pix-copy-btn:hover { background: oklch(74% .13 232); }
.pix-copy-btn:active { transform: scale(.98); }
.pix-copy-btn svg { width: 14px; height: 14px; }
.pix-copy-btn.is-copied {
  background: #dcfce7;
  color: #15803d;
}

/* card do QR */
.pix-qr-card {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.pix-qr-label {
  margin: 0 0 14px;
  font-size: 13px;
  color: #6b7280;
}
.pix-qr-box {
  display: inline-block;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}
.pix-qr-box img,
.pix-qr-box canvas {
  display: block;
  width: 200px;
  height: 200px;
  border-radius: 8px;
}

/* aviso aguardando */
.pix-waiting {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid oklch(90% .04 235);
  border-radius: 14px;
  background: oklch(97% .015 235);
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
}
.pix-waiting i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: oklch(55% .14 235);
  animation: pixDot 1.4s ease-in-out infinite;
}
@keyframes pixDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.75); }
}

.pix-empty {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fef2f2;
  font-size: 13.5px;
  color: #991b1b;
}

@media (max-width: 640px) {
  .pix-title { font-size: 24px; }
  .pix-main { padding: 0 20px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .pix-waiting i { animation: none; }
}


/* ==========================================================================
   PIX — botão "já fiz o pagamento" + tela de confirmado
   ========================================================================== */

.pix-pago-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 56px;
  margin-top: 16px;
  border: 2px solid oklch(63% .12 235);
  border-radius: 14px;
  background: oklch(63% .12 235);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: filter .15s ease, transform .1s ease;
}
.pix-pago-btn:hover { filter: brightness(1.06); }
.pix-pago-btn:active { transform: translateY(1px); }
.pix-pago-btn svg { width: 16px; height: 16px; fill: currentColor; }

.pix-poll-err {
  margin: 10px 0 0;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

/* ---- tela de confirmado ---- */
.pix-ok {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.pix-ok-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 9999px;
  background: #dcfce7;
  color: #48bb78;
}
.pix-ok-check svg {
  width: 44px;
  height: 44px;
}

.pix-ok-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.pix-ok-msg {
  margin: 0;
  max-width: 380px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #6b7280;
}

.pix-ok-btn {
  margin-top: 8px;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: filter .15s ease;
}
.pix-ok-btn:hover { filter: brightness(1.15); }

/* código clicável */
.pix-code { cursor: pointer; user-select: all; }
