/* Global loader component */
@keyframes global-loader-mesh-pulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes global-loader-shimmer {
    0% { transform: translateX(-150%); }
    50% { transform: translateX(150%); }
    100% { transform: translateX(150%); }
}

@keyframes global-loader-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes global-loader-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#globalPageLoader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

#globalPageLoader.show {
    display: flex;
    opacity: 1;
}

.global-loader__mesh {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
    background-size: 200% 200%;
    animation: global-loader-mesh-pulse 8s ease infinite;
}

.global-loader__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.global-loader__orbital {
    position: relative;
    display: flex;
    width: 112px;
    height: 112px;
    align-items: center;
    justify-content: center;
}

.global-loader__ring {
    position: absolute;
    inset: -24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.global-loader__ring--active {
    border: none;
    border-top: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    animation: global-loader-spin 3s linear infinite;
}

.global-loader__glow {
    position: absolute;
    width: 160px;
    height: 160px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    filter: blur(60px);
    animation: global-loader-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.global-loader__logo {
    position: relative;
    display: flex;
    width: 112px;
    height: 112px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.global-loader__logo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: global-loader-shimmer 2.5s infinite;
}

.global-loader__logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.global-loader__details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 64px;
}

.global-loader__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.global-loader__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #3b82f6;
    animation: global-loader-pulse 1s infinite;
}

.global-loader__dot--delayed {
    animation-delay: 0.5s;
}

.global-loader__title {
    color: #3b82f6;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5em;
    text-transform: uppercase;
}

.global-loader__status {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
