        /* --- Language Switcher Unification & Alignment --- */

        /* Style the dropdown button for a consistent look */
        #lang-switcher-btn {
            width: 100%;
            /*border: 0px solid #4b5563;*/
            border-radius: 0.375rem;
            /*background-color: #1f2937;*/
            transition: border-radius 0.15s ease-in-out, background-color 0.2s ease;
            /* Add explicit padding to match the dropdown links */
            padding: 0.5rem 0 !important;
        }

        /* When menu is open, make the button's bottom corners sharp */
        #language-switcher-placeholder.is-open #lang-switcher-btn {
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }

        /* Style the dropdown menu itself */
        #lang-menu {
            /* These override the inline styles from shared.js */
            /*background-color: #1f2937 !important;*/
            /*border: 1px solid #4b5563 !important;*/
            border-top: none !important; /* Prevents a double border */
            border-radius: 0 0 0.375rem 0.375rem !important;
            margin-top: 0.75rem !important;
            left: 0;
            right: 0;
            /* --- FIX STARTS HERE --- */
            width: 100% !important;
            min-width: 0 !important; /* Overrides the inline min-width:120px */
            box-sizing: border-box !important; /* Ensures padding is included in the width */
            /* --- FIX ENDS HERE --- */
        }

        /* Style each link in the dropdown */
        #lang-menu .lang-switch-link {
            padding: 0rem 0rem 0.5rem 0.1rem!important; /* py-2 px-3 */
        }

        /* THIS IS THE KEY for perfect vertical alignment */
        #lang-menu .lang-switch-link > div {
            display: flex;
            align-items: center; /* Vertically centers the flag and text */
            gap: 0.7rem; /* 12px space between items */
        }

        #lang-menu .lang-switch-link span {
            line-height: 1; /* Prevents inconsistent text height */
        }