.candidate-lang-switcher {
    --lang-ink: #16324f;
    --lang-muted: #6b7c93;
    --lang-line: rgba(22, 50, 79, 0.08);
    --lang-soft: #eef6fc;
    --lang-accent: #2f86c9;
    --lang-accent-deep: #1b6ca8;
    --lang-font: "Noto Sans", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Gujarati",
        "Noto Sans Kannada", "Noto Sans Tamil", "Noto Sans Telugu", "Noto Sans Malayalam",
        "Noto Sans Oriya", "Noto Sans Gurmukhi", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    position: relative;
    list-style: none;
    margin: 0 10px 0 0;
    display: flex;
    align-items: center;
    font-family: var(--lang-font);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.candidate-lang-switcher a,
.candidate-lang-switcher button {
    text-decoration: none !important;
}

.candidate-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(47, 134, 201, 0.22);
    background:
        linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
    color: var(--lang-ink);
    border-radius: 999px;
    padding: 5px 10px 5px 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    font-family: inherit;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow:
        0 1px 2px rgba(22, 50, 79, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.candidate-lang-btn:hover,
.candidate-lang-btn[aria-expanded="true"] {
    border-color: rgba(47, 134, 201, 0.45);
    background: linear-gradient(180deg, #ffffff 0%, #ebf5fd 100%);
    box-shadow:
        0 8px 18px rgba(47, 134, 201, 0.14),
        0 0 0 3px rgba(47, 134, 201, 0.12);
    transform: translateY(-1px);
}

.candidate-lang-orb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, #ffffff 0%, #d9eefc 55%, #b7daf5 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.candidate-lang-flag {
    font-size: 14px;
    line-height: 1;
}

.candidate-lang-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    max-width: 112px;
    overflow: visible;
}

.candidate-lang-label {
    max-width: 100%;
    overflow: visible;
    white-space: nowrap;
    color: var(--lang-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    padding: 1px 0 2px;
    text-decoration: none;
}

.candidate-lang-meta {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--lang-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.candidate-lang-caret {
    font-size: 10px;
    color: var(--lang-muted);
    margin-right: 2px;
    transition: transform 0.2s ease;
}

.candidate-lang-btn[aria-expanded="true"] .candidate-lang-caret {
    transform: rotate(180deg);
}

.candidate-lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 304px;
    max-height: 420px;
    overflow: hidden;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    border: 1px solid rgba(22, 50, 79, 0.08);
    border-radius: 18px;
    box-shadow:
        0 18px 40px rgba(22, 50, 79, 0.16),
        0 2px 6px rgba(22, 50, 79, 0.06);
    z-index: 1050;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.candidate-lang-menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.candidate-lang-menu-head {
    padding: 14px 14px 10px;
    background:
        linear-gradient(135deg, rgba(47, 134, 201, 0.12) 0%, rgba(255, 255, 255, 0.2) 55%, rgba(27, 108, 168, 0.08) 100%);
    border-bottom: 1px solid var(--lang-line);
}

.candidate-lang-menu-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lang-accent-deep);
    margin-bottom: 2px;
}

.candidate-lang-menu-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--lang-ink);
    margin-bottom: 10px;
    line-height: 1.55;
    padding: 2px 0;
    overflow: visible;
    text-decoration: none;
}

.candidate-lang-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(47, 134, 201, 0.18);
    border-radius: 12px;
    padding: 8px 10px;
    box-shadow: inset 0 1px 2px rgba(22, 50, 79, 0.04);
}

.candidate-lang-search .fa-search {
    color: var(--lang-accent);
    font-size: 12px;
}

.candidate-lang-search-input {
    border: 0;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 13px;
    color: var(--lang-ink);
}

.candidate-lang-search-input::placeholder {
    color: #93a4b8;
}

.candidate-lang-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: thin;
    scrollbar-color: #c5d8ea transparent;
}

.candidate-lang-list::-webkit-scrollbar {
    width: 6px;
}

.candidate-lang-list::-webkit-scrollbar-thumb {
    background: #c5d8ea;
    border-radius: 999px;
}

.candidate-lang-group + .candidate-lang-group {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--lang-line);
}

.candidate-lang-group-title {
    padding: 6px 10px 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8091a6;
}

.candidate-lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: transparent;
    color: var(--lang-ink);
    border-radius: 12px;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none !important;
    line-height: 1.45;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.candidate-lang-option:hover {
    background: rgba(47, 134, 201, 0.08);
    transform: translateX(2px);
}

.candidate-lang-option.is-active {
    background: linear-gradient(135deg, rgba(47, 134, 201, 0.16), rgba(27, 108, 168, 0.1));
    box-shadow: inset 0 0 0 1px rgba(47, 134, 201, 0.18);
}

.candidate-lang-option.is-hidden {
    display: none;
}

.candidate-lang-option-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.candidate-lang-option-flag {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(22, 50, 79, 0.06);
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(22, 50, 79, 0.05);
}

.candidate-lang-option-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: visible;
}

.candidate-lang-option-native {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    padding: 1px 0 2px;
    overflow: visible;
    white-space: nowrap;
    text-decoration: none;
}

.candidate-lang-option-english {
    font-size: 11px;
    color: var(--lang-muted);
    font-weight: 500;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.candidate-lang-option-aside {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.candidate-lang-chip {
    min-width: 28px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #eef3f8;
    color: #4d627a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
}

.candidate-lang-option.is-active .candidate-lang-chip {
    background: rgba(255, 255, 255, 0.75);
    color: var(--lang-accent-deep);
}

.candidate-lang-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lang-accent);
    color: #fff;
    font-size: 10px;
    box-shadow: 0 4px 10px rgba(47, 134, 201, 0.28);
}

.candidate-lang-empty {
    padding: 18px 12px;
    text-align: center;
    color: var(--lang-muted);
    font-size: 13px;
}

.candidate-lang-group.is-empty {
    display: none;
}

@media (max-width: 768px) {
    .candidate-lang-copy {
        max-width: 72px;
    }

    .candidate-lang-meta {
        display: none;
    }

    .candidate-lang-menu {
        right: auto;
        left: 50%;
        transform: translate(-50%, -6px) scale(0.98);
        width: min(304px, calc(100vw - 24px));
    }

    .candidate-lang-menu.is-open {
        transform: translate(-50%, 0) scale(1);
    }
}
