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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #d71b36 0%, #f39902 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.error-container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.error-message {
    font-size: 16px;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

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

.btn-primary {
    background: linear-gradient(135deg, #d71b36 0%, #f39902 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(215, 27, 54, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(215, 27, 54, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #d71b36;
    border: 2px solid #d71b36;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #f39902;
    border-color: #f39902;
    transform: translateY(-2px);
}

.helpful-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.helpful-links p {
    font-size: 14px;
    color: #718096;
    margin-bottom: 15px;
}

.helpful-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.helpful-links ul li a {
    color: #d71b36;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.helpful-links ul li a:hover {
    color: #f39902;
    text-decoration: underline;
}

.error-illustration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.floating-box {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    animation: float 6s ease-in-out infinite;
}

.box-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.box-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.box-3 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.error-footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-code {
        font-size: 80px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .error-message {
        font-size: 14px;
    }
    
    .error-container {
        padding: 40px 30px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
