/* LTR layout overrides for English */

[dir="ltr"] body {
    direction: ltr;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

[dir="ltr"] .tsgym-header-top-inner,
[dir="ltr"] .tsgym-nav-main {
    direction: ltr;
}

[dir="ltr"] .tsgym-user-dropdown {
    left: auto;
    right: 0;
}

[dir="ltr"] .tsgym-dropdown-arrow {
    margin-left: 6px;
    margin-right: 0;
}

[dir="ltr"] .menu-ham-link {
    flex-direction: row-reverse;
}

[dir="ltr"] .menu-ham-footer {
    text-align: left;
}

[dir="ltr"] .tsgym-server-submenu {
    left: 0;
    right: auto;
}

[dir="ltr"] .tsgym-reviews-nav-btn[data-dir="prev"] i,
[dir="ltr"] .tsgym-reviews-nav-btn[data-dir="next"] i {
    transform: scaleX(-1);
}

[dir="ltr"] .menu-badge-new,
[dir="ltr"] .menu-badge-rank {
    margin-right: 0;
    margin-left: 6px;
}

/* Public main content centering */
[dir="ltr"] body:not(.panel-app) .main-content,
[dir="ltr"] body:not(.panel-app) .tsgym-bg,
[dir="ltr"] body:not(.panel-app) .tsgym-hero-section,
[dir="ltr"] body:not(.panel-app) .main-container {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== Footer: same centered grid as Persian, only LTR text flow ===== */
[dir="ltr"] .tsgym-footer {
    direction: ltr !important;
    padding-left: 110px !important;
    padding-right: 110px !important;
    text-align: left;
}

[dir="ltr"] .tsgym-footer-inner {
    direction: ltr;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: none;
    width: 100%;
}

[dir="ltr"] .tsgym-footer-connect {
    width: 100%;
    text-align: left;
}

[dir="ltr"] .respone-footer {
    direction: ltr;
}

[dir="ltr"] footer .tsgym-footer-brand-wrap .fa-telegram-plane {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

[dir="ltr"] .tsgym-footer-brand {
    flex-direction: row;
}

[dir="ltr"] .tsgym-footer-list li a {
    flex-direction: row;
}

[dir="ltr"] .tsgym-footer-bottom-inner {
    direction: ltr;
    text-align: center;
}

[dir="ltr"] .tsgym-footer-contact-item {
    flex-direction: row;
}

/* ===== TeamSpeak server list page ===== */
[dir="ltr"] .serverlist-scope,
[dir="ltr"] .serverlist-scope .header-card,
[dir="ltr"] .serverlist-scope .card,
[dir="ltr"] .serverlist-scope .header-text,
[dir="ltr"] .serverlist-scope .faq-wrap,
[dir="ltr"] .serverlist-scope .faq-content {
    direction: ltr;
}

[dir="ltr"] .serverlist-scope .seo-info-card,
[dir="ltr"] .seo-info-card {
    direction: ltr !important;
    text-align: left !important;
}

[dir="ltr"] .serverlist-scope .badge-area {
    align-items: flex-end;
}

[dir="ltr"] .faq-q {
    flex-direction: row;
    direction: ltr;
}

[dir="ltr"] .faq-q-text {
    text-align: left;
    flex: 1;
}

[dir="ltr"] .faq-a,
[dir="ltr"] .faq-content p,
[dir="ltr"] .faq-subtitle,
[dir="ltr"] .faq-help-text {
    text-align: left;
}

[dir="ltr"] .faq-arrow {
    flex-shrink: 0;
    margin-inline-start: 10px;
}

[dir="ltr"] .faq-seo-link {
    text-align: left;
}

/* ===== Panel layout ===== */
[dir="ltr"] body.panel-app .sidebar {
    right: auto;
    left: 0;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

[dir="ltr"] body.panel-app .main-content {
    margin-right: 0 !important;
    margin-left: var(--sidebar-width, 270px) !important;
}

[dir="ltr"] body.panel-app .menu-link i {
    margin-left: 0;
    margin-right: 12px;
}

[dir="ltr"] body.panel-app .menu-link:hover,
[dir="ltr"] body.panel-app .menu-link.active {
    border-right: none;
    border-left: 4px solid var(--active-item);
}

[dir="ltr"] body.panel-app .mic-wave-container,
[dir="rtl"] body.panel-app .mic-wave-container {
    margin-inline-start: 0;
    margin-inline-end: 12px;
    margin-left: 0;
    margin-right: 12px;
}

[dir="ltr"] body.panel-app .staff-chevron {
    margin-right: 0;
    margin-left: 8px;
}

[dir="ltr"] body.panel-app .tsgym-footer {
    direction: ltr !important;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 24px 15px calc(var(--sidebar-width, 270px) + 24px) !important;
}

[dir="ltr"] body.panel-app .tsgym-footer-inner {
    direction: ltr;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none;
    width: 100%;
}

[dir="rtl"] body.panel-app .tsgym-footer {
    padding: 15px 24px 15px calc(var(--sidebar-width, 270px) + 24px) !important;
}

[dir="rtl"] body.panel-app .tsgym-footer-inner {
    max-width: none;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Support department cards */
[dir="ltr"] .dept-card::after {
    content: '\f054';
    left: auto;
    right: 15px;
}

[dir="ltr"] .dept-card:hover::after {
    left: auto;
    right: 10px;
}

@media (max-width: 992px) {
    [dir="ltr"] .tsgym-footer {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    [dir="ltr"] body.panel-app .tsgym-footer,
    [dir="rtl"] body.panel-app .tsgym-footer {
        padding: 15px 20px !important;
    }
}

@media (max-width: 720px) {
    [dir="ltr"] .tsgym-footer {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

@media (max-width: 992px) {
    [dir="ltr"] body.panel-app .main-content {
        margin-left: 0 !important;
    }

    [dir="ltr"] body.panel-app .sidebar {
        transform: translateX(-100%);
        left: 0;
        right: auto;
    }

    [dir="ltr"] body.panel-app .sidebar.open {
        transform: translateX(0);
    }

    [dir="ltr"] body.panel-app .sidebar-close {
        left: auto;
        right: 14px;
    }
}

[dir="ltr"] .sf-table th,
[dir="ltr"] .sf-table td {
    text-align: left;
}

[dir="ltr"] .sf-table table {
    table-layout: auto;
}

[dir="ltr"] .menu-link,
[dir="rtl"] .menu-link {
    overflow: visible;
}

.mic-wave-container {
    overflow: visible;
}

.sidebar .menu-link {
    overflow: visible;
}

[dir="ltr"] .report-warning-box {
    text-align: start;
}

[dir="ltr"] .report-warning-content ul {
    padding-inline-start: 1.25rem;
    padding-inline-end: 0;
}

[dir="ltr"] body.panel-app .product-status {
    inset-inline-start: auto;
    inset-inline-end: 12px;
}

[dir="ltr"] body.panel-app .detail-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

[dir="ltr"] body.panel-app .detail-label {
    flex-shrink: 0;
    min-width: 110px;
}

[dir="ltr"] body.panel-app .badge {
    display: inline-block;
    max-width: 100%;
}

[dir="ltr"] body.panel-app .tsgym-footer-bottom-inner {
    text-align: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
}

@media (max-width: 992px) {
    .sidebar-overlay.active {
        display: block;
    }
}

/* ===== Homepage FAQ (bottom section) ===== */
[dir="ltr"] .tsgym-faq .tsgym-faq-item {
    text-align: left;
}

/* ===== FAQ page accordion ===== */
[dir="ltr"] .tsgym-faq-section .tsgym-faq-item,
[dir="ltr"] .tsgym-faq-section .tsgym-faq-header,
[dir="ltr"] .tsgym-faq-section .tsgym-faq-body {
    direction: ltr;
    text-align: left;
}

[dir="ltr"] .tsgym-faq-section .tsgym-faq-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 12px;
    align-items: center;
}

[dir="ltr"] .tsgym-faq-section .tsgym-faq-chevron {
    order: 0;
    margin-inline-start: 0;
    margin-inline-end: 8px;
}

[dir="ltr"] .tsgym-faq-section .tsgym-faq-tag {
    order: 2;
}

[dir="ltr"] .tsgym-faq-section .tsgym-faq-item.active::before {
    left: 0;
    right: auto;
    border-radius: 0 6px 6px 0;
}

[dir="rtl"] .tsgym-faq-section .tsgym-faq-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 12px;
    align-items: center;
}

[dir="rtl"] .tsgym-faq-section .tsgym-faq-chevron {
    order: 0;
}

[dir="ltr"] body.panel-app .control-bar {
    flex-direction: row;
    align-items: stretch;
}

[dir="ltr"] body.panel-app .msg-textarea {
    direction: ltr;
    text-align: left;
}
