/* Site Preloader Styles */
#site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: opacity 0.35s ease-out, visibility 0.35s ease-out;
}

#site-preloader.site-preloader-fade {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-loader-topline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #f1f5f9;
    overflow: hidden;
}

.site-loader-topline-fill {
    height: 100%;
    width: 8%;
    background: linear-gradient(90deg, #2563eb 0%, #4f46e5 50%, #38bdf8 100%);
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 360px;
    width: 88%;
    padding: 24px;
}

.site-loader-logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.site-loader-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.site-loader-icon svg {
    width: 28px;
    height: 28px;
    color: #2563eb;
    animation: sitePulseIcon 2s infinite ease-in-out;
}

.site-loader-ping {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
}

.site-loader-ping-core {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background-color: #2563eb;
}

.site-loader-ping-ring {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background-color: #60a5fa;
    animation: sitePing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.site-loader-brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #09090b;
    margin-bottom: 4px;
    line-height: 1.2;
}

.site-loader-brand span {
    color: #2563eb;
}

.site-loader-status {
    font-size: 12px;
    color: #71717a;
    font-weight: 500;
    margin-bottom: 24px;
    min-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.site-loader-progress-track {
    width: 100%;
    height: 7px;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.site-loader-progress-fill {
    height: 100%;
    width: 8%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #2563eb 0%, #4f46e5 50%, #38bdf8 100%);
    background-size: 200% 100%;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    animation: siteShimmer 2s infinite linear;
}

.site-loader-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    font-size: 11px;
    font-family: "Space Mono", monospace;
    color: #a1a1aa;
    font-weight: 500;
    padding: 0 2px;
}

.site-loader-meta-percent {
    color: #2563eb;
    font-weight: 700;
}

@keyframes siteShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes sitePing {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes sitePulseIcon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}
