#page-loader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transition: opacity 0.4s ease;
}

#page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Animated logo text */
#page-loader .loader-brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #4ECDC4;
}

#page-loader .loader-brand span {
    color: #38b2aa;
}

/* Three bouncing dots */
#page-loader .dots {
    display: flex;
    gap: 8px;
}

#page-loader .dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ECDC4;
    animation: bounce 1.2s infinite ease-in-out;
}

#page-loader .dots span:nth-child(1) { animation-delay: 0s; }
#page-loader .dots span:nth-child(2) { animation-delay: 0.2s; }
#page-loader .dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%            { transform: scale(1.2); opacity: 1; }
}

/* Progress bar at top */
#page-loader .loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #4ECDC4, #80e8e2);
    animation: progress 1.5s ease-in-out infinite;
}

@keyframes progress {
    0%   { width: 0%;   left: 0; }
    50%  { width: 70%;  left: 0; }
    100% { width: 0%;   left: 100%; }
}