:root {
    --loader-blue-primary: #00bcd4;
    --loader-blue-secondary: #0288d1;
    --loader-bg: #0f172a;
    --loader-text: #ffffff;
}

.premium-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1));
    z-index: 2147483647;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.5s ease;
    opacity: 1;
    pointer-events: all !important;
    touch-action: none;
}

.premium-loader-overlay.hiding {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gooey-container {
    width: 200px;
    height: 200px;
    position: relative;
    filter: url('#goo');
    /* The magic sauce */
    animation: containerRotate 8s linear infinite;
}

/* The fluid drops */
.drop {
    position: absolute;
    background: linear-gradient(135deg, var(--loader-blue-secondary), var(--loader-blue-primary));
    border-radius: 50%;
    transform-origin: center;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.4);
}

.drop-1 {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blobMorph 4s ease-in-out infinite;
}

.drop-2 {
    width: 40px;
    height: 40px;
    top: 30%;
    left: 40%;
    animation: orbit1 3s ease-in-out infinite;
}

.drop-3 {
    width: 30px;
    height: 30px;
    top: 60%;
    left: 70%;
    animation: orbit2 4s ease-in-out infinite;
}

.loader-text {
    margin-top: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--loader-text);
    font-size: 14px;
    text-transform: uppercase;
    animation: pulseText 2s ease-in-out infinite;
    opacity: 0.8;
}

/* Animations */
@keyframes blobMorph {

    0%,
    100% {
        width: 60px;
        height: 60px;
    }

    50% {
        width: 80px;
        height: 50px;
    }

    /* Squash and stretch */
}

@keyframes orbit1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(60px, 0) scale(0.8);
    }

    66% {
        transform: translate(30px, 60px) scale(1.2);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes orbit2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50px, -40px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

@keyframes containerRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.5;
        letter-spacing: 4px;
    }

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

/* Mobile specific optimisations */
@media (max-width: 768px) {
    .gooey-container {
        width: 150px;
        height: 150px;
    }

    .drop-1 {
        width: 50px;
        height: 50px;
    }

    .drop-2 {
        width: 35px;
        height: 35px;
    }

    .drop-3 {
        width: 25px;
        height: 25px;
    }
}