.language-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.language-dialog-content {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 2.5rem 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: dialogSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px;
    overflow: hidden;
}

.language-dialog-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-teal), var(--primary-color));
}

.language-dialog-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.language-dialog-header h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0;
    font-family: 'Almarai', sans-serif;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.language-dialog-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--mid-grey);
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.language-dialog-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    transform: translateY(-50%) rotate(90deg);
}

.language-dialog-body {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 1rem;
}

.language-dialog-text-en {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 1rem;
}

.language-dialog-text-ar {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-family: 'Almarai', sans-serif;
    line-height: 1.6;
    font-weight: 600;
}

.language-dialog-countdown {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-teal);
    margin-top: 1.5rem;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    background-color: rgba(0, 173, 170, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.countdown-text {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-family: 'Almarai', sans-serif;
    margin: 0;
    font-weight: 600;
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes dialogSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
} 