/* Live effects layer: scroll reveal, animated counters, real purchase popups, idle button glow.
   Everything is optional decoration. JS adds the lv-* classes, so with JS off the page looks normal. */

/* 1. Scroll reveal (only elements that start below the fold get lv-pre) */
.lv-pre { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--lv-d, 0s); will-change: opacity, transform; }
.lv-pre.lv-in { opacity: 1; transform: none; will-change: auto; }

/* 2. Idle glow on the main gold buttons (filter so it never fights the hover box-shadow) */
.hero .btn-gold, .cta-section .btn-gold { animation: lvGlow 3.2s ease-in-out infinite; }
.hero .btn-gold:hover, .cta-section .btn-gold:hover { animation-play-state: paused; filter: none; }
@keyframes lvGlow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(201,168,76,0)); }
    50%      { filter: drop-shadow(0 0 14px rgba(201,168,76,.55)); }
}

/* 3. Live purchase popup (real recent orders) */
.lv-pop { position: fixed; left: 14px; bottom: 16px; z-index: 9990; max-width: min(320px, calc(100vw - 100px)); display: flex; align-items: center; gap: 10px;
    padding: 10px 30px 10px 12px; border-radius: 14px; background: rgba(12,16,38,.94); color: #f3ead2; border: 1px solid rgba(201,168,76,.45);
    box-shadow: 0 10px 30px rgba(0,0,0,.45); font: 500 13px/1.3 'DM Sans', system-ui, sans-serif;
    transform: translateY(24px); opacity: 0; pointer-events: none; transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1); }
.lv-pop.lv-show { transform: none; opacity: 1; pointer-events: auto; }
.lv-pop-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: lvPulse 1.8s infinite; }
.lv-pop-text b { color: #e8c76a; font-weight: 700; }
.lv-pop-time { display: block; margin-top: 2px; font-size: 11px; opacity: .65; }
.lv-pop-x { position: absolute; top: 2px; right: 4px; width: 24px; height: 24px; border: 0; background: transparent; color: inherit; opacity: .55; font-size: 16px; line-height: 1; cursor: pointer; }
.lv-pop-x:hover { opacity: 1; }
@keyframes lvPulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 70% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }

@media (prefers-reduced-motion: reduce) {
    .lv-pre { opacity: 1; transform: none; transition: none; }
    .hero .btn-gold, .cta-section .btn-gold { animation: none; }
    .lv-pop, .lv-pop-dot { transition: none; animation: none; }
}
