/* Language Selection Modal Styles */

.lang-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.lang-modal-content {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    width: 420px;
    max-width: 90%;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lang-modal-overlay.show .lang-modal-content {
    transform: translateY(0) scale(1);
}

.lang-modal-close {
    position: absolute;
    top: 24px; right: 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.lang-modal-close:hover {
    color: #fff;
}

.lang-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.lang-modal-header h2 {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.lang-modal-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.lang-list-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 30px;
    padding-right: 8px;
    border-radius: 12px;
}

/* Custom Scrollbar */
.lang-list-container::-webkit-scrollbar {
    width: 4px;
}
.lang-list-container::-webkit-scrollbar-track {
    background: transparent;
}
.lang-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
.lang-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 205, 48, 0.3);
}

.lang-item {
    padding: 14px 20px;
    margin-bottom: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.lang-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent, #00d2ff);
    color: #fff;
}

.lang-item.active::after {
    content: '✓';
    color: var(--accent, #00d2ff);
    font-weight: bold;
}

.lang-modal-footer {
    display: flex;
    justify-content: center;
}

.btn-lang-confirm {
    background: var(--accent, #00d2ff);
    color: #000;
    border: none;
    padding: 14px 60px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px -5px rgba(0, 210, 255, 0.3);
}

.btn-lang-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(0, 210, 255, 0.4);
}
