.pwa-install-popup {
    position: fixed;
    inset: 0;
    z-index: 1095;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.48);
    font-family: "Segoe UI", Arial, sans-serif;
}

.pwa-install-popup[hidden],
.pwa-install-help[hidden] {
    display: none !important;
}

.pwa-install-dialog {
    position: relative;
    width: min(460px, 100%);
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    padding: 22px;
}

.pwa-install-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    font: inherit;
    font-size: 1.25rem;
    line-height: 1;
}

.pwa-install-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.pwa-install-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 38px;
}

.pwa-install-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #0d6efd;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 12px 26px rgba(13, 110, 253, 0.24);
}

.pwa-install-hero strong {
    display: block;
    color: #0f172a;
    font-size: 1.08rem;
    line-height: 1.25;
}

.pwa-install-hero span,
.pwa-install-text {
    color: #64748b;
    line-height: 1.5;
}

.pwa-install-hero span {
    display: block;
    margin-top: 3px;
    font-size: 0.88rem;
}

.pwa-install-text {
    margin: 16px 0 0;
    font-size: 0.94rem;
}

.pwa-install-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.pwa-install-button,
.pwa-install-later {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    padding: 0 16px;
}

.pwa-install-button {
    flex: 1;
    background: #0d6efd;
    color: #ffffff;
}

.pwa-install-button:hover {
    background: #0b5ed7;
}

.pwa-install-later {
    background: #eef2f7;
    color: #334155;
}

.pwa-install-later:hover {
    background: #e2e8f0;
}

.pwa-install-help {
    margin-top: 16px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 13px 14px;
}

.pwa-install-help ol {
    margin: 0;
    padding-left: 20px;
    color: #334155;
    line-height: 1.6;
    font-size: 0.9rem;
}

@media (max-width: 575px) {
    .pwa-install-popup {
        align-items: end;
        padding: 10px;
    }

    .pwa-install-dialog {
        border-radius: 10px;
        padding: 18px;
    }

    .pwa-install-hero {
        align-items: flex-start;
    }

    .pwa-install-actions {
        flex-direction: column;
    }

    .pwa-install-later {
        width: 100%;
    }
}
