
.loader-container, .loader-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    background: var(--brand-ink) !important;
    overflow: hidden;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
} 

.loader-container {
    width: 100vw;
    height: 70vh;
    position: relative;
    background: radial-gradient(ellipse at center, var(--brand-primary) 0%, var(--brand-ink) 70%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Star field */
.stars {
    position: absolute;
    inset: 0;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Central orbital system */
.orbit-system {
    position: relative;
    width: 280px;
    height: 280px;
}

.core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    background: radial-gradient(circle, var(--brand-surface) 0%, var(--brand-accent) 40%, var(--brand-accent) 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--brand-accent), 0 0 40px var(--brand-accent), 0 0 80px var(--brand-accent), 0 0 120px var(--brand-accent);
    animation: core-pulse 2.4s ease-in-out infinite;
}

@keyframes core-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1.5px solid transparent;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 90px;
    height: 90px;
    border-top-color: var(--brand-accent);
    border-right-color: rgb(var(--brand-accent-rgb) / 0.3);
    animation: spin 3s linear infinite;
}

.ring-2 {
    width: 140px;
    height: 140px;
    border-bottom-color: var(--brand-soft);
    border-left-color: rgb(var(--brand-soft-rgb) / 0.4);
    animation: spin 4.5s linear infinite reverse;
}

.ring-3 {
    width: 200px;
    height: 200px;
    border-top-color: var(--brand-accent);
    border-right-color: rgb(var(--brand-accent-rgb) / 0.25);
    animation: spin 6s linear infinite;
}

.ring-4 {
    width: 260px;
    height: 260px;
    border: 1px solid rgb(var(--brand-accent-rgb) / 0.15);
    animation: spin 12s linear infinite reverse;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Orbiting particles */
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--brand-accent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    box-shadow: 0 0 10px var(--brand-accent), 0 0 20px var(--brand-accent);
}

.p1 {
    animation: orbit1 3s linear infinite;
}

.p2 {
    animation: orbit2 4.5s linear infinite;
}

.p3 {
    animation: orbit3 6s linear infinite;
}

.p4 {
    animation: orbit4 8s linear infinite reverse;
}

@keyframes orbit1 {
    from {
        transform: rotate(0deg) translateX(45px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(45px) rotate(-360deg);
    }
}

@keyframes orbit2 {
    from {
        transform: rotate(0deg) translateX(70px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(70px) rotate(-360deg);
    }
}

@keyframes orbit3 {
    from {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

@keyframes orbit4 {
    from {
        transform: rotate(0deg) translateX(130px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(130px) rotate(-360deg);
    }
}

/* Horizontal energy beams */
.beam {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
    top: 50%;
    left: 0;
    width: 100%;
    opacity: 0.4;
    animation: beam-pulse 3s ease-in-out infinite;
}

    .beam:nth-child(2) {
        top: 42%;
        animation-delay: 0.5s;
        opacity: 0.25;
    }

    .beam:nth-child(3) {
        top: 58%;
        animation-delay: 1s;
        opacity: 0.25;
    }

@keyframes beam-pulse {
    0%, 100% {
        opacity: 0.15;
        transform: scaleX(0.7);
    }

    50% {
        opacity: 0.6;
        transform: scaleX(1);
    }
}

/* Loading text */
.loading-text {
    position: absolute;
    bottom: 18%;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 13px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--brand-accent);
    text-shadow: 0 0 12px var(--brand-accent);
    animation: text-glow 2s ease-in-out infinite;
}

@keyframes text-glow {
    0%, 100% {
        opacity: 0.6;
        letter-spacing: 6px;
    }

    50% {
        opacity: 1;
        letter-spacing: 8px;
    }
}

/* Soft vignette */
.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}
