/* === ENHANCED STYLES v2 === */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #00e5ff, #ff3d8a);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(0,229,255,0.5);
}

/* Live viewers badge */
.live-viewers {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: rgba(18, 18, 26, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 50px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
  font-size: 13px;
  color: #a0a0b8;
  animation: fadeInUp 0.5s ease;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #00e5ff;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,229,255,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(0,229,255,0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Exit-intent popup */
.exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.exit-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.exit-popup {
  background: #0a0a0b;
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 20px;
  padding: 40px;
  max-width: 420px;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.exit-popup-overlay.active .exit-popup {
  transform: scale(1);
}
.exit-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #6a6a80;
  font-size: 24px;
  cursor: pointer;
}
.exit-popup-emoji {
  font-size: 48px;
  margin-bottom: 16px;
}
.exit-popup h2 {
  font-size: 24px;
  margin: 0 0 8px;
  color: #f0f0f5;
}
.exit-popup p {
  color: #a0a0b8;
  margin: 0 0 20px;
  font-size: 14px;
}
.exit-popup .promo-code {
  display: inline-block;
  background: rgba(0,229,255,0.1);
  border: 1px dashed #00e5ff;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 20px;
  font-weight: 800;
  color: #00e5ff;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.exit-popup .btn {
  width: 100%;
}

/* Confetti canvas */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}

/* Ripple effect */
.btn {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* 3D tilt on product cards */
.product-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Typing cursor */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: #00e5ff;
  margin-left: 4px;
  animation: blinkCursor 0.8s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blinkCursor {
  50% { opacity: 0; }
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 12px;
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  height: 260px;
  border-radius: 16px;
}

/* Promo banner */
.promo-banner {
  background: linear-gradient(90deg, rgba(0,229,255,0.08), rgba(255,61,138,0.08), rgba(0,229,255,0.08));
  border-bottom: 1px solid rgba(0,229,255,0.15);
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  color: #a0a0b8;
  position: relative;
  overflow: hidden;
}
.promo-banner b {
  color: #00e5ff;
}
.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.05), transparent);
  animation: promoSweep 3s ease-in-out infinite;
}
@keyframes promoSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.promo-banner .promo-timer-inline {
  color: #ff3d8a;
  font-weight: 700;
}

/* Telegram widget */
.tg-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
}
.tg-widget-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0088cc, #005f8f);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,136,204,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tg-widget-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0,136,204,0.6);
}
.tg-widget-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* Mobile sticky buy */
@media (max-width: 768px) {
  .live-viewers {
    bottom: 16px;
    left: 16px;
    font-size: 11px;
    padding: 8px 14px;
  }
  .tg-widget {
    bottom: 16px;
    right: 16px;
  }
  .exit-popup {
    margin: 16px;
    padding: 28px;
  }
}

/* Toast notification */
.toast {
  position: fixed;
  top: 80px;
  right: 24px;
  background: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 12px;
  padding: 14px 20px;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #f0f0f5;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 300px;
}
.toast.show {
  transform: translateX(0);
}
.toast-icon {
  font-size: 20px;
}
