/**
 * DIRECTSKILLS — SPOOKY HALLOWEEN EDITION 2026
 * Scoped Layer over Default Homepage (home-redesign.css)
 * Features:
 * - Real Blinking & Flickering Candlelight Jack-o'-Lantern Pumpkins
 * - Swooping Animated Ghost Delivering Exclusive 35% Discount
 * - Spooky Atmosphere (Spiderwebs, Parallax Bats, Ambient Ember Glows)
 * - 100% Native Browser Scrolling & Full WCAG Accessibility
 */

/* ==========================================================================
   1. HALLOWEEN THEME TOKENS
   ========================================================================== */
:root {
  --hw-orange: #FF841B;
  --hw-orange-bright: #FFA338;
  --hw-orange-deep: #D95300;
  --hw-amber: #FFB300;
  --hw-fire: #FF4500;
  --hw-purple: #7928CA;
  --hw-dark-purple: #1A0B2E;
  --hw-spooky-navy: #07152E;
  --hw-glow-orange: rgba(255, 132, 27, 0.45);
  --hw-glow-purple: rgba(121, 40, 202, 0.35);
}

/* ==========================================================================
   2. NAVBAR & MEGA MENU STACKING CONTEXT ENFORCEMENT
   Ensure dropdowns and mega menu always display cleanly above Halloween banners
   ========================================================================== */
.navigation {
  position: relative !important;
  z-index: 10000 !important;
}

.navigation .ds-desktop-mega,
.navigation .submenu,
.navigation .dropdown-parent,
.navigation .mega-menu {
  z-index: 100001 !important;
}

/* ==========================================================================
   3. HALLOWEEN SALE ANNOUNCEMENT TOP BAR
   ========================================================================== */
.ds-hw-announcement-bar {
  position: relative;
  z-index: 90;
  width: 100%;
  background: linear-gradient(90deg, #D95300 0%, #FF841B 25%, #EC1688 50%, #FF841B 75%, #D95300 100%);
  background-size: 200% auto;
  animation: hwGradientShift 8s ease infinite;
  color: #FFFFFF !important;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(255, 132, 27, 0.35);
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.ds-hw-announcement-bar.is-dismissed {
  transform: translateY(-100%);
  opacity: 0;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

@keyframes hwGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.ds-hw-announcement-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ds-hw-announcement-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ds-hw-announcement-pumpkin {
  font-size: 16px;
  display: inline-block;
  animation: hwPumpkinWiggle 3.2s ease-in-out infinite;
}

@keyframes hwPumpkinWiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.12); }
  75% { transform: rotate(8deg) scale(1.12); }
}

.ds-hw-announcement-text {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #FFFFFF !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.ds-hw-countdown {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
}

.ds-hw-countdown-pill {
  background: rgba(7, 21, 46, 0.92);
  color: #FFFFFF !important;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 800;
  font-family: monospace;
  border: 1px solid rgba(255, 132, 27, 0.5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.ds-hw-cd-label {
  font-size: 9px;
  color: var(--hw-amber);
  text-transform: uppercase;
}

.ds-hw-announcement-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-hw-announcement-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  color: #EC1688 !important;
  text-decoration: none !important;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ds-hw-announcement-cta:hover {
  background: #FFF0F7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  color: #EC1688 !important;
}

.ds-hw-announcement-dismiss {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.ds-hw-announcement-dismiss:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   3. HERO SPOOKY ATMOSPHERE & DECORATIONS
   ========================================================================== */
.ds-hw-hero {
  position: relative;
}

.ds-hw-glow-1 {
  background: radial-gradient(circle, rgba(255, 132, 27, 0.16) 0%, transparent 70%) !important;
}

.ds-hw-glow-2 {
  background: radial-gradient(circle, rgba(121, 40, 202, 0.18) 0%, transparent 70%) !important;
}

/* Spiderwebs in Corners */
.ds-hw-corner-web {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 0.3s ease;
}

.ds-hw-web-top-left {
  top: 0;
  left: 0;
}

.ds-hw-web-top-right {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

/* Drifting Bat Silhouettes */
.ds-hw-bats-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.ds-hw-bat {
  position: absolute;
  width: 26px;
  height: auto;
  opacity: 0.45;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.ds-hw-bat-1 {
  top: 14%;
  right: -40px;
  animation: hwBatDrift1 24s linear infinite;
}

.ds-hw-bat-2 {
  top: 30%;
  right: -50px;
  width: 20px;
  animation: hwBatDrift2 29s linear 8s infinite;
}

.ds-hw-bat-3 {
  top: 48%;
  right: -30px;
  width: 16px;
  animation: hwBatDrift3 22s linear 14s infinite;
}

@keyframes hwBatDrift1 {
  0% { transform: translate(0, 0) scale(0.8); opacity: 0; }
  10% { opacity: 0.55; }
  50% { transform: translate(-650px, -35px) scale(1); }
  90% { opacity: 0.55; }
  100% { transform: translate(-1400px, 20px) scale(0.7); opacity: 0; }
}

@keyframes hwBatDrift2 {
  0% { transform: translate(0, 0) scale(0.7); opacity: 0; }
  10% { opacity: 0.5; }
  50% { transform: translate(-550px, 40px) scale(0.9); }
  100% { transform: translate(-1300px, -50px) scale(0.6); opacity: 0; }
}

@keyframes hwBatDrift3 {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  10% { opacity: 0.4; }
  50% { transform: translate(-450px, -20px) scale(0.85); }
  100% { transform: translate(-1100px, 25px) scale(0.5); opacity: 0; }
}

/* Eyebrow Badge & Gradient Text with Halloween Accents */
.ds-hw-hero-eyebrow {
  border-color: rgba(255, 132, 27, 0.35) !important;
  background: rgba(255, 247, 237, 0.95) !important;
  padding: 4px 12px 4px 6px !important;
  font-size: 0.74rem !important;
  gap: 6px !important;
  max-width: fit-content;
}

.ds-hw-hero-eyebrow .ds-hero-eyebrow-text {
  color: #C2410C !important;
  font-weight: 700;
  font-size: 0.74rem !important;
  letter-spacing: 0.01em;
}

.ds-hw-hero-eyebrow .ds-hero-eyebrow-icon-wrap {
  width: 20px !important;
  height: 20px !important;
  font-size: 11px !important;
}

.ds-hw-badge-pumpkin {
  font-size: 12px;
  display: inline-block;
  animation: hwPumpkinWiggle 3s ease-in-out infinite;
}

.ds-hw-gradient-text {
  background: linear-gradient(135deg, #EC1688 0%, #FF841B 60%, #FF5A1B 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.ds-hw-btn-primary {
  background: #EC1688 !important;
  box-shadow: 0 8px 24px rgba(236, 22, 136, 0.4) !important;
}

.ds-hw-btn-secondary {
  border-color: rgba(255, 132, 27, 0.4) !important;
  background: rgba(255, 132, 27, 0.08) !important;
}

.ds-hw-btn-secondary:hover {
  border-color: var(--hw-orange) !important;
  background: rgba(255, 132, 27, 0.18) !important;
  box-shadow: 0 6px 20px rgba(255, 132, 27, 0.3) !important;
}

/* Glass Card Halloween Accents */
.ds-hw-glass-card {
  border-color: rgba(255, 132, 27, 0.25) !important;
  box-shadow: 0 16px 40px rgba(7, 21, 46, 0.08), 0 0 20px rgba(255, 132, 27, 0.12) !important;
}

.ds-hw-squircle {
  background: rgba(255, 132, 27, 0.15) !important;
  color: var(--hw-orange) !important;
}

.ds-hw-metric-badge {
  margin-left: auto;
  background: linear-gradient(135deg, #FF841B 0%, #EC1688 100%);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(255, 132, 27, 0.4);
}

.ds-hw-pill {
  background: rgba(255, 132, 27, 0.12) !important;
  color: var(--hw-orange-deep) !important;
}

.ds-hw-track-bar .ds-gc-track-fill {
  background: linear-gradient(90deg, #EC1688, #FF841B) !important;
}

/* ==========================================================================
   4. REAL BLINKING & FLICKERING CANDLELIGHT PUMPKINS
   ("pumpkins hongi jisme light blink horhi hogi")
   ========================================================================== */
.ds-hw-pumpkin-blinker {
  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ds-hw-pumpkin-blinker:hover {
  transform: scale(1.06) rotate(-3deg);
}

.ds-hw-pumpkin-blinker:active {
  transform: scale(0.96);
}

/* Pumpkin in Hero Right Column (Balanced Size) */
.ds-hw-pumpkin-hero {
  position: absolute;
  top: -52px;
  right: -15px;
  width: 110px;
  height: auto;
  z-index: 10;
}

.ds-hw-pumpkin-hero .ds-hw-pumpkin-img {
  width: 110px;
  height: auto;
  display: block;
}

/* Natural Candlelight Flame Glow Coming From INSIDE Eyes & Mouth */
.ds-hw-flame-glow {
  position: absolute;
  top: 64%;
  left: 50%;
  width: 78px;
  height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 180, 0, 0.85) 0%, rgba(255, 90, 0, 0.5) 50%, rgba(255, 50, 0, 0) 75%);
  pointer-events: none;
  z-index: 0;
  animation: hwCandleFlicker 2.8s ease-in-out infinite;
  mix-blend-mode: screen;
  filter: blur(8px);
}

/* Organic Candlelight Blink & Pulse applied directly on Carved Pumpkin */
.ds-hw-pumpkin-img {
  position: relative;
  z-index: 1;
  animation: hwPumpkinCandleBlink 3.2s ease-in-out infinite;
}

@keyframes hwPumpkinCandleBlink {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.6)) brightness(1);
  }
  24% {
    filter: drop-shadow(0 0 16px rgba(255, 180, 0, 0.95)) brightness(1.1);
  }
  30% {
    /* Flame blink inside - brief dip */
    filter: drop-shadow(0 0 3px rgba(255, 80, 0, 0.25)) brightness(0.82);
  }
  33% {
    /* Immediate flame flare! */
    filter: drop-shadow(0 0 25px rgba(255, 210, 0, 1)) drop-shadow(0 0 45px rgba(255, 90, 0, 0.8)) brightness(1.25);
  }
  58% {
    filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.7)) brightness(1.02);
  }
  75% {
    /* Soft secondary blink */
    filter: drop-shadow(0 0 4px rgba(255, 80, 0, 0.3)) brightness(0.88);
  }
  79% {
    filter: drop-shadow(0 0 18px rgba(255, 180, 0, 0.9)) brightness(1.15);
  }
}

/* Natural Candle Flame Flicker Keyframes */
@keyframes hwCandleFlicker {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.95;
    filter: drop-shadow(0 0 14px rgba(255, 140, 0, 0.9)) drop-shadow(0 0 28px rgba(255, 69, 0, 0.65));
  }
  14% {
    transform: translate(-49%, -52%) scale(1.08);
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(255, 180, 0, 1)) drop-shadow(0 0 38px rgba(255, 80, 0, 0.8));
  }
  26% {
    transform: translate(-51%, -48%) scale(0.94);
    opacity: 0.82;
  }
  30% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(0.85);
  }
  34% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
  50% {
    transform: translate(-50%, -50%) scale(0.98);
    opacity: 0.9;
  }
  68% {
    transform: translate(-51%, -51%) scale(1.05);
    opacity: 0.98;
  }
  76% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.88);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

/* Pumpkin sitting by Carousel */
.ds-hw-carousel-pumpkin {
  margin-top: 24px;
  width: 95px;
  height: auto;
}

.ds-hw-carousel-pumpkin .ds-hw-cluster-img {
  width: 95px;
  height: auto;
  display: block;
}

.ds-hw-carousel-pumpkin .ds-hw-flame-glow {
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
}

/* ==========================================================================
   5. CAREER ROADMAP SPOOKY ENHANCEMENTS
   ========================================================================== */
.ds-hw-node5-ghost {
  position: absolute;
  top: -75px;
  right: -15px;
  z-index: 6;
  animation: hwGhostHoverBob 3.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.ds-hw-node5-ghost img {
  width: 110px !important;
  height: auto !important;
  display: block;
}

@keyframes hwGhostHoverBob {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
  100% { transform: translateY(-3px) rotate(-2deg); }
}

/* ==========================================================================
   6. BEST-SELLING COURSES HALLOWEEN DEAL BADGES
   ========================================================================== */
.ds-hw-course-deal-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FF841B 0%, #D95300 100%);
  color: #FFFFFF !important;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(217, 83, 0, 0.45);
  letter-spacing: 0.2px;
}

.ds-hw-badge-slash {
  background: #FFFFFF;
  color: #D95300;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 900;
}

.ds-hw-card-price {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
}

.ds-hw-old-price {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #94A3B8 !important;
  text-decoration: line-through !important;
}

.ds-hw-current-price {
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: #07152E !important;
}

.ds-hw-current-price span {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #64748B !important;
}

.ds-hw-course-card:hover {
  border-color: rgba(255, 132, 27, 0.45) !important;
  box-shadow: 0 16px 36px rgba(7, 21, 46, 0.12), 0 0 20px rgba(255, 132, 27, 0.18) !important;
}

.ds-hw-nav-btn:hover {
  background: #EC1688 !important;
  border-color: #EC1688 !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   7. NEWSLETTER PEEKING MASCOT GHOST
   ========================================================================== */
.ds-hw-newsletter-card {
  position: relative;
  overflow: visible !important;
}

.ds-hw-newsletter-peeker {
  position: absolute;
  top: -95px;
  right: 50px;
  z-index: 10;
  animation: hwGhostHoverBob 4s ease-in-out infinite alternate;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.ds-hw-newsletter-peeker img {
  width: 145px !important;
  height: auto !important;
  display: block;
}

.ds-hw-eyebrow {
  color: #EC1688 !important;
}

.ds-hw-heading-accent {
  background: linear-gradient(135deg, #EC1688 0%, #FF841B 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.ds-hw-btn-pink {
  background: #EC1688 !important;
  color: #FFFFFF !important;
}

.ds-hw-btn-pink:hover {
  background: #c21461 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(236, 22, 136, 0.45);
}

.ds-hw-bullet {
  font-size: 14px;
  margin-right: 8px;
}

/* ==========================================================================
   8. SPECIAL FEATURE: ANIMATED GHOST SWOOPING ONTO SCREEN WITH DISCOUNT!
   ("ghost animate hota wa screen pe ayega discount leker")
   ========================================================================== */
.ds-hw-ghost-stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  pointer-events: none;
  background: rgba(7, 21, 46, 0);
  transition: background 0.4s ease;
  padding: 20px;
}

.ds-hw-ghost-stage.is-visible {
  background: rgba(7, 21, 46, 0.52);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: auto;
}

.ds-hw-ghost-swooper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 850px;
  width: auto;
  pointer-events: auto;
  opacity: 0;
  transform: translate(50vw, 40vh) rotate(25deg) scale(0.3);
  transition: transform 0.95s cubic-bezier(0.16, 1.25, 0.3, 1), opacity 0.5s ease;
}

.ds-hw-ghost-swooper.is-swooped {
  opacity: 1;
  transform: translate(0, 0) rotate(0deg) scale(1);
}

/* 3D Ghost Figure Holding Lantern - Smooth 4-Sided Orbit Around the Card */
.ds-hw-ghost-figure {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 225px;
  height: auto;
  flex-shrink: 0;
  z-index: 15;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
  animation: hwGhostFly4Sides 13s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

.ds-hw-ghost-img {
  width: 225px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
}

@keyframes hwGhostFly4Sides {
  /* =========================================================
     1. LEFT SIDE (Starting point, curious lean towards the card)
     ========================================================= */
  0% {
    transform: translate(calc(-50% - 310px), calc(-50% + 0px)) rotate(-4deg) scaleX(1);
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.5));
  }
  10% {
    transform: translate(calc(-50% - 310px), calc(-50% - 15px)) rotate(-2deg) scaleX(1);
  }

  /* Transition: Swoop Up towards Top-Left Corner */
  18% {
    transform: translate(calc(-50% - 220px), calc(-50% - 170px)) rotate(12deg) scaleX(1);
  }

  /* =========================================================
     2. TOP SIDE (Hovering & gliding playfully above the card)
     ========================================================= */
  26% {
    transform: translate(calc(-50% + 0px), calc(-50% - 230px)) rotate(2deg) scaleX(1);
    filter: drop-shadow(0 25px 45px rgba(255, 132, 27, 0.45));
  }
  36% {
    transform: translate(calc(-50% + 30px), calc(-50% - 240px)) rotate(-3deg) scaleX(1);
  }

  /* Transition: Glide Down towards Top-Right Corner */
  44% {
    transform: translate(calc(-50% + 220px), calc(-50% - 155px)) rotate(-10deg) scaleX(1);
  }

  /* =========================================================
     3. RIGHT SIDE (Turns to peek at card from right side)
     ========================================================= */
  52% {
    transform: translate(calc(-50% + 310px), calc(-50% + 0px)) rotate(6deg) scaleX(-1);
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.5));
  }
  62% {
    transform: translate(calc(-50% + 310px), calc(-50% - 15px)) rotate(3deg) scaleX(-1);
  }

  /* Transition: Dip Down towards Bottom-Right Corner */
  70% {
    transform: translate(calc(-50% + 210px), calc(-50% + 165px)) rotate(-10deg) scaleX(-1);
  }

  /* =========================================================
     4. BOTTOM SIDE (Hovering underneath the action buttons)
     ========================================================= */
  78% {
    transform: translate(calc(-50% + 0px), calc(-50% + 220px)) rotate(-3deg) scaleX(1);
    filter: drop-shadow(0 -15px 35px rgba(236, 22, 136, 0.4));
  }
  86% {
    transform: translate(calc(-50% - 30px), calc(-50% + 230px)) rotate(4deg) scaleX(1);
  }

  /* Transition: Rise Up towards Bottom-Left Corner */
  93% {
    transform: translate(calc(-50% - 210px), calc(-50% + 155px)) rotate(10deg) scaleX(1);
  }

  /* Complete Seamless 360 Loop back to Left */
  100% {
    transform: translate(calc(-50% - 310px), calc(-50% + 0px)) rotate(-4deg) scaleX(1);
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.5));
  }
}

.ds-hw-ghost-glow-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 40, 202, 0.45) 0%, rgba(255, 132, 27, 0.3) 50%, transparent 75%);
  pointer-events: none;
  z-index: -1;
  animation: hwAuraPulse 3s ease-in-out infinite alternate;
}

@keyframes hwAuraPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Lantern Sparkle Glow - Positioned PRECISELY inside the lantern glass */
.ds-hw-lantern-sparkle {
  position: absolute;
  top: 68%;
  left: 28.5%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 220, 0.95) 0%, rgba(255, 190, 0, 0.7) 45%, rgba(255, 100, 0, 0) 80%);
  animation: hwCandleFlicker 2.4s ease-in-out infinite;
  mix-blend-mode: screen;
  filter: blur(2px);
  pointer-events: none;
}

/* Spooky Discount Scroll / Certificate */
.ds-hw-discount-scroll {
  position: relative;
  background: #FFFFFF;
  border: 2.5px solid var(--hw-orange);
  border-radius: 26px;
  padding: 34px 34px 30px 38px;
  width: 480px;
  box-shadow: 0 24px 60px rgba(7, 21, 46, 0.35), 0 0 35px rgba(255, 132, 27, 0.35);
  z-index: 1;
}

.ds-hw-scroll-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 18px;
  color: #94A3B8;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ds-hw-scroll-close:hover {
  color: #07152E;
  transform: scale(1.15);
}

.ds-hw-scroll-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--hw-orange-deep);
  margin-bottom: 8px;
}

.ds-hw-scroll-title {
  font-size: 26px;
  font-weight: 900;
  color: #07152E;
  margin-bottom: 10px;
  line-height: 1.25;
}

.ds-hw-scroll-highlight {
  color: #EC1688;
}

.ds-hw-scroll-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #334155;
  font-weight: 500;
  margin-bottom: 22px;
}

/* Coupon Box */
.ds-hw-coupon-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFF9F3;
  border: 1.5px dashed var(--hw-orange);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

.ds-hw-coupon-left {
  display: flex;
  flex-direction: column;
}

.ds-hw-coupon-tag {
  font-size: 9px;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.5px;
}

.ds-hw-coupon-code {
  font-size: 15px;
  font-weight: 900;
  font-family: monospace;
  color: #D95300;
  letter-spacing: 1px;
}

.ds-hw-coupon-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--hw-orange);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ds-hw-coupon-copy-btn:hover {
  background: #D95300;
  transform: translateY(-1px);
}

.ds-hw-scroll-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ds-hw-btn-grab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #EC1688;
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 26px;
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(236, 22, 136, 0.45);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ds-hw-btn-grab:hover {
  background: #c21461;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(236, 22, 136, 0.6);
}

.ds-hw-btn-later {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  padding: 8px 12px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.ds-hw-btn-later:hover {
  color: #07152E;
}

/* Minimized Floating Corner Mascot (Positioned on the Left) */
.ds-hw-corner-mascot {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: auto;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #07152E;
  border: 1.5px solid var(--hw-orange);
  padding: 6px 16px 6px 8px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 132, 27, 0.3);
  cursor: pointer;
  animation: hwCornerPulse 2.8s ease-in-out infinite;
  transition: transform 0.25s ease, opacity 0.2s ease;
  will-change: bottom, opacity, transform;
}

.ds-hw-corner-mascot:hover {
  transform: translateY(-3px) scale(1.05);
}

@keyframes hwCornerPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 132, 27, 0.3); }
  50% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 25px rgba(255, 132, 27, 0.6); }
}

.ds-hw-mascot-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 132, 27, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-hw-mascot-avatar img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.ds-hw-mascot-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   9. CAROUSEL HALLOWEEN DEAL HIGHLIGHT CARD
   ========================================================================== */
.ds-hw-carousel-deal-card {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.98) 0%, rgba(255, 237, 213, 0.88) 100%);
  border: 1.5px solid rgba(255, 132, 27, 0.4);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 25px -4px rgba(255, 132, 27, 0.18);
  position: relative;
  overflow: hidden;
}

.ds-hw-deal-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  color: #C2410C;
  border: 1px solid rgba(255, 132, 27, 0.4);
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.ds-hw-deal-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EA580C;
  animation: hwDotPulse 1.8s infinite;
}

@keyframes hwDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.ds-hw-deal-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #07152E;
  margin-bottom: 4px;
  line-height: 1.3;
}

.ds-hw-deal-card-text {
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 8px;
}

.ds-hw-deal-card-art {
  display: flex;
  justify-content: flex-end;
  position: relative;
  margin-top: 6px;
}

.ds-hw-deal-pumpkin-wrap {
  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s ease;
}

.ds-hw-deal-pumpkin-wrap:hover {
  transform: scale(1.05) rotate(-2deg);
}

.ds-hw-deal-flame-glow {
  position: absolute;
  top: 60%;
  left: 50%;
  width: 130px;
  height: 65px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 170, 0, 0.75) 0%, rgba(255, 90, 0, 0.4) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  animation: hwCandleFlicker 2.8s ease-in-out infinite;
  mix-blend-mode: screen;
  filter: blur(10px);
}

.ds-hw-cluster-img {
  position: relative;
  z-index: 1;
  width: 160px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(255, 132, 27, 0.4));
}

/* ==========================================================================
   10. FOOTER HALLOWEEN CORNER DECORATIONS
   ========================================================================== */
.ds-footer {
  position: relative;
}

.ds-hw-footer-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.ds-hw-footer-corner {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.ds-hw-footer-corner:hover {
  transform: scale(1.08) translateY(-4px);
}

.ds-hw-footer-left {
  bottom: 12px;
  left: clamp(20px, 3.5vw, 60px);
  width: 140px;
}

.ds-hw-footer-pumpkin-img {
  width: 140px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
  animation: hwPumpkinCandleBlink 3.4s ease-in-out infinite;
}

.ds-hw-footer-left .ds-hw-flame-glow {
  width: 95px;
  height: 70px;
}

.ds-hw-footer-right {
  bottom: 12px;
  right: clamp(100px, 8vw, 150px);
  width: 150px;
  animation: hwGhostHoverBob 3.6s ease-in-out infinite alternate;
}

.ds-hw-footer-ghost-img {
  width: 150px;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 35px rgba(0, 0, 0, 0.55));
}

.ds-hw-footer-ghost-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 130px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 40, 202, 0.4) 0%, rgba(255, 132, 27, 0.25) 50%, transparent 75%);
  pointer-events: none;
  z-index: -1;
  animation: hwAuraPulse 3s ease-in-out infinite alternate;
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS (1200px, 991px, 768px, 640px, 390px)
   ========================================================================== */
@media (max-width: 991px) {
  .ds-hw-ghost-swooper {
    flex-direction: column;
    align-items: center;
    max-width: 480px;
    gap: 12px;
  }
  .ds-hw-ghost-figure {
    width: 210px;
    margin-right: 0;
    margin-bottom: -15px;
  }
  .ds-hw-ghost-img {
    width: 210px;
  }
  .ds-hw-discount-scroll {
    width: 100%;
    max-width: 440px;
    padding: 26px 22px 22px 26px;
  }
  .ds-hw-scroll-title {
    font-size: 22px;
  }
  .ds-hw-scroll-desc {
    font-size: 14px;
    margin-bottom: 18px;
  }
}

@media (max-width: 768px) {
  .ds-hw-footer-left {
    bottom: 6px;
    left: 10px;
    width: 75px;
  }
  .ds-hw-footer-pumpkin-img {
    width: 75px;
  }
  .ds-hw-footer-right {
    bottom: 6px;
    right: 80px;
    width: 80px;
  }
  .ds-hw-footer-ghost-img {
    width: 80px;
  }
}

@media (max-width: 640px) {
  .ds-hw-announcement-container {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }
  .ds-hw-announcement-content {
    justify-content: center;
    text-align: center;
    font-size: 12px;
  }
  .ds-hw-announcement-actions {
    justify-content: center;
  }
  .ds-hw-pumpkin-hero {
    width: 80px;
    top: -38px;
    right: -8px;
  }
  .ds-hw-pumpkin-hero .ds-hw-pumpkin-img {
    width: 80px;
  }
  .ds-hw-node5-ghost img {
    width: 70px !important;
  }
  .ds-hw-node5-ghost {
    top: -45px;
    right: -5px;
  }
  .ds-hw-newsletter-peeker img {
    width: 95px !important;
  }
  .ds-hw-newsletter-peeker {
    top: -65px;
    right: 20px;
  }
  .ds-hw-ghost-stage {
    padding: 16px;
    overflow: hidden;
  }
  .ds-hw-ghost-swooper {
    width: 100%;
    max-width: 360px;
    align-items: center;
    justify-content: center;
    gap: 0;
  }
  .ds-hw-ghost-figure {
    width: 140px !important;
    animation: hwGhostFly4SidesMobile 13s cubic-bezier(0.42, 0, 0.58, 1) infinite !important;
  }
  .ds-hw-ghost-img {
    width: 140px !important;
  }

@keyframes hwGhostFly4SidesMobile {
  0% {
    transform: translate(calc(-50% - 150px), calc(-50% + 0px)) rotate(-4deg) scaleX(1);
  }
  10% {
    transform: translate(calc(-50% - 150px), calc(-50% - 10px)) rotate(-2deg) scaleX(1);
  }
  18% {
    transform: translate(calc(-50% - 110px), calc(-50% - 140px)) rotate(10deg) scaleX(1);
  }
  26% {
    transform: translate(calc(-50% + 0px), calc(-50% - 180px)) rotate(2deg) scaleX(1);
  }
  36% {
    transform: translate(calc(-50% + 20px), calc(-50% - 185px)) rotate(-3deg) scaleX(1);
  }
  44% {
    transform: translate(calc(-50% + 110px), calc(-50% - 135px)) rotate(-8deg) scaleX(1);
  }
  52% {
    transform: translate(calc(-50% + 150px), calc(-50% + 0px)) rotate(5deg) scaleX(-1);
  }
  62% {
    transform: translate(calc(-50% + 150px), calc(-50% - 10px)) rotate(3deg) scaleX(-1);
  }
  70% {
    transform: translate(calc(-50% + 110px), calc(-50% + 140px)) rotate(-8deg) scaleX(-1);
  }
  78% {
    transform: translate(calc(-50% + 0px), calc(-50% + 185px)) rotate(-2deg) scaleX(1);
  }
  86% {
    transform: translate(calc(-50% - 20px), calc(-50% + 190px)) rotate(3deg) scaleX(1);
  }
  93% {
    transform: translate(calc(-50% - 110px), calc(-50% + 135px)) rotate(8deg) scaleX(1);
  }
  100% {
    transform: translate(calc(-50% - 150px), calc(-50% + 0px)) rotate(-4deg) scaleX(1);
  }
}
  .ds-hw-discount-scroll {
    width: 100%;
    max-width: 350px;
    padding: 20px 18px 18px 20px;
    border-radius: 20px;
  }
  .ds-hw-scroll-title {
    font-size: 20px;
  }
  .ds-hw-scroll-desc {
    font-size: 13.5px;
    margin-bottom: 16px;
  }
  .ds-hw-btn-grab {
    font-size: 13.5px;
    padding: 11px 18px;
  }
  .ds-hw-btn-later {
    font-size: 13px;
  }
  .ds-hw-corner-mascot {
    bottom: 16px;
    left: 16px;
    right: auto;
  }
}
