/* ====== Xmas Mode (Scoped) ====== */
body.xmas-mode{
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(79, 172, 254, .14), transparent 60%),
    radial-gradient(900px 500px at 85% 10%, rgba(255, 99, 132, .10), transparent 60%),
    linear-gradient(180deg, rgba(240,248,255,.9), rgba(255,255,255,1));
}

/* subtle “frost” */
body.xmas-mode::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(240,240,255,0.2));
  backdrop-filter: blur(3px);
  pointer-events: none;
  z-index: 2;
}


/* Snow canvas */
#snow-canvas{
  position:fixed; inset:0;
  width:100%; height:100%;
  pointer-events:none;
  z-index: 999; /* above UI but non-interactive */
  opacity: .55;
  filter: drop-shadow(0 0 2px rgba(200, 200, 255, 0.6)); 
}

/* Twinkling lights strip (apply this class to your top header wrapper) */
.xmas-lights{
  position:relative;
}

.xmas-fairy-banner {
  position: absolute;
  top: 4px;
  left: 0;
  width: 100%;
  height: 56px;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  opacity: 1;
}

/* Responsive tweak for mobile */
@media (max-width: 768px) {
  .xmas-fairy-banner {
    height: 44px;
  }
}


/* ====== Modal ====== */
.xmas-modal{
  position:fixed; inset:0;
  display:none;
  align-items:center; justify-content:center;
  z-index: 1200;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}
.xmas-modal.is-open{ display:flex; }

.xmas-modal__card{
  width:min(520px, 92vw);
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
  padding: 18px 18px 16px;
  position:relative;
  transform: translateY(10px) scale(.98);
  animation: xmasPop .28s ease forwards;
}
@keyframes xmasPop{
  to{ transform: translateY(0) scale(1); }
}

.xmas-modal__close{
  position:absolute; right:10px; top:10px;
  border:none;
  width:36px; height:36px;
  border-radius: 12px;
  background: rgba(0,0,0,.06);
  cursor:pointer;
}

.xmas-badge{
  display:inline-flex;
  gap:8px;
  padding:6px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79,172,254,.18), rgba(255,99,132,.18));
  font-weight:700;
  font-size: 13px;
}

.xmas-sub{ margin:10px 0 12px; opacity:.9; line-height:1.4; }

.xmas-coupon{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius: 16px;
  border:1px dashed rgba(0,0,0,.18);
  background: rgba(255,255,255,.65);
}
.xmas-coupon code{
  font-weight:900;
  letter-spacing:1px;
  padding:6px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.06);
}

.xmas-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
}
.xmas-btn{
  flex:1;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  padding:10px 12px;
  border-radius: 16px;
  text-decoration:none;
  border: none;
  cursor:pointer;
  font-weight:800;
  background: linear-gradient(90deg, #4facfe, #ff637a, #ffb14a);
  color:#fff;
}
.xmas-btn--ghost{
  background: rgba(0,0,0,.06);
  color:#111;
}

.xmas-timer{
  margin-top:10px;
  font-size: 13px;
  opacity:.8;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  #snow-canvas{ display:none; }
  .xmas-lights::after{ animation:none; }
  .xmas-modal__card{ animation:none; }
}
