.app-install-banner {
  position: fixed;
  z-index: 10020;
  right: 24px;
  bottom: 24px;
  width: min(390px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 20px;
  background: rgba(18, 15, 20, .96);
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, transform .24s ease, visibility .24s;
}

.app-install-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.app-install-icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 13px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.app-install-copy {
  flex: 1;
  min-width: 0;
}

.app-install-copy strong,
.app-install-copy span {
  display: block;
}

.app-install-copy strong {
  margin-bottom: 3px;
  font-size: 14px;
  line-height: 1.35;
}

.app-install-copy span {
  color: #aaa7ae;
  font-size: 11.5px;
  line-height: 1.4;
  word-break: keep-all;
}

.app-install-action {
  flex: none;
  min-width: 60px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #f0323f, #d81f2a);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.app-install-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: #242027;
  color: #b8b5bc;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.app-install-guide {
  position: fixed;
  z-index: 10030;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}

.app-install-guide.is-visible {
  opacity: 1;
  visibility: visible;
}

.app-install-guide-card {
  width: min(410px, 100%);
  padding: 26px 22px 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: linear-gradient(155deg, #1a151b, #0d0c0f);
  color: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .6);
}

.app-install-guide-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}

.app-install-guide-head img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.app-install-guide-head h2 {
  margin: 0 0 4px;
  font-size: 19px;
}

.app-install-guide-head p {
  margin: 0;
  color: #aaa7ae;
  font-size: 12px;
}

.app-install-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install-step;
}

.app-install-steps li {
  counter-increment: install-step;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #dedce1;
  font-size: 14px;
  line-height: 1.55;
}

.app-install-steps li::before {
  content: counter(install-step);
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(240, 50, 63, .15);
  color: #ff6470;
  font-size: 12px;
  font-weight: 800;
}

.app-install-guide-done {
  width: 100%;
  height: 48px;
  margin-top: 14px;
  border: 0;
  border-radius: 13px;
  background: #f0323f;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 640px) {
  .app-install-banner {
    right: 16px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    padding: 12px;
    border-radius: 18px;
  }

  .app-install-copy strong { font-size: 13.5px; }
  .app-install-copy span { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-install-banner,
  .app-install-guide { transition: none; }
}
