body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    font-family: "IRANSans", "Tahoma", sans-serif;
    direction: rtl;
}

.error-page {
    width: 100%;
    max-width: 700px;
    padding: 40px 20px;
    text-align: center;
}

.error-code {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-bottom: 25px;
    direction: ltr;
}

.error-code span {
    display: inline-block;
    font-weight: 800;
}

.error-code .four {
    font-size: 10rem;
    font-family: "IRANSans", "Tahoma", sans-serif;
}

.error-code .zero {
    font-size: 15rem;
    color: #dc3545;
    margin: 0 10px;
    font-family: "IRANSans", "Tahoma", sans-serif;
}

.error-title {
    margin: 0 0 15px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #343a40;
    font-family: "IRANSans", "Tahoma", sans-serif;
}

.error-message {
    margin-bottom: 30px;
    color: #6c757d;
    font-size: 1rem;
    font-family: "IRANSans", "Tahoma", sans-serif;
}

.back-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    background: #212529;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.back-button:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
}

/* موبایل */
@media (max-width: 576px) {

    .error-page {
        padding: 30px 15px;
    }

    .error-code .four {
        font-size: 6rem;
    }

    .error-code .zero {
        font-size: 8rem;
        margin: 0 5px;
    }

    .error-title {
        font-size: 1.4rem;
    }

    .error-message {
        font-size: 0.9rem;
    }

    .back-button {
        width: 100%;
        max-width: 250px;
    }
}