/* Language switcher modal */
.lang-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.lang-modal-overlay.is-open {
    display: flex;
}
.lang-modal {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
}
.lang-modal h3 {
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #333;
}
.lang-modal-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    overflow-y: auto;
    max-height: 50vh;
}
.lang-modal-list a {
    color: #1baebc;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
}
.lang-modal-list a:hover {
    background: rgba(27, 174, 188, 0.15);
}
.lang-modal-close {
    display: block;
    margin: 0 1rem 1rem auto;
    padding: 0.5rem 1rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
