/* UPI Checkout Modal Styles */
.whocalled-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.whocalled-modal-container {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  animation: slideUpModal 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}
.whocalled-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.whocalled-modal-close:hover {
  background: #e2e8f0;
  color: #334155;
}
.whocalled-modal-body {
  padding: 32px 24px 24px;
}
.whocalled-modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.whocalled-modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}
.whocalled-modal-header p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}
.checkout-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  text-align: center;
}
.whocalled-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #f1f5f9;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}
.whocalled-qr-wrapper {
  background: #ffffff;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  position: relative;
}
.whocalled-qr-frame {
  width: 200px;
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.whocalled-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* QR scanning guides */
.qr-guide {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid #6366f1;
}
.qr-guide-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.qr-guide-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.qr-guide-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 4px; }
.qr-guide-br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6366f1, transparent);
  animation: scanLaser 2s linear infinite;
  box-shadow: 0 0 8px #6366f1;
}
.whocalled-checkout-info {
  margin-bottom: 20px;
}
.checkout-amount-display {
  font-size: 32px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -1px;
}
.checkout-ref-display {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}
.checkout-ref-display code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.checkout-payee-display {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}
.checkout-payee-display span {
  font-weight: 700;
  color: #334155;
}
.whocalled-brand-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.whocalled-brand-logos img {
  height: 14px;
  object-fit: contain;
  opacity: 0.7;
}
.mobile-pay-action {
  width: 100%;
  margin-bottom: 16px;
  display: none; /* Only visible on mobile/touch devices */
}
.whocalled-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #6366f1;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
  transition: all 0.2s;
}
.whocalled-pay-btn:hover {
  background: #4f46e5;
  box-shadow: 0 4px 12px -1px rgba(99, 102, 241, 0.4);
}
.whocalled-verification-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}
.pulse-indicator {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulseGreen 1.5s infinite;
}

/* Success Checkmark Animation */
.success-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}
.success-checkmark-svg {
  width: 80px;
  height: 80px;
  display: block;
  stroke-width: 4;
  stroke: #10b981;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #10b981;
  animation: fillCircle .4s ease-in-out .4s forwards, scaleUp .3s ease-in-out .9s forwards;
  border-radius: 50%;
}
.success-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 4;
  stroke-miterlimit: 10;
  stroke: #10b981;
  fill: none;
  animation: strokeCircle .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.success-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 4;
  stroke-linecap: round;
  stroke: #ffffff;
  animation: strokeCheck .3s cubic-bezier(0.65, 0, 0.45, 1) .8s forwards;
}
.whocalled-done-btn {
  background: #10b981;
  color: white;
  border: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
  transition: all 0.2s;
  margin-top: 16px;
}
.whocalled-done-btn:hover {
  background: #059669;
}

/* Media query for mobile */
@media (max-width: 768px) {
  .mobile-pay-action {
    display: block;
  }
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes scanLaser { 0%, 100% { top: 0; } 50% { top: 100%; } }
@keyframes pulseGreen { 0% { transform: scale(0.9); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(0.9); opacity: 0.5; } }
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUpModal { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes strokeCircle { 100% { stroke-dashoffset: 0; } }
@keyframes strokeCheck { 100% { stroke-dashoffset: 0; } }
@keyframes fillCircle { 100% { box-shadow: inset 0px 0px 0px 40px #10b981; } }
@keyframes scaleUp { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
