/* ===========================
   Global Page Loader
   =========================== */

.sn-page-loader {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(120, 197, 255, 0.18), transparent 55%),
                radial-gradient(circle at bottom, rgba(239, 68, 255, 0.18), transparent 55%),
                #020617;
    backdrop-filter: blur(12px);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.sn-page-loader.sn-page-loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.sn-loader-core {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sn-loader-orbit {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 255, 0.35);
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.8);
    animation: sn-orbit-spin 2.7s linear infinite;
    backdrop-filter: blur(4px);
}

.sn-orbit-1 {
    width: 120px;
    height: 120px;
    border-top-color: rgba(56, 189, 248, 0.9);
}

.sn-orbit-2 {
    width: 90px;
    height: 90px;
    border-right-color: rgba(244, 114, 182, 0.9);
    animation-duration: 2s;
    animation-direction: reverse;
}

.sn-orbit-3 {
    width: 60px;
    height: 60px;
    border-bottom-color: rgba(167, 139, 250, 0.9);
    animation-duration: 1.6s;
}

.sn-loader-center {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1f2937, #020617 70%);
    box-shadow:
        0 0 12px rgba(15, 23, 42, 0.9),
        0 0 30px rgba(129, 140, 248, 0.6);
}

/* Ping Anzeige */
.sn-loader-ping {
    position: absolute;
    bottom: -52px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 255, 0.45);
    box-shadow: 0 0 14px rgba(129, 140, 248, 0.7);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    text-transform: uppercase;
    color: #e5e7eb;
}

.sn-ping-label { opacity: 0.7; }

@keyframes sn-orbit-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
