/* ==========================================================================
   GiTC Pay - Razorpay-Inspired Checkout Styles
   Ultra-responsive, Dynamic QR, Intent Buttons, Real-time Success Animation
   ========================================================================== */

.checkout-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.checkout-card {
  width: 100%;
  max-width: 480px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
}

/* Header */
.checkout-header {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(139, 92, 246, 0.1));
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.merchant-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.merchant-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.merchant-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}

.merchant-security {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
  margin-top: 0.2rem;
}

.checkout-amount-box {
  text-align: right;
}

.amount-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.amount-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

/* Timer Bar */
.timer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.8rem;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timer-count {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #f59e0b;
}

/* Body Content */
.checkout-body {
  padding: 1.75rem 1.5rem;
  text-align: center;
}

/* QR Code Box */
.qr-container {
  display: inline-block;
  padding: 1rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.25rem;
  position: relative;
  transition: transform 0.3s ease;
}

.qr-container:hover {
  transform: scale(1.02);
}

.qr-image {
  width: 210px;
  height: 210px;
  display: block;
}

.qr-scan-text {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Instant Radar Pulse */
.radar-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: radar 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes radar {
  to {
    box-shadow: 0 0 0 12px rgba(59, 130, 246, 0);
  }
}

/* UPI Intent Mobile Buttons */
.intent-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #64748b;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 1.25rem 0;
}

.intent-divider::before, .intent-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.intent-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-intent {
  padding: 0.65rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-intent:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.intent-icon {
  font-size: 1.25rem;
}

/* Order Details Accordion / Footer */
.checkout-footer {
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
}

.order-id-code {
  font-family: 'JetBrains Mono', monospace;
  color: #cbd5e1;
}

/* Success State Overlay */
.success-overlay {
  display: none;
  padding: 3rem 1.5rem;
  text-align: center;
  animation: successPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.success-check-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.5);
}

.success-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.success-subtitle {
  color: #94a3b8;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.success-utr-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  color: #34d399;
  margin-bottom: 1.5rem;
  display: inline-block;
}

/* Demo Simulator Bar */
.demo-simulator-bar {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  text-align: center;
}

.demo-sim-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.demo-sim-btn:hover {
  transform: scale(1.03);
}
