.error-page-shell {
    width: 100%;
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0 120px;
}

.error-page-shell.is-guest {
    min-height: calc(100vh - 150px);
}

.error-page-center {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-card-modern {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff, #f8fbfa);
    border: 1px solid rgba(7, 94, 84, 0.08);
    border-radius: 32px;
    padding: 42px 28px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.error-card-modern::before,
.error-card-modern::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.error-card-modern::before {
    width: 220px;
    height: 220px;
    background: rgba(7, 94, 84, 0.05);
    top: -90px;
    right: -70px;
}

.error-card-modern::after {
    width: 160px;
    height: 160px;
    background: rgba(18, 140, 126, 0.06);
    bottom: -70px;
    left: -50px;
}

.error-icon-wrap {
    position: relative;
    z-index: 2;
    margin-bottom: 18px;
}

.error-icon-circle {
    width: 92px;
    height: 92px;
    margin: 0 auto;
    border-radius: 28px;
    background: linear-gradient(135deg, #075E54, #128C7E);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 14px 28px rgba(7, 94, 84, 0.22);
}

.error-code-modern {
    position: relative;
    z-index: 2;
    font-size: 5rem;
    line-height: 1;
    font-weight: 900;
    color: #075E54;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.error-badge-modern {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(7, 94, 84, 0.08);
    color: #075E54;
    border: 1px solid rgba(7, 94, 84, 0.10);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.error-title-modern {
    position: relative;
    z-index: 2;
    font-size: 2.1rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 14px;
}

.error-text-modern {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin: 0 auto 24px;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 2;
}

.error-actions-modern {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.error-btn-main,
.error-btn-secondary {
    min-height: 50px;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.25s ease;
}

.error-btn-main {
    background: linear-gradient(135deg, #075E54, #128C7E);
    color: #fff;
    border: none;
    box-shadow: 0 12px 24px rgba(7, 94, 84, 0.18);
}

.error-btn-main:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(7, 94, 84, 0.24);
}

.error-btn-secondary {
    background: #fff;
    color: #1f2937;
    border: 1px solid #dbe3ea;
}

.error-btn-secondary:hover {
    background: #f8fafc;
    color: #111827;
}

.error-tip-modern {
    position: relative;
    z-index: 2;
    max-width: 560px;
    margin: 0 auto;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-align: right;
}

.tip-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: rgba(245, 158, 11, 0.16);
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.tip-content h6 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.tip-content p {
    margin: 0;
    color: #6b7280;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* تحسين حالة الضيف */
.guest-main-wrapper .error-page-shell {
    min-height: calc(100vh - 220px);
    padding-top: 20px;
}

/* تحسين حالة المستخدم داخل النظام */
.main-wrapper .error-page-shell {
    min-height: calc(100vh - 240px);
}

@media (max-width: 992px) {
    .error-card-modern {
        max-width: 100%;
        border-radius: 28px;
        padding: 34px 22px;
    }

    .error-title-modern {
        font-size: 1.8rem;
    }

    .error-code-modern {
        font-size: 4.2rem;
    }
}

@media (max-width: 768px) {
    .error-page-shell {
        padding: 18px 0 110px;
    }

    .error-card-modern {
        border-radius: 24px;
        padding: 28px 18px;
    }

    .error-icon-circle {
        width: 76px;
        height: 76px;
        border-radius: 22px;
        font-size: 1.7rem;
    }

    .error-code-modern {
        font-size: 3.4rem;
    }

    .error-title-modern {
        font-size: 1.5rem;
    }

    .error-text-modern {
        font-size: 0.96rem;
        line-height: 1.9;
    }

    .error-tip-modern {
        padding: 14px;
        border-radius: 18px;
        gap: 10px;
    }

    .tip-content h6 {
        font-size: 0.95rem;
    }

    .tip-content p {
        font-size: 0.88rem;
    }
}