/* ---------- Sticky Bottom CTA (Mobile) ---------- */
.sticky-cta {
  display: none; /* hidden on desktop */
}
@media (max-width: 768px) {
  .sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(9, 12, 19, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    padding: 12px 20px;
    z-index: 100;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  }
  .sticky-cta-price {
    display: flex;
    flex-direction: column;
  }
  .sticky-cta-price span:first-child {
    font-size: 0.75em;
    color: var(--muted);
    text-decoration: line-through;
  }
  .sticky-cta-price span:last-child {
    font-size: 1.2em;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
  }
  .sticky-cta .hvb-btn-accent {
    padding: 10px 24px;
    animation: hvbPulse 2s infinite;
  }
}

/* ---------- Offer Stacking Section ---------- */
.offer-stack {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin: 40px auto;
  max-width: 800px;
}
.offer-stack h3 {
  text-align: center;
  font-size: 1.4em;
  margin-bottom: 20px;
  color: var(--text);
}
.offer-stack-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95em;
}
.offer-stack-item:last-of-type {
  border-bottom: none;
}
.offer-stack-item .value {
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  text-decoration: line-through;
}
.offer-stack-total {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--accent);
  font-weight: 800;
  font-size: 1.2em;
}
.offer-stack-total .final-price {
  color: var(--accent);
  font-family: 'Sora', sans-serif;
  font-size: 1.4em;
}

@keyframes hvbPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(56,214,240,0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(56,214,240,0); }
}

/* ---------- Course Images ---------- */
.course-thumb {
  height: auto;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: 12px 12px 0 0;
}
.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.course-card:hover .course-thumb img {
  transform: scale(1.05);
}
.course-thumb .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

/* ---------- Premium Price Tag & Course Footer Styling ---------- */
.price {
  font-family: 'Sora', sans-serif;
  background: linear-gradient(135deg, #FFE066 0%, #F59E0B 55%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #FFB319;
  font-size: 1.45em;
  font-weight: 900;
  letter-spacing: 0.3px;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.5));
}
.sticky-cta-price span:last-child {
  font-family: 'Sora', sans-serif;
  background: linear-gradient(135deg, #FFE066 0%, #F59E0B 55%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #FFB319;
  font-size: 1.35em;
  font-weight: 900;
  white-space: nowrap;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.45));
}

.course-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-top: auto !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.course-footer .price {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}
.course-footer .btn-glow,
.course-footer .btn-ghost {
  width: auto !important;
  max-width: fit-content !important;
  flex-shrink: 0 !important;
  padding: 10px 20px !important;
  font-size: 0.88em !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px !important;
  border-radius: 10px !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: all 0.25s ease;
}
.course-footer .btn-glow {
  background: linear-gradient(100deg, #4FE3C1 0%, #5AC8FA 50%, #9B8CFF 100%) !important;
  color: #05070D !important;
  box-shadow: 0 4px 16px rgba(79, 227, 193, 0.35) !important;
}
.course-footer .btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(155, 140, 255, 0.45) !important;
}
.course-footer .btn-ghost {
  border: 1.5px solid #2DD4BF !important;
  color: #2DD4BF !important;
  background: rgba(45, 212, 191, 0.08) !important;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.15) !important;
}
.course-footer .btn-ghost:hover {
  background: rgba(45, 212, 191, 0.18) !important;
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.35) !important;
  transform: translateY(-2px);
}

/* ---------- Professional SVG Icons ---------- */
.pro-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: url(#cyan-grad); /* We will add an SVG gradient defs in HTML, or just use stroke: #38D6F0 */
  stroke: #38D6F0;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface-2);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.03);
  transition: transform 0.2s, border-color 0.2s;
}
.why-item:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 214, 240, 0.3);
}
.why-item .icon {
  margin-bottom: 16px;
  display: flex;
}

/* Mobile specific improvements */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.9em;
  }
  .why-item {
    padding: 20px;
  }
}

/* =========================================================
   NEXTGEN UI OVERHAUL (Premium Glassmorphism & Animations)
   ========================================================= */

/* --- Animated Background --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
}
.bg-mesh {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(56, 214, 240, 0.15), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.1), transparent 30%);
  animation: mesh-rotate 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes mesh-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.hero > * { position: relative; z-index: 1; }

/* --- 3D Glow Buttons --- */
.btn-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  color: #0A0D14 !important;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 10px 30px -10px rgba(94, 234, 212, 0.6);
  border: none;
  cursor: pointer;
  overflow: hidden;
}
.btn-glow::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 3s infinite;
}
.btn-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px -10px rgba(167, 139, 250, 0.7);
}
@keyframes shimmer {
  100% { left: 200%; }
}

/* --- Social Proof Counters & Avatars --- */
.trust-signal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}
.avatar-group {
  display: flex;
}
.avatar-group img {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -12px;
  object-fit: cover;
}
.avatar-group img:first-child { margin-left: 0; }
.trust-text {
  text-align: left;
  line-height: 1.3;
}
.trust-text b {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 1.35em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
}
.trust-text span {
  font-size: 0.85em;
  color: var(--muted);
}

/* --- Glass Cards (Course & Testimonials) --- */
.glass-card {
  background: rgba(26, 33, 51, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(94, 234, 212, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.course-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.course-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95em;
  color: rgba(234, 240, 255, 0.85);
}
.course-features li svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  stroke: var(--cyan);
  margin-top: 2px;
}

/* --- How it Works / Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.step-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  text-align: left;
  transition: all 0.3s ease;
}
.step-box:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
}
.step-num {
  position: absolute;
  top: -16px; right: 24px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 3em;
  color: rgba(255,255,255,0.05);
  line-height: 1;
}

/* --- Payment Methods Badge --- */
.pay-methods {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.pay-badge {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-title {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-title:hover { background: var(--surface-2); }
.faq-title svg {
  width: 20px; height: 20px;
  stroke: var(--muted);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-title svg { transform: rotate(180deg); }
.faq-body {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--muted);
}
.faq-item.active .faq-body {
  padding: 0 24px 24px;
  max-height: 500px;
}

/* --- Exit Popup --- */
.exit-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(9, 12, 19, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.exit-overlay.show {
  display: flex;
  opacity: 1;
}
.exit-popup {
  background: var(--surface);
  border: 1px solid var(--violet);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.exit-overlay.show .exit-popup { transform: scale(1); }
.exit-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  color: var(--muted);
  font-size: 1.5em;
  cursor: pointer;
}
.exit-popup h3 {
  font-family: 'Sora', sans-serif;
  color: var(--text);
  margin-bottom: 12px;
}

/* --- Mobile Specific Overrides --- */
@media (max-width: 640px) {
  .hero { padding: 50px 16px; }
  .hero-actions .btn-glow { width: 100%; padding: 14px 20px; }
  .trust-signal { flex-direction: column; gap: 8px; }
  .pay-methods { gap: 8px; }
  .pay-badge { flex: 1; justify-content: center; }
  .exit-popup { margin: 20px; padding: 30px 20px; }
}
