/* ==========================================================================
   PAYMENT PORTAL STYLES (Neon Gaming Payment Portal)
   ========================================================================== */

.payment-page {
  background-color: var(--bg-darkest);
  position: relative;
  min-height: 100vh;
  padding-bottom: 90px;
  overflow-x: hidden;
}

/* Background Gaming Battlestation & Floating Game Art */
.payment-bg-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(6, 10, 10, 0.94) 0%, rgba(6, 10, 10, 0.82) 30%, rgba(6, 10, 10, 0.82) 70%, rgba(6, 10, 10, 0.94) 100%),
    url('../assets/images/gaming_desk_bg.jpg');
  background-size: cover;
  background-position: center bottom;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* Left & Right Flanking Floating Game Posters as seen in screenshot */
.payment-flank-card {
  position: fixed;
  width: 140px;
  height: 195px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 245, 155, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 245, 155, 0.15);
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.payment-flank-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flank-left-top {
  top: 150px;
  left: 20px;
  transform: rotate(-3deg);
}

.flank-left-bottom {
  top: 370px;
  left: 25px;
  transform: rotate(2deg);
}

.flank-right-top {
  top: 160px;
  right: 25px;
  transform: rotate(3deg);
}

.flank-right-mid {
  top: 360px;
  right: 20px;
  transform: rotate(-2deg);
}

.flank-right-bottom {
  top: 550px;
  right: 30px;
  transform: rotate(2deg);
}

.payment-main-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 24px 40px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header Content */
.payment-badge-secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 245, 155, 0.08);
  border: 1px solid rgba(0, 245, 155, 0.35);
  color: var(--primary-neon);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.payment-badge-secure svg {
  width: 14px;
  height: 14px;
}

.payment-page-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  color: var(--text-white);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.payment-page-title .text-neon {
  color: var(--primary-neon);
  text-shadow: 0 0 25px rgba(0, 245, 155, 0.5);
}

.payment-page-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  text-align: center;
  max-width: 580px;
  margin-bottom: 24px;
}

.payment-page-subtitle strong {
  color: var(--primary-neon);
  font-weight: 700;
}

/* Main Payment Box Card */
.payment-portal-card {
  width: 100%;
  background: rgba(11, 22, 21, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 245, 155, 0.38);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 245, 155, 0.18);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
}

/* Card Top: Amount & Tag */
.payment-amount-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.amount-display-box {
  display: flex;
  flex-direction: column;
}

.amount-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.amount-value {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  color: var(--primary-neon);
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 245, 155, 0.4);
}

.badge-one-time {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 245, 155, 0.08);
  border: 1px solid rgba(0, 245, 155, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 16px;
}

.badge-one-time-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--primary-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #05130f;
}

.badge-one-time-icon svg {
  width: 18px;
  height: 18px;
}

.badge-one-time-text {
  display: flex;
  flex-direction: column;
}

.badge-one-time-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-neon);
}

.badge-one-time-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Payment Dual Section (QR + OR + UPI ID) */
.payment-methods-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}

/* QR Code Section */
.qr-code-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-code-card {
  width: 210px;
  height: auto;
  min-height: 230px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 15px rgba(0, 245, 155, 0.15);
  position: relative;
}

.qr-code-img {
  width: 100%;
  height: auto;
  max-height: 290px;
  object-fit: contain;
  border-radius: 8px;
}

.qr-scan-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  text-align: center;
}

/* Middle OR divider */
.payment-or-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 100%;
}

.or-line-top, .or-line-bottom {
  width: 1px;
  height: 70px;
  background: rgba(255, 255, 255, 0.12);
}

.or-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 8px 0;
}

/* UPI ID Right Box */
.upi-id-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.upi-id-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.upi-id-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 14px;
  transition: border-color 0.2s ease;
}

.upi-id-box:hover {
  border-color: rgba(0, 245, 155, 0.4);
}

.upi-id-text {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-white);
  letter-spacing: 0.3px;
}

.btn-copy-upi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 245, 155, 0.12);
  color: var(--primary-neon);
  border: 1px solid rgba(0, 245, 155, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-copy-upi:hover {
  background: var(--primary-neon);
  color: #04100c;
  box-shadow: 0 0 12px rgba(0, 245, 155, 0.4);
}

.btn-copy-upi svg {
  width: 14px;
  height: 14px;
}

/* Supported UPI Apps Bar */
.supported-apps-row {
  margin-top: 10px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.supported-apps-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 0.3px;
}

.supported-apps-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.app-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.app-circle-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 16px;
  font-weight: 800;
}

.app-circle-badge.phonepe {
  background: #5f259f;
  color: #ffffff;
}

.app-circle-badge.gpay {
  background: #ffffff;
  color: #1a73e8;
  border: 1px solid rgba(0,0,0,0.1);
}

.app-circle-badge.paytm {
  background: #00b9f1;
  color: #ffffff;
}

.app-circle-badge.bhim {
  background: #ffffff;
  color: #167a3a;
  border: 1px solid rgba(0,0,0,0.1);
}

.app-circle-badge.any-upi {
  background: #1e3330;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.app-name-label {
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 600;
}

/* Instructions Box */
.payment-instructions-box {
  background: rgba(10, 19, 18, 0.7);
  border: 1px solid rgba(0, 245, 155, 0.18);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
}

.instructions-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.instructions-title svg {
  width: 16px;
  height: 16px;
  color: var(--primary-neon);
}

.instructions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.instruction-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
}

.step-num-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-neon);
  color: #06130f;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Payment Action Buttons */
.payment-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-open-upi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: var(--primary-neon);
  color: #06130f;
  padding: 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 0 25px rgba(0, 245, 155, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-open-upi:hover {
  background: var(--primary-neon-bright);
  box-shadow: 0 0 35px rgba(0, 245, 155, 0.65);
  transform: translateY(-1px);
}

.btn-open-upi-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-open-upi-title {
  font-size: 17px;
  font-weight: 800;
}

.btn-open-upi-sub {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}

.btn-i-have-paid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(14, 26, 24, 0.85);
  border: 1px solid rgba(0, 245, 155, 0.4);
  color: var(--text-white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-i-have-paid:hover {
  border-color: var(--primary-neon);
  background: rgba(18, 34, 32, 0.95);
  box-shadow: 0 0 20px rgba(0, 245, 155, 0.25);
  transform: translateY(-1px);
}

.btn-i-have-paid-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.paid-check-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-neon);
  color: #06130f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paid-check-circle svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.btn-i-have-paid-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.paid-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-white);
}

.paid-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

.paid-arrow svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary-neon);
  stroke-width: 2.2;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .payment-flank-card {
    display: none;
  }
}

@media (max-width: 680px) {
  .payment-main-container {
    padding: 20px 16px 36px;
  }
  .payment-methods-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .payment-or-divider {
    display: none;
  }
  .payment-portal-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .payment-page-title {
    font-size: 30px;
  }
  .supported-apps-icons {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .qr-code-box {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .payment-main-container {
    padding: 12px 10px 28px;
  }
  .payment-portal-card {
    padding: 18px 12px;
    border-radius: 14px;
  }
  .payment-page-title {
    font-size: 24px;
  }
  .payment-page-subtitle {
    font-size: 13px;
    margin-bottom: 18px;
  }
  .payment-amount-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
  }
  .amount-value {
    font-size: 34px;
  }
  .upi-id-box {
    padding: 6px 8px;
  }
  .upi-id-text {
    font-size: 12px;
    word-break: break-all;
  }
  .btn-copy-upi {
    padding: 6px 10px;
    font-size: 11.5px;
  }
  .btn-upi-pay-direct {
    height: 48px;
    font-size: 14px;
    padding: 0 16px;
  }
  .btn-i-have-paid {
    padding: 14px 16px;
  }
}

/* ==========================================================================
   PAYMENT QR CODE MODAL & CONFIRMATION
   ========================================================================== */

.pay-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 8, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.pay-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.pay-modal-box {
  background: linear-gradient(150deg, #0d1e1c 0%, #061110 100%);
  border: 1.5px solid rgba(0, 245, 155, 0.35);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 28px 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 245, 155, 0.2);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  max-height: 94vh;
  overflow-y: auto;
}

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

.btn-close-pay-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-pay-modal:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ff6b6b;
}

.btn-close-pay-modal svg {
  width: 18px;
  height: 18px;
}

.pay-modal-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 245, 155, 0.1);
  border: 1px solid rgba(0, 245, 155, 0.35);
  color: var(--primary-neon);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.pay-modal-header-badge .radar-dot {
  width: 7px;
  height: 7px;
  background: var(--primary-neon);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-neon);
  animation: pulseNeon 1.8s infinite;
}

.pay-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.pay-modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.pay-modal-qr-frame {
  width: 210px;
  margin: 0 auto 18px;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 245, 155, 0.15);
}

.pay-modal-qr-img {
  width: 100%;
  height: auto;
  max-height: 270px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}

.pay-modal-upi-copy {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 245, 155, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.pay-modal-upi-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
}

.pay-modal-upi-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.pay-modal-upi-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-neon);
  word-break: break-all;
}

.btn-modal-copy {
  background: rgba(0, 245, 155, 0.15);
  border: 1px solid var(--primary-neon);
  color: var(--primary-neon);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-modal-copy:hover {
  background: var(--primary-neon);
  color: #06120e;
}

.btn-modal-copy svg {
  width: 13px;
  height: 13px;
}

.pay-modal-status-question {
  background: rgba(0, 245, 155, 0.06);
  border: 1px solid rgba(0, 245, 155, 0.2);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.pay-question-text {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.btn-payment-done-cta {
  background: linear-gradient(135deg, #00f59b 0%, #00d2ff 100%);
  color: #06120e;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0, 245, 155, 0.35);
  transition: all 0.25s ease;
}

.btn-payment-done-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 245, 155, 0.55);
}

.btn-payment-done-cta svg {
  width: 16px;
  height: 16px;
}

.pay-modal-mobile-app-link {
  margin-top: 10px;
}

.link-open-upi-app {
  color: #00d2ff;
  font-size: 12px;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.85;
}

.link-open-upi-app:hover {
  opacity: 1;
}

/* ==========================================================================
   Anti-Bypass Security Alert Notice Banner
   ========================================================================== */
.payment-security-alert {
  width: 100%;
  max-width: 680px;
  margin: 0 auto 24px auto;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255, 75, 43, 0.16) 0%, rgba(255, 40, 90, 0.1) 100%);
  border: 1px solid rgba(255, 75, 43, 0.55);
  box-shadow: 0 0 30px rgba(255, 75, 43, 0.25), inset 0 0 20px rgba(255, 75, 43, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  backdrop-filter: blur(12px);
  position: relative;
  animation: slideDownFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sec-alert-icon-box {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(255, 75, 43, 0.2);
  border: 1px solid rgba(255, 75, 43, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4b2b;
}

.sec-alert-icon-box svg {
  width: 22px;
  height: 22px;
}

.sec-alert-body {
  flex: 1;
}

.sec-alert-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-alert-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  margin: 0;
}

.btn-sec-alert-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.btn-sec-alert-close:hover {
  color: #ffffff;
}

@keyframes pulse-attention {
  0% {
    box-shadow: 0 0 15px rgba(0, 245, 155, 0.2);
    border-color: rgba(0, 245, 155, 0.3);
  }
  100% {
    box-shadow: 0 0 40px rgba(0, 245, 155, 0.8);
    border-color: rgba(0, 245, 155, 0.9);
  }
}

