/* ==========================================================================
   SEPAY PAYMENT MODAL STYLES (Cyberpunk / Glassmorphic Theme)
   ========================================================================== */

/* Header / Drawer Buttons */
.btn-payment-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 23, 83, 0.15), rgba(255, 42, 109, 0.25));
  border: 1px solid rgba(255, 23, 83, 0.5);
  color: #fff;
  padding: 10px 18px;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 15px rgba(255, 23, 83, 0.2);
  text-decoration: none;
}

.btn-payment-cta:hover {
  background: linear-gradient(135deg, #ff1753, #ff2a6d);
  border-color: #ff2a6d;
  box-shadow: 0 0 25px rgba(255, 23, 83, 0.5);
  transform: translateY(-1px);
}

.btn-payment-cta .pay-icon {
  width: 18px;
  height: 18px;
}

/* Modal Overlay */
.pay-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pay-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.pay-modal-container {
  background: #0f131c;
  border: 1px solid rgba(255, 23, 83, 0.35);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 23, 83, 0.2);
  color: #f1f5f9;
  position: relative;
  transform: scale(0.94) translateY(15px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.pay-modal-overlay.active .pay-modal-container {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.pay-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.pay-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  letter-spacing: -0.3px;
}

.pay-badge-sepay {
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.pay-btn-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  transition: all 0.2s;
}

.pay-btn-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Modal Body */
.pay-modal-body {
  padding: 24px;
}

/* Form View */
.pay-form-group {
  margin-bottom: 18px;
}

.pay-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.pay-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

.pay-input:focus {
  border-color: #ff1753;
  background: rgba(255, 23, 83, 0.04);
}

/* Quick Amount Pills */
.pay-quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.pay-amt-btn {
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.pay-amt-btn:hover {
  border-color: rgba(255, 23, 83, 0.5);
  background: rgba(255, 23, 83, 0.1);
}

.pay-amt-btn.active {
  background: #ff1753;
  border-color: #ff1753;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 23, 83, 0.4);
}

/* Submit Action Button */
.pay-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ff1753, #ff2a6d);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(255, 23, 83, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.pay-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 23, 83, 0.5);
}

.pay-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* QR Code Display View */
.pay-qr-view {
  display: none;
  text-align: center;
}

.pay-qr-box {
  background: #ffffff;
  padding: 12px;
  border-radius: 14px;
  display: inline-block;
  margin: 10px auto 16px;
  box-shadow: 0 0 25px rgba(255, 23, 83, 0.25);
}

.pay-qr-img {
  width: 210px;
  height: 210px;
  display: block;
  object-fit: contain;
}

.pay-waiting-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  color: #00f0ff;
  font-size: 0.85rem;
  font-weight: 500;
}

.pay-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 240, 255, 0.3);
  border-top-color: #00f0ff;
  border-radius: 50%;
  animation: paySpin 0.9s linear infinite;
}

@keyframes paySpin {
  to { transform: rotate(360deg); }
}

/* Bank Details Table */
.pay-details-table {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  text-align: left;
}

.pay-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88rem;
}

.pay-detail-row:last-child {
  border-bottom: none;
}

.pay-detail-label {
  color: #94a3b8;
}

.pay-detail-value {
  color: #fff;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pay-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #cbd5e1;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.pay-copy-btn:hover {
  background: #ff1753;
  color: #fff;
}

.pay-alert-note {
  font-size: 0.8rem;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px dashed rgba(251, 191, 36, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* Success View */
.pay-success-view {
  display: none;
  text-align: center;
  padding: 20px 10px;
}

.pay-success-icon {
  width: 72px;
  height: 72px;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid #22c55e;
  color: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2.2rem;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
  animation: payPulse 1.8s infinite;
}

@keyframes payPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.pay-success-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}

.pay-success-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 24px;
}
