/* Modal de depósito — fundo branco, cards claros */
.modal-content.deposit-modal,
.deposit-modal.modal-content {
  background: #ffffff !important;
  color: #111827 !important;
  border-radius: 20px !important;
  max-width: 420px;
  width: min(92vw, 420px);
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
  overflow: hidden;
}

.deposit-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}

.deposit-modal h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.deposit-modal .back-btn,
.deposit-modal .close {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: 0.2s ease;
  font-size: 22px;
  line-height: 1;
  padding: 0;
}

.deposit-modal .back-btn svg {
  width: 18px;
  height: 18px;
}

.deposit-modal .back-btn:hover,
.deposit-modal .close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.deposit-content {
  padding: 18px 20px 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deposit-card {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 14px;
}

.deposit-card-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.pix-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 12px 14px;
  color: #166534;
  font-weight: 700;
  font-size: 0.92rem;
}

.pix-notice .notice-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #22c55e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  margin: 0;
}

.deposit-modal .form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: #0f172a;
  font-weight: 700;
}

.deposit-modal .min-amount-text {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #64748b;
}

.deposit-modal .input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.deposit-modal .input-prefix {
  position: absolute;
  left: 14px;
  color: #16a34a;
  font-size: 0.95rem;
  z-index: 1;
  font-weight: 800;
}

.deposit-modal .input-group input {
  width: 100%;
  background: #fff;
  border: 1px solid #dbe3ee;
  color: #0f172a;
  padding: 14px 14px 14px 44px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: 0.2s ease;
  box-sizing: border-box;
}

.deposit-modal .input-group input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
  background: #fff;
}

.deposit-modal .input-group input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.deposit-modal .amount-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.deposit-modal .amount-btn {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  padding: 11px 6px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  transition: 0.18s ease;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.deposit-modal .amount-btn:hover {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
  transform: translateY(-1px);
}

.deposit-modal .amount-btn.selected,
.deposit-modal .amount-btn.active {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25);
}

.deposit-cpf-saved {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1px solid #dcfce7;
  border-radius: 12px;
  padding: 12px 14px;
  color: #166534;
  font-weight: 700;
  font-size: 0.9rem;
}

.deposit-cpf-saved small {
  color: #64748b;
  font-weight: 600;
}

.btn-confirm-deposit {
  width: 100%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  color: #fff !important;
  padding: 15px 16px;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: 0.2s ease;
  margin-top: 4px;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
  text-transform: uppercase;
}

.btn-confirm-deposit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.34);
}

.btn-confirm-deposit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

@media (max-width: 420px) {
  .deposit-modal .amount-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Modal QR Code PIX — fundo branco, layout estável */
.modal-content.qrcode-modal,
.qrcode-modal.modal-content {
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 20px !important;
  max-width: 420px;
  width: min(92vw, 420px);
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
  overflow: hidden;
}

.qrcode-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}

.qrcode-modal h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.qrcode-modal .back-btn,
.qrcode-modal .close {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0;
  font-size: 22px;
  line-height: 1;
}

.qrcode-modal .back-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.qrcode-content {
  padding: 18px 20px 22px;
  background: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.qrcode-modal .payment-method-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #166534;
  font-weight: 800;
  font-size: 0.9rem;
}

.qrcode-modal .method-icon,
.qrcode-modal .pix-icon {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  margin: 0 !important;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qrcode-modal .method-icon svg,
.qrcode-modal .pix-icon svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block;
}

.qrcode-modal .pix-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.qrcode-modal .amount-display {
  margin: 0;
}

.qrcode-modal .amount-display span {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  text-shadow: none;
}

.qrcode-modal .qrcode-container {
  margin: 4px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #eef2f7;
  width: 100%;
  box-sizing: border-box;
}

.qrcode-modal #qrcodeImage,
.qrcode-modal #qrcodeImage img {
  width: 200px !important;
  height: 200px !important;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

.qrcode-modal .qrcode-timer {
  margin: 0;
  color: #16a34a;
  font-weight: 700;
  font-size: 0.92rem;
}

.qrcode-modal .qrcode-instructions {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.qrcode-modal .qrcode-instructions p {
  margin: 0;
}

.qrcode-modal .qrcode-copy-section {
  margin: 0;
  width: 100%;
}

.qrcode-modal .copy-input-group {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.qrcode-modal .copy-input-group input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #0f172a;
  padding: 12px 14px;
  font-size: 0.82rem;
  outline: none;
}

.qrcode-modal .copy-btn {
  background: #16a34a;
  border: none;
  color: #fff;
  padding: 12px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qrcode-modal .copy-btn svg {
  width: 18px !important;
  height: 18px !important;
  display: block;
}

.qrcode-modal .btn-back-deposit {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  padding: 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.qrcode-modal .btn-back-deposit:hover {
  background: #f1f5f9;
}
