/* Clean & VIP Language Selection Styles - No Animations */
.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 3000;
}

@media (min-width: 768px) {
    .language-modal {
        align-items: center;
    }
}

.language-modal-content {
    background: var(--sheet-bg, #1B4332);
    border: none;
    /* إزالة الحدود البيضاء */
    border-radius: 30px 30px 0 0;
    padding: 35px 24px 30px;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 245px);
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    visibility: visible;
    /* تظهر فقط عند الطلب */
}

@media (min-width: 768px) {
    .language-modal-content {
        border-radius: 25px;
        max-width: 400px;
        width: 90%;
        height: 600px;
        /* طول موحد للمتصفحات الكبيرة */
        padding: 40px 30px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    }
}

.sheet-handle-trigger {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.languages-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.lang-btn {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 14px;
    border: none;
    /* إزالة الحدود من الأزرار أيضاً */
    background: var(--lang-btn-bg, rgba(255, 255, 255, 0.05));
    color: white;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    width: 100%;
    outline: none;
    overflow: hidden;
    /* لمنع خروج التأثير */
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background-color: var(--accent-green, #1B4332);
    transform: translateX(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    opacity: 0;
}

.lang-btn:hover::before {
    width: 100%;
    opacity: 0.3;
}

.lang-btn.active::before {
    width: 100%;
    opacity: 1;
}

.lang-btn .lang-name,
.lang-btn.active::after {
    position: relative;
    z-index: 1;
}

.lang-btn.active {
    background: transparent;
}

.lang-btn .lang-name {
    flex-grow: 1;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: start;
}

/* Checkmark for active state - Static */
.lang-btn.active::after {
    content: '\eb7a';
    font-family: 'remixicon';
    font-size: 1.3rem;
    color: var(--lang-checkmark-color, white);
    margin-inline-start: 10px;
}

/* Control Panel Overrides (Keeping them functional) */
.languages-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.checkbox-label:hover {
    border-color: #4CAF50;
}

/* English Language Specific Font Override */
html[lang="en"] body {
    font-family: 'Inter', sans-serif;
}