/* ── Custom Select Container ── */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
    direction: rtl;
}

/* ── Custom Select Trigger ── */
.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0a0b10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    color: #f0f2f8;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}
.custom-select-trigger:hover {
    border-color: rgba(200, 16, 46, 0.4);
}
.custom-select-wrapper.open .custom-select-trigger {
    border-color: rgba(200, 16, 46, 0.6);
    box-shadow: 0 0 10px rgba(200, 16, 46, 0.15);
    background: #0c0e14;
}
.custom-select-trigger i {
    font-size: 0.75rem;
    color: #525870;
    transition: transform 0.22s ease;
    margin-right: auto;
}
.custom-select-wrapper.open .custom-select-trigger i {
    transform: rotate(180deg);
    color: #c8102e;
}

/* ── Custom Options Menu ── */
.custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(17, 21, 32, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(200, 16, 46, 0.03);
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
    
    /* Animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Custom Scrollbar inside Options */
.custom-select-options::-webkit-scrollbar {
    width: 5px;
}
.custom-select-options::-webkit-scrollbar-track {
    background: transparent;
}
.custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(200, 16, 46, 0.3);
    border-radius: 10px;
}
.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: #c8102e;
}

/* ── Custom Option Item ── */
.custom-option {
    padding: 11px 16px;
    font-size: 0.86rem;
    color: #9ba3bb;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: right;
    border-right: 3px solid transparent;
}
.custom-option:hover {
    color: #ff2442;
    background: rgba(200, 16, 46, 0.08);
    border-right-color: #c8102e;
    padding-right: 20px;
}
.custom-option.selected {
    color: #fff;
    font-weight: 700;
    background: rgba(200, 16, 46, 0.12);
    border-right-color: #c8102e;
}
