/* ============================================
   PWA: Splash Screen & Install Prompt
   ============================================ */

/* --- Splash Screen --- */
.nebras-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #FAF7F2;
  transition: opacity 0.5s ease;
}

.nebras-splash.hidden {
  opacity: 0;
  pointer-events: none;
}

.nebras-splash-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  opacity: 0;
  animation: splashFadeIn 0.8s ease 0.2s forwards;
}

.nebras-splash-text {
  font-family: Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #091346;
  opacity: 0;
  transform: scale(0.8);
  animation: splashTextIn 0.8s ease 0.4s forwards;
}

.nebras-splash-version {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: #999;
  margin-top: 8px;
  opacity: 0;
  animation: splashFadeIn 0.6s ease 0.9s forwards;
}

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

@keyframes splashTextIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Install Prompt Modal --- */
.nebras-install-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(9, 19, 70, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nebras-install-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nebras-install-modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 32px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 -8px 30px rgba(9, 19, 70, 0.15);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.nebras-install-overlay.active .nebras-install-modal {
  transform: translateY(0);
}

.nebras-install-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.nebras-install-header img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.nebras-install-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #091346;
  margin: 0;
}

.nebras-install-header p {
  font-size: 0.85rem;
  color: #666;
  margin: 2px 0 0;
}

.nebras-install-body {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 22px;
}

.nebras-install-actions {
  display: flex;
  gap: 12px;
}

.nebras-install-actions button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nebras-install-btn {
  background: #091346;
  color: #fff;
}

.nebras-install-btn:hover {
  background: #13316b;
}

.nebras-install-later {
  background: #f0f0f0;
  color: #555;
}

.nebras-install-later:hover {
  background: #e0e0e0;
}
