/* Modal PIX — estilos isolados dos modais globais (login/cadastro) em app.css */
.pix-payment-section {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.pix-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

.pix-modal-container {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pix-modal-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.pix-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.pix-payment-section .pix-header {
  text-align: center;
  margin-bottom: 0.75rem;
}

.pix-payment-section .pix-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.pix-payment-section .pix-icon {
  width: 24px;
  height: 24px;
}

.pix-payment-section .pix-amount {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
}

.pix-payment-section .pix-pending {
  text-align: center;
}

.pix-payment-section .qr-code-container {
  margin: 0.75rem 0;
}

.pix-payment-section .qr-code-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.pix-payment-section .qr-code-image img {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.pix-payment-section .qr-code-placeholder {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.pix-payment-section .qr-code-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.pix-payment-section .pix-instructions {
  margin: 0.75rem 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.8);
}

.pix-payment-section .pix-instructions h4 {
  color: #fff;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.pix-payment-section .pix-instructions ol {
  padding-left: 1.25rem;
  line-height: 1.5;
  margin: 0;
}

.pix-payment-section .pix-instructions li {
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.pix-payment-section .pix-code-section {
  margin: 0.75rem 0;
}

.pix-payment-section .pix-code-label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.pix-payment-section .pix-code-input {
  width: 100%;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 0.8rem;
  font-family: monospace;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}

.pix-payment-section .copy-btn {
  width: 100%;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.pix-payment-section .copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.pix-payment-section .payment-status {
  margin-top: 0.75rem;
  text-align: center;
}

.pix-payment-section .status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.pix-payment-section .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  animation: pix-modal-pulse 2s infinite;
}

@keyframes pix-modal-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pix-payment-section .pix-success {
  text-align: center;
  padding: 1rem 0;
}

.pix-payment-section .success-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.pix-payment-section .pix-success h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.pix-payment-section .pix-success p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.pix-payment-section .success-btn {
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 8px;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.pix-payment-section .success-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.4);
}

.pix-payment-section .pix-failed {
  text-align: center;
  padding: 1rem 0;
}

.pix-payment-section .failed-icon {
  font-size: 3rem;
  color: #ef4444;
  margin-bottom: 0.75rem;
}

.pix-payment-section .pix-failed h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.pix-payment-section .pix-failed p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.pix-payment-section .retry-btn {
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.pix-payment-section .retry-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .pix-modal-container {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    max-height: 90vh;
    overflow-y: auto;
  }
}
