.pwa-install-button {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 10px 16px 10px 10px;
  background: rgba(7, 20, 38, .94);
  color: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .26);
  font: 700 13px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.pwa-install-button.is-visible { opacity: 1; transform: translateY(0); }
.pwa-install-button:hover { background: #102b4c; }
.pwa-install-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #258cff;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}
.pwa-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: end center;
  padding: 18px max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: rgba(3, 11, 22, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pwa-help-card {
  position: relative;
  width: min(100%, 440px);
  border-radius: 25px;
  padding: 28px 24px 20px;
  background: #fff;
  color: #0a1b31;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.pwa-help-card h2 { margin: 14px 0 10px; font-size: 22px; line-height: 1.15; }
.pwa-help-card p { margin: 0 auto; max-width: 34ch; color: #506078; font-size: 15px; line-height: 1.55; }
.pwa-help-card .pwa-inapp-hint { margin-top: 10px; font-size: 13px; color: #6c7b90; }
.pwa-help-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 16px;
  background: linear-gradient(145deg, #102a49, #061121);
  color: #35a7ff;
  font-weight: 900;
  letter-spacing: -.08em;
}
.pwa-help-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #607086;
  font-size: 28px;
  cursor: pointer;
}
.pwa-ios-steps { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px 0; color: #1687ff; }
.pwa-ios-steps span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e9f4ff; font-weight: 800; font-size: 12px; }
.pwa-ios-steps b { font-size: 25px; }
.pwa-ios-steps b:last-child { font-size: 15px; }
.pwa-ios-steps i { width: 24px; height: 1px; background: #cbd7e5; }
.pwa-copy-link { width: 100%; margin: 0 0 10px; border: 0; border-radius: 14px; padding: 14px 16px; background: #1687ff; color: #fff; font: 800 14px/1 system-ui, sans-serif; cursor: pointer; }
.pwa-copy-link.is-copied { background: #12805c; }
.pwa-safari-bar { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 8px; margin: 18px 0 14px; padding: 9px; border: 1px solid #dbe5f1; border-radius: 18px; background: #f5f8fc; color: #0a223f; }
.pwa-safari-bar span { overflow: hidden; padding: 10px 8px; border-radius: 12px; background: #fff; font: 700 13px/1 system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.pwa-safari-bar b { display: grid; place-items: center; width: 36px; height: 36px; font: 800 22px/1 system-ui, sans-serif; }
.pwa-safari-menu { border: 2px solid #1687ff; border-radius: 11px; color: #1687ff; }
.pwa-safari-refresh { color: #7d8da2; }
.pwa-safari-steps { margin: 0 0 12px; padding-left: 24px; color: #34465c; text-align: left; font: 650 14px/1.45 system-ui, sans-serif; }
.pwa-safari-steps li + li { margin-top: 7px; }
.pwa-refresh-warning { margin: 0 0 14px !important; padding: 10px 12px; border-radius: 11px; background: #fff2f1; color: #a8372f !important; font-size: 13px !important; font-weight: 750 !important; }
.pwa-help-later { width: 100%; border: 0; border-radius: 14px; padding: 13px 16px; background: #edf3f8; color: #243852; font: 700 14px/1 system-ui, sans-serif; cursor: pointer; }
@media (max-width: 720px) {
  .pwa-install-button { bottom: max(12px, env(safe-area-inset-bottom)); left: max(12px, env(safe-area-inset-left)); padding: 8px 13px 8px 8px; font-size: 12px; }
  .pwa-install-icon { width: 26px; height: 26px; }
}
@media (display-mode: standalone) { .pwa-install-button { display: none !important; } }
