@keyframes pwa-prompt-slide-down {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.pwa-prompt-container {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1080;
  width: min(92vw, 420px);
  animation: pwa-prompt-slide-down 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pwa-prompt-container[hidden] {
  display: none !important;
}

.pwa-prompt-content {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pwa-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pwa-icon {
  border-radius: 10px;
  flex-shrink: 0;
}

.pwa-text h6 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1a1a1a;
}

.pwa-text small {
  font-size: 0.75rem;
  color: #64748b;
  display: block;
  margin-top: 2px;
}

.pwa-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-pwa-install {
  background: var(--lexus-black, #1a1a1a);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.btn-pwa-install:active {
  transform: scale(0.96);
  opacity: 0.92;
}

.btn-pwa-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.btn-pwa-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
}

.pwa-tutorial-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.pwa-tutorial-list strong {
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  .pwa-prompt-content {
    background: rgba(30, 30, 35, 0.92);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .pwa-text h6 {
    color: #f8fafc;
  }

  .pwa-text small {
    color: #94a3b8;
  }

  .btn-pwa-install {
    background: #f8fafc;
    color: #0f172a;
  }

  .btn-pwa-close {
    color: #94a3b8;
  }

  .btn-pwa-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
  }
}

html.dark-mode .pwa-prompt-content {
  background: rgba(30, 30, 35, 0.92);
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .pwa-text h6 {
  color: #f8fafc;
}

html.dark-mode .pwa-text small {
  color: #94a3b8;
}

html.dark-mode .btn-pwa-install {
  background: #f8fafc;
  color: #0f172a;
}

html.dark-mode .btn-pwa-close {
  color: #94a3b8;
}

html.dark-mode .btn-pwa-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}
