/* ── Splash Screen ── */
#pwa-splash {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #080812;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s;
}

#pwa-splash.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  animation: splashPulse 2s infinite ease-in-out;
}

@keyframes splashPulse {
  0% { transform: scale(0.95); filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.4)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(124, 58, 237, 0.8)); }
  100% { transform: scale(0.95); filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.4)); }
}

.splash-loader {
  width: 48px; height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-top: 32px;
  position: relative; overflow: hidden;
}

.splash-loader::after {
  content: '';
  position: absolute; left: -50%; width: 50%; height: 100%;
  background: linear-gradient(90deg, #7c3aed, #db2777);
  animation: loaderMove 1.5s infinite linear;
}

@keyframes loaderMove {
  0% { left: -50%; }
  100% { left: 100%; }
}

/* ── Install Modal ── */
#pwa-install-modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}

#pwa-install-modal.show {
  opacity: 1; visibility: visible;
}

.install-card {
  background: linear-gradient(135deg, #1a1a35, #0f0f22);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 24px;
  padding: 32px;
  width: 90%; max-width: 400px;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

#pwa-install-modal.show .install-card {
  transform: translateY(0);
}

.install-icon {
  width: 80px; height: 80px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.install-title {
  color: #fff; font-size: 22px; font-weight: 800; margin-bottom: 12px;
}

.install-desc {
  color: #aaa; font-size: 15px; line-height: 1.6; margin-bottom: 24px;
}

.install-btns {
  display: flex; flex-direction: column; gap: 12px;
}

.btn-install {
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff; border: none; padding: 14px; border-radius: 12px;
  font-weight: 700; cursor: pointer; transition: 0.2s;
}

.btn-install:active { transform: scale(0.96); }

.btn-skip {
  background: transparent; color: #666; border: none; padding: 10px;
  font-size: 14px; cursor: pointer;
}
