/* ============================================================
   CHRISTMAS EFFECTS CSS — FULL FILE
   "christmas-" prefix use kiya hai taaki koi conflict na ho
   ============================================================ */


/* ============================================================
   1. SNOW CANVAS
   ============================================================ */
#snow-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 1 !important;
}


/* ============================================================
   2. POPUP OVERLAY
   ============================================================ */
.christmas-popup-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.65) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999999 !important;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  margin: 0 !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.christmas-popup-overlay.christmas-hide {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* ============================================================
   3. POPUP BOX
   ============================================================ */
.christmas-popup-box {
  position: relative !important;
  background: linear-gradient(145deg, #0f3d2e, #145c3a) !important;
  border: 2px solid #d4af37 !important;
  border-radius: 20px !important;
  padding: 40px 36px 46px 36px !important;
  text-align: center !important;
  max-width: 420px !important;
  width: 90% !important;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.55) !important;
  animation: christmasPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  font-family: 'Segoe UI', Arial, sans-serif !important;
}

@keyframes christmasPopIn {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}


/* ============================================================
   4. POPUP CLOSE (X) BUTTON — top-right corner
   ============================================================ */
.christmas-popup-box .christmas-popup-close {
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #d4af37 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease !important;
  font-family: Arial, sans-serif !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
}

.christmas-popup-box .christmas-popup-close:hover {
  background: rgba(212, 175, 55, 0.25) !important;
  color: #fff !important;
  transform: rotate(90deg) !important;
}

.christmas-popup-box .christmas-popup-close:active {
  transform: scale(0.9) rotate(90deg) !important;
}


/* ============================================================
   5. SANTA ICON (emoji)
   ============================================================ */
.christmas-popup-box .christmas-icon {
  font-size: 4rem !important;
  display: block !important;
  margin-bottom: 10px !important;
  line-height: 1 !important;
  animation: christmasGlow 1.4s infinite alternate !important;
}

@keyframes christmasGlow {
  from { filter: drop-shadow(0 0 6px #d4af37); }
  to   { filter: drop-shadow(0 0 22px #ff4444); }
}


/* ============================================================
   6. TITLE
   ============================================================ */
.christmas-popup-box .christmas-title {
  font-size: 2rem !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  background: linear-gradient(90deg, #d4af37, #ff4444) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}


/* ============================================================
   7. TEXT
   ============================================================ */
.christmas-popup-box .christmas-text {
  color: #e0f5e9 !important;
  margin: 0 0 22px 0 !important;
  padding: 0 !important;
  line-height: 1.6 !important;
  font-size: 1rem !important;
}


/* ============================================================
   8. POPUP BUTTON
   ============================================================ */
.christmas-popup-box .christmas-btn {
  background: linear-gradient(90deg, #d4af37, #ff4444) !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 34px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  font-family: inherit !important;
  display: inline-block !important;
}

.christmas-popup-box .christmas-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 68, 68, 0.7) !important;
}


/* ============================================================
   9. 10 SECOND TIMER BAR
   ============================================================ */
.christmas-popup-box .christmas-timer-bar {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  height: 5px !important;
  width: 100% !important;
  background: linear-gradient(90deg, #d4af37, #ff4444) !important;
  border-radius: 0 0 18px 18px !important;
  transform-origin: left center !important;
  animation: christmasShrink 10s linear forwards !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

@keyframes christmasShrink {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}


/* ============================================================
   10. RIGHT-BOTTOM TOGGLE BUTTON
   ============================================================ */
.christmas-close-anim-btn {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  padding: 11px 22px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: 'Segoe UI', Arial, sans-serif !important;
  color: #fff !important;
  background: linear-gradient(90deg, #d4af37, #ff4444) !important;
  border: 2px solid #d4af37 !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  z-index: 2147483647 !important;
  box-shadow: 0 4px 18px rgba(255, 68, 68, 0.55) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease, background 0.3s ease !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  line-height: 1.2 !important;
  transform: none !important;
  text-transform: none !important;
  outline: none !important;
  box-sizing: border-box !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
}

.christmas-close-anim-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 24px rgba(255, 68, 68, 0.85) !important;
}

.christmas-close-anim-btn:active {
  transform: translateY(-1px) scale(0.97) !important;
}

.christmas-close-anim-btn.christmas-btn-off {
  opacity: 0.85 !important;
  background: linear-gradient(90deg, #a0a0a0, #7a7a7a) !important;
  border-color: #a0a0a0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}


/* ============================================================
   11. MOBILE — POPUP + CLOSE adjustments
   ============================================================ */
@media (max-width: 480px) {
  .christmas-popup-box {
    padding: 30px 22px 40px 22px !important;
  }
  .christmas-popup-box .christmas-icon {
    font-size: 3rem !important;
  }
  .christmas-popup-box .christmas-title {
    font-size: 1.6rem !important;
  }
  .christmas-popup-box .christmas-text {
    font-size: 0.95rem !important;
  }
  .christmas-popup-box .christmas-popup-close {
    width: 28px !important;
    height: 28px !important;
    font-size: 19px !important;
    top: 8px !important;
    right: 10px !important;
  }
}


/* ============================================================
   12. MOBILE — RIGHT-BOTTOM BUTTON fix
   ============================================================ */
@media (max-width: 768px) {
  .christmas-close-anim-btn {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    right: 14px !important;
    top: auto !important;
    left: auto !important;
    padding: 10px 16px !important;
    font-size: 12.5px !important;
    border-radius: 50px !important;
    max-width: calc(100vw - 28px) !important;
  }
}

@media (max-width: 380px) {
  .christmas-close-anim-btn {
    padding: 9px 13px !important;
    font-size: 11.5px !important;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .christmas-close-anim-btn {
    bottom: 10px !important;
    right: 10px !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
  }
}