.dropdown {
    position: relative;
    display: inline-block;
    z-index: 9999;
}

.dropdown-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #eaeaea;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    min-width: 130px;
}

.dropdown-button:hover {
    background: rgba(30, 136, 229, 0.12);
    border-color: rgba(30, 136, 229, 0.3);
}

.dropdown-button.open {
    background: rgba(30, 136, 229, 0.15);
    border-color: rgba(30, 136, 229, 0.4);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.dropdown-button .lang-flag {
    font-size: 18px;
    line-height: 1;
}

.dropdown-button .lang-label {
    flex: 1;
    text-align: left;
    font-weight: 500;
}

.dropdown-button .lang-chevron {
    font-size: 10px;
    color: #888;
    transition: transform 0.2s;
}

.dropdown-button.open .lang-chevron {
    transform: rotate(180deg);
    color: #1e88e5;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    background: rgba(24, 24, 24, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 200px;
    padding: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
    animation: dropdownIn 0.18s ease-out;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.dropdown-item.active {
    background: rgba(30, 136, 229, 0.15);
    color: #fff;
}

.dropdown-item .item-flag {
    font-size: 20px;
    line-height: 1;
    width: 24px;
    text-align: center;
}

.dropdown-item .item-label {
    flex: 1;
    font-weight: 500;
}

.dropdown-item .item-check {
    color: #1e88e5;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.15s;
}

.dropdown-item.active .item-check {
    opacity: 1;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
