/* ─── RadinexAI Premium Branded Favicon Preloader ─── */
#radinex-page-loader {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0f1c2e 0%, #070c14 100%);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

#radinex-page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.radinex-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: radinexContentFadeIn 0.4s ease-out forwards;
}

.radinex-loader-ring {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.radinex-loader-ring-spin {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: #10b981;
  border-right-color: #059669;
  animation: radinexSpin 1.1s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.radinex-loader-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(16, 28, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px;
  filter: drop-shadow(0 4px 16px rgba(16, 185, 129, 0.4));
  animation: radinexPulse 1.8s ease-in-out infinite;
}

.radinex-loader-brand {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.radinex-loader-brand span {
  color: #10b981;
}

.radinex-loader-sub {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.radinex-loader-bar {
  width: 150px;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.radinex-loader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 99px;
  animation: radinexBarMove 1.4s ease-in-out infinite;
}

@keyframes radinexSpin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes radinexPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 14px rgba(16, 185, 129, 0.35));
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 8px 24px rgba(16, 185, 129, 0.55));
  }
}

@keyframes radinexBarMove {
  0% {
    left: -45%;
    width: 30%;
  }
  50% {
    width: 60%;
  }
  100% {
    left: 100%;
    width: 30%;
  }
}

@keyframes radinexContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
