html, body {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden !important;
  overscroll-behavior: none;
  background-color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Grid Background */
#splash::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(#e2e8f066 1px, transparent 1px),
                    linear-gradient(90deg, #e2e8f066 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, transparent 0%, white 80%);
  -webkit-mask-image: radial-gradient(circle at center, transparent 0%, white 80%);
  pointer-events: none;
}

.content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 120px;
  height: 120px;
  margin-bottom: 30px;
  animation: fadeIn 1s ease-out forwards;
}

.text-container {
  overflow: hidden;
}

.line1, .line2 {
  font-size: 56px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 0;
  opacity: 0;
  transform: translateY(50px);
}

.line1 {
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.line2 {
  color: #7a44b2; /* AppColors.primary */
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

@media (max-width: 600px) {
  .line1, .line2 { font-size: 32px; letter-spacing: -0.5px; }
  .logo { width: 100px; height: 100px; }
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: #f1f5f9;
  border-radius: 10px;
  margin-top: 40px;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 1.2s forwards;
}

.progress {
  width: 0%;
  height: 100%;
  background: #7a44b2;
  animation: progressMove 1.5s linear forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes progressMove {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

.fade-out {
  opacity: 0 !important;
  transition: opacity 0.5s ease-out;
  pointer-events: none;
}
