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.splash-screen {
  display: none;
}

.page-loading #splash-screen.splash-screen,
#splash-screen.splash-screen[style*="display: flex"] {
  position: fixed;
  inset: 0;
  z-index: 99999;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: #061427;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #F7F3EC;
  overflow: hidden;
}

#splash-screen.splash-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 50% 50%, rgba(201, 169, 97, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 50% 100%, rgba(201, 169, 97, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

#splash-screen.splash-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 97, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 97, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  pointer-events: none;
}

#splash-screen .splash-spinner {
  position: relative;
  width: 120px;
  height: 120px;
  z-index: 5;
  animation: splash-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#splash-screen .splash-spinner .icon-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 26px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 16px 48px rgba(201, 169, 97, 0.3);
  animation: splash-pulse 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

#splash-screen .splash-spinner::before,
#splash-screen .splash-spinner::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px solid #C9A961;
  border-radius: 32px;
  opacity: 0;
  animation: splash-ring 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

#splash-screen .splash-spinner::after {
  animation-delay: 0.8s;
}

#splash-screen .splash-text {
  text-align: center;
  z-index: 5;
  animation: splash-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

#splash-screen .splash-name {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-weight: 600;
  font-size: 38px;
  color: #F7F3EC;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

#splash-screen .splash-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #C9A961;
  letter-spacing: 0.4em;
  direction: ltr;
  text-transform: uppercase;
  margin-bottom: 16px;
}

#splash-screen .splash-loading {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 14px;
  color: rgba(247, 243, 236, 0.5);
  font-weight: 300;
}

#splash-screen .splash-footer {
  position: absolute;
  bottom: 40px;
  z-index: 5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(247, 243, 236, 0.3);
  letter-spacing: 0.3em;
  direction: ltr;
  animation: splash-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

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

@keyframes splash-ring {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.3); }
}

@keyframes splash-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}