/* UPI QR — Premium fintech light */
body.gw-upi-qr {
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #ccfbf1 0%, #f0f9ff 45%, #eef2ff 100%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: calc(14px + env(safe-area-inset-top, 0)) 12px calc(18px + env(safe-area-inset-bottom, 0));
  color: #0f172a;
}

.gw-upi-qr .payment-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  animation: gw-fade-up 0.45s ease;
}

.gw-upi-qr .top {
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 50%, #0284c7 100%);
  padding: 28px 20px 30px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.gw-upi-qr .top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: gw-shimmer 4s linear infinite;
  pointer-events: none;
}

.gw-upi-qr .top h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gw-upi-qr .top p {
  margin-top: 6px;
  font-size: 0.9rem;
  opacity: 0.92;
}

.gw-upi-qr .amount {
  margin-top: 16px;
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gw-upi-qr .content {
  padding: 20px;
}

.gw-upi-qr .gw-step {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #115e59;
}

.gw-upi-qr .qr-box {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-radius: 22px;
  padding: 20px;
  text-align: center;
  border: 1px solid #e2e8f0;
  position: relative;
}

.gw-upi-qr .qr-box img {
  width: min(220px, 64vw);
  box-shadow: none;
}

.gw-upi-qr .upi-id {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
}

.gw-upi-qr .copy-box {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.gw-upi-qr .copy-box input {
  flex: 1;
  height: 50px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 0.9rem;
  background: #fff;
}

.gw-upi-qr .copy-box button {
  width: 88px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f766e, #0e7490);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.gw-upi-qr .timer {
  margin-top: 16px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #c2410c;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid #fed7aa;
}

.gw-upi-qr .apps-title {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 22px 0 12px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gw-upi-qr .apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gw-upi-qr .pay-app {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 6px;
  min-height: 88px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.gw-upi-qr .pay-app:active {
  transform: scale(0.98);
}

.gw-upi-qr .app-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gw-upi-qr .input-group {
  margin-top: 22px;
}

.gw-upi-qr .input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

.gw-upi-qr .input-group input {
  width: 100%;
  height: 52px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}

.gw-upi-qr .helper-line {
  margin-top: 8px;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.5;
}

.gw-upi-qr .submit-btn,
.gw-upi-qr .return-btn {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 16px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 18px;
  cursor: pointer;
  background: linear-gradient(135deg, #0d9488, #0284c7);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gw-upi-qr .secondary-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 16px;
  background: #1e293b;
  color: #fff;
  font-weight: 700;
  margin-top: 12px;
  cursor: pointer;
}

.gw-upi-qr .waiting-screen,
.gw-upi-qr .success-screen,
.gw-upi-qr .error-screen {
  display: none;
  text-align: center;
  padding: 42px 22px;
}

.gw-upi-qr .loader {
  width: 64px;
  height: 64px;
  border: 4px solid #e2e8f0;
  border-top-color: #0d9488;
  border-radius: 50%;
  animation: gw-spin 0.9s linear infinite;
  margin: 0 auto 18px;
}

.gw-upi-qr .success-icon,
.gw-upi-qr .error-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 2rem;
  font-weight: 800;
}

.gw-upi-qr .success-icon {
  background: linear-gradient(135deg, #10b981, #059669);
}

.gw-upi-qr .error-icon {
  background: linear-gradient(135deg, #f87171, #ef4444);
}

.gw-upi-qr .redirect-text {
  margin-top: 12px;
  color: #64748b;
  font-size: 0.88rem;
}
