.install-app-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: rgba(26, 29, 38, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.install-app-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.install-app-sheet {
  width: 100%;
  max-width: 420px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e0e3ea);
  border-radius: 20px;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  transform: translateY(16px);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.install-app-overlay.is-visible .install-app-sheet {
  transform: translateY(0);
}

.install-app-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2, #eef0f4);
  color: var(--text-muted, #6b7185);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.install-app-head {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding-right: 28px;
}

.install-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(11, 138, 94, 0.25);
}

.install-app-head h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text, #1a1d26);
  margin-bottom: 4px;
}

.install-app-head p {
  font-size: 0.82rem;
  color: var(--text-muted, #6b7185);
  line-height: 1.45;
}

.install-app-ios-steps {
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: var(--accent-light, #0b8a5e12);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--text, #1a1d26);
  line-height: 1.55;
}

.install-app-ios-steps ol {
  margin: 8px 0 0 18px;
}

.install-app-ios-steps li {
  margin-bottom: 6px;
}

.install-app-ios-steps i {
  color: var(--accent, #0b8a5e);
}

.install-app-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.install-app-btn-primary {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: var(--accent, #0b8a5e);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 138, 94, 0.22);
}

.install-app-btn-primary:active {
  transform: scale(0.98);
}

.install-app-btn-ghost {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted, #6b7185);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

body.install-app-open {
  overflow: hidden;
}

@media (min-width: 520px) {
  .install-app-overlay {
    align-items: center;
  }
}
