/* PWA install guide — standalone look, motion-heavy */

.pwa-guide-page {
  --pg-accent: #5eead4;
  --pg-accent2: #a78bfa;
  --pg-glow: rgba(94, 234, 212, 0.35);
}

.pwa-guide-page .app-shell--pwa-guide {
  max-width: 720px;
}

.pwa-guide-hero {
  text-align: center;
  padding: 8px 0 28px;
  position: relative;
  overflow: hidden;
}

.pwa-guide-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  background: radial-gradient(ellipse 500px 280px at 50% 0%, var(--pg-glow), transparent 70%);
  pointer-events: none;
  animation: pwaGuidePulse 8s ease-in-out infinite;
}

@keyframes pwaGuidePulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.pwa-guide-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.pwa-guide-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.pwa-guide-title span {
  background: linear-gradient(120deg, var(--pg-accent), var(--pg-accent2), #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pwa-guide-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 auto 22px;
  max-width: 36em;
}

.pwa-guide-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--stroke);
  gap: 4px;
  margin-bottom: 28px;
}

.pwa-guide-toggle button {
  margin: 0;
  border: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: background 0.25s, color 0.25s, transform 0.2s;
}

.pwa-guide-toggle button[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.25), rgba(167, 139, 250, 0.2));
  color: var(--text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.pwa-guide-toggle button:active {
  transform: scale(0.98);
}

.pwa-guide-panel {
  display: none;
  animation: pwaPanelIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pwa-guide-panel.is-active {
  display: block;
}

@keyframes pwaPanelIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pwa-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pwa-guide-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  position: relative;
  overflow: hidden;
  animation: pwaStepEnter 0.6s ease both;
}

.pwa-guide-step:nth-child(1) {
  animation-delay: 0.05s;
}
.pwa-guide-step:nth-child(2) {
  animation-delay: 0.12s;
}
.pwa-guide-step:nth-child(3) {
  animation-delay: 0.19s;
}
.pwa-guide-step:nth-child(4) {
  animation-delay: 0.26s;
}

@keyframes pwaStepEnter {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.pwa-guide-step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: pwaShine 4s ease-in-out infinite;
}

@keyframes pwaShine {
  0%,
  60% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.pwa-guide-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.2), rgba(167, 139, 250, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: pwaFloat 3.5s ease-in-out infinite;
}

.pwa-guide-step:nth-child(even) .pwa-guide-icon {
  animation-delay: -0.8s;
}

@keyframes pwaFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.pwa-guide-step-num {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.7;
}

.pwa-guide-step h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
}

.pwa-guide-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.pwa-guide-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.2s;
}

.pwa-guide-back:hover {
  gap: 12px;
}

.pwa-guide-note {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.2);
  line-height: 1.5;
}

/* Top promo banner (in base.html) */
.pwa-install-banner {
  width: 100%;
  background: linear-gradient(120deg, rgba(15, 25, 48, 0.97), rgba(30, 20, 50, 0.95));
  border-bottom: 1px solid rgba(94, 234, 212, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 40;
  animation: pwaBannerSlide 0.5s ease both;
}

@keyframes pwaBannerSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pwa-install-banner-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  justify-content: center;
}

.pwa-install-banner-text {
  flex: 1 1 200px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  text-align: center;
}

@media (min-width: 480px) {
  .pwa-install-banner-text {
    text-align: left;
  }
}

.pwa-install-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #042f2e;
  background: linear-gradient(135deg, var(--neon), #2dd4bf);
  box-shadow: 0 4px 18px rgba(45, 212, 191, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.pwa-install-banner-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 22px rgba(45, 212, 191, 0.45);
}

.pwa-install-banner-dismiss {
  margin: 0;
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border: 1px solid var(--stroke);
}

.pwa-install-banner-dismiss:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}
