/* ── PWA INSTALL POPUP ── */
#pwa-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: calc(100% - 32px);
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
#pwa-popup.show {
  transform: translateX(-50%) translateY(0);
}
.pwa-popup-inner {
  position: relative;
  padding: 1.2rem 1.5rem 1.2rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.pwa-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.pwa-text {
  flex: 1;
  min-width: 180px;
}
.pwa-title {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 3px;
}
.pwa-subtitle {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}
.pwa-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.pwa-btn-primary {
  background: #1a1a2e;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.pwa-btn-primary:hover {
  background: #2d2d4a;
}
.pwa-btn-secondary {
  background: transparent;
  color: #6b7280;
  border: 1.5px solid #e5e7eb;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.pwa-btn-secondary:hover {
  border-color: #9ca3af;
  color: #1a1a2e;
}
.pwa-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: #d1d5db;
  font-size: 22px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  line-height: 1;
  padding: 0;
  transition: all 0.2s;
}
.pwa-close:hover {
  background: #f3f4f6;
  color: #1a1a2e;
}
@media (max-width: 480px) {
  .pwa-popup-inner {
    padding: 1rem 1.2rem 1rem 1rem;
    gap: 0.8rem;
  }
  .pwa-actions {
    width: 100%;
    margin-top: 4px;
  }
  .pwa-btn-primary, .pwa-btn-secondary {
    flex: 1;
  }
  .pwa-title { font-size: 14px; }
  .pwa-subtitle { font-size: 11px; }
}
