* { box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #0e1621; color: #fff; display: flex; justify-content: center; padding: 20px; margin: 0; min-height: 100vh; align-items: flex-start; }

.container { background-color: #17212b; padding: 30px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); width: 100%; max-width: 600px; margin-top: 40px; border-top: 4px solid #5288c1; }

.brand-container { text-align: center; margin-bottom: 30px; }
.brand-title { font-size: 2.6em; font-weight: 800; margin: 0; letter-spacing: 2px; color: #ffffff; text-transform: uppercase; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.brand-title span { color: #5288c1; }
.brand-subtitle { color: #8aa3ba; font-size: 0.85em; text-transform: uppercase; letter-spacing: 4px; margin-top: 8px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; }
.brand-subtitle::before, .brand-subtitle::after { content: ""; height: 1px; width: 40px; background-color: #5288c1; opacity: 0.5; }

.input-group { display: flex; gap: 10px; margin-bottom: 20px; }
input { flex: 1; padding: 15px; border: 1px solid #242f3d; border-radius: 8px; background-color: #242f3d; color: white; font-size: 16px; outline: none; text-transform: uppercase; transition: 0.3s;}
input:focus { border-color: #5288c1; box-shadow: 0 0 8px rgba(82, 136, 193, 0.3); }

button { padding: 15px 24px; background-color: #5288c1; color: white; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; transition: 0.2s; font-weight: bold; white-space: nowrap; }
button:hover:not(:disabled) { background-color: #4175ac; transform: translateY(-2px); }
button:disabled { background-color: #3b4c5d; cursor: not-allowed; color: #8aa3ba; transform: none; }

.resultado-container { display: none; margin-top: 20px; position: relative; animation: fadeIn 0.4s ease-in-out; }
.resultado { background-color: #0e1621; padding: 20px; border-radius: 8px; font-size: 14px; line-height: 1.6; word-wrap: break-word; color: #e4ebf5; border-left: 4px solid #5288c1; max-height: 60vh; overflow-y: auto; }

.loader { text-align: center; display: none; margin: 20px 0; color: #8aa3ba; font-style: italic; font-weight: bold; }

.btn-copiar { margin-top: 15px; width: 100%; background-color: #2b5278; }
.btn-copiar:hover { background-color: #3b6a9c; }

.destaque-codigo { color: #a1c181; font-family: monospace; font-size: 1.1em; background: rgba(161, 193, 129, 0.1); padding: 2px 4px; border-radius: 4px; }
.cache-aviso { color: #a1c181; font-size: 0.9em; font-weight: bold; display: block; margin-bottom: 15px; text-align: right; }

/* MODAIS BASE */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 9999; padding: 20px; }
.modal-content { background: #17212b; padding: 30px; border-radius: 12px; width: 100%; max-width: 500px; text-align: center; border: 3px solid #e74c3c; box-shadow: 0 0 50px rgba(231, 76, 60, 0.4); animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-modal { width: 100%; margin-top: 10px; font-size: 1.1em; text-transform: uppercase; white-space: normal; line-height: 1.3; transition: 0.3s; }
.btn-modal.liberado { background-color: #5288c1; color: white; border: none; cursor: pointer; font-weight: bold; } /* Alterado de vermelho para azul */
.btn-modal.liberado:hover { background-color: #4175ac; transform: scale(1.02); } /* Alterado de vermelho escuro para azul escuro */
.btn-modal.bloqueado { background-color: #3b4c5d !important; color: #8aa3ba; cursor: not-allowed; transform: none; border: none; font-weight: bold; }

/* ========================================= */
/* MODAL DE REGRAS PREMIUM                   */
/* ========================================= */
.warning-premium-modal { 
    border: 1px solid #5288c1 !important; /* Borda azul ARCSYS */
    background: #0e1621 !important; 
    box-shadow: 0 10px 50px rgba(82, 136, 193, 0.25) !important; /* Brilho azul ARCSYS */
    padding: 0 !important; 
    overflow: hidden; 
}

.warning-header { background: rgba(82, 136, 193, 0.1); padding: 25px 20px; border-bottom: 2px solid rgba(82, 136, 193, 0.3); } /* Fundo azul claro */
.warning-icon-large { font-size: 2.5em; display: block; margin-bottom: 10px; animation: shake-warning 3s infinite; }
.warning-title-premium { color: #5288c1; font-size: 1.3em; margin: 0; text-transform: uppercase; letter-spacing: 1px; font-weight: 900; } /* Título azul */
.rules-container { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.rule-item { display: flex; align-items: flex-start; gap: 15px; background: #17212b; padding: 15px; border-radius: 8px; border: 1px solid #242f3d; text-align: left; transition: 0.3s; }
.rule-item:hover { border-color: rgba(82, 136, 193, 0.4); background: rgba(82, 136, 193, 0.05); } /* Hover azul */
.rule-icon { font-size: 1.5em; line-height: 1; }
.rule-text { font-size: 0.9em; color: #aebfd1; line-height: 1.5; }
.rule-text strong { color: #5288c1; display: block; margin-bottom: 4px; font-size: 1.05em; text-transform: uppercase; } /* Destaque azul */

/* Checkbox Customizado */
.checkbox-premium { display: block; padding: 0 20px; margin-bottom: 20px; cursor: pointer; }
.checkbox-content { display: flex; align-items: center; gap: 15px; background: #17212b; padding: 15px; border-radius: 8px; border: 2px dashed #3b4c5d; text-align: left; transition: 0.3s; }
.checkbox-premium input { display: none; }
.checkbox-fake { width: 24px; height: 24px; min-width: 24px; border: 2px solid #5288c1; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: 0.2s; background: rgba(82, 136, 193, 0.1); }
.checkbox-premium input:disabled + .checkbox-content { opacity: 0.5; cursor: not-allowed; border-color: #242f3d; }
.checkbox-premium:not(:has(input:disabled)):hover .checkbox-content { border-color: #5288c1; background: rgba(82, 136, 193, 0.05); } /* Hover azul */
.checkbox-premium input:checked + .checkbox-content .checkbox-fake { background-color: #2ecc71; border-color: #2ecc71; }
.checkbox-premium input:checked + .checkbox-content .checkbox-fake::after { content: '✔'; color: #0e1621; font-weight: 900; font-size: 16px; }
.checkbox-content span:last-child { font-size: 0.85em; color: #fff; line-height: 1.4; }
.checkbox-content span:last-child strong { color: #5288c1; } /* Texto em destaque azul */
.btn-premium-action { width: calc(100% - 40px); margin: 0 20px 25px 20px; padding: 16px; font-size: 1.05em; border-radius: 8px; letter-spacing: 1px; }

/* MODAL DE MANUTENÇÃO */
.maintenance-overlay { z-index: 10000; background: rgba(14, 22, 33, 0.98) !important; }
.maintenance-content { border-color: #e67e22 !important; box-shadow: 0 0 60px rgba(230, 126, 34, 0.5) !important; max-width: 550px; text-align: center; padding: 30px !important; }
.maintenance-header { margin-bottom: 25px; }
.maintenance-icon { display: block; font-size: 5em; margin-bottom: 20px; animation: pulse-maintenance 2s infinite; text-shadow: 0 0 20px rgba(230, 126, 34, 0.7); }
.maintenance-title { color: #e67e22 !important; font-size: 2.2em !important; margin: 0; text-transform: uppercase; letter-spacing: 2px; font-weight: 900; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.maintenance-body { border-color: #e67e22 !important; background: rgba(230, 126, 34, 0.1) !important; padding: 25px !important; }
.maintenance-body p { font-size: 1.15em; line-height: 1.6; color: #f0f0f0; margin-bottom: 25px; }
.highlight-car { color: #e67e22; font-weight: bold; font-style: italic; border-bottom: 2px dashed #e67e22; }
.maintenance-body .maintenance-footer-text { margin-bottom: 0; font-weight: bold; color: #e67e22; font-size: 1.25em; }

/* EFEITOS E ANIMAÇÕES */
@keyframes shake-warning { 0%, 100% { transform: rotate(0deg); } 5%, 15% { transform: rotate(-10deg); } 10%, 20% { transform: rotate(10deg); } 25% { transform: rotate(0deg); } }
@keyframes pulse-maintenance { 0% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.1); filter: brightness(1.3); } 100% { transform: scale(1); filter: brightness(1); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.shake { animation: shake 0.4s; border-color: #e74c3c !important; box-shadow: 0 0 10px rgba(231, 76, 60, 0.5) !important; }
@keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-8px); } 100% { transform: translateX(0); } }


/* ========================================= */
/* RODAPÉ INTEGRADO AO CARD                  */
/* ========================================= */
.card-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #242f3d; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.badge-free {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.card-footer p { margin: 0; color: #8aa3ba; font-size: 0.85em; }
.card-footer strong { color: #5288c1; }
.btn-dev-contato {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0e1621;
    color: #8aa3ba;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid #242f3d;
    transition: all 0.3s ease;
}
.btn-dev-contato:hover {
    background-color: #5288c1;
    color: #fff;
    border-color: #5288c1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 136, 193, 0.3);
}
.btn-dev-contato svg { width: 16px; height: 16px; }

/* ========================================= */
/* ETIQUETAS E PAINEL DE RESULTADOS (CLEAN)  */
/* ========================================= */
.resultado { 
    background-color: transparent; 
    padding: 10px 15px; 
    font-size: 15px; 
    line-height: 1.8; 
    word-wrap: break-word; 
    max-height: 60vh; 
    overflow-y: auto; 
    text-align: left;
}

/* Os rótulos (Ex: Placa:, Cor:) ficam num tom cinza/azulado discreto */
.data-label {
    color: #8aa3ba;
    font-weight: 500;
    margin-right: 5px;
}

/* Os dados (Ex: QPK8206, BRANCA) ficam brancos, destacados e limpos */
.data-value {
    color: #ffffff;
    font-weight: 700;
    font-family: 'Courier New', Courier, monospace; /* Dá um ar de sistema oficial */
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

/* O título da seção fica minimalista, só com uma linha por baixo */
.section-title {
    color: #5288c1;
    font-weight: 800;
    margin-top: 25px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1em;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(82, 136, 193, 0.2);
    padding-bottom: 5px;
}

/* As etiquetas agora SÓ aparecem nos status de verdade */
.badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
}

.badge-success { background-color: rgba(46, 204, 113, 0.15); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.4); }
.badge-danger { background-color: rgba(231, 76, 60, 0.15); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.4); animation: pulse-danger 1.5s infinite; }
.badge-warning { background-color: rgba(241, 196, 15, 0.1); color: #f39c12; border: 1px solid rgba(241, 196, 15, 0.3); }

@keyframes pulse-danger { 
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5); } 
    70% { box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); } 
}


/* ========================================= */
/* RESPONSIVIDADE (SMARTPHONES)              */
/* ========================================= */
@media (max-width: 480px) {
    /* Geral */
    .input-group { flex-direction: column; }
    button { width: 100%; padding: 15px; }
    .brand-title { font-size: 1.9em; } 
    .brand-subtitle::before, .brand-subtitle::after { width: 20px; } 
    .container { padding: 20px; margin-top: 20px; }
    .modal-overlay { padding: 15px; }
    .modal-content { padding: 20px; max-height: 90vh; overflow-y: auto; }
    
    /* Modal Premium Mobile */
    .warning-title-premium { font-size: 1.1em; }
    .rules-container { padding: 15px; }
    .rule-item { padding: 12px; gap: 10px; }
    .rule-icon { font-size: 1.2em; }
    .rule-text { font-size: 0.85em; }
    .checkbox-premium { padding: 0 15px; }
    .checkbox-content { padding: 12px; gap: 10px; }
    .btn-premium-action { width: calc(100% - 30px); margin: 0 15px 20px 15px; font-size: 0.9em; }

    /* Modal de Manutenção */
    .maintenance-content { padding: 20px !important; }
    .maintenance-icon { font-size: 3.5em; margin-bottom: 15px; }
    .maintenance-title { font-size: 1.5em !important; }
    .maintenance-body { padding: 15px !important; }
    .maintenance-body p { font-size: 0.95em; margin-bottom: 15px; }
    .maintenance-body .maintenance-footer-text { font-size: 1.05em; }
}