/* =========================================================
   YAQEEN — PWA INSTALL PROMPT
   ========================================================= */

.yaqeen-install-prompt {
    position: fixed;
    z-index: 99999;
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    max-width: 520px;
    margin: 0 auto;
    padding: 16px;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(32,184,212,.16);
    border-radius: 22px;
    box-shadow: 0 18px 55px rgba(15,61,86,.18);
    direction: rtl;
    font-family: "Tajawal", sans-serif;
    transform: translateY(calc(100% + 40px));
    opacity: 0;
    visibility: hidden;
    transition:
        transform .35s ease,
        opacity .25s ease,
        visibility .25s ease;
}

.yaqeen-install-prompt.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.yaqeen-install-prompt__top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yaqeen-install-prompt__icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    overflow: hidden;
    background: #f6f1e8;
}

.yaqeen-install-prompt__icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.yaqeen-install-prompt__content {
    min-width: 0;
    flex: 1;
}

.yaqeen-install-prompt__title {
    margin: 0;
    color: #123f5c;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

.yaqeen-install-prompt__text {
    margin: 3px 0 0;
    color: #667b88;
    font-size: 11px;
    line-height: 1.7;
}

.yaqeen-install-prompt__close {
    width: 30px;
    height: 30px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: #f4f7f8;
    color: #6b7d86;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.yaqeen-install-prompt__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 13px;
}

.yaqeen-install-prompt__install,
.yaqeen-install-prompt__browser {
    min-height: 42px;
    border-radius: 13px;
    border: 0;
    padding: 0 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.yaqeen-install-prompt__install {
    color: #fff;
    background: #20B8D4;
    box-shadow: 0 8px 18px rgba(32,184,212,.22);
}

.yaqeen-install-prompt__browser {
    color: #315467;
    background: #f2f6f7;
}

.yaqeen-install-prompt__ios {
    display: none;
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 13px;
    background: #f4f8f9;
    color: #4e6876;
    font-size: 11px;
    line-height: 1.8;
}

.yaqeen-install-prompt__ios strong {
    color: #123f5c;
}

@media (max-width: 380px) {
    .yaqeen-install-prompt {
        left: 10px;
        right: 10px;
        padding: 13px;
        border-radius: 19px;
    }

    .yaqeen-install-prompt__icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
}
