.errorHeader {
    position: relative;
    z-index: 5;
    background: #ffffff;
    border-bottom: 1px solid #e7e7e7;
}

.errorHeaderTop {
    background: #232f3e;
    color: #ffffff;
}

.errorHeaderTopInner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 20px;
}

.errorHeaderTopLinks {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: center;
}

.errorHeaderTopLink {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.errorHeaderTopLink:hover {
    opacity: 0.8;
}

.errorHeaderMain {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,248,248,0.96) 100%);
}

.errorHeaderMainInner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.errorLogoContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.errorLogoLink {
    display: inline-flex;
}

.errorLogo {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.errorLogoSlogan {
    margin: 0;
    color: #232f3e;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.errorHeaderActions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.errorHeaderActionBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #232f3e;
    background: #ffffff;
    color: #232f3e;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 999px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.errorHeaderActionBtn:hover {
    background: #232f3e;
    color: #ffffff;
    transform: translateY(-1px);
}

.errorHeaderActionBtnDark {
    background: #232f3e;
    color: #ffffff;
}

.errorHeaderActionBtnDark:hover {
    background: #111827;
    border-color: #111827;
}

.errorPage {
    position: relative;
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 80px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(35, 47, 62, 0.08), transparent 35%),
        radial-gradient(circle at bottom right, rgba(35, 47, 62, 0.10), transparent 30%),
        linear-gradient(180deg, #fafafa 0%, #f2f4f7 100%);
}

.errorPageOverlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.10) 100%);
}

.errorPageContainer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 980px;
}

.errorPageCard {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(35, 47, 62, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    padding: 56px 32px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.errorPageCode {
    margin: 0 0 14px;
    color: #232f3e;
    font-size: 92px;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.errorPageTitle {
    margin: 0 0 18px;
    color: #111111;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
}

.errorPageText {
    max-width: 700px;
    margin: 0 auto 34px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.7;
}

.errorPageActions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.errorPageBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.errorPageBtn:hover {
    transform: translateY(-1px);
}

.errorPageBtnPrimary {
    background: #232f3e;
    border: 1px solid #232f3e;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(35, 47, 62, 0.18);
}

.errorPageBtnPrimary:hover {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.errorPageBtnSecondary {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #232f3e;
}

.errorPageBtnSecondary:hover {
    border-color: #232f3e;
    color: #232f3e;
    background: #f8fafc;
}

@media (max-width: 991px) {
    .errorHeaderMainInner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .errorLogoContainer {
        align-items: center;
    }

    .errorHeaderActions {
        justify-content: center;
    }

    .errorPageCode {
        font-size: 72px;
    }

    .errorPageTitle {
        font-size: 34px;
    }
}

@media (max-width: 640px) {
    .errorHeaderTopInner,
    .errorHeaderMainInner,
    .errorPage {
        padding-left: 16px;
        padding-right: 16px;
    }

    .errorLogo {
        width: 180px;
    }

    .errorLogoSlogan {
        font-size: 16px;
    }

    .errorPageCard {
        padding: 40px 20px;
        border-radius: 22px;
    }

    .errorPageCode {
        font-size: 56px;
    }

    .errorPageTitle {
        font-size: 28px;
    }

    .errorPageText {
        font-size: 16px;
    }

    .errorPageActions {
        flex-direction: column;
    }

    .errorPageBtn,
    .errorHeaderActionBtn {
        width: 100%;
    }
}