/* ==========================================
   modal-pagamento.css - TEMA DARK OTIMIZADO
   Versão 2.2 - Boleto Ajustado
   ========================================== */

/* ==================== VARIÁVEIS ==================== */
:root {
  /* Cores principais - Tema Dark */
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1e1e1e;
  --bg-hover: #2a2a2a;

  /* Vermelhos */
  --red-primary: #e31b23;
  --red-secondary: #b31217;
  --red-dark: #8b0a0e;
  --red-transparent: rgba(227, 27, 35, 0.15);
  --red-glow: rgba(227, 27, 35, 0.3);

  /* Textos */
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-tertiary: #808080;

  /* Bordas */
  --border-color: #2a2a2a;

  /* Estados */
  --success: #00c853;
  --error: #f44336;
  --warning: #ff9800;
  --info: #2196f3;

  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
  --shadow-red: 0 0 20px rgba(227, 27, 35, 0.3);

  /* Animações */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ==================== RESET E BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==================== MODAL PRINCIPAL ==================== */
.pagamento-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity var(--transition-normal);
  will-change: opacity;
}

.pagamento-modal.active {
  display: flex;
  opacity: 1;
}

/* ==================== CONTEÚDO DO MODAL ==================== */
.pagamento-modal-content {
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--bg-primary);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  will-change: transform;
  display: flex;
  flex-direction: column;
}

.pagamento-modal.active .pagamento-modal-content {
  transform: scale(1);
}

/* ==================== HEADER ==================== */
.pagamento-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.pagamento-modal-header h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.pagamento-modal-header h3 i {
  color: var(--red-primary);
  font-size: 1.5rem;
}

.pagamento-close {
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 1.25rem;
}

.pagamento-close:hover {
  background: var(--red-primary);
  color: var(--text-primary);
  border-color: var(--red-primary);
  transform: rotate(90deg);
}

/* ==================== BODY ==================== */
.pagamento-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

/* ==================== SELETOR ==================== */
.pagamento-seletor {
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pagamento-seletor label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagamento-seletor label i {
  color: var(--red-primary);
  font-size: 1rem;
}

.seletor-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.pagamento-select {
  width: 100%;
  padding: 1rem 2.5rem 1rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all var(--transition-fast);
}

.pagamento-select:hover {
  border-color: var(--red-primary);
  background: var(--bg-hover);
}

.pagamento-select:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px var(--red-transparent);
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red-primary);
  pointer-events: none;
  font-size: 0.9rem;
}

/* ==================== CONTEÚDO ÚNICO ==================== */
.pagamento-conteudo-unico {
  min-height: 300px;
  animation: fadeIn var(--transition-normal);
}

/* Esconder grade antiga */
.pagamento-opcoes-grid {
  display: none;
}

/* ==================== CONTAINERS UNIFICADOS ==================== */
.pix-container,
.boleto-container,
.cartao-container {
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  animation: fadeIn var(--transition-normal);
}

/* ==================== PIX ==================== */
/* ==================== PIX - CÓDIGO COPIA E COLA ==================== */
.pix-codigo-container {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.pix-codigo-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.pix-codigo-texto {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  word-break: break-all;
  white-space: normal;
  background: var(--bg-secondary);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  line-height: 1.4;
  max-height: 80px;
  overflow-y: auto;
  overflow-x: hidden;
  text-overflow: ellipsis;
}

/* Scrollbar personalizada para o código */
.pix-codigo-texto::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.pix-codigo-texto::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 2px;
}

.pix-codigo-texto::-webkit-scrollbar-thumb {
  background: var(--red-primary);
  border-radius: 2px;
}

.btn-copiar-pix {
  background: var(--red-primary);
  border: none;
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  width: 100%;
}

.btn-copiar-pix:hover {
  background: var(--red-secondary);
  transform: scale(1.02);
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .pix-codigo-texto {
    font-size: 0.65rem;
    padding: 0.6rem;
    max-height: 100px;
  }

  .btn-copiar-pix {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .pix-codigo-texto {
    font-size: 0.55rem;
    max-height: 90px;
  }

  .pix-codigo-container {
    padding: 0.75rem;
  }
}

.pix-qrcode {
  margin-bottom: 1.5rem;
  text-align: center;
}

.pix-qrcode img {
  width: 250px;
  height: 250px;
  background: var(--text-primary);
  padding: 1rem;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast);
}

.pix-qrcode img:hover {
  transform: scale(1.05);
}

.pix-info {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.pix-info p {
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

.pix-info strong {
  color: var(--red-primary);
  font-size: 1.25rem;
}

.btn-copiar-pix {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
}

.btn-copiar-pix:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  transform: scale(1.05);
}

.pix-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--warning);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* ==================== BOLETO - VERSÃO CORRIGIDA E ESTILIZADA ==================== */
.boleto-info {
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.boleto-info>i:first-child {
  font-size: 4rem;
  color: var(--red-primary);
  margin-bottom: 1rem;
  display: block;
  text-align: center;
}

.boleto-info>p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.1rem;
}

.btn-boleto {
  background: var(--red-primary);
  color: var(--text-primary);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  /* margin: 0 auto 2rem; */
  width: auto;
  justify-content: center;
}

.btn-boleto:hover {
  background: var(--red-secondary);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Container dos detalhes do boleto */
.boleto-detalhes {
  background: var(--bg-tertiary);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* Cada linha do boleto */
.boleto-linha {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  border-left: 3px solid var(--red-primary);
  transition: all var(--transition-fast);
}

.boleto-linha:hover {
  transform: translateX(5px);
  background: var(--bg-hover);
}

.boleto-linha i {
  color: var(--red-primary);
  font-size: 1.2rem;
  width: 24px;
  margin-top: 2px;
}

.boleto-label {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 100px;
}

.boleto-valor {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-all;
  flex: 1;
}

/* Linha de destaque (valor) */
.boleto-linha.destaque {
  background: var(--red-transparent);
  border-left: 3px solid var(--red-primary);
  margin-top: 1rem;
}

.boleto-linha.destaque .boleto-label {
  color: var(--text-primary);
  font-weight: 700;
}

.boleto-linha.destaque .boleto-valor {
  color: var(--red-primary);
  font-size: 1.2rem;
  font-weight: 800;
}

/* Observação do boleto */
.boleto-observacao {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(33, 150, 243, 0.1);
  border-radius: 10px;
  margin-top: 1.5rem;
  border: 1px dashed var(--info);
}

.boleto-observacao i {
  color: var(--info);
  font-size: 1.2rem;
}

.boleto-observacao span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ==================== CARTÃO ==================== */
.cartao-form {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.cartao-form h4 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cartao-form h4 i {
  color: var(--red-primary);
}

.cartao-seguro {
  color: var(--success);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cartao-form-group {
  margin-bottom: 1.5rem;
}

.cartao-form-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.cartao-input {
  width: 100%;
  padding: 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.cartao-input:focus {
  outline: none;
  border-color: var(--red-primary);
  box-shadow: 0 0 0 3px var(--red-transparent);
}

.cartao-form-row {
  display: flex;
  gap: 1rem;
}

.cartao-form-group.half {
  flex: 1;
}

.cartao-bandeiras {
  display: flex;
  gap: 1rem;
  justify-content: center;
  /* margin: 2rem 0 1rem; */
  color: var(--text-tertiary);
  font-size: 1.5rem;
}

.cartao-bandeiras i {
  transition: color var(--transition-fast);
}

.cartao-bandeiras i:hover {
  color: var(--red-primary);
}

.cartao-info-seguranca {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 12px;
  color: var(--success);
  font-size: 0.875rem;
}

/* ==================== FOOTER ==================== */
.pagamento-modal-footer {
  padding: 1.5rem 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.total-pagar {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.25rem;
}

.total-pagar span {
  color: var(--text-secondary);
}

.total-pagar strong {
  color: var(--red-primary);
  font-size: 1.75rem;
}

.btn-confirmar-pagamento {
  background: var(--red-primary);
  color: var(--text-primary);
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.btn-confirmar-pagamento:hover:not(:disabled) {
  background: var(--red-secondary);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.btn-confirmar-pagamento:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==================== MODAL DE STATUS ==================== */
.status-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11000;
  animation: fadeIn var(--transition-normal);
}

.status-modal {
  background: var(--bg-primary);
  border-radius: 32px;
  padding: 3rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  animation: slideUp var(--transition-normal);
}

.status-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  background: var(--bg-tertiary);
  animation: scaleIn var(--transition-normal);
}

.status-sucesso .status-icon {
  color: var(--success);
  border: 2px solid var(--success);
  box-shadow: 0 0 20px var(--success);
}

.status-pendente .status-icon {
  color: var(--warning);
  border: 2px solid var(--warning);
  box-shadow: 0 0 20px var(--warning);
}

.status-erro .status-icon {
  color: var(--error);
  border: 2px solid var(--error);
  box-shadow: 0 0 20px var(--error);
}

.status-processando .status-icon {
  color: var(--info);
  border: 2px solid var(--info);
  box-shadow: 0 0 20px var(--info);
  animation: spin 2s linear infinite;
}

.status-modal h2 {
  color: var(--text-primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.status-modal p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

/* ==================== COMPROVANTE ==================== */
.comprovante-detalhado {
  background: var(--bg-tertiary);
  border-radius: 16px;
  padding: 2rem;
  margin: 1.5rem 0;
  text-align: left;
  border: 1px solid var(--border-color);
}

.comprovante-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--red-primary);
}

.comprovante-logo {
  max-width: 120px;
  margin-bottom: 0.5rem;
}

.comprovante-header p {
  color: var(--red-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.comprovante-data {
  display: flex;
  justify-content: space-between;
  background: var(--bg-secondary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.comprovante-data strong {
  color: var(--text-primary);
}

.comprovante-secao {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border-left: 3px solid var(--red-primary);
}

.comprovante-secao h4 {
  color: var(--red-primary);
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comprovante-linha {
  display: flex;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed var(--border-color);
}

.comprovante-linha:last-child {
  border-bottom: none;
}

.comprovante-label {
  width: 120px;
  color: var(--text-tertiary);
  font-weight: 500;
  font-size: 0.9rem;
}

.comprovante-valor {
  flex: 1;
  color: var(--text-primary);
  padding-left: 1rem;
  font-size: 0.95rem;
}

.comprovante-total {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--red-transparent);
  border-radius: 12px;
  border: 1px solid var(--red-primary);
}

.comprovante-linha.total .comprovante-label {
  color: var(--text-primary);
  font-weight: 600;
}

.valor-total {
  color: var(--red-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

/* ==================== BOTÕES GLOBAIS ==================== */
.status-actions,
.comprovante-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.status-actions .btn,
.comprovante-actions .btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
  justify-content: center;
}

.status-actions .btn-primary {
  background: var(--red-primary);
  color: var(--text-primary);
}

.status-actions .btn-primary:hover {
  background: var(--red-secondary);
  transform: scale(1.05);
}

.status-actions .btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.status-actions .btn-secondary:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

.status-actions .btn-outline,
.comprovante-actions .btn-outline {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
}

.status-actions .btn-outline:hover,
.comprovante-actions .btn-outline:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

/* ==================== UTILITÁRIOS ==================== */
.hidden {
  display: none !important;
}

/* ==================== ANIMAÇÕES ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* ==================== SCROLLBAR ==================== */
.pagamento-modal-body::-webkit-scrollbar,
.status-modal::-webkit-scrollbar {
  width: 6px;
}

.pagamento-modal-body::-webkit-scrollbar-track,
.status-modal::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

.pagamento-modal-body::-webkit-scrollbar-thumb,
.status-modal::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.pagamento-modal-body::-webkit-scrollbar-thumb:hover,
.status-modal::-webkit-scrollbar-thumb:hover {
  background: var(--red-primary);
}

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
  .pagamento-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .pagamento-modal-header {
    padding: 1rem 1.5rem;
  }

  .pagamento-modal-body {
    padding: 1.5rem;
  }

  .pagamento-seletor {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .pagamento-seletor label {
    white-space: normal;
  }

  .seletor-wrapper {
    min-width: auto;
  }

  .pix-qrcode img {
    width: 200px;
    height: 200px;
  }

  .boleto-linha {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }

  .boleto-label {
    min-width: auto;
  }

  .boleto-valor {
    word-break: break-all;
  }

  .btn-boleto {
    width: 100%;
  }

  .status-modal {
    padding: 2rem;
  }

  .status-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .status-modal h2 {
    font-size: 1.5rem;
  }

  .status-actions {
    flex-direction: column;
  }

  .status-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pagamento-modal-header h3 {
    font-size: 1rem;
  }

  .pagamento-modal-header h3 i {
    font-size: 1.25rem;
  }

  .pagamento-close {
    width: 36px;
    height: 36px;
  }

  .pix-container,
  .boleto-container,
  .cartao-container {
    padding: 1.5rem;
  }

  .pix-qrcode img {
    width: 180px;
    height: 180px;
  }

  .btn-copiar-pix {
    width: 100%;
    justify-content: center;
  }

  .cartao-form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .boleto-detalhes {
    padding: 1rem;
  }

  .boleto-linha i {
    display: none;
  }

  .pagamento-modal-footer {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .total-pagar {
    font-size: 1rem;
    width: 100%;
    justify-content: space-between;
  }

  .total-pagar strong {
    font-size: 1.5rem;
  }

  .btn-confirmar-pagamento {
    width: 100%;
    justify-content: center;
  }

  .status-modal {
    padding: 1.5rem;
  }

  .status-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .status-modal h2 {
    font-size: 1.25rem;
  }

  .status-modal p {
    font-size: 0.875rem;
  }
}

@media (max-width: 360px) {
  .pagamento-modal-body {
    padding: 1rem;
  }

  .pix-qrcode img {
    width: 150px;
    height: 150px;
  }

  .boleto-detalhes p {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* ==================== PERFORMANCE ==================== */
.pagamento-modal,
.pagamento-modal-content,
.status-overlay,
.status-modal {
  will-change: transform, opacity;
}

@media (hover: hover) {

  .pagamento-close:hover,
  .btn-copiar-pix:hover,
  .btn-boleto:hover,
  .btn-confirmar-pagamento:hover,
  .status-actions .btn:hover {
    transition: all var(--transition-fast);
  }
}

/* ==================== IMPRESSÃO ==================== */
@media print {

  .pagamento-modal,
  .status-overlay {
    position: absolute;
    background: white;
  }

  .pagamento-modal-content,
  .status-modal {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .btn-confirmar-pagamento,
  .pagamento-close,
  .btn-copiar-pix,
  .btn-boleto {
    display: none;
  }
}

/* ==========================================
   BOLETO - CLASSES EXCLUSIVAS (SEM CONFLITO)
   ========================================== */

.pagamento-boleto-container {
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  animation: fadeIn var(--transition-normal);
}

.pagamento-boleto-info {
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.pagamento-boleto-icon {
  font-size: 4rem;
  color: var(--red-primary);
  margin-bottom: 1rem;
  display: block;
  text-align: center;
}

.pagamento-boleto-titulo {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.1rem;
}

.pagamento-boleto-btn {
  background: var(--red-primary);
  color: var(--text-primary);
  border: none;
  padding: 1rem 9.9rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  /* margin: 0 auto 2rem; */
  width: auto;
  justify-content: center;
}

.pagamento-boleto-btn:hover {
  background: var(--red-secondary);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.pagamento-boleto-detalhes {
  background: var(--bg-tertiary);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.pagamento-boleto-linha {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  border-left: 3px solid var(--red-primary);
  transition: all var(--transition-fast);
}

.pagamento-boleto-linha:hover {
  transform: translateX(5px);
  background: var(--bg-hover);
}

.pagamento-boleto-linha i {
  color: var(--red-primary);
  font-size: 1.2rem;
  width: 24px;
  margin-top: 2px;
}

.pagamento-boleto-label {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 100px;
}

.pagamento-boleto-valor {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-all;
  flex: 1;
}

/* Responsividade */
@media (max-width: 768px) {
  .pagamento-boleto-linha {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }

  .pagamento-boleto-label {
    min-width: auto;
  }

  .pagamento-boleto-valor {
    word-break: break-all;
  }

  .pagamento-boleto-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pagamento-boleto-detalhes {
    padding: 1rem;
  }

  .pagamento-boleto-linha i {
    display: none;
  }
}

/* ==========================================
   BOLETO - VERSÃO CENTRALIZADA COM CÓPIA
   ========================================== */

.pagamento-boleto-container {
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  animation: fadeIn var(--transition-normal);
  /* max-width: 600px; */
  margin: 0 auto;
  width: 100%;
}

.pagamento-boleto-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.pagamento-boleto-icon {
  font-size: 4rem;
  color: var(--red-primary);
  margin-bottom: 1rem;
}

.pagamento-boleto-titulo {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
}

.pagamento-boleto-btn {
  background: var(--red-primary);
  color: var(--text-primary);
  border: none;
  padding: 1rem 9.9rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  /* margin: 0 auto 2rem; */
  box-shadow: 0 4px 15px rgba(227, 27, 35, 0.3);
}

.pagamento-boleto-btn:hover {
  background: var(--red-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 27, 35, 0.4);
}

/* Card do boleto */
.pagamento-boleto-card {
  background: var(--bg-tertiary);
  border-radius: 20px;
  padding: 1.5rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

/* Container do código de barras */
.pagamento-boleto-codigo-container {
  margin-bottom: 1.5rem;
  text-align: center;
}

.pagamento-boleto-codigo-label {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.pagamento-boleto-codigo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
}

.pagamento-boleto-codigo-wrapper:hover {
  border-color: var(--red-primary);
  background: var(--bg-hover);
}

.pagamento-boleto-codigo {
  flex: 1;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Courier New', monospace;
  word-break: break-all;
  text-align: center;
  line-height: 1.5;
}

.pagamento-boleto-copiar-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pagamento-boleto-copiar-btn:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  color: var(--text-primary);
  transform: scale(1.1);
}

/* Grid de informações */
.pagamento-boleto-info-grid {
  display: block;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.pagamento-boleto-info-item {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.pagamento-boleto-info-item:hover {
  border-color: var(--red-primary);
  transform: translateY(-2px);
}

.pagamento-boleto-info-item i {
  color: var(--red-primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  display: block;
}

.pagamento-boleto-info-label {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.pagamento-boleto-info-valor {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  display: block;
}

/* Observação */
.pagamento-boleto-obs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(33, 150, 243, 0.1);
  border-radius: 50px;
  border: 1px dashed var(--info);
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 500px;
  margin: 0 auto;
}

.pagamento-boleto-obs i {
  color: var(--info);
  font-size: 1.1rem;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */
@media (max-width: 768px) {
  .pagamento-boleto-container {
    padding: 1.5rem;
  }

  .pagamento-boleto-info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .pagamento-boleto-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    text-align: left;
  }

  .pagamento-boleto-info-item i {
    margin-bottom: 0;
    font-size: 1.2rem;
    width: 24px;
  }

  .pagamento-boleto-info-label {
    margin-bottom: 0;
    font-size: 0.8rem;
  }

  .pagamento-boleto-info-valor {
    font-size: 0.95rem;
  }

  .pagamento-boleto-codigo-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pagamento-boleto-codigo {
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    word-break: break-all;
  }

  .pagamento-boleto-copiar-btn {
    width: 100%;
    height: 44px;
    border-radius: 8px;
  }

  .pagamento-boleto-obs {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .pagamento-boleto-container {
    padding: 1rem;
  }

  .pagamento-boleto-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }

  .pagamento-boleto-card {
    padding: 1rem;
  }

  .pagamento-boleto-info-item {
    flex-wrap: wrap;
  }
}