/* ADSDATA PWA install UI — external so CSP (style-src 'self') allows it. */

#pwaInstallBtn,
#pwaInstallHintBtn {
  display: none;
}

.pwa-install-banner {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 20px);
  z-index: 1200;
  width: min(340px, calc(100% - 28px));
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #18182b;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5);
  color: #f0f0f5;
  font-family: Inter, system-ui, sans-serif;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.pwa-install-banner.show {
  display: flex;
  opacity: 1;
  transform: translate(-50%, 0);
}

.pwa-install-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .1);
  background: #2806d0;
}

.pwa-install-text {
  flex: 1;
  min-width: 0;
}
.pwa-install-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.pwa-install-text span {
  font-size: 12px;
  color: #9494b5;
}

.pwa-install-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.pwa-install-btn {
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.pwa-install-later {
  background: transparent;
  color: #9494b5;
  border: none;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.pwa-install-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .6);
}
.pwa-install-modal.show {
  display: flex;
}
.pwa-install-modal-box {
  background: #18182b;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 22px;
  max-width: 340px;
  width: calc(100% - 32px);
  color: #f0f0f5;
  font-family: Inter, system-ui, sans-serif;
  text-align: center;
}
.pwa-install-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  margin: 0 auto 10px;
  display: block;
  border: 1px solid rgba(255, 255, 255, .1);
  background: #2806d0;
}
.pwa-install-modal-box h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.pwa-install-modal-box ol {
  margin: 0 0 14px 18px;
  text-align: left;
  font-size: 14px;
  color: #9494b5;
  line-height: 1.7;
}
.pwa-install-modal-box ol b {
  color: #f0f0f5;
}
.pwa-install-modal-close {
  width: 100%;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
