/* شريط دعوة التثبيت — أسفل الشاشة، فوق كل شيء، ولا يظهر إلا عند إمكانية التثبيت */
.pwa-install {
    position: fixed;
    inset-inline: 12px;
    bottom: 12px;
    z-index: 2000;

    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;

    background: #1e3a8a;
    color: #fff;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .45);
    font-family: inherit;

    /* مخفي افتراضياً: يظهر فقط عند إضافة is-open من pwa.js */
    opacity: 0;
    transform: translateY(120%);
    pointer-events: none;
    transition: opacity .28s cubic-bezier(.16, 1, .3, 1),
                transform .28s cubic-bezier(.16, 1, .3, 1);
}

.pwa-install.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.pwa-install__text {
    flex: 1;
    min-width: 0;
    line-height: 1.45;
}

.pwa-install__text strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
}

.pwa-install__text span {
    display: block;
    font-size: 12.5px;
    opacity: .78;
}

.pwa-install__go {
    flex: none;
    border: 0;
    border-radius: 10px;
    padding: 9px 18px;
    background: #0ea5e9;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .2s;
}

.pwa-install__go:hover { filter: brightness(1.12); }

.pwa-install__x {
    flex: none;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s;
}

.pwa-install__x:hover { background: rgba(255, 255, 255, .22); }

@media (max-width: 420px) {
    /* على آيفون النص التوضيحي هو صلب الميزة (لا يوجد زر بديل) — لا يُخفى */
    .pwa-install:not(.pwa-install--ios) .pwa-install__text span { display: none; }
}

@media print { .pwa-install { display: none; } }

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