/* Language Selector Modal & Footer Trigger       */
        /* ============================================== */
        .footer-lang-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 9px;
            background: rgba(148, 186, 101, 0.08);
            border: 1px solid rgba(148, 186, 101, 0.35);
            border-radius: 12px;
            color: #94ba65;
            text-decoration: none;
            font-size: 13px;
            vertical-align: middle;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            line-height: 1;
            margin-left: 2px;
            cursor: pointer;
        }

        .footer-lang-link:hover {
            background: rgba(148, 186, 101, 0.22);
            border-color: #94ba65;
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(148, 186, 101, 0.3);
            transform: translateY(-1px);
        }

        .footer-lang-link .lang-globe-icon {
            color: #94ba65;
            flex-shrink: 0;
            display: inline-block;
        }

        .footer-lang-link .footer-lang-flag {
            font-size: 15px;
            line-height: 1;
            display: inline-flex;
            align-items: center;
        }

        /* Modal Overlay & Dialog */
        .lang-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 14, 20, 0.75);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 99998;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.25s ease, visibility 0.25s ease;
        }

        .lang-modal-overlay.is-open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .lang-modal-dialog {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.94);
            width: 92%;
            max-width: 460px;
            max-height: 88vh;
            overflow-y: auto;
            background: #111620;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 16px;
            padding: 26px 24px;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(148, 186, 101, 0.2);
            color: #e6edf3;
            box-sizing: border-box;
            z-index: 99999;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
        }

        .lang-modal-overlay.is-open .lang-modal-dialog {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translate(-50%, -50%) scale(1);
        }

        .lang-modal-close {
            position: absolute;
            top: 18px;
            right: 18px;
            background: transparent;
            border: none;
            color: #8b949e;
            cursor: pointer;
            padding: 6px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            outline: none;
        }

        .lang-modal-close:hover {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.08);
        }

        .lang-modal-header {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            margin-bottom: 22px;
        }

        .lang-header-icon-box {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: rgba(148, 186, 101, 0.12);
            border: 1px solid rgba(148, 186, 101, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .lang-header-text {
            flex: 1;
        }

        .lang-modal-title {
            margin: 0 0 4px 0 !important;
            font-size: 19px !important;
            font-weight: 700 !important;
            color: #ffffff !important;
            line-height: 1.25 !important;
            font-family: 'Diavlo', 'Roboto', sans-serif !important;
        }

        .lang-title-divider {
            color: #85a957;
            margin: 0 4px;
        }

        .lang-title-sub {
            font-weight: 400;
            color: #8b949e;
            font-size: 15px;
        }

        .lang-modal-desc {
            margin: 0 !important;
            font-size: 13px !important;
            color: #8b949e !important;
            line-height: 1.4 !important;
        }

        .lang-desc-en {
            font-size: 12px;
            color: #6e7681;
        }

        /* Language Cards List */
        .lang-options-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 20px;
        }

        .lang-card {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 13px 16px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            text-decoration: none;
            color: #e6edf3;
            transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
            box-sizing: border-box;
            cursor: pointer;
            width: 100%;
            text-align: left;
            outline: none;
        }

        .lang-card:hover {
            background: rgba(148, 186, 101, 0.08);
            border-color: rgba(148, 186, 101, 0.4);
            transform: translateY(-1px);
            text-decoration: none;
            color: #ffffff;
        }

        .lang-card.is-active {
            background: rgba(148, 186, 101, 0.12);
            border-color: #94ba65;
            box-shadow: 0 0 0 1px #94ba65;
        }

        .lang-card.is-disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: rgba(255, 255, 255, 0.015);
            border-color: rgba(255, 255, 255, 0.06);
        }

        .lang-card.is-disabled:hover {
            background: rgba(255, 255, 255, 0.015);
            border-color: rgba(255, 255, 255, 0.06);
            transform: none;
        }

        .lang-card-flag {
            font-size: 24px;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.06);
            flex-shrink: 0;
        }

        .lang-card-info {
            flex: 1;
        }

        .lang-card-name {
            font-size: 15px;
            font-weight: 600;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .lang-card-code {
            font-size: 11px;
            font-weight: 700;
            padding: 1px 6px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            color: #c9d1d9;
            letter-spacing: 0.5px;
        }

        .lang-card.is-active .lang-card-code {
            background: rgba(148, 186, 101, 0.25);
            color: #94ba65;
        }

        .lang-card-native {
            font-size: 12px;
            color: #8b949e;
            margin-top: 2px;
        }

        .lang-card-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            flex-shrink: 0;
        }

        .lang-card-badge.active-badge {
            background: #94ba65;
            color: #0d1117;
        }

        .lang-card-badge.switch-badge {
            background: rgba(255, 255, 255, 0.08);
            color: #e6edf3;
            transition: all 0.2s ease;
        }

        .lang-card:hover .lang-card-badge.switch-badge {
            background: #94ba65;
            color: #0d1117;
        }

        .lang-card-badge.coming-badge {
            background: rgba(255, 255, 255, 0.05);
            color: #6e7681;
            font-size: 11px;
        }

        /* Modal Footer */
        .lang-modal-footer {
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding-top: 14px;
        }

        .lang-footer-hint {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: #8b949e;
            line-height: 1.4;
        }

        .lang-footer-hint svg {
            color: #94ba65;
            flex-shrink: 0;
        }

        /* Responsive */
        @media only screen and (max-width: 767px) {
            .lang-modal-dialog {
                padding: 22px 18px;
            }
            .lang-modal-title {
                font-size: 17px !important;
            }
        }

/* RTL Support */
[dir="rtl"] .footer-lang-link {
    margin-left: 0;
    margin-right: 2px;
}
[dir="rtl"] .lang-modal-close {
    right: auto;
    left: 18px;
}
[dir="rtl"] .lang-card-badge {
    margin-left: 0;
    margin-right: auto;
}
