.sm-error-page {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 18px;
}

.sm-error-card {
    width: min(100%, 560px);
    padding: 34px 28px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(255, 56, 86, 0.15), transparent 42%),
        rgba(12, 14, 22, 0.82);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
    text-align: center;
    backdrop-filter: blur(12px);
}

.sm-error-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 38px;
    margin-bottom: 16px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #ff6b7f;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.sm-error-title {
    margin: 0 0 10px;
    color: #f9fafb;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.sm-error-message {
    max-width: 430px;
    margin: 0 auto 24px;
    color: #aeb6c6;
    font-size: 15px;
    line-height: 1.65;
}

.sm-error-hint {
    max-width: 430px;
    margin: -12px auto 24px;
    color: #fca5a5;
    font-size: 13px;
    line-height: 1.5;
}

.sm-error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.sm-error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.sm-error-btn:hover {
    transform: translateY(-1px);
}

.sm-error-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #ff365d, #d9163f);
    box-shadow: 0 12px 30px rgba(255, 54, 93, 0.28);
}

.sm-error-btn-primary:hover {
    box-shadow: 0 16px 38px rgba(255, 54, 93, 0.38);
}

.sm-error-btn-secondary {
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
}

.sm-error-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.075);
}

@media (max-width: 520px) {
    .sm-error-page {
        padding: 34px 14px;
    }

    .sm-error-card {
        padding: 28px 18px;
        border-radius: 20px;
    }

    .sm-error-hint {
    max-width: 430px;
    margin: -12px auto 24px;
    color: #fca5a5;
    font-size: 13px;
    line-height: 1.5;
}

.sm-error-actions {
        flex-direction: column;
    }

    .sm-error-btn {
        width: 100%;
    }
}
