.r_r-dropdown {
    position: relative;
    width: 100%;
    font-family: 'Montserrat', sans-serif !important;
    --rr-glass-bg: #12151c;
    --rr-glass-border: #2a2f3d;
    --rr-text-main: #f1f5f9;
    --rr-text-muted: #a5b4c9;
    --rr-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}

.r_r-dropdown * {
    font-family: 'Montserrat', sans-serif !important;
}

.r_r-dropdown.open {
    z-index: 20000;
}

.rr-open-host {
    position: relative;
    z-index: 20000 !important;
}

.r_r-dropdown-trigger {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--rr-glass-border);
    background: var(--rr-glass-bg);
    color: var(--rr-text-main);
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    box-shadow: var(--rr-shadow);
    font-family: 'Montserrat', sans-serif !important;
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.r_r-dropdown.open .r_r-dropdown-trigger,
.r_r-dropdown-trigger:hover {
    border-color: #3a4152;
    background: #171b24;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.58);
}

.r_r-dropdown.open .r_r-dropdown-trigger {
    transform: translateY(-1px);
}

.r_r-dropdown-trigger:focus-visible {
    outline: none;
    border-color: #4a5368;
    box-shadow: 0 0 0 3px rgba(93, 106, 133, 0.3), var(--rr-shadow);
}

.r_r-dropdown-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.r_r-dropdown-caret {
    color: var(--rr-text-muted);
    font-size: 0.82rem;
    margin-left: 10px;
    transition: transform 0.22s ease, color 0.22s ease;
}

.r_r-dropdown.open .r_r-dropdown-caret {
    color: #e2e8f0;
    transform: rotate(180deg);
}

.r_r-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20001;
    display: block;
    max-height: 280px;
    overflow-y: auto;
    background: #07090d;
    border: 1px solid #1a1f29;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.62);
    isolation: isolate;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.2s ease;
    scrollbar-width: thin;
    scrollbar-color: #3a4152 #0e1117;
}

.r_r-dropdown-menu::-webkit-scrollbar {
    width: 10px;
}

.r_r-dropdown-menu::-webkit-scrollbar-track {
    background: #0e1117;
    border-radius: 999px;
}

.r_r-dropdown-menu::-webkit-scrollbar-thumb {
    background: #3a4152;
    border-radius: 999px;
    border: 2px solid #0e1117;
}

.r_r-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #4a5368;
}

.r_r-dropdown.open .r_r-dropdown-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

.r_r-dropdown-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--rr-text-main);
    text-align: left;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0;
    border-bottom: 0;
    font-family: 'Montserrat', sans-serif !important;
    transition: background 0.18s ease, transform 0.16s ease, color 0.18s ease;
}

.r_r-dropdown-item:last-child {
    border-bottom: 0;
}

.r_r-dropdown-item:hover,
.r_r-dropdown-item.active {
    background: #1b2029;
    color: #fff;
}

.r_r-dropdown-item:hover {
    transform: none;
}

.r_r-dropdown-item:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .r_r-dropdown-trigger,
    .r_r-dropdown-caret,
    .r_r-dropdown-menu,
    .r_r-dropdown-item {
        transition: none !important;
    }
}
