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

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

.global-loading-card {
  width: min(92vw, 360px);
  padding: 28px 24px 24px;
  text-align: center;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.global-loading-moe-logo {
  display: block;
  width: min(180px, 72%);
  max-height: 92px;
  object-fit: contain;
  margin: 0 auto 22px;
}

.global-loading-talent-loader {
  position: relative;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  margin: 0 auto 18px;
}

.global-loading-talent-loader::before {
  position: absolute;
  inset: 0;
  content: "";
  border: 3px solid rgba(16, 120, 85, 0.16);
  border-top-color: #107855;
  border-inline-start-color: #107855;
  border-radius: 50%;
  animation: globalLoadingRotate 1s linear infinite;
}

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

.global-loading-text {
  display: inline-flex;
  gap: 1px;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  direction: ltr;
  unicode-bidi: isolate;
}

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

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

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

.global-loading-message {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: #64748b;
}

body.global-loading-scroll-lock {
  overflow: hidden;
}

@keyframes globalLoadingRotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes globalLoadingDot {
  0%,
  80%,
  100% {
    opacity: 0.35;
  }

  40% {
    opacity: 1;
  }
}

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

  .global-loading-card {
    width: min(94vw, 320px);
    padding: 24px 18px 22px;
  }

  .global-loading-moe-logo {
    width: min(158px, 74%);
    margin-bottom: 20px;
  }

  .global-loading-talent-loader {
    width: 112px;
    height: 112px;
    margin-bottom: 16px;
  }

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

  .global-loading-message {
    font-size: 0.8125rem;
  }
}
