* {
    font-family: 'Google Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

/* استایل صفحه انتظار */
.wait-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: white;
    animation: colorSlide 15s cubic-bezier(0.075, 0.82, 0.165, 1) infinite;
    text-align: center;
    padding: 20px;
    position: relative;
}

.wait-container .logo {
    font-size: 8em;
    font-weight: 900;
    margin: 30px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    animation: pulse 2s ease-in-out infinite;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(45deg, #ffffff, #e0e0e0, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientText 3s ease infinite;
}

.wait-container .support-link {
    position: absolute;
    top: 30px;
    font-size: 1.1rem;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.wait-container .support-link a {
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
    font-weight: 600;
}

.wait-container .support-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.wait-container .message {
    font-size: 1.5rem;
    margin: 40px 0;
    line-height: 1.6;
    max-width: 600px;
    padding: 0 20px;
    font-weight: 500;
}

.wait-container .service-type {
    color: #FFD700;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 15px;
    border-radius: 10px;
    display: inline-block;
    margin: 0 5px;
}

.wait-container .timer {
    font-size: 1.4rem;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.12);
    padding: 12px 30px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wait-container .loader {
    margin: 40px 0;
    width: 70px;
    height: 70px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

/* استایل صفحه 404 */
.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    animation: colorSlide 15s cubic-bezier(0.075, 0.82, 0.165, 1) infinite;
}

.flex-container .text-center {
    text-align: center;
}

.flex-container .text-center h1,
.flex-container .text-center h3 {
    margin: 10px;
    cursor: default;
    color: #000; /* رنگ مشکی */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.flex-container .text-center h1 .fade-in,
.flex-container .text-center h3 .fade-in {
    animation: fadeIn 2s ease infinite;
}

.flex-container .text-center h1 {
    font-size: 8em;
    transition: font-size 200ms ease-in-out;
    border-bottom: 3px dashed #000;
    font-weight: 900;
}

.flex-container .text-center h1 span#digit1 {
    animation-delay: 200ms;
}

.flex-container .text-center h1 span#digit2 {
    animation-delay: 300ms;
}

.flex-container .text-center h1 span#digit3 {
    animation-delay: 400ms;
}

.flex-container .text-center p {
    color: #000;
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 20px;
    max-width: 600px;
    padding: 0 20px;
}

/* Progress Bar */
.progress-container {
    width: 300px;
    max-width: 90%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    margin: 30px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 0%;
    transition: width 1s linear;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

@keyframes colorSlide {
    0% {
        background-color: #152a68;
    }
    25% {
        background-color: royalblue;
    }
    50% {
        background-color: seagreen;
    }
    75% {
        background-color: tomato;
    }
    100% {
        background-color: #152a68;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* انیمیشن برای عناصر */
.wait-container .logo,
.wait-container .support-link,
.wait-container .message,
.wait-container .timer {
    animation: fadeInUp 1s ease-out;
}

.flex-container .text-center h1,
.flex-container .text-center h3,
.flex-container .text-center p {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wait-container .message {
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.wait-container .timer {
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

/* Responsive design */
@media (max-width: 768px) {
    .wait-container .logo {
        font-size: 5em;
    }
    
    .wait-container .message {
        font-size: 1.3rem;
    }
    
    .wait-container .support-link {
        font-size: 1rem;
        padding: 10px 20px;
        top: 20px;
    }
    
    .flex-container .text-center h1 {
        font-size: 6em;
    }
    
    .flex-container .text-center p {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .wait-container .logo {
        font-size: 4em;
    }
    
    .wait-container .message {
        font-size: 1.1rem;
    }
    
    .wait-container .timer {
        font-size: 1.2rem;
    }
    
    .flex-container .text-center h1 {
        font-size: 4.5em;
    }
    
    .flex-container .text-center p {
        font-size: 1em;
    }
}