:root {
  --loader-bg: #0f172a;
  --loader-text: #e5e7eb;
  --loader-muted: #94a3b8;
  --loader-primary: #8dc63f;
}

#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at top, #020617, var(--loader-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--loader-text);
  text-align: center;
  padding: 1rem;
  z-index: 99999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

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

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 400px;
}

/* SPIN CIRCLE */
.loader-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(141, 198, 63, 0.1);
  border-top-color: var(--loader-primary);
  animation: loader-spin 1.2s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(141, 198, 63, 0.1);
}

/* BRAND */
.loader-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--loader-primary);
  animation: loader-pulse 2s ease-in-out infinite;
  letter-spacing: -0.5px;
}

.loader-text {
  color: var(--loader-muted);
  font-size: 1rem;
  line-height: 1.5;
  padding: 0 1rem;
}


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

@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* Responsive */
@media (max-width: 480px) {
  .loader-circle { width: 100px; height: 100px; }
  .loader-brand { font-size: 1.25rem; }
  .loader-text { font-size: 0.9375rem; }
}
