 
#splash {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
  z-index: 2000;
}

#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Logo container with spinner ring */
#splash .logo-container {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spinner ring (light mode) */
#splash .spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid rgba(37, 99, 235, 0.2); /* light outline */
  border-top-color: var(--trust-blue, #2563eb);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

/* Logo */
#splash img {
  width: 45px;
  height: auto;
  border-radius: 8px;
  z-index: 2;
}

/* Title */
.splash-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--trust-blue, #2563eb);
  margin-top: 1rem;
}

/* Animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===========================
   DARK MODE SUPPORT
=========================== */
[data-theme="dark"] #splash {
  background: #0d1117;
}

[data-theme="dark"] #splash .spinner {
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: #facc15; /* warm yellow spinner top */
}

[data-theme="dark"] #splash img {
  filter: brightness(1.1);
}

[data-theme="dark"] .splash-title {
  color: #facc15;
}
.fas {
    color: #2563EB;
}
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background: var(--trust-blue, #2563eb);
  color: #fff;
  border: none;
  outline: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 0.3s ease-in-out;
}

/* Visible state */
#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: pulse 2s infinite ease-in-out;
}

/* Hover effect */
#scrollTopBtn:hover {
  background: var(--warm-orange, #f97316);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

/* Icon style */
#scrollTopBtn i {
  transition: transform 0.3s;
}

#scrollTopBtn:hover i {
  transform: translateY(-2px);
}

/* Pulse animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

/* Dark mode adjustment */
[data-theme="dark"] #scrollTopBtn {
  background: #facc15;
  color: #111;
  box-shadow: 0 6px 12px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] #scrollTopBtn:hover {
  background: #f97316;
  color: #fff;
}