:root {
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #343a40;
    --highlight-bg: #e7f1ff;
    --highlight-border: #9ec5fe;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 10px auto;
    background-color: #fff;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.logo {
    width: 180px; /* Tamanho fixo para consistência */
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin: 0;
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-top: 40px;
}

/* ============================================================
   1. ESTILOS DA PÁGINA DE DOWNLOAD (INDEX) - NOVO LAYOUT
   ============================================================ */

/* Seção de Ferramentas Web */
.web-tools-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px dashed var(--border-color);
}

.section-title {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 15px;
    font-weight: 600;
}

.quick-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas */
    gap: 20px;
}

/* Card das Ferramentas */
.tool-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border-color: #ccc;
}

/* Card Lite (Azul) */
.tool-card.card-lite:hover {
    border-color: var(--primary-color); /* Borda Azul */
    /* Opcional: Sombra levemente azulada */
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.15); 
}

/* Card Velocímetro (Verde) */
.tool-card.card-meter:hover {
    border-color: #28a745; /* Borda Verde */
    /* Opcional: Sombra levemente esverdeada */
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.15);
}

/* Realça os ícones imediatamente no hover do card */
.tool-card.card-lite:hover .icon-rocket { color: var(--primary-color); }
.tool-card.card-meter:hover .icon-meter { color: #28a745; }

.tool-icon {
    font-size: 1.6em;
    color: #6c757d;
    min-width: 40px;
    text-align: center;
    margin-top: 5px;
}

.icon-rocket { color: var(--primary-color); }
.icon-meter { color: #6c757d; }

.tool-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tool-title {
    font-weight: 700;
    font-size: 1em;
    margin: 0 0 4px 0;
    color: var(--text-color);
}

.tool-desc {
    font-size: 0.85em;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

/* Botões Pequenos (Mini) */
.btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
    white-space: nowrap;
    margin-top: 5px;
}

.btn-mini-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}
.btn-mini-primary:hover {
    background-color: #004494;
    border-color: #004494;
    color: white;
}

.btn-mini-secondary {
    background-color: #e9ecef;
    color: #333;
    border: 1px solid #ced4da;
}
.btn-mini-secondary:hover {
    background-color: #dde2e6;
    color: #000;
}

/* Área de Download Principal */
.download-section {
    background: linear-gradient(to bottom, #fff, #f8faff); 
    border-radius: 8px;
    padding: 20px 10px 10px 10px;
}

.main-title-group {
    text-align: center;
    margin-bottom: 25px;
}

.main-title-group h2 {
    color: var(--primary-color);
    margin: 0 0 5px 0;
    border-bottom: none;
    font-size: 1.6em;
}

.badge-recommended {
    background-color: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.5em;
    text-transform: uppercase;
    font-weight: bold;
    vertical-align: middle;
    margin-left: 8px;
    position: relative;
    top: -3px;
}

/* --- Lista de Downloads (Legado/Atualizado) --- */
.download-list {
    list-style: none;
    padding: 0;
}

.download-list li {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.os-info {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    font-weight: 500;
}

.os-info i {
    font-size: 2em;
    margin-right: 20px;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.download-button, .download-button-small {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
    white-space: nowrap;
    /* Força uma largura mínima para todos ficarem iguais */
    min-width: 110px; 
    /* Garante que o texto fique centralizado horizontalmente */
    text-align: center;
}

.download-button:hover {
    background-color: var(--primary-color);
}

.download-button-small {
    padding: 8px 15px;
    display: block;
    text-align: center;
}

.highlight {
    border-color: var(--highlight-border);
    background-color: var(--highlight-bg);
}

.highlight::before {
    content: 'Recomendado';
    position: absolute;
    top: -1px;
    right: -1px;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 15px;
    font-size: 0.8em;
    font-weight: bold;
    border-bottom-left-radius: 5px;
    z-index: 5;
}

/* Abas */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}
.tab-button {
    padding: 10px 20px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    font-size: 1.1em;
    color: #6c757d;
    border-bottom: 4px solid transparent;
}
.tab-button.active {
    color: var(--primary-color);
    font-weight: bold;
    border-bottom-color: var(--secondary-color);
}
.tab-content.hidden {
    display: none;
}

/* Histórico de Versões */
.version-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.version-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.version-column h4 {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 4px;
    text-align: center;
}
#history-list-container .note {
    text-align: center;
    font-size: 1.1em;
    padding: 20px;
}


/* ============================================================
   2. ESTILOS DO TESTADOR LITE (LITE.HTML)
   ============================================================ */

/* Painel de Informações do Cliente (IP, Geo) */
.client-info-box {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 5px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.info-label {
    font-size: 0.85em;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1em;
}

/* --- Estilos para IP Duplo (Adição necessária) --- */
.ip-dual-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.ip-primary {
    font-size: 1em;
    color: var(--primary-color); /* Destaca o IP da conexão */
}

.ip-secondary {
    font-size: 0.85em;
    color: #6c757d;
    margin-top: 2px;
}

.ip-tag {
    font-size: 0.7em;
    background: #e2e8f0;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
    color: #495057;
    text-transform: uppercase;
}

/* Quadro Principal do Lite (Estilo Card) */
.velocimetro-quadro {
    max-width: 480px; 
    margin: 0 auto 30px auto; 
    padding: 20px 25px; 
    border: 1px solid #e0e0e0; 
    border-radius: 8px;
    background-color: #f9f9f9; 
}

.velocimetro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px; 
}

.velocimetro-title {
    display: flex;
    align-items: center;
    margin: 0;
}
.velocimetro-title i {
    font-size: 1.8rem;
    color: #0056b3;
    margin-right: 15px;
}
.velocimetro-title h2 {
    font-size: 1.3rem; 
    margin: 0;
    color: #333;
}

.velocimetro-button {
    display: inline-block;
    background-color: #28a745;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap; 
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}
.velocimetro-button:hover {
    background-color: #218838;
}
.velocimetro-button i {
    margin-right: 8px;
}

/* Botão de Cancelar */
.velocimetro-button.fail-button {
    background-color: #d9534f; 
    border-color: #d43f3a;
}
.velocimetro-button.fail-button:hover {
    background-color: #c9302c;
}

.velocimetro-description {
    font-size: 0.85rem; 
    color: #666;
    margin: 0;
    padding-left: 48px; 
}

/* Resultados do Velocímetro */
.velocimetro-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.result-box {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px 5px; /* Reduzi padding lateral para caber em telas pequenas */
    text-align: center;
    border: 1px solid #eee;
}

.result-label {
    font-size: 0.9em;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}
.result-value {
    font-size: 1.8em; /* Levemente menor para caber */
    font-weight: bold;
    color: #007bff;
    line-height: 1.1;
}
.result-unit {
    font-size: 0.8em;
    color: #777;
}
.velocimetro-status {
    margin-top: 15px;
    text-align: center;
    font-style: italic;
    color: #555;
}

/* Status Grid e Timer */
.status-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
#full-test-status {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    text-align: left; 
    flex-grow: 1; 
    font-weight: bold;
    color: #007bff;
}
.test-timer {
    font-family: monospace;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    text-align: right;
    flex-shrink: 0;
    min-width: 120px;
}

/* Cards do Teste de Aplicação (Dashboard) */
.quick-test-dashboard {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}
.test-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    opacity: 0.7;
    border-left-width: 5px;
    background-color: #fff;
}
.test-info {
    flex-grow: 1;
    margin: 0 15px;
    overflow: hidden;
}
.test-url {
    font-family: monospace;
    font-size: 0.9em;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.test-status {
    font-size: 1em;
    font-weight: bold;
    color: #555;
}
.test-icon {
    font-size: 1.5em;
    width: 30px;
    text-align: center;
}
.test-latency {
    font-family: monospace;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    min-width: 60px;
    text-align: right;
}

/* Cores de Estado dos Cards */
.test-card.pending { border-left-color: #ccc; color: #777; opacity: 0.6; }
.test-card.testing { border-left-color: #007bff; opacity: 1; }
.test-card.testing .test-icon, .test-card.testing .test-status { color: #007bff; }
.test-card.success { border-left-color: #28a745; opacity: 1; }
.test-card.success .test-icon, .test-card.success .test-status { color: #28a745; }
.test-card.fail { border-left-color: #dc3545; opacity: 1; }
.test-card.fail .test-icon, .test-card.fail .test-status { color: #dc3545; }
.test-card.partial { border-left-color: #ffc107; opacity: 1; }
.test-card.partial .test-icon { color: #ffc107; }
.test-card.partial .test-status { color: #c69500; }
.test-card.cancelled { border-left-color: #6c757d; opacity: 0.7; }


/* ============================================================
   3. MODAL E RODAPÉ (GLOBAL)
   ============================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.2s ease;
}
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    max-width: 600px;
    width: 90%;
    z-index: 1001;
    transform: scale(1);
    transition: transform 0.2s ease;
}
.modal-overlay.hidden .modal-content { transform: scale(0.9); }

.modal-content h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.5em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}
.modal-body { margin-bottom: 30px; font-size: 1.05em; line-height: 1.7; }
.modal-body ol { padding-left: 20px; }
.modal-body li { margin-bottom: 10px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 15px; }

.modal-button-cancel {
    background-color: transparent;
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 1em;
}
.modal-button-cancel:hover { background-color: var(--light-gray); }

.instructions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}
.instructions pre {
    background-color: #e9ecef;
    color: #333;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
    color: #6c757d;
}

/* ============================================================
   4. RESPONSIVIDADE
   ============================================================ */
@media (max-width: 650px) {
    .quick-tools-grid {
        grid-template-columns: 1fr;
    }
    .velocimetro-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .velocimetro-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .velocimetro-button {
        margin-top: 15px;
    }
    .velocimetro-description {
        padding-left: 0;
    }
}

/* Link de Navegação (Voltar) */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espaço entre a seta e o texto */
    text-decoration: none;
    color: #6c757d; /* Cinza discreto */
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 10px; /* Espaço antes do header */
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
    color: var(--primary-color); /* Azul oficial no hover */
    text-decoration: none;
    transform: translateX(-3px); /* Pequeno movimento para a esquerda */
}

.back-link i {
    font-size: 0.9em; /* Ícone levemente menor */
}


/* Botão de Guia de Uso no Header */
.btn-guide {
    margin-top: 15px;
    background-color: transparent;
    border: 2px solid var(--primary-color); /* Borda um pouco mais espessa */
    color: var(--primary-color);
    padding: 10px 24px; /* Aumentado de 8px 16px */
    border-radius: 25px; /* Arredondamento ajustado */
    cursor: pointer;
    font-size: 1em; /* Aumentado de 0.9em para tamanho normal */
    font-weight: 700; /* Mais negrito */
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Mais espaço entre ícone e texto */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Sombra leve para destaque */
}

.btn-guide:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px); /* Efeito de clique */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-guide i {
    font-size: 1.1em; /* Ícone levemente maior */
}

/* Modal de Guia (Maior e mais espaçoso que o padrão) */
.modal-guide {
    max-width: 950px; 
    width: 95%;       /* Ocupa quase toda a largura em telas menores */
    padding: 40px;    /* Mais respiro interno */
}

.modal-guide h3#guide-title {
    font-size: 1.8em; /* Título maior */
    margin-bottom: 30px;
    text-align: center;
}

/* Passos do Guia */
.guide-steps {
    display: flex;
    align-items: stretch; /* Cards com mesma altura */
    justify-content: space-between;
    margin-bottom: 40px; /* Mais espaço antes da tabela */
    gap: 30px;
}

.step-card {
    flex: 1;
    text-align: center;
    background: #f8f9fa;
    padding: 25px 20px; /* Mais padding interno */
    border-radius: 12px; /* Bordas mais arredondadas */
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); /* Sombra leve */
    min-width: 150px;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em; /* Número maior */
    margin: 0 auto 15px auto;
}

.step-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.2em; /* Título do passo maior */
    color: #333;
}

.step-card p {
    font-size: 1em; /* Texto do corpo maior (era 0.85em) */
    color: #555;
    line-height: 1.5;
}

.step-arrow {
    align-self: center;
    color: #ccc;
    font-size: 1.5em;
    flex-shrink: 0;
    width: 20px; /* Largura fixa para a seta */
}

/* Tabela de Comparação */
.guide-comparison {
    /* Permite rolagem horizontal se a tabela for muito larga, evitando transbordamento */
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-top: 1px dashed #ddd;
    padding-top: 20px;
}

.guide-comparison h4 {
    margin-top: 0;
    font-size: 1.3em; /* Título da tabela maior */
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 10px;
}

.guide-comparison table {
    min-width: 700px;
    width: 100%;
    border-collapse: separate; 
    border-spacing: 0;
    font-size: 1em; /* Fonte da tabela base maior */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.guide-comparison th, .guide-comparison td {
    padding: 15px; /* Células mais espaçosas */
    border-bottom: 1px solid #eee;
    text-align: left;
    width: auto;
}

/*
.guide-comparison th {
    background-color: #f1f5f9;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}
*/

.guide-comparison th:first-child, 
.guide-comparison td:first-child {
    /* Mantém a largura fixa para a coluna de descrição do item */
    width: 35%; 
    min-width: 180px; 
}

.guide-comparison tr:last-child td {
    border-bottom: none;
}

/* Cores de Texto Utilitárias */
.text-primary { color: var(--primary-color); }
.text-success { color: #28a745; } /* Verde para Velocímetro e Download */

/* Responsividade */
@media (max-width: 700px) {
    .guide-steps {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
        width: auto;
    }
    .step-card {
        width: 100%;
    }
    .guide-comparison table {
        font-size: 0.9em;
        min-width: 400px; /* Reduzimos o min-width para o celular */
    }
    .guide-comparison {
        /* Essencial: Ativa a rolagem na seção de comparação */
        overflow-x: auto; 
    }
    .guide-comparison th:first-child, 
    .guide-comparison td:first-child {
        width: 40%;
        min-width: 100px; 
    }
}

/* ========================================= */
/* ==== SEÇÃO DE TRANSPARÊNCIA E LGPD   ==== */
/* ========================================= */

.security-notice {
    background-color: #fff;
    border: 1px solid var(--border-color); /* Borda sutil em volta de tudo */
    border-radius: 8px;
    margin-top: 40px;
    padding: 30px; /* Mais espaço interno */
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.security-notice h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.3em;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee; /* Linha separadora abaixo do título */
    padding-bottom: 15px;
}

.notice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Divide exatamente ao meio */
    gap: 30px; /* Espaço generoso entre os dois cartões */
}

/* Estilo do "Cartão" interno */
.notice-card {
    background-color: #f8f9fa; /* Fundo cinza claro para destacar o texto */
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color); /* Linha azul à esquerda para estilo */
    display: flex;
    flex-direction: column;
}

.notice-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-color);
}

.notice-header i {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-right: 12px;
}

.notice-header strong {
    font-size: 1.1em;
    font-weight: 700;
}

.notice-body p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    text-align: left; /* Garante alinhamento à esquerda */
}

/* Classes utilitárias para o texto */
.text-alert {
    display: block; /* Força quebra de linha organizada */
    margin-top: 10px; /* Espaço antes do aviso */
    font-weight: bold;
    color: #c0392b; /* Vermelho escuro para alertas de "NÃO" */
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

/* Responsividade: vira uma coluna só em celular */
@media (max-width: 700px) {
    .notice-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================= */
/* ==== BOTÃO STATUS PAGE (CONSOLIDADO) ==== */
/* ========================================= */

/* --- Redefine o ajuste Geral do Header --- */
.header {
    position: relative; /* Define o limite para o botão absoluto */
    text-align: center; /* Mantém logo e texto centralizados */
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
    margin-bottom: 30px;
    padding-top: 5px; /* Adiciona um leve respiro no topo */
}

/* --- 1. BOTÃO STATUS NO CANTO (FINAL) --- */

/* POSICIONAMENTO: Zero distância, colado no limite do quadro branco */
.header-top-right {
    position: absolute;
    /* COORDENADAS FINAIS APROVADAS (Colado no padding do container) */
    top: -10px; 
    right: -30px; 
    z-index: 10;
}

/* BOTÃO GRANDE (Largura Ajustada e Pulsante) */
.status-cta-large {
    text-decoration: none;
    background-color: #fff;
    border: 2px solid #e1e4e8;
    
    /* Largura AJUSTADA para caber o texto em uma linha */
    padding: 15px 12px; 
    
    border-radius: 8px; 
    display: flex;
    align-items: center;
    gap: 12px;
    
    /* Aplica a animação de pulso */
    animation: button-pulse 2s infinite; 

    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    
    height: auto; 
    min-width: 180px;
}

.status-cta-large:hover {
    border-color: #28a745;
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.1);
}

/* ESTILO DO ÍCONE DE ATIVIDADE */
.status-icon-large {
    font-size: 1.1em;
    color: #28a745;
    animation: spin 3s linear infinite; 
    flex-shrink: 0;
}

/* ESTILO DO TEXTO */
.cta-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    color: #555;
    white-space: nowrap; /* Força a ficar em uma linha */
    line-height: 1; 
    text-align: left;
}

/* --- 2. SEÇÃO DE TRANSPARÊNCIA E LGPD (Cards Otimizados) --- */

.security-notice {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 40px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.security-notice h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.3em;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.notice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.notice-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
}

.notice-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-color);
}

.notice-header i {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-right: 12px;
}

.notice-header strong {
    font-size: 1.1em;
    font-weight: 700;
}

.notice-body p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    text-align: left;
}

.text-alert {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #c0392b; 
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

/* --- 3. ESTILOS DO MODAL DE AVISO --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    max-width: 600px;
    width: 90%;
    z-index: 1001;
    transform: scale(1);
    transition: transform 0.2s ease;
    /* Garante que padding e borda sejam incluídos na largura/altura total */
    box-sizing: border-box;
}

.modal-content.modal-guide {
    /* Aumenta a largura para ser mais generosa e corrige a especificidade */
    max-width: 950px; 
    border-top: 1px dashed #ddd;
    padding: 20px;   /* Mais padding interno */
    margin-bottom: 20px;
    /* Remove a necessidade de height fixo, deixa o conteúdo mandar */
    /* ESSENCIAL: Permite que APENAS esta seção role horizontalmente */
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.hidden .modal-content {
    transform: scale(0.9);
}

.modal-content h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.5em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.modal-body {
    margin-bottom: 30px;
    font-size: 1.05em;
    line-height: 1.7;
}

.modal-body ol {
    padding-left: 20px;
}
.modal-body li {
    margin-bottom: 10px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.modal-button-cancel {
    background-color: transparent;
    color: var(--text-color);
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 1em;
}

.modal-button-cancel:hover {
    background-color: var(--light-gray);
}


/* --- 4. KEYFRAMES E RESPONSIVIDADE --- */

/* Keyframes de Animação */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes button-pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); } 
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}


/* Responsividade para Telas Menores */
@media (max-width: 700px) {
    /* Ajuste dos Cards de Segurança */
    .notice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {
    /* Desativa o posicionamento absoluto do botão no celular */
    .header-top-right {
        position: static;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
        width: 100%;
        top: auto;
        right: auto;
    }
    
    .status-cta-large {
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
  
    .btn-guide {
        margin-top: 10px;
    }
}


/* ============================================================
   AJUSTE DE RESOLUÇÃO BAIXA (Telas 1024x768 e Notebooks Antigos)
   ============================================================ */
@media (max-height: 800px) {

    /* Reduz o padding geral do container principal para liberar mais espaço vertical */
    .container {
        padding: 15px 30px; 
    }
    
    /* Reduz o tamanho do logo e do título principal para economizar altura */
    .logo {
        width: 150px;
    }
    h1 {
        font-size: 2em;
    }

    /* Reduz o espaço no modal guia (o maior problema) */
    .modal-content.modal-guide {
        /* Reduz o padding interno do modal */
        padding: 30px; 
    }

    /* Reduz o título do modal */
    .modal-guide h3#guide-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    /* Reduz as margens gerais dos passos */
    .guide-steps {
        margin: 20px 0;
        gap: 20px;
    }

    /* Reduz o tamanho dos números dos passos (que são grandes) */
    .step-card .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.1em;
        margin: 0 auto 10px auto;
    }

    /* Reduz o padding nas células da tabela de comparação */
    .guide-comparison th, .guide-comparison td {
        padding: 10px; /* Era 15px */
        font-size: 0.9em; /* Reduz o tamanho da fonte da tabela */
    }
}