.error-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    position: relative;
    background:
        radial-gradient(circle at 50% 20%, rgba(20, 50, 95, 0.45) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(10, 30, 65, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at center, #071224 0%, #030710 100%);
    overflow: hidden;
}

/* Ambient star dust */
.stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 50px 80px, #67e8f9, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 120px 40px, #a5f3fc, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 180px 140px, #38bdf8, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 260px 210px, #ffffff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 340px 90px, #67e8f9, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 350px 350px;
    opacity: 0.4;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.25;
    }

    100% {
        opacity: 0.55;
    }
}

/* Grid background pattern */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* 404 Illustration Vector Wrap */
.illustration-wrap {
    position: relative;
    width: 100%;
    max-width: 680px;
    height: auto;
    margin-bottom: 1.5rem;
    z-index: 10;
}

.illustration-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.8));
}

/* Floating Ghost Animation */
.ghost-floating {
    animation: ghostFloat 3.5s ease-in-out infinite;
    transform-origin: 210px 105px;
}

@keyframes ghostFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(2deg);
    }
}

/* Sweeping Flashlight Beam */
.light-cone {
    transform-origin: 256px 104px;
    animation: beamSway 6s ease-in-out infinite alternate;
    transition: transform 0.15s ease-out;
}

@keyframes beamSway {
    0% {
        transform: rotate(-6deg);
    }

    50% {
        transform: rotate(8deg);
    }

    100% {
        transform: rotate(-2deg);
    }
}

/* Content layout from video CSS */
.content {
    position: relative;
    z-index: 20;
    text-align: center;
    max-width: 740px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content h3 {
    margin: 0 0 0.8rem;
    font-size: 2.625rem;
    font-weight: 900;
    line-height: 120%;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.content p {
    font-size: 1.25rem;
    font-weight: normal;
    line-height: 150%;
    color: #d1e2ed;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.content p span {
    text-decoration: line-through;
    color: #38bdf8;
    font-weight: 600;
}

/* Button styles */
.actions-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4 0%, #0284c7 50%, #2563eb 100%);
    border-radius: 9999px;
    border: 1px solid rgba(103, 232, 249, 0.4);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.45);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-home:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.7);
    background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 50%, #3b82f6 100%);
    color: #ffffff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.8);
    border-radius: 9999px;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 0.9);
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.4);
}

@media (max-width: 640px) {
    .content h3 {
        font-size: 1.85rem;
    }

    .content p {
        font-size: 1.05rem;
    }

    .actions-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-home,
    .btn-secondary {
        width: 100%;
    }
}