#pix-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  font-family: Inter, sans-serif;
}
#pix-modal.open { display: flex; }
.pix-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.pix-modal-card {
  position: relative;
  background: #fff;
  color: #111;
  width: 100%;
  max-width: 420px;
  border-radius: 1.25rem;
  padding: 1.75rem 1.25rem 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 95dvh;
  max-height: 95vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pix-modal-close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}
.pix-modal-close:hover { color: #000; }
.pix-modal-body { text-align: center; }
.pix-modal-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 .5rem;
}
.pix-modal-body p { margin: .35rem 0; color: #444; }
.pix-help { font-size: .8rem; }
.pix-plano {
  font-size: .95rem;
  color: #555;
  margin: .25rem 0 .25rem;
  font-weight: 500;
}
.pix-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin: .25rem 0 .75rem;
}
.pix-qr {
  display: block;
  width: 200px;
  height: 200px;
  max-width: 60vw;
  max-height: 60vw;
  margin: 0 auto .75rem;
  border-radius: .5rem;
  background: #f5f5f5;
}
.pix-help { font-size: .875rem; color: #666; }
.pix-copy-row {
  display: flex;
  gap: .5rem;
  margin: .5rem 0 1rem;
}
.pix-copy-row input {
  flex: 1;
  padding: .5rem .75rem;
  font-size: .75rem;
  border: 1px solid #ddd;
  border-radius: .5rem;
  font-family: monospace;
  min-width: 0;
}
.pix-btn-primary, .pix-btn-secondary {
  padding: .625rem 1rem;
  border-radius: .5rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: .875rem;
}
.pix-btn-primary {
  background: linear-gradient(to right, rgb(246, 154, 83), rgb(247, 171, 153));
  color: #000;
}
.pix-btn-primary:hover { filter: brightness(.95); }
.pix-btn-secondary {
  background: #eee;
  color: #333;
}
.pix-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  padding: .5rem .75rem;
  margin: .25rem 0 .75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: .5rem;
  color: #166534;
  font-size: .8rem;
  font-weight: 500;
}
.pix-security-icon { font-size: 1rem; }
.pix-status {
  font-size: .875rem;
  color: #888;
  margin-top: .5rem;
}
.pix-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #eee;
  border-top-color: rgb(246, 154, 83);
  border-radius: 50%;
  animation: pix-spin 1s linear infinite;
  margin: 1rem auto;
}
@keyframes pix-spin { to { transform: rotate(360deg); } }
.pix-check {
  width: 64px;
  height: 64px;
  margin: .5rem auto 1rem;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  font-size: 2.5rem;
  line-height: 64px;
  font-weight: 700;
}
