.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .nav {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    direction: ltr;
}

.site-header .logo {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.25em;
}

.site-header .nav-links {
    display: flex;
    gap: 28px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.94rem;
}

.site-header .nav-links a:hover {
    color: #fff;
}

.site-header .nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-header .nav-register-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.site-header .nav-register-btn:hover {
    background: #fff;
    color: #000;
}

.site-header .language-switcher {
    position: relative;
}

.site-header .lang-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: transparent;
    padding: 0;
    transition: all 0.3s ease;
}

.site-header .lang-toggle img {
    width: 17px;
    height: 17px;
    object-fit: contain;
    filter: invert(1);
    display: block;
}

.site-header .lang-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.site-header .lang-dropdown {
    position: absolute;
    top: 46px;
    right: 0;
    min-width: 120px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 200;
}

.site-header .lang-dropdown.show {
    display: flex;
}

.site-header .lang-option {
    color: #fff;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.site-header .lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.site-footer {
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.76);
    padding: 80px 0 26px;
    margin-top: 0;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 34px;
    padding-bottom: 42px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    direction: ltr;
}

.site-footer .footer-logo {
    display: inline-block;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    margin-bottom: 18px;
}

.site-footer .footer-logo span {
    opacity: 0.7;
}

.site-footer h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.site-footer ul {
    list-style: none;
}

.site-footer li {
    margin-bottom: 10px;
}

.site-footer .footer-bottom {
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.9rem;
    direction: ltr;
}

html[lang="fa"] main,
html[lang="fa"] .footer-desc,
html[lang="fa"] .site-footer h4,
html[lang="fa"] .site-footer li,
html[lang="fa"] .footer-bottom p,
html[lang="fa"] .footer-bottom-links {
    direction: rtl;
}

.site-footer .footer-bottom-links {
    display: flex;
    gap: 18px;
}

@media (max-width: 1100px) {
    .site-footer .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header .nav {
        min-height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
    }

    .site-header .nav-links {
        grid-column: 1 / -1;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        padding: 2px 0 6px;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .site-header .nav-links::-webkit-scrollbar {
        display: none;
    }

    .site-header .nav-right {
        justify-content: flex-end;
        gap: 10px;
    }

    .site-header .nav-register-btn {
        padding: 7px 14px;
        font-size: 0.82rem;
    }

    .site-header .lang-toggle {
        width: 34px;
        height: 34px;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
