/* PWA "Add to Home Screen" nudge — bottom card, dark theme.
   Sits bottom-left on desktop so it doesn't collide with the chat bubble
   (bottom-right), and spans the width on small screens. */
.pwa-install-banner {
  position: fixed;
  z-index: 10050;
  left: 20px;
  bottom: 20px;
  width: 360px;
  max-width: calc(100vw - 40px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  background: linear-gradient(180deg, #1b1b1f, #131316);
  border: 1px solid #2c2c33;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  color: #f3f4f6;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
  /* keep clear of the iOS home indicator / safe areas */
  margin-bottom: env(safe-area-inset-bottom, 0);
}

.pwa-install-banner.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pwa-install-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex: 0 0 auto;
  background: #000;
}

.pwa-install-body {
  flex: 1 1 auto;
  min-width: 0;
}

.pwa-install-title {
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.pwa-install-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: #aab1bd;
  margin-top: 2px;
}

.pwa-install-text strong {
  color: #d7dbe2;
  font-weight: 600;
}

.pwa-install-glyph {
  display: inline-flex;
  vertical-align: -3px;
}

.pwa-install-glyph svg {
  width: 15px;
  height: 15px;
  color: #6ea8e0;
}

.pwa-install-actions {
  flex: 0 0 auto;
}

.pwa-install-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  background: #2b6dab;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 10px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.pwa-install-btn:hover {
  background: #3580c4;
}

.pwa-install-btn:active {
  transform: scale(0.97);
}

.pwa-install-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.pwa-install-close {
  appearance: none;
  border: none;
  background: transparent;
  color: #8b93a1;
  cursor: pointer;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  transition: background 0.15s ease, color 0.15s ease;
}

.pwa-install-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
}

.pwa-install-close svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 560px) {
  .pwa-install-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pwa-install-banner {
    transition: opacity 0.2s ease;
    transform: none;
  }

  .pwa-install-banner.is-visible {
    transform: none;
  }
}