/* ===================================================================
   PAYG PAYMENT GATEWAY STYLING
   Multi-Mode Indian Payment Gateway Overlay (UPI, Cards, NetBanking)
   =================================================================== */

.payg-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

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

.payg-container {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  transform: scale(0.96);
  transition: transform 200ms ease;
}

.payg-modal-overlay.active .payg-container {
  transform: scale(1);
}

/* PayG Brand Header */
.payg-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%);
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.payg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payg-logo-pill {
  background: #ffffff;
  color: #1e3a8a;
  font-weight: 900;
  font-size: 16px;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.payg-logo-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.payg-order-info {
  text-align: right;
}

.payg-amount-val {
  font-size: 22px;
  font-weight: 800;
  color: #f8fafc;
}

.payg-merchant-label {
  font-size: 11px;
  color: #bae6fd;
}

/* Payment Method Tabs */
.payg-tabs {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.payg-tab-btn {
  flex: 1;
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 150ms ease;
  border-bottom: 3px solid transparent;
}

.payg-tab-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.payg-tab-btn.active {
  color: #0284c7;
  background: #ffffff;
  border-bottom-color: #0284c7;
}

/* Tab Panels */
.payg-content-body {
  padding: 24px;
  min-height: 280px;
}

.payg-panel {
  display: none;
}

.payg-panel.active {
  display: block;
}

/* UPI QR Section */
.upi-apps-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.upi-app-btn {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  background: white;
  cursor: pointer;
  transition: all 150ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.upi-app-btn:hover, .upi-app-btn.active {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.upi-qr-display {
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin: 16px 0;
}

.upi-qr-display img {
  width: 140px;
  height: 140px;
  margin: 0 auto 8px;
  display: block;
  border-radius: 8px;
}

.upi-timer {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.upi-timer span {
  color: #ea580c;
  font-weight: 700;
}

/* Card Inputs */
.payg-card-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.payg-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payg-input-group label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
}

.payg-input-group input, .payg-input-group select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #0f172a;
  outline: none;
}

.payg-input-group input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Security Footer */
.payg-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #64748b;
}

.payg-security-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.payg-action-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.payg-action-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
}

/* Processing & Success States */
.payg-state-view {
  text-align: center;
  padding: 36px 16px;
}

.payg-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: #0284c7;
  border-radius: 50%;
  animation: paygSpin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

.payg-success-icon {
  width: 56px;
  height: 56px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  margin: 0 auto 16px;
  border: 2px solid #86efac;
}
