#pwa-launch-splash {
  position: fixed;
  inset: 0;
  top: -150px;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

html.pwa-splash-visible #pwa-launch-splash {
  display: flex;
  opacity: 1;
  visibility: visible;
}

#pwa-launch-splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  padding: 10px;
}

#pwa-launch-splash-logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 24px;
}

#pwa-launch-splash-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: #0f172a;
}

#pwa-launch-splash-subtitle {
  font-size: 12px;
  line-height: 1;
  color: #64748b;
}

#pwa-nav-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 9998;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
  overflow: hidden;
}

html.pwa-nav-loading-visible #pwa-nav-loader {
  opacity: 1;
  visibility: visible;
}

#pwa-nav-loader-content {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#pwa-nav-loader-spinner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 45%;
  border-radius: 9999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0), #2563eb 45%, #60a5fa);
  animation: pwa-nav-loader-line 0.9s ease-in-out infinite;
}

@keyframes pwa-nav-loader-line {
  to {
    transform: translateX(325%);
  }
}

#push-permission-prompt[hidden] {
  display: none;
}

#push-permission-prompt {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 88px;
  z-index: 75;
  display: flex;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

#push-permission-prompt.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.push-permission-prompt__card {
  width: 100%;
  max-width: 380px;
  border: 1px solid #dbe5f1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.push-permission-prompt__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #eff6ff;
  color: #0284c7;
}

.push-permission-prompt__content {
  min-width: 0;
  flex: 1 1 auto;
}

.push-permission-prompt__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #0f172a;
}

.push-permission-prompt__text {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.push-permission-prompt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.push-permission-prompt__btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.push-permission-prompt__btn:disabled {
  cursor: default;
  opacity: 0.65;
}

.push-permission-prompt__btn--primary {
  background: #0284c7;
  color: #fff;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
}

.push-permission-prompt__btn--primary:hover {
  background: #0369a1;
}

.push-permission-prompt__btn--secondary {
  background: transparent;
  color: #64748b;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
}

.push-permission-prompt__btn--secondary:hover {
  color: #334155;
  background: #f8fafc;
}

.push-permission-prompt__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px;
  transition: color 0.2s ease;
}

.push-permission-prompt__close:hover {
  color: #475569;
}

@media (min-width: 640px) {
  #push-permission-prompt {
    left: auto;
    right: 24px;
    bottom: 24px;
  }
}
