/* PWA INSTALL POPUP / BOTTOM SHEET */
.pwa-install-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 16px;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .pwa-install-overlay {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 24px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.pwa-install-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pwa-install-card {
  position: relative;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 20px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  overflow: hidden;
}

.pwa-install-overlay.active .pwa-install-card {
  transform: translateY(0);
}

.pwa-install-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  background: var(--pwa-accent-glow, rgba(16, 185, 129, 0.25));
  filter: blur(40px);
  pointer-events: none;
  border-radius: 50%;
}

.pwa-install-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.pwa-install-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pwa-install-icon-box img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.pwa-install-title-group {
  flex: 1;
  min-width: 0;
}

.pwa-install-title-group h3 {
  margin: 0 0 3px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.2px;
}

.pwa-install-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pwa-accent-color, #10b981);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pwa-install-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.pwa-install-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.pwa-install-body {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.pwa-install-body strong {
  color: #fff;
}

.pwa-install-actions {
  display: flex;
  gap: 10px;
}

.pwa-btn-install {
  flex: 1;
  background: var(--pwa-btn-gradient, linear-gradient(135deg, #10b981, #059669));
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--pwa-btn-shadow, rgba(16, 185, 129, 0.35));
  transition: all 0.2s ease;
  font-family: inherit;
}

.pwa-btn-install:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.pwa-btn-install:active {
  transform: translateY(0);
}

.pwa-btn-install svg {
  width: 18px;
  height: 18px;
}

.pwa-btn-dismiss {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.pwa-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}
