/* app-update.css — مدال «بروزرسانی اجباری» (فقط داخل اپ اندروید نمایش داده می‌شود) */

.fa-update-overlay {
    --fa-bg: #18181b;
    --fa-text: #f4f4f5;
    --fa-muted: #a1a1aa;
    --fa-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(9, 9, 11, 0.62);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .fa-update-overlay.is-open {
        opacity: 1;
    }

    .fa-update-overlay * {
        box-sizing: border-box;
    }

.fa-update-card {
    width: 100%;
    max-width: 380px;
    padding: 34px 24px 24px;
    border-radius: 26px;
    text-align: center;
    background: linear-gradient(160deg, rgba(39, 39, 52, 0.97), rgba(24, 24, 27, 0.99));
    border: 1px solid rgba(129, 140, 248, 0.3);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 80px rgba(99, 102, 241, 0.2);
    transform: translateY(14px) scale(0.94);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.fa-update-overlay.is-open .fa-update-card {
    transform: translateY(0) scale(1);
}

.fa-update-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--fa-grad);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.28), 0 10px 32px rgba(124, 58, 237, 0.5);
    animation: fa-update-float 3.2s ease-in-out infinite;
}

    .fa-update-icon svg {
        width: 40px;
        height: 40px;
    }

@keyframes fa-update-float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.fa-update-chip {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 0.72rem;
    font-weight: 700;
}

.fa-update-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fa-text);
}

.fa-update-text {
    margin: 0 0 22px;
    font-size: 0.88rem;
    line-height: 1.95;
    color: var(--fa-muted);
}

.fa-update-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: none;
    border-radius: 16px;
    background: var(--fa-grad);
    color: #fff;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .fa-update-btn:active {
        transform: scale(0.98);
    }

    .fa-update-btn svg {
        width: 20px;
        height: 20px;
    }

@media (prefers-reduced-motion: reduce) {
    .fa-update-icon {
        animation: none;
    }

    .fa-update-overlay, .fa-update-card {
        transition: none;
    }
}
