/* payment page */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

/* Container */
.container {
  max-width: 390px;
  margin: auto;
  padding: 20px;
  opacity: 0;
  animation: fadeIn 0.7s ease forwards;
  animation-delay: 0.2s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Back button */
.back {
  font-size: 20px;
  margin-bottom: 30px;
  cursor: pointer;
  opacity: 0;
  animation: slideLeft 0.5s ease forwards;
  animation-delay: 0.35s;
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Title */
.title {
  font-size: 20px;
  margin-bottom: 20px;
  opacity: 0;
  animation: slideUp 0.5s ease forwards;
  animation-delay: 0.50s;
}

/* Headings */
h2 {
  margin-top: 20px;
  margin-bottom: 15px;
  opacity: 0;
  animation: slideUp 0.5s ease forwards;
  animation-delay: 0.65s;
}

h3 {
  margin-top: 30px;
  margin-bottom: 20px;
  opacity: 0;
  animation: slideUp 0.5s ease forwards;
  animation-delay: 0.80s;
}

/* Methods container */
.methods {
  margin-bottom: 20px;
}

.method {
  width: 100%; 
  display: flex;
  flex-direction: row; 
  justify-content: flex-start; 
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  opacity: 0;
  animation: slideUp 0.45s ease forwards;
  box-sizing: border-box; 
}


.payment-methods .method:nth-child(1) { animation-delay: 0.95s; }
.payment-methods .method:nth-child(2) { animation-delay: 1.05s; }
.payment-methods .method:nth-child(3) { animation-delay: 1.15s; }
.payment-methods .method:nth-child(4) { animation-delay: 1.25s; }

.method input { accent-color: #1e6dfb; }

/* Scanner Box */
.scanner-box {
  margin: 25px 0;
  padding: 20px;
  border: 2px dashed #1e6dfb;
  border-radius: 12px;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 1.35s;
}

.scanner-icon { font-size: 30px; }

.scanner-box p {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
}

/* QR Box */
.qr-box {
  border: 2px dashed #1e6dfb;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 1.45s;
}

#qrcode {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* UPI Box */
.upi-box {
  display: none;
  margin-top: 10px;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 0.0s;
}

.upi-box textarea {
  width: 100%;
  height: 45px;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: none;
}

/* UPI Display Box */
.upi-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ccc;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f9f9f9;
}

#adminUpi {
  font-size: 14px;
  font-weight: 600;
}

.copy-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #1e6dfb;
}

.copy-btn:active {
  transform: scale(0.9);
}

.upi-hint {
  font-size: 12px;
  margin-top: 6px;
  color: #555;
}

.copy-msg {
  font-size: 12px;
  color: green;
  margin-top: 6px;
  display: none;
  animation: fadeIn 0.3s ease;
}


/* OR text */
.or {
  text-align: center;
  font-weight: bold;
  opacity: 0;
  animation: slideUp 0.5s ease forwards;
  animation-delay: 1.60s;
}

/* Pay Button */
.pay-btn {
  margin-top: 40px;
  width: 100%;
  padding: 15px;
  background: #1e6dfb;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
  animation-delay: 1.70s;
}

/* Keyframes */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}