/* Glossy launch screens shared by the customer and admin PWAs. */
.app-splash {
  --splash-accent: #ffbd42;
  --splash-accent-soft: rgba(255, 189, 66, .2);
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(55, 222, 126, .25), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(255, 174, 42, .2), transparent 35%),
    linear-gradient(145deg, #052b20 0%, #07583a 52%, #071e19 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility .45s ease;
  isolation: isolate;
}
.app-splash--admin {
  --splash-accent: #ffd45b;
  --splash-accent-soft: rgba(255, 212, 91, .2);
  background:
    radial-gradient(circle at 18% 18%, rgba(55, 132, 255, .24), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(255, 176, 42, .18), transparent 35%),
    linear-gradient(145deg, #050d22 0%, #102750 55%, #030817 100%);
}
.app-splash::before,
.app-splash::after {
  position: absolute;
  z-index: -1;
  width: min(78vw, 470px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.app-splash::before { transform: scale(1.22); box-shadow: 0 0 0 34px rgba(255,255,255,.025), 0 0 70px var(--splash-accent-soft); }
.app-splash::after { transform: scale(.78); border-color: var(--splash-accent-soft); }
.app-splash.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.app-splash__content {
  display: flex;
  width: min(100%, 390px);
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: splash-rise .75s cubic-bezier(.2,.75,.25,1) both;
}
.app-splash__icon {
  width: clamp(118px, 34vw, 164px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 31%;
  box-shadow: 0 18px 55px rgba(0,0,0,.35), 0 0 38px var(--splash-accent-soft), inset 0 1px 0 rgba(255,255,255,.65);
}
.app-splash__brand {
  margin: 27px 0 7px;
  color: #fff;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(25px, 7vw, 34px);
  font-weight: 900;
  letter-spacing: -.9px;
  text-shadow: 0 3px 18px rgba(0,0,0,.28);
}
.app-splash__tagline {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  letter-spacing: .08em;
}
.app-splash__loader {
  position: relative;
  width: 42px;
  height: 42px;
  margin: 42px 0 17px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: var(--splash-accent);
  border-right-color: var(--splash-accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--splash-accent-soft);
  animation: splash-spin .85s linear infinite;
}
.app-splash__status {
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.app-splash__shine {
  width: 120px;
  height: 3px;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.17);
}
.app-splash__shine::after {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--splash-accent), transparent);
  content: "";
  animation: splash-progress 1.4s ease-in-out infinite;
}
@keyframes splash-spin { to { transform: rotate(360deg); } }
@keyframes splash-progress { from { transform: translateX(-120%); } to { transform: translateX(250%); } }
@keyframes splash-rise { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .app-splash, .app-splash * { animation: none !important; transition: none !important; }
}
