.global-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: all;
    user-select: none;
    direction: rtl;
}

.global-loading-overlay.is-active {
    display: flex;
}

body.global-loading-active {
    overflow: hidden;
}

.global-loading-card {
    width: min(360px, 100%);
    border: 1px solid rgba(219, 228, 240, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    padding: 28px 26px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.global-loading-moe-logo {
    width: min(148px, 48vw);
    max-height: 78px;
    object-fit: contain;
}

.global-loading-talent-loader {
    width: 132px;
    height: 132px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.global-loading-talent-loader::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(203, 213, 225, 0.9);
    border-top-color: #0f766e;
    border-left-color: #0f766e;
    animation: global-loading-rotate 1s linear infinite;
}

.global-loading-talent-logo {
    width: 82px;
    max-height: 82px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.global-loading-text {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0;
}

.global-loading-dots span {
    animation: global-loading-dot 1.25s ease-in-out infinite;
}

.global-loading-dots span:nth-child(2) {
    animation-delay: 0.16s;
}

.global-loading-dots span:nth-child(3) {
    animation-delay: 0.32s;
}

.global-loading-message {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.8;
    margin-top: -6px;
}

@keyframes global-loading-rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes global-loading-dot {
    0%,
    80%,
    100% {
        opacity: 0.25;
    }

    40% {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .global-loading-overlay {
        padding: 14px;
    }

    .global-loading-card {
        padding: 24px 18px 22px;
        gap: 14px;
    }

    .global-loading-moe-logo {
        width: min(134px, 52vw);
        max-height: 70px;
    }

    .global-loading-talent-loader {
        width: 116px;
        height: 116px;
    }

    .global-loading-talent-logo {
        width: 74px;
        max-height: 74px;
    }
}

@media print {
    .global-loading-overlay {
        display: none !important;
    }

    body.global-loading-active {
        overflow: visible !important;
    }
}
