.pwa-nudge {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 30px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border: 0;
  border-radius: 22px 22px 0 0;
  background: #0A0A14;
  color: #fff;
  box-shadow: 0 -14px 42px #0009;
  font: inherit;
  animation: pwa-sheet-in .45s cubic-bezier(.2,.75,.25,1) both;
}
.pwa-nudge[hidden] { display: none !important; }
.pwa-nudge::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, #A855F7, #A3E635);
  content: "";
}
.pwa-nudge-icon { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.pwa-nudge-copy { display: grid; gap: 4px; min-width: 0; padding-right: 22px; }
.pwa-nudge-copy strong { color: #fff; font-size: .98rem; font-weight: 900; line-height: 1.2; }
.pwa-nudge-copy span { color: #9CA3AF; font-size: 13px; line-height: 1.35; }
.pwa-nudge-action { min-width: 62px; min-height: 40px; padding: 9px 17px; border: 0; border-radius: 12px; background: #FFD700; color: #090909; font: inherit; font-size: .85rem; font-weight: 950; white-space: nowrap; cursor: pointer; }
.pwa-nudge-action:disabled { opacity: .65; cursor: wait; }
.pwa-nudge-close { position: absolute; top: 7px; right: 10px; width: 25px; height: 25px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #9CA3AF; font: inherit; font-size: 1.05rem; cursor: pointer; }
.pwa-install-dialog {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: none;
  max-height: min(80dvh, 480px);
  margin: 0 auto;
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom));
  border: 0;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #A855F7, #A3E635) 1;
  border-radius: 22px 22px 0 0;
  background: #0A0A14;
  color: #fff;
  box-shadow: 0 -14px 42px #0009;
}
.pwa-install-dialog::backdrop { background: #05040ccc; backdrop-filter: blur(4px); }
.pwa-install-dialog h2 { margin: 0 0 18px; font-size: 1.12rem; font-weight: 900; }
.pwa-install-steps { display: grid; gap: 13px; margin: 0 0 22px; padding: 0; list-style: none; }
.pwa-install-steps li { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; color: #e7e2ee; font-size: .9rem; font-weight: 750; }
.pwa-install-steps li>b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #241638; color: #D8B4FE; font-size: .78rem; }
.pwa-share-arrow { color: #FFD700; font-size: 1.2rem; }
.pwa-install-dialog>button { width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: #FFD700; color: #090909; font: inherit; font-weight: 950; }
.pwa-install-toast { position: fixed; z-index: 70; right: 16px; bottom: calc(94px + env(safe-area-inset-bottom)); left: 16px; width: fit-content; max-width: calc(100% - 32px); margin: 0 auto; padding: 12px 16px; border: 1px solid #A855F766; border-radius: 14px; background: #0A0A14; color: #fff; box-shadow: 0 8px 28px #0008; font-size: .84rem; font-weight: 850; text-align: center; animation: pwa-toast-in .2s ease-out both; }
.pwa-install-toast[hidden] { display: none !important; }
@media (max-width: 480px) {
  .pwa-nudge-notifications { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; padding: 24px 12px calc(12px + env(safe-area-inset-bottom)); }
  .pwa-nudge-notifications .pwa-nudge-icon { width: 34px; height: 34px; }
  .pwa-nudge-notifications .pwa-nudge-copy { display: block; padding-right: 0; overflow: hidden; }
  .pwa-nudge-notifications .pwa-nudge-copy strong { display: none; }
  .pwa-nudge-notifications .pwa-nudge-copy span { display: block; overflow: hidden; color: #D1D5DB; font-size: 11px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  .pwa-nudge-notifications .pwa-nudge-action { min-width: 52px; min-height: 36px; padding: 7px 10px; font-size: .76rem; }
}
@keyframes pwa-sheet-in { from { transform: translateY(42%); opacity: 0; filter: blur(6px); } to { transform: translateY(0); opacity: 1; filter: blur(0); } }
@keyframes pwa-toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pwa-nudge, .pwa-install-toast { animation: none; }
}
