* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(145deg, #0a0c10 0%, #12161c 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.error-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

.error-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 3rem;
    max-width: 700px;
    width: 90%;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.error-code {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.code-digit {
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e8eef2 0%, #a0b3c9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
    animation: float 3s ease-in-out infinite;
}

.code-digit:nth-child(1) { animation-delay: 0s; }
.code-digit:nth-child(2) { animation-delay: 0.2s; }
.code-digit:nth-child(3) { animation-delay: 0.4s; }

.error-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00acc1, #00838f, transparent);
    margin: 1.5rem auto;
    border-radius: 3px;
}

.error-title {
    font-size: 2rem;
    font-weight: 600;
    color: #eef2ff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.error-message {
    font-size: 1rem;
    line-height: 1.6;
    color: #9aa9bb;
    margin-bottom: 2rem;
    font-weight: 400;
}

.path-highlight {
    display: inline-block;
    background: rgba(0, 172, 193, 0.12);
    color: #5bc8d9;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    word-break: break-all;
    max-width: 100%;
    border: 1px solid rgba(0, 172, 193, 0.2);
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    border: none;
    background: none;
}

.btn-primary {
    background: linear-gradient(135deg, #00acc1 0%, #00838f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 172, 193, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 172, 193, 0.4);
    background: linear-gradient(135deg, #1bc5da 0%, #0097a3 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e6;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
    border-color: rgba(0, 172, 193, 0.3);
}

/* Decorative Elements */
.error-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 172, 193, 0.4), transparent);
    top: -150px;
    right: -150px;
    animation: floatCircle 20s ease-in-out infinite;
}

.circle-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 131, 143, 0.3), transparent);
    bottom: -200px;
    left: -200px;
    animation: floatCircle 25s ease-in-out infinite reverse;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(91, 200, 217, 0.25), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseCircle 8s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes floatCircle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes pulseCircle {
    0%, 100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .code-digit {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-message {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.85rem;
    }
    
    .error-content {
        padding: 2rem;
    }
    
    .error-divider {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .code-digit {
        font-size: 3.5rem;
    }
    
    .error-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        justify-content: center;
        width: 100%;
    }
    
    .path-highlight {
        font-size: 0.75rem;
    }
}