html {
  font-size: 13px;
  font-weight: 400;
  font-family: Inter, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.page-loading {
  margin: 0;
  height: 100%;
  overflow: hidden;
  transition: none !important;
}

.splash-screen {
  display: none;
}

.page-loading .splash-screen {
  position: absolute;
  z-index: 99999;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: Inter, Helvetica, 'sans-serif';
  background-color: #ffffff;
}

.splash-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 1rem;
  background: transparent;
}

.gorehco-splash-logo {
  height: 80px;
  max-width: 320px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
  animation: splash-pulse 2.2s ease-in-out infinite;
}

.loader-wrapper {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  gap: 0.5rem;
}

.loader {
  width: 1.85rem;
  height: 1.85rem;
  border: 0.2rem solid #00A651;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 0.75s linear infinite;
}

.page-loading .splash-screen .loading-text {
  color: #044D34;
  margin-left: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Dark theme splash */
html[data-bs-theme='dark'] .page-loading .splash-screen {
  background-color: #151521;
  color: #ffffff;
}

html[data-bs-theme='dark'] .splash-logo-container {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-bs-theme='dark'] .page-loading .splash-screen .loading-text {
  color: #A7F3D0;
}

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

@keyframes splash-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}