.language-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.language-toggle:hover {
    border-color: #cbd5f5;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.language-flag {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.language-flag-img {
    width: 18px;
    height: 18px;
    display: inline-block;
    border-radius: 3px;
    object-fit: cover;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    max-height: 360px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
    padding: 8px;
    display: none;
    z-index: 2000;
}

.language-dropdown.show {
    display: block;
}

.language-dropdown-title {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    padding: 6px 8px 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    color: #0f172a;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.language-option:hover {
    background: #f8fafc;
}

.language-option:visited {
    color: inherit;
    text-decoration: none !important;
    border-bottom: none !important;
}

.language-dropdown a {
    text-decoration: none !important;
    border-bottom: none !important;
}

.language-option *,
.language-name {
    text-decoration: none !important;
    border-bottom: none !important;
}

.language-option.active {
    background: #eef2ff;
    color: #1d4ed8;
    font-weight: 600;
}

.language-check {
    margin-left: auto;
    color: #1d4ed8;
    font-weight: 700;
}

@media (max-width: 960px) {
    .language-toggle {
        padding: 6px 8px;
        font-size: 11px;
        gap: 6px;
    }

    .language-toggle .language-label {
        display: none;
    }

    .language-dropdown {
        right: 0;
        width: 220px;
    }
}
