#oasis-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #191613;
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

#oasis-preloader::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.13) 0%, transparent 70%);
    animation: pl-breathe 2.8s ease-in-out infinite;
    pointer-events: none;
}

.pl-circle-wrap {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pl-ring-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid transparent;
    background:
        linear-gradient(#191613, #191613) padding-box,
        conic-gradient(from 0deg, #F59E0B 0%, #FB923C 30%, transparent 60%, transparent 100%) border-box;
    animation: pl-spin 2.4s linear infinite;
}

.pl-ring-inner {
    position: absolute;
    width: 230px;
    height: 230px;
    top: calc(50% - 115px);
    left: calc(50% - 115px);
    border-radius: 50%;
    border: 1px solid transparent;
    background:
        linear-gradient(#191613, #191613) padding-box,
        conic-gradient(from 180deg, #FBBF24 0%, transparent 45%, transparent 100%) border-box;
    animation: pl-spin-reverse 3.6s linear infinite;
    opacity: 0.5;
}

.pl-gif-wrap {
    position: relative;
    z-index: 1;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 24px rgba(245, 158, 11, 0.45));
    animation: pl-float 3s ease-in-out infinite;
}

.pl-gif-wrap img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.pl-wordmark {
    margin-top: 2.25rem;
    font-family: 'oasis', 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #F59E0B 0%, #FB923C 60%, #FBBF24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pl-fade-in 0.8s ease 0.2s both;
}

.pl-tagline {
    margin-top: 0.4rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #b1945f;
    opacity: 0.75;
    animation: pl-fade-in 0.8s ease 0.5s both;
}

.pl-progress-track {
    margin-top: 1.75rem;
    width: 160px;
    height: 2px;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.12);
    overflow: hidden;
    animation: pl-fade-in 0.6s ease 0.3s both;
}

.pl-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #F59E0B, #FB923C, #FBBF24);
    transition: width 0.2s ease;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.pl-dots {
    display: flex;
    gap: 6px;
    margin-top: 1.2rem;
    animation: pl-fade-in 0.6s ease 0.6s both;
}

.pl-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #F59E0B;
    opacity: 0.3;
    animation: pl-dot-pulse 1.4s ease-in-out infinite;
}
.pl-dot:nth-child(2) { animation-delay: 0.2s; }
.pl-dot:nth-child(3) { animation-delay: 0.4s; }

#oasis-preloader.pl-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
/* Yes man, this is my sexy Animation */
@keyframes pl-spin {
    to { transform: rotate(360deg); }
}
@keyframes pl-spin-reverse {
    to { transform: rotate(-360deg); }
}
@keyframes pl-breathe {
    0%, 100% { transform: scale(1);    opacity: 0.6; }
    50%       { transform: scale(1.15); opacity: 1;   }
}
@keyframes pl-float {
    0%, 100% { transform: translateY(0px);   }
    50%       { transform: translateY(-7px); }
}
@keyframes pl-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}
@keyframes pl-dot-pulse {
    0%, 100% { opacity: 0.25; transform: scale(1);    }
    50%       { opacity: 1;   transform: scale(1.35); }
}

body.light-mode #oasis-preloader {
    background: #ffe8b8;
}
body.light-mode #oasis-preloader::before {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
}
body.light-mode .pl-ring-outer {
    background:
        linear-gradient(#ffe8b8, #ffe8b8) padding-box,
        conic-gradient(from 0deg, #F59E0B 0%, #b45309 30%, transparent 60%, transparent 100%) border-box;
}
body.light-mode .pl-ring-inner {
    background:
        linear-gradient(#ffe8b8, #ffe8b8) padding-box,
        conic-gradient(from 180deg, #FBBF24 0%, transparent 45%, transparent 100%) border-box;
}
body.light-mode .pl-tagline {
    color: #8b6914;
}
body.light-mode .pl-progress-track {
    background: rgba(63, 49, 33, 0.12);
}
