/* SWITCHER TRIGGER - Premium Top Nav Style */
.badr-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0px 0px 0px 10px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 5px;
    color: #222222;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.badr-switcher-btn:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.badr-trigger-icon {
    display: flex;
    align-items: center;
    color: #222;
}

.badr-trigger-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #222;
}

.badr-trigger-burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background: #222222;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
}

/* MODAL OVERLAY */
.badr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.badr-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* MODAL CONTENT */
.badr-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 1032px;
    height: auto;
    max-height: 85vh;
    border-radius: 24px;
    position: relative;
    padding: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #222222;
}

/* CLOSE BUTTON */
.badr-modal-close {
    position: absolute;
    top: 24px;
    left: 24px;
    background: transparent;
    border: none;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #222222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.badr-modal-close:hover {
    background: #f7f7f7;
}

/* TABS */
.badr-modal-tabs {
    padding: 24px 24px 0 24px;
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #ebebeb;
    margin-top: 48px;
}

.badr-tab-link {
    background: none;
    border: none;
    padding: 0 0 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: #717171;
    cursor: pointer;
    position: relative;
}

.badr-tab-link.active {
    color: #222;
}

.badr-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #222;
}

/* BODY & GRID */
.badr-modal-body {
    padding: 32px;
    overflow-y: auto;
}

.badr-tab-content {
    display: none;
}

.badr-tab-content.active {
    display: block;
}

.badr-section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 24px 0;
}

.badr-grid {
    display: grid;
    gap: 8px;
}

.badr-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.badr-grid-item {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: #222;
    display: flex;
    flex-direction: column;
}

.badr-grid-item:hover {
    background: #f7f7f7;
}

.badr-grid-item.active {
    border-color: #222222;
    background: #ffffff;
}

.badr-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.badr-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

.badr-item-main {
    font-size: 14px;
    font-weight: 400;
}

.badr-grid-item {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #222;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.badr-grid-item:hover {
    background: #f7f7f7;
}

.badr-grid-item.active {
    border-color: #222222;
    background: #ffffff;
}

.badr-item-main {
    font-size: 14px;
    font-weight: 400;
    color: #222;
}

.badr-item-sub {
    font-size: 14px;
    color: #717171;
    font-weight: 300;
}

/* RTL Support */
[dir="rtl"] .badr-modal-content {
    text-align: right;
}

[dir="rtl"] .badr-modal-close {
    left: auto;
    right: 20px;
}

[dir="rtl"] .badr-grid-item {
    text-align: right;
}

/* Mobile Responsiveness */
@media (max-width: 950px) {
    .badr-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .badr-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .badr-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}