* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

#notfound {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#notfound .notfound {
    position: relative;
    max-width: 600px;
    width: 100%;
    padding: 20px;
    text-align: center;
}

.notfound {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.notfound:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(56, 141, 188, 0.05), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.notfound .notfound-404 {
    width: 120px;
    height: 120px;
    background-image: url('https://projetos.sibelecosta.com.br/error/img/emoji.png');
    background-size: cover;
    margin: 20px auto 20px;  /* Mudança aqui - mais espaço em cima */
    border-radius: 50%;
    animation: bounce 2s infinite;
    position: relative;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.notfound .notfound-404:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(56, 141, 188, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    transform: scale(1.5);
}

.notfound h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.notfound h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #34495e;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.notfound p {
    color: #7f8c8d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.help-text {
    color: #388dbc !important;
    font-weight: 600;
    margin-bottom: 30px !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    animation: slideInUp 0.8s ease-out 0.6s both;
}

.btn-home, .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-home {
    background: linear-gradient(135deg, #388dbc, #2c5aa0);
    color: white;
}

.btn-home:hover {
    background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.redirect-info {
    margin-top: 30px;
    padding: 15px;
    background: rgba(56, 141, 188, 0.1);
    border-radius: 10px;
    animation: fadeIn 0.8s ease-out 0.8s both;
}

.redirect-info small {
    color: #5a6c7d;
    font-size: 0.9rem;
}

#countdown {
    font-weight: 700;
    color: #388dbc;
}

/* Responsividade */
@media only screen and (max-width: 768px) {
    .notfound {
        padding: 20px;
        margin: 20px;
    }
    
    .notfound h1 {
        font-size: 3rem;
    }
    
    .notfound h2 {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-home, .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
    
    .notfound .notfound-404 {
        width: 100px;
        height: 100px;
    }
}

@media only screen and (max-width: 480px) {
    .notfound h1 {
        font-size: 2.5rem;
    }
    
    .notfound p {
        font-size: 1rem;
    }
    
    .btn-home, .btn-whatsapp {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Tablet */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .notfound {
        max-width: 500px;
        padding: 35px;
    }
    
    .notfound h1 {
        font-size: 3.5rem;
    }
}