.cvtc-error-section {
    display: grid;
    place-items: center;
    min-height: 60vh;
    padding: 32px 16px;
}

.cvtc-error {
    --error-color: #334155;
    --error-accent: #64748b;
    box-sizing: border-box;
    width: 100%;
    max-width: 520px;
    padding: 48px 32px;
    text-align: center;
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
    color: #334155;
    overflow-wrap: anywhere;
}

.cvtc-error--403 { --error-color: #92400e; --error-accent: #d97706; }
.cvtc-error--404 { --error-color: #1e3a5f; --error-accent: #5b8cc9; }
.cvtc-error--500 { --error-color: #991b1b; --error-accent: #dc2626; }
.cvtc-error--503 { --error-color: #6d28d9; --error-accent: #7c3aed; }

.cvtc-error .cvtc-error__icon {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: var(--error-accent);
}

.cvtc-error .cvtc-error__code {
    margin: 0 0 8px;
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--error-color);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .cvtc-error .cvtc-error__code {
        background: linear-gradient(135deg, var(--error-color), var(--error-accent));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.cvtc-error .cvtc-error__divider {
    width: 48px;
    height: 3px;
    margin: 0 auto 28px;
    border-radius: 2px;
    background: #cbd5e1;
}

.cvtc-error .cvtc-error__title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-indent: 0;
    color: #1e293b;
}

.cvtc-error .cvtc-error__description { margin-bottom: 36px; }

.cvtc-error .cvtc-error__description p {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.02em;
    text-align: center;
    text-indent: 0;
    color: #475569;
}

.cvtc-error .cvtc-error__description p:last-child { margin-bottom: 0; }

.cvtc-error .cvtc-error__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.cvtc-error .cvtc-error__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    padding: 10px 24px;
    border: 1.5px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    text-indent: 0;
    text-decoration: none;
    cursor: pointer;
}

.cvtc-error .cvtc-error__button--primary {
    background: var(--error-color);
    color: #fff;
}

.cvtc-error .cvtc-error__button--primary:hover { filter: brightness(1.12); }

.cvtc-error .cvtc-error__button--outline {
    border-color: #cbd5e1;
    background: transparent;
    color: #475569;
}

.cvtc-error .cvtc-error__button--outline:hover { background: #f1f5f9; }
.cvtc-error .cvtc-error__button:focus-visible { outline: 3px solid var(--error-accent); outline-offset: 4px; }

@media (max-width: 575.98px) {
    .cvtc-error-section { padding: 20px 12px; }
    .cvtc-error { padding: 28px 12px; }
    .cvtc-error .cvtc-error__icon { width: 48px; height: 48px; margin-bottom: 16px; }
    .cvtc-error .cvtc-error__code { font-size: 80px; }
    .cvtc-error .cvtc-error__divider { margin-bottom: 20px; }
    .cvtc-error .cvtc-error__title { font-size: 18px; }
    .cvtc-error .cvtc-error__description { margin-bottom: 24px; }
    .cvtc-error .cvtc-error__actions { gap: 10px; }
    .cvtc-error .cvtc-error__button { padding: 10px 18px; }
}
