/* ====== A2HS Banner (Add to Home Screen) ====== */
#app-banner {
    position: fixed;
    bottom: -100px; /* برای انیمیشن ورودی */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    z-index: 9999 !important;
    font-family: iranyekan, sans-serif;
    direction: rtl;
}

    /* آیکن اپ */
    #app-banner .app-banner-icon {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        margin-left: 10px;
    }

    /* متن بنر */
    #app-banner .app-banner-text {
        flex: 1;
        font-size: 14px;
        color: #333;
        line-height: 1.5;
    }

    /* دکمه‌ها */
    #app-banner button {
        background: #ea5648;
        color: #fff;
        border: none;
        border-radius: 10px;
        padding: 8px 14px;
        font-size: 13px;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

        #app-banner button:hover {
            background: #cf0000;
        }

#app-banner-close-btn {
    background: transparent !important;
    color: #666 !important;
    font-size: 22px !important;
    line-height: 0;
    padding: 3px 20px 0 8px !important;
}

/* ====== Animations ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 40px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    to {
        opacity: 0;
        transform: translate(-50%, 40px);
    }
}

.fadeInUp {
    animation: fadeInUp 0.4s ease-out forwards;
}

.fadeOutDown {
    animation: fadeOutDown 0.4s ease-in forwards;
}

/* ====== حالت فعال ====== */
#app-banner.active {
    bottom: 20px;
}
