/* ===== Pre-bootstrap loading overlay (matches landing hero visual) ===== */
#pre-bootstrap {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1628 0%, #152044 40%, #1a2858 70%, #0d1f40 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity .7s ease-in-out, visibility .7s ease-in-out;
}

/* Fade the overlay out once the app is loaded, revealing the landing underneath */
#pre-bootstrap.preboot-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#pre-bootstrap .messaging {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Animated hero-style ring / orb */
#pre-bootstrap .preboot-visual {
  position: relative;
  width: 340px;
  height: 340px;
  flex-shrink: 0;
  margin-bottom: 2.5rem;
}

#pre-bootstrap .preboot-ring {
  position: absolute;
  border-radius: 50%;
}

#pre-bootstrap .preboot-ring-1 {
  inset: -20px;
  border: 1px solid rgba(74, 143, 232, 0.10);
}

#pre-bootstrap .preboot-ring-2 {
  inset: -40px;
  border: 1px dashed rgba(74, 143, 232, 0.07);
  animation: preboot-spin 22s linear infinite;
}

#pre-bootstrap .preboot-orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(20, 60, 140, 0.22) 0%, rgba(4, 8, 20, 0.10) 60%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

#pre-bootstrap .preboot-orb svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes preboot-spin {
  to { transform: rotate(360deg); }
}

/* Logo */
#pre-bootstrap .logo-container {
  margin-bottom: 1.1rem;
}

#pre-bootstrap .loading-logo {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 4px 18px rgba(74, 143, 232, 0.35));
}

/* "Yükleniyor" text + animated dots */
#pre-bootstrap h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
}

#pre-bootstrap p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0.5rem 0 0 0;
  color: rgba(255, 255, 255, 0.45);
}

#pre-bootstrap .preboot-dots {
  display: inline-flex;
  gap: 5px;
  margin-left: 8px;
}

#pre-bootstrap .preboot-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4a8fe8;
  display: inline-block;
  animation: preboot-dot 1.2s infinite ease-in-out;
}

#pre-bootstrap .preboot-dots i:nth-child(2) { animation-delay: 0.2s; }
#pre-bootstrap .preboot-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes preboot-dot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

@media (max-width: 480px) {
  #pre-bootstrap .preboot-visual {
    width: 240px;
    height: 240px;
    margin-bottom: 2rem;
  }

  #pre-bootstrap .loading-logo { height: 38px; }
  #pre-bootstrap h1 { font-size: 18px; }
}
