/* ═══════════════════════════════════════════════════════════════
   NAT-FOOTER-NUKE — پاک‌سازی + چیدمان فشرده
   ═══════════════════════════════════════════════════════════════ */

/* ─── نابودسازی هر منوی اضافی داخل فوتر ─── */
html body footer.footer .nat-mobile-quick,
html body footer.footer .nat-mobile-quick-nav,
html body footer.footer .nat-quick-nav,
html body footer.footer .nat-floating-actions,
html body footer.footer .nat-float-nav,
html body footer.footer [class*="mobile-quick"],
html body footer.footer [class*="footer-mobile-menu"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    pointer-events: none !important;
}

/* ─── موبایل: گرید ۳ ستونه فشرده ─── */
@media (max-width: 768px) {

    /* فوتر فشرده */
    html body footer.footer {
        padding: 16px 0 0 !important;
        margin-top: 18px !important;
    }
    html body footer.footer .footer__inner,
    html body footer.footer .container.footer__inner {
        display: block !important;
        padding: 0 14px 8px !important;
        text-align: center !important;
    }
    /* مخفی ۳ ستون لینک */
    html body footer.footer .footer__col:not(.footer__col--brand) {
        display: none !important;
    }

    /* برند وسط‌چین */
    html body footer.footer .footer__col--brand {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    html body footer.footer .footer__col--brand .brand {
        justify-content: center !important;
        margin: 0 0 4px !important;
    }
    html body footer.footer .footer__col--brand p {
        text-align: center !important;
        font-size: .72rem !important;
        margin: 4px auto 0 !important;
        max-width: 300px !important;
        line-height: 1.6 !important;
    }

    /* ═══ گرید دکمه‌ها — ۳ ستونه فشرده ═══ */
    html body footer.footer .nat-footer-menu-mobile {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 340px !important;
        margin: 12px auto 10px !important;
        padding: 0 !important;
    }

    html body footer.footer .nat-footer-menu-mobile a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 4px !important;
        min-height: 36px !important;
        height: auto !important;
        background: rgba(255,255,255,.08) !important;
        border: 1px solid rgba(255,255,255,.16) !important;
        border-radius: 9px !important;
        color: #fbf9f3 !important;
        font-family: 'Vazirmatn', Tahoma !important;
        font-size: .68rem !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        text-align: center !important;
        line-height: 1.2 !important;
        transition: all .2s ease !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    html body footer.footer .nat-footer-menu-mobile a:hover,
    html body footer.footer .nat-footer-menu-mobile a:active {
        background: rgba(217,154,43,.22) !important;
        border-color: rgba(217,154,43,.55) !important;
        color: #FFD98A !important;
    }
    /* دکمه‌های حساب */
    html body footer.footer .nat-footer-menu-mobile a.is-account {
        background: rgba(217,154,43,.15) !important;
        border-color: rgba(217,154,43,.40) !important;
        color: #FFD98A !important;
        font-weight: 800 !important;
    }
    html body footer.footer .nat-footer-menu-mobile a.is-account:active {
        background: linear-gradient(135deg, #D99A2B, #8B5E14) !important;
        border-color: transparent !important;
        color: #1a1e22 !important;
    }

    /* شبکه‌های اجتماعی وسط‌چین */
    html body footer.footer .footer__badges {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin: 10px 0 4px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    html body footer.footer .footer__social {
        display: flex !important;
        gap: 6px !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    html body footer.footer .footer__social a,
    html body footer.footer .footer__enamad {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
        border-radius: 9px !important;
        background: rgba(255,255,255,.08) !important;
        border: 1px solid rgba(255,255,255,.16) !important;
    }
    html body footer.footer .footer__social a.ext-btn {
        width: auto !important;
        min-width: 48px !important;
        max-width: 60px !important;
        padding: 0 8px !important;
        font-size: .6rem !important;
    }
    html body footer.footer .footer__social a svg {
        width: 16px !important;
        height: 16px !important;
    }
    html body footer.footer .footer__enamad img {
        width: 22px !important;
        height: 22px !important;
    }

    /* نوار پایین — فشرده */
    html body footer.footer .footer__bottom {
        margin-top: 8px !important;
        padding: 8px 0 !important;
        font-size: .66rem !important;
    }
    html body footer.footer .footer__bottom .container {
        padding: 0 12px !important;
        flex-direction: column !important;
        gap: 3px !important;
        text-align: center !important;
    }
}

/* ─── موبایل کوچک ─── */
@media (max-width: 400px) {
    html body footer.footer .nat-footer-menu-mobile {
        max-width: 100% !important;
        gap: 5px !important;
    }
    html body footer.footer .nat-footer-menu-mobile a {
        font-size: .62rem !important;
        padding: 7px 3px !important;
        min-height: 34px !important;
    }
    html body footer.footer .footer__social a,
    html body footer.footer .footer__enamad {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
}