/* Painel de instalação PWA — mobile */

.pwa-install-root {
    position: fixed;
    inset: 0;
    z-index: 1080;
    pointer-events: none;
}

.pwa-install-root.is-open {
    pointer-events: auto;
}

.pwa-install-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 10, 25, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.pwa-install-root.is-open .pwa-install-backdrop {
    opacity: 1;
}

.pwa-install-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(92vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -8px 32px rgba(58, 24, 74, 0.22);
    padding: 0.35rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(105%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.pwa-install-root.is-open .pwa-install-sheet {
    transform: translateY(0);
}

.pwa-install-handle {
    width: 2.5rem;
    height: 0.25rem;
    margin: 0.5rem auto 0.75rem;
    border-radius: 999px;
    background: rgba(101, 40, 128, 0.22);
}

.pwa-install-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(101, 40, 128, 0.08);
    color: #3a184a;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0;
}

.pwa-install-close:active {
    background: rgba(101, 40, 128, 0.16);
}

.pwa-install-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-right: 2rem;
}

.pwa-install-icon {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.1rem;
    box-shadow: 0 4px 14px rgba(101, 40, 128, 0.28);
    object-fit: cover;
}

.pwa-install-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    color: #3a184a;
    line-height: 1.25;
}

.pwa-install-subtitle {
    margin: 0;
    font-size: 0.8rem;
    color: #6b5b7a;
    line-height: 1.35;
}

.pwa-install-lead {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #4a3d55;
    line-height: 1.45;
}

.pwa-install-benefits {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pwa-install-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: #3a184a;
    line-height: 1.35;
}

.pwa-install-benefits li i {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #652880;
    font-size: 1rem;
}

.pwa-install-cta {
    width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(101, 40, 128, 0.35);
}

.pwa-install-cta:active {
    transform: scale(0.99);
}

.pwa-install-later {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem;
    border: 0;
    background: transparent;
    color: #6b5b7a;
    font-size: 0.875rem;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pwa-install-steps {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pwa-install-steps li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.875rem;
    color: #3a184a;
    line-height: 1.35;
}

.pwa-install-step-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: linear-gradient(145deg, #f4f1f7 0%, #e6d4f0 100%);
    color: #652880;
    font-size: 1.15rem;
}

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

@media (prefers-reduced-motion: reduce) {
    .pwa-install-backdrop,
    .pwa-install-sheet {
        transition: none;
    }
}
