/* ══════════════════════════════════════════════════════════════
   LUNACY VISUALS — SPOOKY & BEAUTIFUL HALLOWEEN 2026 EDITION
   Dark Gothic Atmosphere · Jack-o'-Lantern Flames · Ghostly Mist
   ══════════════════════════════════════════════════════════════ */

/* 0. Visibility Guard: completely hide all Halloween UI unless theme-halloween is active */
body:not(.theme-halloween) .halloween-bar,
body:not(.theme-halloween) .halloween-promo-card,
body:not(.theme-halloween) .halloween-vignette,
body:not(.theme-halloween) .spooky-eyes,
body:not(.theme-halloween) .halloween-modal-backdrop,
body:not(.theme-halloween) #halloweenEffectsMounted {
  display: none !important;
}

/* 1. Theme Variables Override */
body.theme-halloween {
  --green: #ff6b08;
  --green-deep: #e85d04;
  --violet: #c77dff;
  --violet-deep: #9d4edd;
  --purple: #7b2cbf;
  --danger: #ef4444;
  --border-hover: rgba(255, 107, 8, 0.55);
  --grad: linear-gradient(135deg, #ff6b08 0%, #9d4edd 52%, #ff3b00 100%);
  --grad-btn: linear-gradient(135deg, #ff6b08 0%, #6a040f 100%);
  --shadow-glow: 0 0 50px rgba(255, 107, 8, 0.32);
}

/* Background Glowing Blobs for Halloween */
body.theme-halloween .lx-bg__blob--1 {
  background: radial-gradient(circle, rgba(255, 107, 8, 0.28) 0%, transparent 68%);
  animation: pulseBlob1 12s ease-in-out infinite alternate;
}
body.theme-halloween .lx-bg__blob--2 {
  background: radial-gradient(circle, rgba(157, 78, 221, 0.32) 0%, transparent 68%);
  animation: pulseBlob2 15s ease-in-out infinite alternate;
}
body.theme-halloween .lx-bg__blob--3 {
  background: radial-gradient(circle, rgba(220, 38, 38, 0.22) 0%, transparent 68%);
}

@keyframes pulseBlob1 {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.15) translate(30px, -20px); filter: hue-rotate(-15deg); }
  100% { transform: scale(0.95) translate(-20px, 15px); }
}
@keyframes pulseBlob2 {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.12) translate(-35px, 25px); filter: hue-rotate(20deg); }
  100% { transform: scale(0.9) translate(15px, -30px); }
}

/* 2. Top Halloween Announcement Bar with Blood Drips */
.halloween-bar {
  background: linear-gradient(90deg, #1b0033 0%, #2e0854 20%, #d94e00 50%, #2e0854 80%, #1b0033 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 16px;
  text-align: center;
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 25px rgba(255, 107, 8, 0.35);
  border-bottom: 2px solid rgba(255, 107, 8, 0.5);
}

/* Dripping blood border along the bottom of the announcement bar */
.halloween-blood-border {
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 16px;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 130px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 16' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L130 0 L130 2 Q115 13 105 15 Q100 16 97 8 Q91 13 83 16 Q78 12 72 5 Q62 14 52 16 Q46 6 36 12 Q24 16 14 8 Q6 2 0 4 Z' fill='%23660000'/%3E%3Cpath d='M0 0 L130 0 L130 1 Q115 10 105 12 Q100 13 97 6 Q91 11 83 13 Q78 9 72 4 Q62 11 52 12 Q46 5 36 10 Q24 13 14 6 Q6 1 0 2 Z' fill='%23d90429'/%3E%3C/svg%3E");
  filter: drop-shadow(0 4px 6px rgba(180, 0, 0, 0.75));
}

.falling-blood-drop {
  position: fixed;
  width: 6px;
  height: 12px;
  background: radial-gradient(circle at 50% 30%, #ff2a2a 0%, #800000 80%);
  border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%;
  pointer-events: none;
  z-index: 105;
  box-shadow: 0 0 8px #ff0000;
  animation: bloodDropFall 2.6s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes bloodDropFall {
  0% { transform: translateY(0) scale(0.6); opacity: 1; }
  75% { opacity: 0.95; }
  100% { transform: translateY(85vh) scaleY(1.9) scaleX(0.5); opacity: 0; }
}

.halloween-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.5);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 107, 8, 0.6);
  box-shadow: 0 0 10px rgba(255, 107, 8, 0.4);
}

.halloween-bar__code {
  background: #0d0218;
  color: #ff9e00;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: 'Consolas', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px dashed #ff9e00;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 12px rgba(255, 158, 0, 0.3);
  user-select: all;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.halloween-bar__code:hover {
  transform: scale(1.08) rotate(-1deg);
  background: #ff7518;
  color: #05030c;
  box-shadow: 0 0 22px rgba(255, 117, 24, 0.8);
  border-style: solid;
}

/* 3. Floating Spiderwebs */
.halloween-cobweb {
  position: fixed;
  width: 170px;
  height: 170px;
  pointer-events: none;
  z-index: 90;
  opacity: 0.55;
  filter: drop-shadow(0 0 8px rgba(157, 78, 221, 0.4));
  transition: opacity 0.4s ease;
}

.halloween-cobweb--top-left {
  top: 0;
  left: 0;
}

.halloween-cobweb--top-right {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

/* 4. Hanging Animated Spiders */
.halloween-spider-wrap {
  position: fixed;
  top: 0;
  width: 40px;
  height: 140px;
  z-index: 92;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: top center;
  animation: spiderSwing 4.5s ease-in-out infinite alternate;
  transition: transform 0.3s ease;
}

.halloween-spider-wrap--left {
  left: 45px;
}
.halloween-spider-wrap--right {
  right: 45px;
  animation-duration: 5.2s;
  animation-delay: -2s;
}

.halloween-spider-thread {
  width: 1px;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 107, 8, 0.7));
  margin: 0 auto;
}

.halloween-spider-body {
  width: 32px;
  height: 32px;
  margin: -4px auto 0;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 0 8px rgba(255, 107, 8, 0.6));
}

.halloween-spider-wrap:hover .halloween-spider-body {
  transform: scale(1.25) rotate(15deg);
  filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.9));
}

@keyframes spiderSwing {
  0% { transform: rotate(-5deg); }
  50% { transform: rotate(4deg); }
  100% { transform: rotate(-4deg); }
}

/* 5. Animated Bats Layer */
.halloween-bats-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 38;
  overflow: hidden;
}

.halloween-bat {
  position: absolute;
  width: 36px;
  height: 22px;
  fill: #ff7518;
  filter: drop-shadow(0 0 8px rgba(255, 117, 24, 0.8));
  opacity: 0;
  animation: flyBat 13s linear infinite;
}

@keyframes flyBat {
  0% {
    transform: translate(-60px, 85vh) scale(0.6) rotate(18deg);
    opacity: 0;
  }
  8% {
    opacity: 0.85;
  }
  45% {
    transform: translate(45vw, 30vh) scale(1) rotate(-14deg);
  }
  85% {
    opacity: 0.85;
  }
  100% {
    transform: translate(105vw, 8vh) scale(0.5) rotate(22deg);
    opacity: 0;
  }
}

.halloween-bat:nth-child(2) {
  animation-duration: 17s;
  animation-delay: 4.5s;
  width: 26px;
  height: 18px;
  fill: #c77dff;
  filter: drop-shadow(0 0 8px rgba(199, 125, 255, 0.9));
}

.halloween-bat:nth-child(3) {
  animation-duration: 21s;
  animation-delay: 9s;
  width: 44px;
  height: 28px;
  fill: #ef4444;
  filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.95));
}

.halloween-bat:nth-child(4) {
  animation-duration: 15s;
  animation-delay: 13s;
  width: 22px;
  height: 15px;
  fill: #ffa200;
  filter: drop-shadow(0 0 6px rgba(255, 162, 0, 0.8));
}

/* 6. Living Haunted Vignette (Heartbeat pulse) */
.halloween-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.85), inset 0 0 170px rgba(80, 0, 20, 0.4);
  animation: horrorVignettePulse 5s ease-in-out infinite alternate;
  mix-blend-mode: multiply;
}

@keyframes horrorVignettePulse {
  0% {
    box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.8), inset 0 0 140px rgba(60, 0, 15, 0.3);
  }
  50% {
    box-shadow: inset 0 0 130px rgba(0, 0, 0, 0.95), inset 0 0 210px rgba(120, 0, 30, 0.55);
  }
  100% {
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.85), inset 0 0 160px rgba(70, 0, 20, 0.35);
  }
}

/* 6b. Demonic Interactive Slit Eyes with Pupil Tracking */
.spooky-eyes {
  position: fixed;
  width: 52px;
  height: 20px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 45;
  display: flex;
  gap: 16px;
  opacity: 0;
  transform: scaleY(0.1);
  transition: opacity 0.8s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s;
}

.spooky-eyes.is-visible {
  opacity: 0.95;
  transform: scaleY(1);
}

.spooky-eyes.is-blinking {
  transform: scaleY(0.08);
}

.spooky-eyes.is-spooked {
  transform: scale(1.5) scaleY(1.3);
  opacity: 0;
  filter: hue-rotate(-50deg) brightness(3);
  transition: all 0.35s ease-out;
}

.spooky-eye {
  width: 17px;
  height: 15px;
  background: radial-gradient(ellipse at center, #ffff44 0%, #ff5500 50%, #660000 100%);
  border-radius: 50% 50% 35% 35%;
  box-shadow: 0 0 18px #ff4500, 0 0 35px #ff0000, inset 0 0 6px #330000;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 0, 0, 0.5);
}

.spooky-eye-pupil {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 12px;
  background: #050000;
  border-radius: 50%;
  box-shadow: 0 0 3px #000;
  transform: translate(calc(-50% + var(--pupil-x, 0px)), calc(-50% + var(--pupil-y, 0px)));
  transition: transform 0.08s ease-out;
}

.spooky-eye-vein {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(160, 0, 0, 0.35) 3.5px, transparent 4px);
  pointer-events: none;
}

/* 6c. Creepy Crawling Background Spider */
.halloween-crawling-spider {
  position: fixed;
  width: 48px;
  height: 48px;
  pointer-events: auto;
  cursor: grab;
  z-index: 46;
  opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(255, 69, 0, 0.7));
  transition: transform 0.35s linear, opacity 0.5s ease;
  user-select: none;
}

.halloween-crawling-spider:hover {
  filter: drop-shadow(0 0 25px #ff0000) drop-shadow(0 0 40px #ff3300);
}

/* 6d. Spectral Phantom Silhouette */
.halloween-phantom {
  position: fixed;
  bottom: 8%;
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  width: 140px;
  height: 220px;
  filter: drop-shadow(0 0 45px rgba(157, 78, 221, 0.7)) blur(1px);
  transition: opacity 2.8s ease-in-out, transform 14s linear;
}

.halloween-phantom.is-haunting {
  opacity: 0.32;
}

/* 6e. Screen Horror Glitch (Synchronized with lightning) */
.halloween-horror-glitch {
  animation: horrorScreenGlitch 0.22s steps(2) forwards;
}

@keyframes horrorScreenGlitch {
  0% { transform: translate(0, 0); filter: none; }
  25% { transform: translate(-3px, 2px); filter: invert(0.18) drop-shadow(4px 0 #ff003c); }
  50% { transform: translate(3px, -2px); filter: contrast(1.7) drop-shadow(-4px 0 #9d4edd); }
  75% { transform: translate(-2px, -1px); filter: brightness(1.5); }
  100% { transform: translate(0, 0); filter: none; }
}

/* 6f. Jumpscare Screamer Overlay (Easter egg) */
.halloween-jumpscare-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(12, 0, 0, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.06s ease-in;
}

.halloween-jumpscare-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
  animation: screamerFlash 0.38s ease-out forwards;
}

@keyframes screamerFlash {
  0% { transform: scale(0.65); filter: contrast(3.5) brightness(2.2) drop-shadow(0 0 60px #ff0000); }
  35% { transform: scale(1.18); filter: contrast(4) brightness(2.6) drop-shadow(0 0 110px #ff0000); }
  75% { transform: scale(1.05); opacity: 0.95; }
  100% { transform: scale(1.25); opacity: 0; }
}

.halloween-jumpscare-face {
  width: 280px;
  height: 280px;
  fill: #ff1100;
  filter: drop-shadow(0 0 50px #ff0000) drop-shadow(0 0 100px #ff5500);
}

.halloween-jumpscare-text {
  font-family: 'Consolas', monospace;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #ff3333;
  text-shadow: 0 0 25px #ff0000, 0 0 50px #ff0000;
  margin-top: 18px;
  text-transform: uppercase;
}

/* 7. Ghostly Ground Fog / Mist */
.halloween-fog-layer {
  position: fixed;
  bottom: -40px;
  left: 0;
  width: 200%;
  height: 180px;
  pointer-events: none;
  z-index: 32;
  opacity: 0.22;
  background: radial-gradient(ellipse at 30% 80%, rgba(157, 78, 221, 0.45) 0%, transparent 65%),
              radial-gradient(ellipse at 70% 80%, rgba(255, 107, 8, 0.4) 0%, transparent 65%);
  filter: blur(28px);
  animation: fogDrift 28s linear infinite alternate;
}

@keyframes fogDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-40%); }
}

/* 8. Distant Lightning Flash */
.halloween-lightning {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 25;
  background: radial-gradient(ellipse at 75% 15%, rgba(199, 125, 255, 0.45), transparent 75%);
  opacity: 0;
  animation: lightningStrike 24s infinite ease-in-out;
}

@keyframes lightningStrike {
  0%, 91%, 93%, 95%, 100% { opacity: 0; }
  92% { opacity: 0.35; }
  94% { opacity: 0.18; }
}

/* 9. Floating Wisps / Embers */
.halloween-embers-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 36;
  overflow: hidden;
}

.halloween-ember {
  position: absolute;
  bottom: -20px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff7518;
  box-shadow: 0 0 10px #ff7518, 0 0 20px #ff4500;
  animation: floatUpEmber 9s linear infinite;
}

@keyframes floatUpEmber {
  0% {
    transform: translateY(0) scale(1) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  80% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-110vh) scale(0.3) translateX(60px);
    opacity: 0;
  }
}

/* 10. Flickering Pumpkin Candle Animation */
@keyframes pumpkinFlame {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(255, 107, 8, 0.9)) drop-shadow(0 0 30px rgba(255, 69, 0, 0.6));
    transform: scale(1);
  }
  25% {
    filter: drop-shadow(0 0 8px rgba(255, 107, 8, 0.6)) drop-shadow(0 0 18px rgba(255, 69, 0, 0.4));
    transform: scale(0.98);
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(255, 107, 8, 1)) drop-shadow(0 0 45px rgba(255, 69, 0, 0.85));
    transform: scale(1.03);
  }
  75% {
    filter: drop-shadow(0 0 10px rgba(255, 107, 8, 0.7)) drop-shadow(0 0 24px rgba(255, 69, 0, 0.5));
    transform: scale(0.99);
  }
}

.pumpkin-glow {
  animation: pumpkinFlame 2.8s ease-in-out infinite;
  display: inline-block;
  vertical-align: middle;
}

/* Interactive Pumpkin Clicker */
.spooky-pumpkin-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spooky-pumpkin-btn:hover {
  transform: scale(1.3) rotate(-8deg);
  filter: drop-shadow(0 0 25px rgba(255, 69, 0, 1));
}

.spooky-pumpkin-btn:active {
  transform: scale(0.9) rotate(5deg);
}

/* 11. Halloween Promo Card */
.halloween-promo-card {
  background: linear-gradient(135deg, rgba(27, 0, 51, 0.85) 0%, rgba(217, 78, 0, 0.16) 100%);
  border: 1px solid rgba(255, 107, 8, 0.45);
  border-radius: 22px;
  padding: 26px 32px;
  margin: 32px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 12px 50px rgba(255, 107, 8, 0.2), inset 0 0 30px rgba(157, 78, 221, 0.1);
  position: relative;
  overflow: hidden;
}

.halloween-promo-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -25%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 107, 8, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.halloween-promo-card__left {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 600px;
}

.halloween-promo-card__icon {
  font-size: 3.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 15px rgba(255, 107, 8, 0.7));
}

.halloween-promo-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.halloween-promo-card__desc {
  font-size: 0.92rem;
  color: #c9c2db;
  line-height: 1.55;
}

.halloween-copy-btn {
  background: linear-gradient(135deg, #ff6b08 0%, #9d4edd 100%);
  color: #05030c;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  padding: 12px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  box-shadow: 0 0 25px rgba(255, 107, 8, 0.45);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
}

.halloween-copy-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 38px rgba(255, 107, 8, 0.75);
}

/* ══════════════════════════════════════════════════════════════
   13. SPOOKY AUTO HALLOWEEN PROMO MODAL ("Красиво и крипово")
   ══════════════════════════════════════════════════════════════ */
body.halloween-modal-locked {
  overflow: hidden !important;
}

.halloween-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8, 2, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.halloween-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.halloween-modal-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 8, 0.28) 0%, rgba(157, 78, 221, 0.18) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: pulseBlob1 6s ease-in-out infinite alternate;
}

.halloween-modal-panel {
  position: relative;
  max-width: 520px;
  width: 100%;
  background: linear-gradient(170deg, #1d092c 0%, #0e0319 60%, #1e0510 100%);
  border: 2px solid rgba(255, 107, 8, 0.55);
  border-radius: 24px;
  box-shadow: 0 0 60px rgba(255, 107, 8, 0.45), 0 0 120px rgba(157, 78, 221, 0.3), inset 0 0 45px rgba(255, 107, 8, 0.08);
  padding: 36px 30px 30px;
  text-align: center;
  overflow: hidden;
  transform: scale(0.88) translateY(25px);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.halloween-modal-backdrop.is-open .halloween-modal-panel {
  transform: scale(1) translateY(0);
}

.halloween-modal-cobweb {
  position: absolute;
  width: 80px;
  height: 80px;
  pointer-events: none;
  opacity: 0.7;
}
.halloween-modal-cobweb--tl {
  top: 0;
  left: 0;
}
.halloween-modal-cobweb--tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.halloween-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 8, 0.35);
  background: rgba(26, 10, 42, 0.8);
  color: #c9c2db;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
}

.halloween-modal-close:hover {
  background: #ff6b08;
  color: #05030c;
  border-color: #ff6b08;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 16px #ff6b08;
}

.halloween-modal-icon {
  font-size: 3.2rem;
  line-height: 1;
  margin-bottom: 8px;
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

.halloween-modal-badge {
  display: inline-block;
  background: rgba(255, 107, 8, 0.15);
  color: #ff9e00;
  border: 1px solid rgba(255, 107, 8, 0.45);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 0 12px rgba(255, 107, 8, 0.25);
}

.halloween-modal-title {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
  background: linear-gradient(135deg, #ffffff 10%, #ff9e00 65%, #ff5400 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 107, 8, 0.35);
}

.halloween-modal-subtitle {
  font-size: 0.95rem;
  color: #c7bed8;
  line-height: 1.55;
  margin: 0 0 22px;
}

.halloween-modal-code-card {
  background: #090212;
  border: 2px dashed rgba(255, 107, 8, 0.7);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 22px;
  box-shadow: inset 0 0 25px rgba(255, 107, 8, 0.15), 0 0 25px rgba(255, 107, 8, 0.15);
  position: relative;
}

.halloween-modal-code-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #ff9e00;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.halloween-modal-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.halloween-modal-code {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ff7518;
  text-shadow: 0 0 14px rgba(255, 117, 24, 0.8), 0 0 28px rgba(255, 117, 24, 0.4);
  padding: 4px 14px;
  background: rgba(255, 107, 8, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 8, 0.4);
  user-select: all;
  animation: codePulse 3s ease-in-out infinite alternate;
}

@keyframes codePulse {
  0% { transform: scale(1); text-shadow: 0 0 12px rgba(255, 117, 24, 0.7); }
  100% { transform: scale(1.03); text-shadow: 0 0 22px rgba(255, 117, 24, 1), 0 0 35px #ff5400; }
}

.halloween-modal-copy-btn {
  background: linear-gradient(135deg, #2a0b45 0%, #160326 100%);
  border: 1px solid rgba(255, 107, 8, 0.6);
  color: #ff9e00;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(255, 107, 8, 0.25);
}

.halloween-modal-copy-btn:hover {
  background: #ff6b08;
  color: #05030c;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 107, 8, 0.7);
}

.halloween-modal-timer {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #a49ab9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.halloween-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.halloween-modal-apply-btn {
  background: linear-gradient(135deg, #ff6b08 0%, #d90429 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 30px rgba(255, 107, 8, 0.55), 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.halloween-modal-apply-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 45px rgba(255, 107, 8, 0.85);
  background: linear-gradient(135deg, #ff7518 0%, #ef233c 100%);
}

.halloween-modal-later-btn {
  background: transparent;
  border: none;
  color: #8c82a2;
  font-size: 0.86rem;
  padding: 8px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.halloween-modal-later-btn:hover {
  color: #fff;
  text-decoration: underline;
}

/* Flash animation for pricing cards on apply */
.halloween-pricing-highlight {
  animation: spookyPricingPulse 2.4s ease-out;
}

@keyframes spookyPricingPulse {
  0% {
    outline: 4px solid #ff6b08;
    box-shadow: 0 0 60px rgba(255, 107, 8, 0.9);
  }
  50% {
    outline: 3px solid #9d4edd;
    box-shadow: 0 0 40px rgba(157, 78, 221, 0.7);
  }
  100% {
    outline: 1px solid transparent;
    box-shadow: none;
  }
}

@media (max-width: 600px) {
  .halloween-modal-panel {
    padding: 26px 18px 20px;
  }
  .halloween-modal-title {
    font-size: 1.35rem;
  }
  .halloween-modal-code {
    font-size: 1.3rem;
  }
  .halloween-modal-apply-btn {
    font-size: 0.95rem;
    padding: 12px 18px;
  }
}
