#page-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Make sure loader itself doesn't lag the page */
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.4,0,0.2,1);
}
#page-loader.hide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s cubic-bezier(0.4,0,0.2,1), visibility 0s 0.15s;
}

/* Loader content instantly ready, no transform delay */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Remove transform to eliminate perceived delay */
}

/* LOGO */
.loader-logo {
    width: 70px; /* Slightly smaller = perceived snappier */
    margin: 0 0 10px 0;
}

/* TITLE */
.loader-text {
    font-weight: 600;
    color: #5b6b7a;
    margin: 0;
    font-size: 1rem;
}

/* TAGLINE */
.loader-tagline {
    font-size: 12px;
    color: #f0a03b;
    margin: 2px 0 14px 0;
    display: block;
}

/* Faster BAR ANIMATION */
.bar-loader {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 24px;
}

.bar-loader span {
    display: block;
    width: 4px;
    height: 100%;
    background-color: #94a3b8;
    border-radius: 2px;
    animation: pulse 0.6s infinite cubic-bezier(0.4,0,0.2,1);
}

/* Staggered, tighter timing for snappier visible loading */
.bar-loader span:nth-child(1) { animation-delay: 0s; }
.bar-loader span:nth-child(2) { animation-delay: .08s; }
.bar-loader span:nth-child(3) { animation-delay: .16s; }
.bar-loader span:nth-child(4) { animation-delay: .24s; }
.bar-loader span:nth-child(5) { animation-delay: .32s; }

@keyframes pulse {
    0% {
        transform: scaleY(0.3);
        opacity: 0.5;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
    100% {
        transform: scaleY(0.3);
        opacity: 0.5;
    }
}