/* Modern unique loader overlay */
.xaiUniqueLoaderWrapper {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
    align-items: center;
    justify-content: center;
    background: rgba(29, 10, 14, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2147482600;
}

.xaiUniqueBounceAnim {
    position: relative;
    width: min(270px, calc(100vw - 48px));
    min-height: 178px;
    padding: 30px 26px 22px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(243, 238, 228, 0.92);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 251, 249, 0.98) 100%);
    box-shadow: 0 24px 70px rgba(22, 7, 11, 0.3);
    overflow: hidden;
}

.xaiUniqueBounceAnim::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 50%;
    width: 48px;
    height: 48px;
    margin-left: -24px;
    border-radius: 50%;
    border: 4px solid #f4eee5;
    border-top-color: #a33651;
    border-right-color: #21b6a8;
    animation: xaiSpinLoader 0.72s linear infinite;
    box-shadow: 0 8px 22px rgba(163, 54, 81, 0.12);
}

.xaiUniqueBounceAnim::after {
    content: "Loading variants";
    position: absolute;
    top: 88px;
    left: 18px;
    right: 18px;
    color: #38131c;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0;
}

.xaiUniqueBounceAnim div {
    width: 48px;
    height: 7px;
    border-radius: 999px;
    background: #f4eee5;
    animation: xaiBarPulse 0.95s ease-in-out infinite;
}

.xaiUniqueBounceAnim div:nth-child(1) {
    background: #a33651;
}

.xaiUniqueBounceAnim div:nth-child(2) {
    background: #21b6a8;
    animation-delay: 0.12s;
}

.xaiUniqueBounceAnim div:nth-child(3) {
    background: #f59e0b;
    animation-delay: 0.24s;
}

@keyframes xaiSpinLoader {
    to {
        transform: rotate(360deg);
    }
}

@keyframes xaiBarPulse {
    0%,
    100% {
        opacity: 0.42;
        transform: scaleX(0.72);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@media (max-width: 480px) {
    .xaiUniqueLoaderWrapper {
        align-items: center;
        justify-content: center;
    }

    .xaiUniqueBounceAnim {
        width: min(238px, calc(100vw - 44px));
        min-height: 164px;
        padding: 28px 22px 20px;
        border-radius: 20px;
    }

    .xaiUniqueBounceAnim::before {
        top: 24px;
        width: 44px;
        height: 44px;
        margin-left: -22px;
    }

    .xaiUniqueBounceAnim::after {
        top: 82px;
        font-size: 14px;
    }

    .xaiUniqueBounceAnim div {
        width: 42px;
        height: 6px;
    }
}
