.app-install-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25000;
    display: grid;
    place-items: center;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, .62);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.app-install-dialog {
    position: relative;
    width: min(100%, 25rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    padding: 1.5rem;
    border: 1px solid rgba(37, 99, 235, .13);
    border-radius: 1.4rem;
    outline: none;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
    font-family: "Plus Jakarta Sans", sans-serif;
}

.app-install-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 1rem;
}

.app-install-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.2rem;
    padding-right: 2.5rem;
}

.app-install-brand img {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: .9rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .18);
}

.app-install-brand span {
    color: #2563eb;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.app-install-dialog h2 {
    margin: 0 0 .65rem;
    font-size: clamp(1.35rem, 6vw, 1.7rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.app-install-dialog > p {
    margin: 0;
    color: #64748b;
    font-size: .92rem;
    line-height: 1.6;
}

.app-install-steps {
    display: grid;
    gap: .7rem;
    margin: 1.15rem 0 0;
    padding: 0;
    list-style: none;
}

.app-install-steps li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    align-items: center;
    gap: .7rem;
    color: #334155;
    font-size: .85rem;
    font-weight: 600;
}

.app-install-steps span {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: .65rem;
    background: #eff6ff;
    color: #2563eb;
    font-size: .78rem;
    font-weight: 800;
}

.app-install-actions {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: .7rem;
    margin-top: 1.35rem;
}

.app-install-actions button {
    min-height: 2.8rem;
    border-radius: .8rem;
    font-size: .86rem;
    font-weight: 750;
}

.app-install-secondary {
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #475569;
}

.app-install-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .2);
}

.app-install-actions button:focus-visible,
.app-install-close:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .3);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
    .app-install-dialog {
        animation: app-install-enter .24s ease-out both;
    }

    @keyframes app-install-enter {
        from { opacity: 0; transform: translateY(1rem) scale(.98); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }
}
