.mobile-menu-toggle,
.mobile-menu {
    display: none;
}

.social-links a,
.wa-link {
    overflow: visible;
    position: relative;
    text-decoration: none !important;
}

.social-links a::after,
.wa-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.95;
    transform: translateX(-50%);
}

.social-links a[aria-label="TikTok"]::after {
    width: 21px;
    opacity: 1;
}

@media (max-width: 1024px) {
    body.mobile-menu-open {
        overflow: hidden;
    }

    .navbar {
        height: 72px !important;
        padding: 0 1.1rem !important;
        z-index: 1300;
    }

    .nav-left {
        flex: 0 1 auto;
        min-width: 0;
    }

    .nav-center,
    .nav-right {
        display: none !important;
    }

    .logo-img {
        height: 46px !important;
    }

    .brand-name {
        font-size: 0.95rem !important;
        max-width: none;
        white-space: nowrap;
        margin-left: 0.55rem;
    }

    [dir="rtl"] .brand-name {
        margin-left: 0;
        margin-right: 0.55rem;
    }

    .mobile-menu-toggle {
        position: absolute;
        top: 50%;
        right: 1.1rem;
        transform: translateY(-50%);
        width: 52px;
        height: 44px;
        border: 0;
        background: transparent;
        color: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 7px;
        cursor: pointer;
        z-index: 1201;
        padding: 0;
    }

    [dir="rtl"] .mobile-menu-toggle {
        right: auto;
        left: 1.1rem;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 38px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.78);
        transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease, background-color 0.2s ease;
    }

    .mobile-menu-toggle:hover span,
    .mobile-menu-toggle:focus-visible span,
    .mobile-menu-toggle.is-open span {
        background: #FF8000;
    }

    .mobile-menu-toggle span:nth-child(2) {
        width: 31px;
    }

    .mobile-menu-toggle.is-open span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .mobile-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
        width: 0;
    }

    .mobile-menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .mobile-menu {
        position: fixed;
        inset: 72px 0 0 0;
        z-index: 1200;
        display: block;
        background: rgba(0, 0, 0, 0.82);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .mobile-menu.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-panel {
        min-height: 100%;
        padding: 2rem 1.25rem;
        background:
            radial-gradient(circle at 70% 18%, rgba(255, 128, 0, 0.12), transparent 34%),
            #050505;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        transform: translateY(-18px);
        transition: transform 0.25s ease;
    }

    .mobile-menu.is-open .mobile-menu-panel {
        transform: translateY(0);
    }

    .mobile-nav-link {
        color: rgba(255, 255, 255, 0.86);
        text-decoration: none;
        font-size: 1.15rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        text-align: center;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link:focus-visible {
        color: #FF8000;
        border-bottom-color: rgba(255, 128, 0, 0.36);
        transform: translateY(-2px);
    }

    [dir="rtl"] .mobile-nav-link {
        letter-spacing: 0;
        font-size: 1.25rem;
    }

    .mobile-lang-toggle {
        width: fit-content;
        margin-top: 1.2rem;
        border: 1px solid rgba(255,255,255,0.16);
        background: rgba(255,255,255,0.04);
        color: #ffffff;
        border-radius: 999px;
        padding: 0.75rem 1rem;
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        font: inherit;
        font-weight: 800;
        cursor: pointer;
    }

    [dir="rtl"] .mobile-lang-toggle {
        align-self: flex-end;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 1.15fr);
        grid-template-areas:
            "social links"
            "social legal";
        align-items: center;
        column-gap: 2rem;
        row-gap: 0.55rem;
        height: auto;
        padding: 1.35rem 2rem;
    }

    .footer-left {
        grid-area: social;
        order: initial;
        width: 100%;
        min-width: 0;
        align-items: flex-start;
    }

    .footer-center {
        grid-area: legal;
        order: initial;
        width: 100%;
        min-width: 0;
        justify-content: flex-end;
        text-align: right;
    }

    .footer-right {
        grid-area: links;
        order: initial;
        width: 100%;
        min-width: 0;
        justify-content: flex-end;
    }

    .copyright {
        line-height: 1.45;
    }

    .footer-links {
        justify-content: flex-end;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    [dir="rtl"] .footer {
        grid-template-areas:
            "links social"
            "legal social";
    }

    [dir="rtl"] .footer-left {
        align-items: flex-end;
    }

    [dir="rtl"] .footer-center {
        justify-content: flex-start;
        text-align: left;
    }

    [dir="rtl"] .footer-right,
    [dir="rtl"] .footer-links {
        justify-content: flex-start;
    }
}
