.pwa-install {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.pwa-install.is-visible {
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
}

.pwa-install.has-mobile-bar {
  bottom: 56px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.pwa-install__card {
  max-width: 520px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0b1e3c 0%, #0f2b38 55%, #0a84ff 160%);
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.pwa-install__main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 12px;
}

.pwa-install__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pwa-install__text {
  flex: 1;
  min-width: 0;
}

.pwa-install__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 2px;
}

.pwa-install__subtitle {
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0;
  opacity: 0.92;
}

.pwa-install__close {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.pwa-install__actions {
  display: flex;
  gap: 8px;
  padding: 0 14px 14px;
}

.pwa-install__btn {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.pwa-install__btn--primary {
  background: #fff;
  color: #0b1e3c;
}

.pwa-install__btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.pwa-install__steps {
  display: none;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pwa-install.is-expanded .pwa-install__steps {
  display: block;
  padding-top: 12px;
}

.pwa-install__step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.pwa-install__step:last-child {
  margin-bottom: 0;
}

.pwa-install__step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pwa-install__step i {
  font-size: 1rem;
  vertical-align: -2px;
}

@media (min-width: 769px) {
  .pwa-install {
    display: none !important;
  }
}
