/* Professional, stable loader styles */
.loading-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(1200px 400px at 10% 10%, rgba(255,107,53,0.12), transparent 60%),
    radial-gradient(1000px 400px at 90% 90%, rgba(230,122,43,0.12), transparent 60%),
    #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  will-change: opacity, visibility;
}

.loading-screen.hidden { opacity: 0; visibility: hidden; }

.loading-content {
  text-align: center;
  color: #ffffff;
  padding: 24px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.loading-logo { margin-bottom: 16px; }

/* Branded ring spinner with smooth motion */
.logo-spinner {
  --ring-size: 84px;
  --ring-border: 8px;
  width: var(--ring-size);
  height: var(--ring-size);
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.logo-spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(#FF6B35 0 25%, #E55A2B 25% 50%, transparent 50% 100%);
  animation: spin 1.2s linear infinite;
}
.logo-spinner::after {
  content: "";
  position: absolute;
  inset: calc(var(--ring-border));
  border-radius: inherit;
  background: #111111;
}
.logo-spinner img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  position: relative;
  z-index: 1;
}

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

/* Minimal, readable texts */
.loading-text h3 { font-size: 1.25rem; margin: 0 0 6px; }
.loading-text p { margin: 0 0 14px; color: rgba(255,255,255,0.75); }

/* Progress bar with stripes for perceived progress */
.loading-progress { width: 240px; height: 6px; background: rgba(255,255,255,0.18); border-radius: 3px; overflow: hidden; margin: 0 auto; }
.progress-bar {
  height: 100%;
  width: 0%;
  background-image: linear-gradient(135deg, #FF6B35, #E55A2B);
  background-size: 200% 100%;
  transition: width 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .loading-screen { transition: none; }
  .logo-spinner::before { animation: none !important; }
  .progress-bar { transition: none; }
}
