* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f3ff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.error-container {
    text-align: center;
    max-width: 600px;
    width: 90%;
    padding: clamp(20px, 5vw, 40px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.pulse-circle {
    position: absolute;
    width: min(300px, 80%);
    height: min(300px, 80%);
    border-radius: 50%;
    background: rgba(66, 153, 225, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
    z-index: 0;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
}

.error-icon {
    font-size: clamp(40px, 8vw, 64px);
    color: #4299e1;
    margin-bottom: clamp(15px, 3vw, 20px);
    position: relative;
    z-index: 1;
}

.error-title {
    font-size: clamp(36px, 10vw, 48px);
    color: #2d3748;
    margin-bottom: clamp(10px, 2vw, 15px);
    position: relative;
    z-index: 1;
}

.error-subtitle {
    color: #4299e1;
    font-size: clamp(20px, 5vw, 24px);
    margin-bottom: clamp(15px, 3vw, 20px);
    position: relative;
    z-index: 1;
}

.error-text {
    color: #4a5568;
    margin-bottom: clamp(20px, 4vw, 30px);
    line-height: 1.6;
    position: relative;
    z-index: 1;
    font-size: clamp(14px, 3vw, 16px);
}

.error-actions {
    display: flex;
    gap: clamp(10px, 3vw, 20px);
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.btn {
    padding: clamp(10px, 2vw, 12px) clamp(20px, 4vw, 25px);
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(14px, 2.5vw, 16px);
    min-width: 160px;
    justify-content: center;
}

.btn-primary {
    background: #4299e1;
    color: white;
    border: 2px solid #4299e1;
}

.btn-primary:hover {
    background: #2b6cb0;
    border-color: #2b6cb0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #4299e1;
    border: 2px solid #4299e1;
}

.btn-secondary:hover {
    background: rgba(66, 153, 225, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.2);
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
    margin: 0 5px;
    font-size: clamp(18px, 4vw, 24px);
    color: #4299e1;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

@media (max-width: 480px) {
    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pulse-circle, .heartbeat {
        animation: none;
    }
    
    .btn {
        transition: none;
    }
}