#search-loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
            rgba(236, 254, 255, 0.9),
            rgba(224, 242, 254, 0.9),
            rgba(240, 249, 255, 0.9));


    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    z-index: 9999;
    opacity: 0.5;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 300ms;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#search-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.intro-logo {
    position: absolute;
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 16px;
    opacity: 0;
    animation: introLogoAnim 2.6s ease-in-out forwards;
    z-index: 10;
}

.loader {
    display: flex;
    align-items: center;
    flex-direction: column;

}

.loader-children {
    display: flex;
    align-items: start;
    gap: 24px;
    /* background: rgba(255, 255, 255, 0.15); */
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    /* backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); */
    padding: 20px 28px;
    opacity: 0;
    transform: translateX(100px);
    animation: loaderEnter 1s ease-out 3s forwards;
}

.loader-logo .loader-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 8px;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes introLogoAnim {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    15% {
        opacity: 1;
        transform: scale(1.05);
    }

    30% {
        opacity: 1;
        transform: scale(1);
    }

    70% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 1;
        transform: translateY(-30%) scale(0.8);
    }
}

@keyframes loaderEnter {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.loader-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.loader-text .word {
    font-family: Archia, sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1;
    overflow: hidden;
}

.loader-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(-50px);
}

.loader-text .char.animate {
    animation: fallDownBounce 0.9s ease-out forwards;
}

.loader-text .char.space {
    width: 8px;
    opacity: 1;
    transform: none;
    animation: none;
}

.loader-text .word:nth-child(1) .char {
    color: #2b9fb6;
}

.loader-text .word:nth-child(2) .char {
    color: #3fbf8a;
}

.loader-text .word:nth-child(3) .char {
    color: #7fcf6b;
}

@keyframes fallDownBounce {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    60% {
        opacity: 1;
        transform: translateY(10px);
    }

    80% {
        transform: translateY(-4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

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

    50% {
        transform: scale(1.08);
    }
}

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: floatParticles 15s linear infinite;
}

.particles span:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.particles span:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 22s;
}

.particles span:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
}

.particles span:nth-child(4) {
    left: 40%;
    animation-delay: 1s;
    animation-duration: 15s;
}

.particles span:nth-child(5) {
    left: 50%;
    animation-delay: 6s;
}

.particles span:nth-child(6) {
    left: 60%;
    animation-delay: 3s;
    animation-duration: 20s;
}

.particles span:nth-child(7) {
    left: 70%;
    animation-delay: 7s;
}

.particles span:nth-child(8) {
    left: 80%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.particles span:nth-child(9) {
    left: 90%;
    animation-delay: 8s;
}

.particles span:nth-child(10) {
    left: 95%;
    animation-delay: 10s;
    animation-duration: 25s;
}

@keyframes floatParticles {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-20vh) scale(1);
        opacity: 0;
    }
}

@media (max-width: 520px) {

    .loader-children {
        padding: 16px;
        gap: 16px;
    }

    .loader-logo .loader-img {
        width: 120px;
        height: 120px;
    }

    .loader-text .word {
        font-size: 25px;
    }
}

.main-content {
    padding: 80px 20px;
    text-align: center;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    min-height: 100vh;
}



.loading-dots {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 28px;
}

.dot {
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.3;
    animation: pulseDot 1s infinite ease-in-out;

    transform: translateZ(0);
    /* hoặc backface-visibility: hidden; */
    will-change: transform;
}

.dot:nth-child(1) {
    animation-delay: 0s;
    background-color: #2b9fb6;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
    background-color: #3fbf8a;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
    background-color: #7fcf6b;
}

.dot:nth-child(4) {
    animation-delay: 0.6s;
    background-color: #3fbf8a;
}

.dot:nth-child(5) {
    animation-delay: 0.8s;
    background-color: #2b9fb6;
}


@keyframes pulseDot {

    0%,
    100% {
        transform: scale(0.5);
        opacity: 0.5;
    }

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