:root {
    --bg-dark: #080808;
    --primary: #d4af37;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --font-en: 'Poppins', sans-serif;
    --font-ar: 'Vazirmatn', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-en);
    line-height: 1.8;
    overflow: hidden;
}

body[dir="rtl"] {
    font-family: var(--font-ar);
}

.maintenance-screen {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.08) 0%, var(--bg-dark) 60%);
    padding: 20px 5%;
    position: relative;
}

.maintenance-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
}

.lang-selector select {
    background: transparent;
    color: white;
    border: none;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    font-size: 0.9rem;
}

.lang-selector select option {
    background: #111;
    color: white;
}

.maintenance-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 0 20px;
}

.icon-container {
    margin-bottom: 25px;
    animation: pulse-glow 2s infinite alternate;
}

/* تم تحويل التأثير من text-shadow إلى drop-shadow ليعمل على الصورة بشكل فاخر */
@keyframes pulse-glow {
    0% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.2)); }
    100% { transform: scale(1.1); filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.8)); }
}

.maintenance-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.maintenance-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 50px;
}

.progress-container {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: var(--primary);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary);
    animation: loading 2.5s infinite ease-in-out alternate;
}

body[dir="rtl"] .progress-fill {
    left: auto;
    right: 0;
}

@keyframes loading {
    0% { width: 20%; }
    100% { width: 80%; }
}

.progress-container span {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.maintenance-footer {
    text-align: center;
    padding-bottom: 20px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-up:nth-child(1) { animation-delay: 0.1s; }
.slide-up:nth-child(2) { animation-delay: 0.3s; }
.slide-up:nth-child(3) { animation-delay: 0.5s; }
.slide-up:nth-child(4) { animation-delay: 0.7s; }

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 768px) {
    .maintenance-screen {
        padding: 15px;
    }
    
    .maintenance-nav {
        padding-top: 10px;
    }
    
    .logo img {
        height: 32px !important;
    }
    
    .lang-selector {
        width: 40px;
        height: 40px;
        padding: 0 !important;
        justify-content: center;
        border-radius: 50%;
        position: relative;
    }
    
    .lang-selector i {
        position: absolute;
        pointer-events: none;
    }
    
    .lang-selector select {
        opacity: 0;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        cursor: pointer;
    }
    
    .icon-container img {
        height: 70px !important;
    }

    .icon-container {
        margin-bottom: 20px;
    }
    
    .maintenance-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .maintenance-content p {
        font-size: 1.05rem;
        margin-bottom: 40px;
        padding: 0 10px;
    }
}