/* ── QR PAYMENT MODAL STYLES ── */

#qrModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#qrModal.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.qr-modal-box {
  background: white;
  border-radius: 20px;
  padding: 40px 35px;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  position: relative;
  text-align: center;
}

.qr-modal-box .modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  color: #999;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-modal-box .modal-close:hover {
  color: #333;
  transform: scale(1.2);
}

.qr-modal-title {
  font-size: 32px;
  font-weight: 900;
  color: #000;
  margin-bottom: 4px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 3px;
}

.qr-modal-subtitle {
  font-size: 13px;
  color: #999;
  margin-bottom: 28px;
  font-family: 'Noto Serif Devanagari', serif;
  font-weight: 400;
}

/* ── AMOUNT BADGE (Split Orange & Blue) ── */
.qr-amount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 28px;
}

.qr-amount-badge .qr-currency {
  background: #FFF3E0;
  color: #FF6B00;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 44px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
}

.qr-amount-badge .qr-value {
  background: #1E4DA1;
  color: white;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 44px;
  font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
}

/* ── QR CODE CONTAINER ── */
#qrCodeContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
  background: #FAFAFA;
  padding: 24px;
  border: 2px dashed #D0D0D0;
  border-radius: 12px;
  min-height: 340px;
  position: relative;
}

#qrCodeContainer img {
  max-width: 280px;
  max-height: 280px;
  width: auto;
  height: auto;
  display: block;
  background: white;
  padding: 8px;
  border-radius: 8px;
}

#qrCodeContainer canvas {
  max-width: 280px;
  max-height: 280px;
  width: auto;
  height: auto;
  display: block;
}

/* ── TIMER BOX ── */
.qr-timer-box {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-timer-label {
  font-size: 11px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  background: #1E4DA1;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
}

.qr-timer-display {
  font-size: 52px;
  font-weight: 800;
  color: white;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #1E4DA1 0%, #2563EB 100%);
  padding: 12px 0;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qr-timer-display.warning {
  background: linear-gradient(135deg, #FF6B35 0%, #FF4444 100%);
}

/* ── INSTRUCTIONS ── */
.qr-instructions {
  text-align: left;
  background: #f8f8f8;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 2;
  color: #333;
}

.qr-instructions p {
  margin: 10px 0;
  font-family: 'IBM Plex Serif', serif;
  display: flex;
  align-items: center;
}

.qr-instructions p::before {
  content: '☑';
  color: #1E4DA1;
  font-weight: bold;
  margin-right: 12px;
  font-size: 16px;
}

/* ── FOOTER NOTE ── */
.qr-note {
  font-size: 12px;
  color: #888;
  font-family: 'Noto Serif Devanagari', serif;
  margin: 0;
  font-weight: 400;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .qr-modal-box {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .qr-modal-box .modal-close {
    width: 36px;
    height: 36px;
    font-size: 24px;
    top: 16px;
    right: 16px;
  }

  .qr-modal-title {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .qr-modal-subtitle {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .qr-amount-badge .qr-currency {
    width: 60px;
    height: 60px;
    font-size: 36px;
    border-radius: 6px;
  }

  .qr-amount-badge .qr-value {
    width: 60px;
    height: 60px;
    font-size: 36px;
    border-radius: 6px;
  }

  .qr-amount-badge {
    margin-bottom: 20px;
  }

  #qrCodeContainer {
    padding: 16px;
    margin-bottom: 20px;
    min-height: 240px;
  }

  .qr-timer-label {
    font-size: 10px;
    padding: 3px 10px;
  }

  .qr-timer-display {
    font-size: 40px;
    letter-spacing: 2px;
    padding: 10px 0;
  }

  .qr-instructions {
    font-size: 12px;
    padding: 14px;
    line-height: 1.8;
  }

  .qr-instructions p {
    margin: 8px 0;
  }

  .qr-instructions p::before {
    margin-right: 10px;
    font-size: 14px;
  }
}
