/* Payment Modal & QR Voucher Checkout */
.payment-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.payment-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.payment-modal-card {
  background: #14141f;
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(124, 92, 255, 0.2);
  padding: 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.payment-modal-overlay.active .payment-modal-card {
  transform: translateY(0);
}

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

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.payment-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.payment-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.payment-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.payment-summary-box {
  background: rgba(124, 92, 255, 0.08);
  border: 1px dashed rgba(124, 92, 255, 0.4);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.payment-item-name {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.payment-item-term {
  font-size: 0.8rem;
  color: var(--accent);
}

.payment-item-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
}

.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.qr-frame {
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-instruction {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.payment-methods-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.payment-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.78rem;
  color: #e2e8f0;
}

.upload-zone {
  border: 2px dashed rgba(124, 92, 255, 0.4);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  background: rgba(124, 92, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 1.2rem;
  position: relative;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(124, 92, 255, 0.08);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.upload-text {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
}

.upload-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.preview-container {
  display: none;
  margin-top: 0.8rem;
  text-align: center;
}

.preview-image {
  max-width: 100%;
  max-height: 160px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-submit-payment {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
}

