* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Background com screenshot - MOBILE por padrão */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imgs/NeuroQuiet_mobile.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Background DESKTOP para telas maiores */
@media (min-width: 768px) {
    .background-image {
        background-image: url('imgs/NeuroQuiet_desktop.webp');
    }
}

/* Fallback gradiente se screenshots não carregarem */
/* .background-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            z-index: -1;
        } */

/* Overlay escuro + blur */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
}

/* Container do popup */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    padding: 20px;
}

.verification-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px 28px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shield-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    line-height: 1.3;
}

.description {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 32px;
}

.brand-name {
    color: #2563eb;
    font-weight: 600;
}

.verify-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    padding: 20px 32px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.verify-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}

.verify-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.security-badge {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.badge-text {
    font-size: 13px;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lock-icon {
    color: #48bb78;
    font-size: 16px;
}

.footer-text {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    max-width: 90%;
    line-height: 1.4;
}

.footer-text a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin: 0 6px;
}

/* Otimizações para Desktop */
@media (min-width: 768px) {
    .verification-card {
        padding: 48px 44px;
    }

    h1 {
        font-size: 28px;
    }

    .description {
        font-size: 17px;
    }

    .verify-button {
        font-size: 19px;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-height: 640px) {
    .verification-card {
        padding: 32px 24px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .shield-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .description {
        font-size: 15px;
        margin-bottom: 24px;
    }
}

/* Preload das imagens */
body::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: -1;
    background-image:
        url('imgs/NeuroQuiet_mobile.webp'),
        url('imgs/NeuroQuiet_desktop.webp');
}

/* ============================================
   ESTILOS DOS MODAIS - INICIO
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    margin: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
    position: relative;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: #e2e8f0;
    color: #1a202c;
}

.modal-body {
    padding: 28px;
    color: #374151;
    line-height: 1.7;
    font-size: 15px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-top: 24px;
    margin-bottom: 12px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 16px;
}

.modal-body ul {
    margin: 12px 0 16px 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-body strong {
    color: #1a202c;
    font-weight: 600;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.modal-footer p {
    font-size: 13px;
    color: #718096;
    margin: 0;
}

@media (min-width: 768px) {
    .modal-body {
        max-height: 70vh;
    }
}

/* ============================================
   ESTILOS DOS MODAIS - FIM
   ============================================ */