.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.lang-popup {
    position: absolute;
    top: 36px;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    padding: 8px;
    min-width: 140px;

    opacity: 0;
    transform: translateY(-8px) scale(0.9);
    pointer-events: none;
    transition: all .25s ease;
    z-index: 9999 !important;
}

.lang-popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-popup-mobile {
    display: none;
    position: absolute; /* absolute in body coordinates */
    top: 60px; /* adjust based on navbar height */
    right: 10px; /* adjust for alignment */
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99999; /* high to overlay navbar */
}

.lang-popup-mobile.show {
    display: block;
}

.lang-title {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    /* gray-500 */
    padding: 6px 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
}

.lang-popup a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
}

.lang-popup a:hover {
    background: #f3f4f6;
}

/* Full screen overlay container */
.lang-slide-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* semi-transparent black */
    display: flex;
    justify-content: flex-end; /* content slides from right */
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 99999;
}

/* Show menu */
.lang-slide-menu.show {
    visibility: visible;
    opacity: 1;
}

/* Slide-out panel */
.lang-slide-content {
    width: 250px;
    max-width: 80%;
    height: 100%;
    background: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%); /* hidden initially */
    transition: transform 0.3s ease-in-out;
}

/* Slide in when parent has show */
.lang-slide-menu.show .lang-slide-content {
    transform: translateX(0);
}

.lang-slide-content .lang-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
}

.lang-slide-content a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}