/* CSA Razorpay Universal Checkout Modal Styles */
.csa-checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.csa-checkout-overlay.active {
  opacity: 1;
  visibility: visible;
}

.csa-checkout-modal {
  width: 100%;
  max-width: 440px;
  background: #0d1527;
  border: 1px solid rgba(255, 94, 0, 0.4);
  border-radius: 18px;
  padding: 20px 22px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 94, 0, 0.15);
  color: #ffffff;
  position: relative;
  transform: translateY(15px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.csa-checkout-overlay.active .csa-checkout-modal {
  transform: translateY(0) scale(1);
}

.csa-checkout-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.csa-checkout-close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border-color: #ef4444;
}

.csa-checkout-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.csa-checkout-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff5e00 0%, #38bdf8 100%);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 94, 0, 0.3);
}

.csa-checkout-sub {
  display: block;
  font-size: 0.68rem;
  color: #ff8c3a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  line-height: 1.2;
}

.csa-checkout-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2px 0 0;
  color: #ffffff;
  line-height: 1.2;
}

/* Pricing bar */
.csa-checkout-pricing-bar,
.csa-checkout-price-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.csa-price-lbl,
.csa-price-title {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.csa-price-old {
  font-size: 0.8rem;
  color: #64748b;
  text-decoration: line-through;
  margin-right: 6px;
}

.csa-price-final {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #10b981;
}

.csa-badge-verified {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Form fields */
.csa-checkout-field {
  margin-bottom: 8px;
}

.csa-checkout-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.csa-checkout-field input {
  width: 100%;
  height: 35px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 0.82rem;
  outline: none;
  transition: all 0.2s;
}

.csa-checkout-field input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #ff5e00;
  box-shadow: 0 0 0 2px rgba(255, 94, 0, 0.2);
}

/* Coupon box */
.csa-coupon-row {
  display: flex;
  gap: 6px;
  margin-bottom: 0;
}

.csa-coupon-input {
  flex: 1;
  height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  outline: none;
}

.csa-coupon-btn {
  height: 34px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.csa-coupon-btn:hover {
  background: #ff5e00;
  border-color: #ff5e00;
}

.csa-coupon-msg {
  font-size: 0.72rem;
  margin-top: 3px;
  display: none;
}
.csa-coupon-msg.success {
  display: block;
  color: #34d399;
  font-weight: 600;
}
.csa-coupon-msg.error {
  display: block;
  color: #f87171;
}

/* Pay Button */
.csa-btn-pay-now {
  width: 100%;
  height: 42px;
  background: linear-gradient(135deg, #ff5e00 0%, #ea580c 100%);
  border: none;
  border-radius: 9px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 94, 0, 0.35);
  transition: all 0.2s;
  letter-spacing: 0.02em;
  margin-top: 8px;
}

.csa-btn-pay-now:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(255, 94, 0, 0.5);
  background: linear-gradient(135deg, #ff6b14 0%, #f97316 100%);
}

.csa-checkout-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.66rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ==========================================================================
   Universal Fixed Sticky Bottom Course Enroll Bar
   ========================================================================== */
.csa-sticky-course-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99990;
  background: rgba(10, 15, 29, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 94, 0, 0.45);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 94, 0, 0.15);
  padding: 12px 28px;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.3s ease;
}

.csa-sticky-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.csa-sticky-bar-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.csa-sticky-bar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 94, 0, 0.25) 0%, rgba(255, 140, 58, 0.1) 100%);
  border: 1px solid rgba(255, 94, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff5e00;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(255, 94, 0, 0.25);
}

.csa-sticky-bar-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.csa-sticky-bar-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ff8c3a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 4px;
}

.csa-sticky-bar-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.csa-sticky-bar-actions-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.csa-sticky-bar-price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.csa-sticky-bar-curr {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ff9d5c;
  line-height: 1;
}

.csa-sticky-bar-orig {
  font-size: 0.92rem;
  color: #64748b;
  text-decoration: line-through;
  line-height: 1;
}

.csa-sticky-bar-disc {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.csa-sticky-bar-btn-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-sticky-enroll-pulse {
  background: linear-gradient(135deg, #ff5e00 0%, #e04800 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(255, 94, 0, 0.45);
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none !important;
}

.btn-sticky-enroll-pulse:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 94, 0, 0.65);
  background: linear-gradient(135deg, #ff6b14 0%, #f05400 100%);
  color: #ffffff !important;
}

.btn-sticky-wa-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25D366 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  text-decoration: none !important;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.btn-sticky-wa-icon:hover {
  background: #25D366;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transform: translateY(-2px);
}

/* Adjust WhatsApp floating icon when sticky bar is active */
body.has-sticky-bar-visible #csa-floating-whatsapp {
  bottom: 82px !important;
  transition: bottom 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .csa-sticky-course-bar {
    padding: 10px 16px;
  }
  .csa-sticky-bar-name {
    font-size: 0.95rem;
    max-width: 280px;
  }
  .csa-sticky-bar-curr {
    font-size: 1.25rem;
  }
  .csa-sticky-bar-orig {
    display: none;
  }
}

@media (max-width: 680px) {
  .csa-sticky-bar-inner {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
  }
  .csa-sticky-bar-info {
    width: 100%;
  }
  .csa-sticky-bar-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    border-radius: 8px;
  }
  .csa-sticky-bar-name {
    font-size: 0.88rem;
    max-width: calc(100vw - 80px);
  }
  .csa-sticky-bar-actions-wrap {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .csa-sticky-bar-curr {
    font-size: 1.15rem;
  }
  .btn-sticky-enroll-pulse {
    padding: 8px 16px;
    font-size: 0.84rem;
  }
  .btn-sticky-wa-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  body.has-sticky-bar-visible #csa-floating-whatsapp {
    bottom: 96px !important;
  }
}


/* Floating WhatsApp spacing when sticky bar is active */
body.has-sticky-bar-visible #csa-floating-whatsapp {
  bottom: 115px !important;
  right: 18px !important;
  z-index: 99995 !important;
}

@media (max-width: 680px) {
  body.has-sticky-bar-visible #csa-floating-whatsapp {
    bottom: 125px !important;
    right: 16px !important;
    transform: scale(0.88) !important;
  }
}


/* ==========================================================================
   STICKY BOTTOM TIMER STYLES
   ========================================================================== */
.csa-sticky-bar-timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 94, 0, 0.08);
  border: 1px solid rgba(255, 94, 0, 0.3);
  padding: 6px 14px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 94, 0, 0.12);
}

.sticky-timer-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  color: #ff9d00;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.sticky-timer-nums {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  letter-spacing: 0.5px;
}

.st-num {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}

.st-lbl {
  font-size: 0.72rem;
  color: #ff9d00;
  margin-right: 2px;
}

@media (max-width: 991px) {
  .csa-sticky-bar-timer-box {
    display: none;
  }
}

/* ==========================================================================
   CSA INTERACTIVE COURSE QUICK-VIEW POPUP MODAL
   ========================================================================== */
.csa-course-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.csa-course-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.csa-course-popup-card {
  width: 100%;
  max-width: 375px;
  background: radial-gradient(circle at 100% 0%, rgba(255, 94, 0, 0.16) 0%, rgba(11, 17, 32, 0.98) 75%);
  border: 1px solid rgba(255, 94, 0, 0.45);
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 94, 0, 0.2);
  color: #ffffff;
  position: relative;
  transform: translateY(15px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow: hidden !important;
  box-sizing: border-box;
}

.csa-course-popup-overlay.active .csa-course-popup-card {
  transform: translateY(0) scale(1);
}

.csa-course-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.2s;
  z-index: 10;
}

.csa-course-popup-close:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
  border-color: #ef4444;
}

.csa-popup-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.csa-popup-course-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 4px;
}

.csa-popup-course-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: #ff8c3a;
  font-weight: 600;
  margin-bottom: 10px;
}

.csa-popup-highlights-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

.csa-popup-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.csa-popup-highlights-list li {
  font-size: 0.74rem;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 5px;
}

.csa-popup-highlights-list li i {
  color: #ff5e00;
  font-size: 0.8rem;
}

.csa-popup-pricing-bar {
  background: rgba(255, 94, 0, 0.1);
  border: 1px solid rgba(255, 94, 0, 0.35);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.csa-popup-price-left {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.csa-popup-price-old {
  font-size: 0.82rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.csa-popup-price-final {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ff5e00;
}

.csa-popup-discount-badge {
  background: #ff5e00;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 800;
}

.csa-popup-btn-enroll {
  width: 100%;
  background: linear-gradient(135deg, #ff5e00 0%, #ff8c3a 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 16px rgba(255, 94, 0, 0.35);
  text-decoration: none;
  margin-bottom: 8px;
}

.csa-popup-btn-enroll:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 94, 0, 0.5);
}

.csa-popup-secondary-actions {
  display: flex;
  gap: 6px;
}

.csa-popup-btn-secondary {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1 !important;
  border-radius: 8px;
  padding: 5px 8px;
  font-weight: 600;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.csa-popup-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}



@media (max-width: 576px) {
  .csa-course-popup-card {
    padding: 24px 18px 20px;
  }
  .csa-popup-course-title {
    font-size: 1.35rem;
  }
  .csa-popup-secondary-actions {
    flex-direction: column;
  }
}
