/* ====================================================================
   CHECKOUT — Banking App Edition (polished)
   Combo Colecionador Copa 2026
   ==================================================================== */

:root {
  /* Cores — neutros mais quentes (estilo Stripe/Linear) */
  --bg-top:         #062a17;
  --bg-mid:         #0a3a1f;
  --bg-canvas:      #f7f6f3;
  --card:           #ffffff;

  --ink-1:          #111213;
  --ink-2:          #5b6168;
  --ink-3:          #9aa0a6;
  --ink-4:          #c4c8cd;

  --line:           #ecebe6;
  --line-soft:      #f4f3ef;
  --bg-soft:        #faf9f6;

  --brand:          #00A859;
  --brand-deep:     #007a3e;
  --brand-darker:   #00582d;
  --brand-glow:     rgba(0,168,89,0.30);
  --brand-soft:     rgba(0,168,89,0.07);
  --brand-line:     rgba(0,168,89,0.18);

  --pix-green:      #00C16A;
  --ouro:           #C9A227;
  --erro:           #DC2626;
  --erro-soft:      #FEF2F2;

  /* Tipografia */
  --font-sans:      'Inter', system-ui, -apple-system, sans-serif;
  --font-display:   'Anton', sans-serif;

  /* Spacing tokens (4px scale) */
  --s-1:  4px;  --s-2:  8px;  --s-3:  12px; --s-4:  16px;
  --s-5:  20px; --s-6:  24px; --s-7:  32px; --s-8:  40px;
  --s-9:  56px; --s-10: 72px;

  /* Tamanhos */
  --maxw:           460px;
  --r-card:         24px;
  --r-input:        12px;
  --r-button:       14px;

  /* Sombras multi-camada (estilo Stripe) */
  --shadow-card:
    0 1px 2px rgba(15,30,20,0.04),
    0 2px 6px rgba(15,30,20,0.05),
    0 24px 56px rgba(6,42,23,0.18);
  --shadow-cta:
    0 1px 2px rgba(0,0,0,0.06),
    0 4px 12px rgba(0,0,0,0.10);
  --shadow-focus:
    0 0 0 3px rgba(0,168,89,0.18);

  --transition:     200ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-canvas);
  color: var(--ink-1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* ============ FUNDO DECORATIVO (mais leve) ============ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -8%, rgba(0,168,89,0.20) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(201,162,39,0.10) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 18%, #1a4a2b 32%, var(--bg-canvas) 56%);
  pointer-events: none;
}

/* ============ APP SHELL ============ */
.app {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-6) var(--s-4) 140px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============ TOPBAR ============ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-5);
  color: rgba(255,255,255,0.95);
}
.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: var(--s-2) 0;
  transition: color var(--transition);
  letter-spacing: 0.1px;
}
.topbar-back:hover { color: white; }
.topbar-back svg { width: 16px; height: 16px; }
.topbar-loja {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  text-decoration: none;
}
.topbar-loja .ouro { color: var(--ouro); }

/* ============ HEADER DE VALOR ============ */
.amount-header {
  text-align: center;
  color: white;
  margin-bottom: var(--s-6);
  animation: fadeUp 500ms ease-out 80ms backwards;
}
.amount-label {
  font-size: 0.66rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--s-2);
}
.amount-valor {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.5px;
  color: white;
  margin-bottom: var(--s-3);
  text-shadow: 0 2px 24px rgba(0,168,89,0.25);
}
.amount-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.10);
  padding: 6px 12px;
  border-radius: 50px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
}
.amount-meta .pix-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pix-green);
  box-shadow: 0 0 8px var(--pix-green);
}

/* ============ PROGRESS ============ */
.progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto var(--s-5);
  max-width: 240px;
}
.progress-step {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.18);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}
.progress-step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--brand), var(--pix-green));
  transform: translateX(-100%);
  transition: transform 550ms cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 50px;
}
.progress-step.is-done::after { transform: translateX(0); }
.progress-step.is-active::after { transform: translateX(0); }

/* ============ CARD ============ */
.card {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  animation: cardEnter 550ms var(--ease-spring) 50ms backwards;
}
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ STEPS ============ */
.steps-viewport {
  position: relative;
  overflow: hidden;
}
.steps-track {
  display: flex;
  transition: transform 480ms cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.step {
  min-width: 100%;
  padding: var(--s-7) var(--s-6) var(--s-5);
}
.steps-track.at-1 { transform: translateX(0); }
.steps-track.at-2 { transform: translateX(-100%); }

/* ============ TÍTULOS DOS STEPS ============ */
.step-eyebrow {
  font-size: 0.66rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: var(--s-2);
}
.step-titulo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  color: var(--ink-1);
  margin-bottom: var(--s-1);
}
.step-sub {
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-bottom: var(--s-6);
  line-height: 1.5;
}

/* Divisor entre seções dentro do mesmo step */
.section-divider {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-6) 0 var(--s-4);
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section-divider span {
  font-size: 0.66rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
}

/* ============ INPUTS — floating label ============ */
.field {
  position: relative;
  margin-bottom: var(--s-3);
  animation: fadeUp 400ms ease-out backwards;
}
.field:nth-child(1) { animation-delay: 60ms; }
.field:nth-child(2) { animation-delay: 100ms; }
.field:nth-child(3) { animation-delay: 140ms; }
.field:nth-child(4) { animation-delay: 180ms; }
.field:nth-child(5) { animation-delay: 220ms; }

.field input,
.field select {
  width: 100%;
  height: 56px;
  padding: 20px 14px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  background: white;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  color: var(--ink-1);
  font-weight: 500;
  transition: border-color 180ms, box-shadow 180ms, background 180ms;
  -webkit-appearance: none;
  appearance: none;
  letter-spacing: 0.1px;
}
.field input::placeholder { color: transparent; }
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%239aa0a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field input:hover,
.field select:hover {
  border-color: var(--ink-4);
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--shadow-focus);
}

.field label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.94rem;
  color: var(--ink-3);
  pointer-events: none;
  transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  font-weight: 500;
  letter-spacing: 0.1px;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field select:focus + label,
.field select.is-filled + label {
  top: 11px;
  transform: translateY(0);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--brand-deep);
  text-transform: uppercase;
}
.field.has-error input,
.field.has-error select {
  border-color: var(--erro);
  background: var(--erro-soft);
}
.field.has-error label { color: var(--erro); }
.field.has-error input:focus,
.field.has-error select:focus {
  box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
}
.field .field-erro {
  display: none;
  font-size: 0.76rem;
  color: var(--erro);
  font-weight: 600;
  padding: 6px var(--s-1) 0;
  letter-spacing: 0.1px;
}
.field.has-error .field-erro { display: block; }
.field .field-help {
  font-size: 0.74rem;
  color: var(--ink-3);
  padding: 6px var(--s-1) 0;
  font-weight: 500;
  letter-spacing: 0.1px;
}

/* Rows ============ */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.row-cep { display: grid; grid-template-columns: 1fr 100px; gap: var(--s-2); }
.row-end { display: grid; grid-template-columns: 1fr 90px; gap: var(--s-2); }
.row-cidade { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }

/* ============ RESUMO ============ */
.resumo {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--s-5);
  margin-bottom: var(--s-4);
}
.resumo-produto {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.resumo-img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--line-soft);
}
.resumo-img img { width: 100%; height: 100%; object-fit: cover; }
.resumo-info h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-1);
  margin-bottom: 2px;
  line-height: 1.25;
  letter-spacing: -0.1px;
}
.resumo-info p {
  font-size: 0.76rem;
  color: var(--ink-2);
  line-height: 1.4;
}
.resumo-linha {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  padding: 5px 0;
  color: var(--ink-2);
  letter-spacing: 0.1px;
}
.resumo-linha.bonus { color: var(--brand); font-weight: 600; }
.resumo-linha.desc-pix { color: var(--brand); font-weight: 600; }
.resumo-divider {
  height: 1px;
  background: var(--line);
  margin: var(--s-3) 0;
}
.resumo-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: var(--s-2);
  font-weight: 700;
  color: var(--ink-1);
}
.resumo-total .label-total {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-2);
}
.resumo-total .total-valor {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.3px;
  color: var(--ink-1);
}

/* ============ MÉTODO PIX ============ */
.metodo-pix {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1.5px solid var(--brand);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,168,89,0.04), rgba(0,193,106,0.01));
  position: relative;
  overflow: hidden;
}
.pix-icon {
  width: 40px;
  height: 40px;
  background: var(--pix-green);
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,193,106,0.35);
}
.pix-icon svg { width: 20px; height: 20px; color: white; }
.pix-info { flex: 1; min-width: 0; }
.pix-titulo {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink-1);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  letter-spacing: -0.1px;
}
.pix-titulo .badge-off {
  font-size: 0.6rem;
  background: var(--ink-1);
  color: white;
  padding: 3px 7px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  font-weight: 800;
}
.pix-desc {
  font-size: 0.76rem;
  color: var(--ink-2);
  margin-top: 2px;
}

/* ============ TRUST ROW (mais discreta) ============ */
.trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-5);
  padding: var(--s-4) var(--s-4) var(--s-3);
  border-top: 1px solid var(--line-soft);
}
.trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--ink-2);
  font-weight: 600;
  letter-spacing: 0.1px;
}
.trust svg { width: 14px; height: 14px; color: var(--brand); flex-shrink: 0; }

/* ============ CTA DOCK ============ */
.cta-dock {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  padding: var(--s-4) max(var(--s-4), env(safe-area-inset-left)) calc(var(--s-4) + env(safe-area-inset-bottom)) max(var(--s-4), env(safe-area-inset-right));
  background: linear-gradient(180deg, transparent 0%, rgba(247,246,243,0.85) 35%, var(--bg-canvas) 75%);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.cta-dock-inner {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  pointer-events: auto;
}
.btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: var(--r-button);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: white;
  box-shadow: var(--shadow-cta);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left 0.7s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.08),
    0 8px 20px rgba(0,0,0,0.14);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn .btn-arrow {
  transition: transform 200ms;
  font-size: 1.1rem;
  line-height: 1;
}
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn .spinner-inline {
  width: 16px; height: 16px;
  border: 2.4px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cta-secure {
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 500;
  letter-spacing: 0.1px;
}
.cta-secure svg { width: 11px; height: 11px; color: var(--brand); }

/* ============ ERRO BANNER ============ */
.erro-banner {
  display: none;
  background: var(--erro-soft);
  border: 1px solid #FCA5A5;
  color: var(--erro);
  padding: var(--s-3) var(--s-4);
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.erro-banner.is-visible {
  display: block;
  animation: fadeUp 300ms ease-out;
}

/* ============ BOTTOM SHEET QR ============ */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6,42,23,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms;
}
.sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 101;
  background: var(--card);
  border-radius: 28px 28px 0 0;
  padding: var(--s-2) 0 max(var(--s-7), env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 420ms cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.25);
}
.sheet.is-open { transform: translateY(0); }
.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--ink-4);
  border-radius: 50px;
  margin: 0 auto var(--s-4);
}
.sheet-content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.sheet-titulo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  text-align: center;
  margin-bottom: 4px;
  color: var(--ink-1);
}
.sheet-sub {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-bottom: var(--s-4);
}
.sheet-valor-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  color: var(--ink-2);
  margin: 0 auto var(--s-4);
  font-size: 0.78rem;
  letter-spacing: 0.1px;
}
.sheet-valor-pill .valor {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brand-deep);
  letter-spacing: -0.3px;
}
.sheet-row { text-align: center; }

.qr-wrap {
  display: inline-block;
  padding: var(--s-3);
  background: white;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  margin-bottom: var(--s-4);
}
.qr-img {
  width: 188px;
  height: 188px;
  display: block;
  background: var(--line-soft);
  image-rendering: pixelated;
  border-radius: 6px;
}
.qr-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220,38,38,0.07);
  color: var(--erro);
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: var(--s-4);
  letter-spacing: 0.1px;
}
.qr-timer .dot {
  width: 6px; height: 6px;
  background: var(--erro);
  border-radius: 50%;
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.qr-copia {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 var(--s-4);
}
.qr-copia input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--ink-2);
  background: var(--bg-soft);
  min-width: 0;
}
.qr-copia input:focus { outline: none; }
.qr-copia-btn {
  border: none;
  background: var(--ink-1);
  color: white;
  padding: 0 var(--s-4);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms;
}
.qr-copia-btn:hover { background: var(--brand-deep); }
.qr-copia-btn.copiado { background: var(--brand); }

.qr-passos {
  text-align: left;
  display: grid;
  gap: 8px;
  margin-bottom: var(--s-4);
}
.qr-passo {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-3);
  background: var(--bg-soft);
  border-radius: 11px;
  font-size: 0.82rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.qr-passo strong.n {
  background: var(--brand);
  color: white;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  flex-shrink: 0;
  font-weight: 800;
}

.status-pulse {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  padding: var(--s-3) var(--s-4);
  font-size: 0.86rem;
  color: var(--brand-darker);
  font-weight: 600;
  margin-bottom: var(--s-3);
  letter-spacing: 0.1px;
}
.status-pulse .spinner-inline {
  width: 14px; height: 14px;
  border: 2.4px solid var(--brand-soft);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
.status-pulse.is-pago {
  background: rgba(0,193,106,0.10);
  border-color: var(--pix-green);
  color: var(--brand-darker);
}
.status-pulse.is-pago .spinner-inline { display: none; }
.status-pulse.is-pago::before {
  content: '✓';
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--pix-green);
}
.status-pulse.is-expirado {
  background: var(--erro-soft);
  border-color: rgba(220,38,38,0.3);
  color: var(--erro);
}
.status-pulse.is-expirado .spinner-inline { display: none; }
.status-pulse.is-expirado::before {
  content: '⚠';
  font-weight: 700;
}

.sheet-close {
  display: block;
  width: 100%;
  text-align: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: var(--s-3);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  margin-top: var(--s-2);
  transition: all 180ms;
  letter-spacing: 0.1px;
}
.sheet-close:hover { background: var(--bg-soft); color: var(--ink-1); border-color: var(--ink-4); }

/* ============ FOOTER ============ */
.app-footer {
  text-align: center;
  padding: var(--s-7) var(--s-4) var(--s-2);
  font-size: 0.74rem;
  color: var(--ink-2);
  position: relative;
  z-index: 1;
  letter-spacing: 0.1px;
}
.app-footer a {
  color: var(--ink-1);
  text-decoration: none;
  font-weight: 600;
  transition: color 180ms;
}
.app-footer a:hover { color: var(--brand); }
.app-footer .separator { color: var(--ink-4); margin: 0 6px; }

/* ============ DESKTOP ============ */
@media (min-width: 700px) {
  .app { padding: var(--s-9) var(--s-6) 140px; }
  .amount-valor { font-size: 3rem; }
  .step { padding: var(--s-8) var(--s-7) var(--s-6); }
  .step-titulo { font-size: 1.7rem; }
}

/* ============ MOBILE PEQUENO ============ */
@media (max-width: 380px) {
  .amount-valor { font-size: 2.2rem; }
  .step-titulo { font-size: 1.35rem; }
  .row-2 { grid-template-columns: 1fr; }
  .row-cep { grid-template-columns: 1fr 88px; }
  .row-end { grid-template-columns: 1fr 80px; }
  .row-cidade { grid-template-columns: 1fr; }
  .qr-img { width: 168px; height: 168px; }
  .trust-row { gap: var(--s-3); }
  .trust { font-size: 0.66rem; }
}

/* ============ AUTOFILL ============ */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink-1);
  -webkit-box-shadow: 0 0 0 1000px white inset;
  caret-color: var(--ink-1);
}
.field input:-webkit-autofill + label {
  top: 11px;
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--brand-deep);
  text-transform: uppercase;
}

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