* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    background-color: #0f1115;
    color: #e4e6eb;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(
            circle at top,
            rgba(77, 163, 255, 0.08),
            transparent 40%
        );
    z-index: -1;
    pointer-events: none;
}

.error-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

.error-card {
    width: 100%;
    max-width: 540px;
    padding: 40px;
    text-align: center;
    background: rgba(20, 23, 32, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 173, 238, 0.2);
}

.error-brand {
    display: inline-block;
    margin-bottom: 35px;
    color: inherit;
    text-decoration: none;
}

.error-brand h1 {
    color: #e4e6eb;
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.error-brand span {
    display: block;
    color: #8a8f98;
    font-size: 12px;
}

.error-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.error-code {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 90px;
    min-height: 42px;
    padding: 8px 18px;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.25);
    border-radius: 30px;
    color: #ff6868;
    font-size: 18px;
    font-weight: 700;
}

.error-card h2 {
    font-size: 20px;
    line-height: 1.2;
    color: #e4e6eb;
}

#error-reason {
    font-size: 13px;
    color: #9ca2ad;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.error-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.primary-btn {
    min-width: 150px;
    padding: 12px 18px;
    background-color: #4da3ff;
    border: none;
    border-radius: 6px;
    color: #0f1115;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.primary-btn:hover {
    background-color: #008cb3;
    color: #fff;
}

@media (max-width: 500px) {
    .error-card {
        padding: 30px 20px;
    }

    .primary-btn {
        width: 100%;
    }
}