* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #35322F 0%, #2A2724 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.error-container {
    max-width: 520px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

.error-card {
    background: white;
    border-radius: 32px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.error-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF4800, #FF8A5C, #FF4800);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.error-code-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.error-code {
    font-size: 140px;
    font-weight: 800;
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    letter-spacing: -4px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.error-icon {
    font-size: 80px;
    margin-bottom: 16px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.error-title {
    font-size: 28px;
    font-weight: 700;
    color: #35322F;
    margin-bottom: 16px;
    animation: fadeIn 0.6s ease-out 0.1s both;
}

.error-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.error-btn-primary {
    background: linear-gradient(135deg, #FF4800 0%, #CC3A00 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 72, 0, 0.3);
}

.error-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 72, 0, 0.4);
}

.error-btn-secondary {
    background: #F5F5F5;
    color: #35322F;
    border: 1px solid #E8E8E8;
}

.error-btn-secondary:hover {
    background: #E8E8E8;
    transform: translateY(-2px);
}

.error-divider {
    margin: 24px 0;
    border: none;
    border-top: 1px solid #F0F0F0;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.error-footer {
    animation: fadeIn 0.6s ease-out 0.5s both;
}

.error-footer p {
    font-size: 13px;
    color: #888;
}

.error-footer a {
    color: #FF4800;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.error-footer a:hover {
    color: #CC3A00;
    text-decoration: underline;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.error-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #FF4800, transparent);
    opacity: 0.3;
}

@media (max-width: 480px) {
    .error-card {
        padding: 32px 24px;
    }
    
    .error-code {
        font-size: 90px;
        letter-spacing: -2px;
    }
    
    .error-icon {
        font-size: 56px;
    }
    
    .error-title {
        font-size: 22px;
    }
    
    .error-message {
        font-size: 14px;
    }
    
    .error-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}