/* شاشة دخول PWA / iOS Add to Home Screen */
html.eedeex-splash-active,
html.eedeex-splash-active body {
  background: #0f1535 !important;
  overflow: hidden;
}

#eedeex-pwa-splash {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top, 0px)) 20px max(24px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: rgba(6, 10, 22, 0.88);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.42s ease, visibility 0.42s ease;
}

html[data-eedeex-page="dashboard"] #eedeex-pwa-splash,
html.eedeex-dashboard-splash #eedeex-pwa-splash {
  background: rgba(5, 8, 20, 0.92);
}

.eedeex-pwa-splash__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(300px, 92vw);
  padding: 28px 24px 22px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(18, 26, 44, 0.94) 0%, rgba(10, 14, 32, 0.98) 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 64px rgba(0, 0, 0, 0.55);
}

.eedeex-pwa-splash__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 280px;
}

.eedeex-pwa-splash__logo-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 18px;
}

.eedeex-pwa-splash__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(52, 211, 153, 0.85);
  border-right-color: rgba(56, 189, 248, 0.45);
  animation: eedeex-splash-spin 1.15s linear infinite;
}

.eedeex-pwa-splash__ring--2 {
  inset: -14px;
  border-top-color: rgba(56, 189, 248, 0.35);
  border-right-color: transparent;
  animation-duration: 1.65s;
  animation-direction: reverse;
}

.eedeex-pwa-splash__logo {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.eedeex-pwa-splash__brand {
  margin: 0 0 6px;
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.eedeex-pwa-splash__tagline {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.5;
}

.eedeex-pwa-splash__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.eedeex-pwa-splash__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.85);
  animation: eedeex-splash-dot 1.1s ease-in-out infinite;
}

.eedeex-pwa-splash__dots span:nth-child(2) { animation-delay: 0.15s; opacity: 0.75; }
.eedeex-pwa-splash__dots span:nth-child(3) { animation-delay: 0.3s; opacity: 0.55; }

@keyframes eedeex-splash-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes eedeex-splash-spin {
  to { transform: rotate(360deg); }
}

#eedeex-pwa-splash.eedeex-pwa-splash--out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .eedeex-pwa-splash__ring,
  .eedeex-pwa-splash__dots span {
    animation: none !important;
  }
}
