/* Lottie Preloader v2.1 – Frontend */

#lp-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

#lp-overlay.lp-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lp-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

#lp-anim {
    max-width: 90vmin;
    max-height: 90vmin;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG fills its container */
#lp-anim svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* ── Progress bar ───────────────────────────────────────────────────────── */
#lp-progress-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 90vw;
}

#lp-bar-track {
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 99px;
    overflow: hidden;
}

#lp-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    transition: width 0.25s ease;
}

#lp-counter {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

/* Prevent scroll while preloader is active */
body.lp-loading {
    overflow: hidden;
}
