
/* ======================================
   PRODUPNEU GLOBAL LOADING SCREEN
====================================== */

.pp-global-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: #ffffff;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 1;
    visibility: visible;

    transition:
        opacity 0.55s ease,
        visibility 0.55s ease;
}

.pp-loader-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.pp-loader-circle {
    position: relative;
    width: 126px;
    height: 126px;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated circular border */
.pp-loader-spinner {
    position: absolute;
    inset: 0;
    border-radius: 50%;

    border: 3px solid #edf0f4;
    border-top-color: #f07835;
    border-right-color: #f07835;

    animation: pp-spin 1.1s linear infinite;
}

/* Center logo */
.pp-loader-logo {
    width: 98px;
    height: 98px;

    border-radius: 50%;
    background: #142d46;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;
    box-sizing: border-box;

    box-shadow: 0 8px 28px rgba(20,45,70,0.08);
}

.pp-loader-logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* Loading text */
.pp-loader-text {
    margin: 0;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8b98a8;

    animation: pp-text-pulse 1.5s ease-in-out infinite;
}

/* Hide animation */
.pp-global-loader.pp-loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Animations */
@keyframes pp-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pp-text-pulse {
    0%, 100% {
        opacity: 0.45;
    }

    50% {
        opacity: 1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .pp-loader-circle {
        width: 108px;
        height: 108px;
    }

    .pp-loader-logo {
        width: 84px;
        height: 84px;
        padding: 14px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .pp-loader-spinner,
    .pp-loader-text {
        animation: none;
    }

    .pp-global-loader {
        transition: none;
    }
}
