#pwa-install-banner {
  position: fixed;
  bottom: 100px; /* acima do banner de cookies se ele estiver visível */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  max-width: 460px;
  width: calc(100% - 32px);
  background: linear-gradient(135deg, rgba(19,23,32,.97), rgba(26,29,39,.97));
  color: #cbd5e1;
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: pwa-slide-in .35s ease-out;
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

@keyframes pwa-slide-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

#pwa-install-banner .pwa-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  flex-wrap: wrap;
}

#pwa-install-banner .pwa-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

#pwa-install-banner .pwa-text {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: .82rem;
  line-height: 1.4;
}

#pwa-install-banner .pwa-text strong {
  color: #f1f5f9;
  font-size: .92rem;
  font-weight: 700;
}

#pwa-install-banner .pwa-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

#pwa-install-banner .pwa-btn {
  padding: 7px 16px;
  border-radius: 7px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  background: transparent;
  color: #cbd5e1;
  transition: background .2s, transform .15s;
}

#pwa-install-banner .pwa-btn-primary {
  background: #3b82f6;
  color: #fff;
}

#pwa-install-banner .pwa-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

#pwa-install-banner .pwa-btn:not(.pwa-btn-primary):hover {
  background: rgba(255,255,255,.05);
  color: #f1f5f9;
}

@media (max-width: 520px) {
  #pwa-install-banner { bottom: 80px; }
  #pwa-install-banner .pwa-text { min-width: 100%; }
  #pwa-install-banner .pwa-actions { width: 100%; }
  #pwa-install-banner .pwa-btn { flex: 1; padding: 8px; }
}

/* ── Modal de instruções de instalação ── */
#pwa-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: pwa-fade-in .2s ease-out;
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}
@keyframes pwa-fade-in { from { opacity: 0; } to { opacity: 1; } }

#pwa-modal .pwa-modal-card {
  background: #131720;
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  max-width: 460px; width: 100%;
  padding: 26px 28px 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  max-height: 90vh; overflow-y: auto;
}

#pwa-modal h3 {
  margin: 0 0 8px;
  font-size: 1.2rem; font-weight: 700;
  color: #f1f5f9;
}

#pwa-modal .pwa-modal-intro {
  margin: 0 0 16px;
  font-size: .9rem; color: #94a3b8;
}

#pwa-modal .pwa-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none;
  color: #94a3b8; font-size: 1.6rem; line-height: 1;
  cursor: pointer; padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
#pwa-modal .pwa-modal-close:hover {
  background: rgba(255,255,255,.06);
  color: #f1f5f9;
}

#pwa-modal .pwa-steps {
  margin: 12px 0 14px;
  padding-left: 22px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: .92rem; line-height: 1.55;
}
#pwa-modal .pwa-steps li { padding-left: 4px; }
#pwa-modal .pwa-steps strong { color: #f1f5f9; }

#pwa-modal .pwa-tip {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: rgba(59,130,246,.08);
  border-left: 3px solid #3b82f6;
  border-radius: 6px;
  font-size: .82rem; color: #94a3b8; line-height: 1.5;
}
#pwa-modal .pwa-tip code {
  background: rgba(0,0,0,.3);
  padding: 1px 6px; border-radius: 3px;
  color: #60a5fa; font-size: .8rem;
}
