/* =======================================================
   GLOBAL RESET & BASE STYLES
   ======================================================= */


:root {
    --container-max-width: 100vw;
    --container-scale: 1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* font-family:  BlinkMacSystemFont; */

}

body {
    color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.menu-open {
    overflow: hidden;
}

/* loading Screen  */


/* Fullscreen Overlay */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0d0e12;
  /* Modern dark background */
  color: #ffffff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Center Container */
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Modern Gradient Ring Spinner */
.spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: conic-gradient(#0000 10%, #f5f5f6);
  /* Vibrant indigo gradient */
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 4px), #000 0);
  mask: radial-gradient(farthest-side, #0000 calc(100% - 4px), #000 0);
  animation: spin 0.9s linear infinite;
}

/* Brand Text */
.brand-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #94a3b8;
  margin-top: 8px;
}

/* Progress Bar Track */
.progress-bar-container {
  width: 180px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

/* Progress Bar Indicator */
.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f9f9f9, #98bdfd);
  border-radius: 99px;
  transition: width 0.2s ease-out;
}

/* Percentage Number */
.percentage {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

/* Animations */
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}
