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

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #ff6a00, #ee0979);
    overflow: hidden;
    position: relative;
}

.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    z-index: 1;
    animation: float 5s linear infinite;
    top: 100vh;
}

@keyframes float {
    to {
        transform: translateY(-120vh) rotate(360deg);
    }
}

.container {
    position: relative;
    text-align: center;
    height: 100vh;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    max-width: 400px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.error-number {
    font-size: 6rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6a00, #ee0979);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

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

.error-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.error-text {
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.back-btn {
    position: relative;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.back-btn:hover {
    background: linear-gradient(45deg, #feca57, #ff6b6b);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 107, 107, 0.3);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
    transform: skewX(-25deg);
    transition: all 0.3s ease;
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -75%; }
    100% { left: 125%; }
}

.counter {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-weight: 600;
}

#counter-number {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .error-card {
        padding: 1rem;
    }
    .error-number {
        font-size: 4rem;
    }
    .error-title {
        font-size: 1.5rem;
    }
    .back-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

.particle-glow {
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}