/* RESET E LAYOUT PRINCIPAL */
body { font-family: Arial, sans-serif; background-color: #f4f4f9; margin: 0; display: flex; height: 100vh; overflow: hidden; color: #333; }

.tela-full-auth { width: 100%; height: 100dvh; display: flex; align-items: center; justify-content: center; background-color: #2c3e50; overflow-y: auto; padding: 20px; box-sizing: border-box; }
.login-box { background: white; padding: 40px; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); width: 100%; max-width: 350px; text-align: center; position: relative; margin: auto;}
.login-box h2 { border-bottom: none; margin-bottom: 5px; color: #2c3e50; }
.login-box p { color: #666; margin-bottom: 25px; font-size: 14px; }

.custom-auth-logo { display: none; width: 100%; max-width: 250px; margin: 0 auto 20px auto; border-radius: 8px; object-fit: contain; }

.cadastro-container { background: white; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); display: flex; max-width: 800px; width: 100%; overflow: hidden; position: relative; margin: auto; }
.cadastro-form-area { padding: 40px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cadastro-form-area h2 { text-align: left; border: none; padding: 0; margin-bottom: 5px; color: #2c3e50; }
.cadastro-form-area p.subtitle { color: #666; margin-bottom: 25px; font-size: 14px; }

.cadastro-social-area { background-color: #f8f9fa; padding: 40px; flex: 0.8; display: flex; flex-direction: column; justify-content: center; align-items: center; border-left: 1px solid #eee; }
.cadastro-social-area p { color: #666; margin-bottom: 20px; font-weight: bold; }

.btn-google { background-color: white; border: 1px solid #ccc; padding: 12px; border-radius: 5px; width: 100%; max-width: 250px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: bold; color: #444; cursor: pointer; transition: 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.btn-google:hover { background-color: #f1f1f1; }
.btn-google img { width: 20px; height: 20px; }

.input-group { position: relative; width: 100%; margin-bottom: 15px; }
.input-group input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; font-size: 15px; margin: 0; }
.input-group .olhinho { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #dc3545; display: flex; align-items: center; justify-content: center; }
.input-group .olhinho:hover { opacity: 0.7; }

.checkbox-group { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 13px; color: #555; text-align: left; }
.checkbox-group input { margin: 0; cursor: pointer; width: 16px; height: 16px; flex-shrink: 0; }
.checkbox-group label { line-height: 1.4; margin: 0; cursor: pointer; }

.btn-login { width: 100%; padding: 12px; background-color: #007bff; color: white; border: none; border-radius: 5px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-login:hover { background-color: #0056b3; }
.btn-cadastrar { width: 100%; padding: 12px; background-color: transparent; color: #007bff; border: 2px solid #007bff; border-radius: 5px; font-size: 16px; font-weight: bold; cursor: pointer; margin-top: 10px; transition: 0.2s; }
.btn-cadastrar:hover { background-color: #f8f9fa; }

.link-text { color: #007bff; cursor: pointer; font-weight: bold; text-decoration: none; display: inline-block; margin-top: 5px; }
.link-text:hover { text-decoration: underline; }
.auth-msg { margin-top: 15px; font-weight: bold; font-size: 14px; text-align: center;}

.btn-voltar-auth { position: absolute; top: 15px; left: 15px; background: none; border: none; font-size: 24px; cursor: pointer; color: #666; transition: 0.2s; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;}
.btn-voltar-auth:hover { color: #333; transform: translateX(-3px);}

/* MODAIS LEGAIS E QR */
.modal-legal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 9999; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box;}
.modal-legal-content { background: #fff; border-radius: 10px; width: 100%; max-width: 800px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; position: relative;}
.modal-legal-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center;}
.modal-legal-header h3 { margin: 0; color: #2c3e50;}
.modal-legal-body { padding: 20px; overflow-y: auto; line-height: 1.6; color: #555; white-space: pre-wrap; font-size: 14px; }
.btn-fechar-modal { background: none; border: none; font-size: 24px; cursor: pointer; color: #dc3545;}
#modal_qr_content { background: #fff; padding: 20px; border-radius: 10px; width: 90%; max-width: 500px; text-align: center; }

/* ENVOLTÓRIO DO PAINEL REAL */
#app_painel { display: none; width: 100%; height: 100vh; flex-direction: row; }

.sidebar { background-color: #2c3e50; width: 65px; transition: width 0.3s ease; display: flex; flex-direction: column; padding-top: 20px; padding-bottom: 20px; box-shadow: 2px 0 5px rgba(0,0,0,0.1); z-index: 10; justify-content: space-between;}
.sidebar:hover { width: 220px; }
.menu-top { display: flex; flex-direction: column; }
.menu-btn { background: none; border: none; color: white; padding: 15px 20px; display: flex; align-items: center; cursor: pointer; text-align: left; width: 100%; transition: background 0.2s; white-space: nowrap; font-size: 16px; }
.menu-btn:hover { background-color: #34495e; border-left: 4px solid #28a745; padding-left: 16px; }
.menu-btn-sair:hover { border-left-color: #dc3545; }
.menu-icon { font-size: 22px; min-width: 40px; text-align: left; }
.menu-text { opacity: 0; transition: opacity 0.3s; }
.sidebar:hover .menu-text { opacity: 1; }

.profile-section { display: flex; align-items: center; padding: 15px 15px; border-bottom: 1px solid #34495e; margin-bottom: 10px; cursor: pointer; transition: 0.2s; }
.profile-section:hover { background-color: #34495e; }
.avatar { width: 35px; height: 35px; border-radius: 50%; background-color: #6f42c1; color: white; display: flex; justify-content: center; align-items: center; font-weight: bold; font-size: 14px; flex-shrink: 0; overflow: hidden; border: 2px solid transparent;}
.sidebar:hover .profile-section:hover .avatar { border-color: #28a745; }
.profile-email { margin-left: 15px; font-size: 13px; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity 0.3s; }
.sidebar:hover .profile-email { opacity: 1; }

.main-content { flex: 1; padding: 30px; overflow-y: auto; }
.tela { display: none; animation: fadeIn 0.3s; }
.tela.ativa { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ESTILOS DOS COMPONENTES */
.container { max-width: 700px; background: white; padding: 30px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); margin: 0 auto; }
.container-large { max-width: 1000px; } 
h2 { text-align: center; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 0; }
label { font-weight: bold; margin-top: 15px; display: block; color: #444; }
input, select, textarea { width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; font-family: inherit;}

.ingresso-box, .taxa-box { background: #f9f9f9; border: 1px solid #ddd; padding: 15px; border-radius: 8px; margin-top: 10px; display: flex; gap: 8px; align-items: center;}
.ingresso-box input, .taxa-box input, .taxa-box select { margin-top: 0; font-size: 14px;}

.btn-excluir { background-color: #dc3545; padding: 10px; width: 40px; height: 40px; color: white; border: none; border-radius: 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-excluir:hover { background-color: #c82333; }
.btn-add-ingresso { background-color: #007bff; padding: 10px; color: white; border: none; border-radius: 5px; cursor: pointer; margin-top: 10px; font-weight: bold; }
.btn-add-ingresso:hover { background-color: #0056b3; }
.btn-salvar { width: 100%; padding: 15px; background-color: #28a745; color: white; border: none; border-radius: 5px; font-size: 16px; font-weight: bold; cursor: pointer; margin-top: 30px; transition: 0.2s;}
.btn-salvar:hover { background-color: #218838; }
.btn-perigo { background-color: #dc3545; margin-top: 15px; }
.btn-perigo:hover { background-color: #c82333; }
.btn-voltar { background:none; border:none; color:#007bff; cursor:pointer; font-size:16px; margin-bottom:15px; padding: 0; font-weight: bold; }
.btn-voltar:hover { text-decoration: underline; }
#mensagem, #mensagem_edit { text-align: center; margin-top: 15px; font-weight: bold; }

/* ==========================================
   LAYOUT DO CARD DE EVENTO (PC / DESKTOP)
   ========================================== */
.card-evento { 
    background: #fff; 
    border: 1px solid #eee; 
    border-radius: 8px; 
    padding: 15px; 
    margin-bottom: 15px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
    display: flex; 
    flex-direction: row; /* HORIZONTAL PARA O PC */
    align-items: center; 
    text-align: left; /* TEXTO À ESQUERDA NO PC */
    transition: 0.2s;
    gap: 20px;
}
.card-evento:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.1); transform: translateY(-2px); }
.card-inativo { opacity: 0.55; filter: grayscale(40%); } 

.card-evento img { 
    width: 130px; /* IMAGEM MENOR NO PC PARA CABER DE LADO */
    height: 130px; 
    object-fit: cover; 
    border-radius: 8px; 
    background: #f4f4f9; 
    flex-shrink: 0;
}

.card-info { 
    flex: 1; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* TEXTO ALINHADO À ESQUERDA NO PC */
}
.card-info h3 { margin: 0 0 10px 0; color: #2c3e50; display: flex; flex-direction: column; align-items: flex-start; gap: 5px;}
.card-info p { margin: 0 0 5px 0; color: #666; font-size: 14px; }
.status-badge { padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: bold; letter-spacing: 0.5px; display: inline-block; margin-top: 5px; margin-bottom: 5px;}
.status-ativo { color: #155724; background-color: #d4edda; border: 1px solid #c3e6cb; }
.status-encerrado { color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb; }
.status-cancelado { color: #383d41; background-color: #e2e3e5; border: 1px solid #d6d8db; }

.acoes-evento { 
    display: flex; 
    gap: 10px; 
    border-top: none; /* REMOVE LINHA HORIZONTAL NO PC */
    border-left: 1px solid #eee; /* ADICIONA LINHA VERTICAL NO PC */
    padding-top: 0; 
    padding-left: 20px; 
    width: auto;
    justify-content: center;
    align-items: center;
}
.btn-acao { background: #fff; border: 1px solid #ced4da; font-size: 18px; padding: 8px 12px; border-radius: 5px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center;}
.btn-acao:hover { background: #f0f0f0; border-color: #adb5bd; }

/* OUTROS COMPONENTES */
.dash-cards { display: flex; gap: 20px; margin-bottom: 20px; }
.dash-card { flex: 1; background: #f8f9fa; border-radius: 8px; text-align: center; border: 1px solid #e9ecef; display: flex; flex-direction: column; overflow: hidden; }
.dash-card-content { padding: 20px; }
.dash-card h3 { margin: 0; color: #6c757d; font-size: 16px; }
.dash-card p { margin: 10px 0 0 0; font-size: 28px; font-weight: bold; color: #28a745; }
.stats-botoes { display: flex; border-top: 3px solid #e9ecef; background: #fff;}
.stats-botoes button { flex: 1; border: none; background: transparent; padding: 10px; cursor: pointer; color: #6c757d; font-weight: bold; font-size: 14px; transition: 0.2s; }
.stats-botoes button:hover { background: #e2e6ea; color: #333; }
.stats-botoes button.ativo { background: #e2e6ea; color: #333; box-shadow: inset 0 3px 5px rgba(0,0,0,0.05); }
.stats-botoes button:first-child { border-right: 3px solid #e9ecef; }

#area_graficos { display: none; margin-bottom: 20px; animation: fadeIn 0.3s; background: #fff; border: 1px solid #e9ecef; border-radius: 8px; padding: 20px;}
.fila-superior-graficos { display: flex; gap: 20px; margin-bottom: 20px; align-items: flex-start;}
.box-pizza { background: white; border: 1px solid #eee; border-radius: 8px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;}
.box-legenda { flex: 1.5; background: transparent; padding: 0; }
.lista-legenda { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.item-legenda { background: white; border: 1px solid #eee; border-radius: 8px; padding: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); display: flex; align-items: center; gap: 15px; }
.cor-legenda { width: 16px; height: 40px; border-radius: 4px; flex-shrink: 0; }
.info-legenda { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nome-legenda { font-weight: bold; font-size: 14px; color: #333; }
.preco-legenda { font-size: 12px; color: #6c757d; }
.qtd-legenda { font-weight: bold; font-size: 16px; color: #333; text-align: right; white-space: nowrap;}
.barra-progresso-container { width: 100%; height: 6px; background-color: #e9ecef; border-radius: 3px; margin-top: 5px; overflow: hidden; }
.barra-progresso-fill { height: 100%; background-color: #28a745; width: 0%; transition: width 0.3s ease; }
.box-linha { background: white; border: 1px solid #eee; border-radius: 8px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); width: 100%; box-sizing: border-box;}
.box-linha h4, .box-pizza h4 { margin-top: 0; text-align: center; color: #555; margin-bottom: 15px;}
.checkin-area { background: #fff; padding: 20px; border: 1px solid #e9ecef; border-radius: 8px; margin-top: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); position: relative;}

/* BOTÕES DESLIZANTES */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .3s; border-radius: 24px; }
.toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .toggle-slider { background-color: #24b47e; }
input:checked + .toggle-slider:before { transform: translateX(20px); }
.toggle-container { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #eee; }
.toggle-container:last-child { border-bottom: none; }
.toggle-label-container { display: flex; flex-direction: column; gap: 2px; }
.toggle-title { font-weight: bold; color: #333; font-size: 15px; }
.toggle-desc { font-size: 13px; color: #666; }

/* TELA DE MARKETING UI */
.mkt-layout { display: flex; gap: 30px; align-items: flex-start; margin-top: 15px; }
.mkt-form { flex: 1; }
.mkt-preview-container { 
    width: 320px; background-color: #e5ddd5; border-radius: 15px; overflow: hidden; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); border: 8px solid #2c3e50; position: relative; 
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
}
.whatsapp-header { background: #075e54; color: white; padding: 15px; font-weight: bold; display: flex; align-items: center; gap: 10px; font-size: 15px;}
.whatsapp-body { padding: 20px; min-height: 250px; display: flex; flex-direction: column; }
.whatsapp-bubble { 
    background: #dcf8c6; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; 
    position: relative; word-wrap: break-word; box-shadow: 0 1px 1px rgba(0,0,0,0.1); 
    margin-bottom: 10px; color: #303030; line-height: 1.4; border-top-right-radius: 0;
}
.whatsapp-bubble::before { content: ""; position: absolute; top: 0; right: -8px; border-width: 10px 10px 0 0; border-style: solid; border-color: #dcf8c6 transparent transparent transparent; }
.mkt-toolbar { display: flex; gap: 5px; margin-top: 5px; margin-bottom: -2px; }
.mkt-toolbar button { background: #f8f9fa; border: 1px solid #ccc; border-bottom: none; border-radius: 5px 5px 0 0; padding: 6px 12px; cursor: pointer; font-weight: bold; font-family: inherit; }
.mkt-toolbar button:hover { background: #e2e6ea; }
.preview-media-img { width: 100%; border-radius: 5px; margin-bottom: 8px; display: none; }
.aviso-spam { background: #fff3cd; color: #856404; padding: 10px; border-radius: 5px; font-size: 12px; margin-top: 15px; border: 1px solid #ffeeba; }

/* TABELAS GERAIS */
.tabela-leads { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela-leads th { background-color: #2c3e50; color: white; padding: 10px; text-align: left; cursor: pointer; }
.tabela-leads th:hover { background-color: #34495e; }
.tabela-leads td { padding: 10px; border-bottom: 1px solid #eee; }
.tabela-leads tr:hover { background-color: #f1f1f1; }

/* CARDS APROVAÇÃO E GRID */
.grid-aprovacoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 15px;}
.card-aprovacao { background: white; border: 1px solid #e9ecef; border-left: 4px solid #dc3545; border-radius: 8px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); display: flex; flex-direction: column; position: relative;}
.card-aprovacao h4 { margin: 0 0 5px 0; color: #2c3e50; font-size: 16px; padding-right: 30px;}
.card-aprovacao .valor { font-size: 24px; font-weight: bold; color: #28a745; margin-bottom: 15px; margin-top: 5px;}
.card-aprovacao .motivo { font-size: 11px; font-weight: bold; color: #dc3545; background: #f8d7da; padding: 3px 6px; border-radius: 4px; display: inline-block; margin-bottom: 10px; align-self: flex-start;}
.btn-ver-mais-card { position: absolute; top: 15px; right: 15px; background: none; border: none; cursor: pointer; font-size: 18px; padding: 5px; border-radius: 4px; transition: 0.2s;}
.btn-ver-mais-card:hover { background: #f0f0f0; }

.separador-mkt { border: 0; border-top: 1px solid #e9ecef; margin: 30px 0; }
.titulo-mkt { cursor: pointer; color: #2c3e50; display:flex; justify-content:space-between; background: #f8f9fa; padding: 15px; border-radius: 8px; border: 1px solid #e9ecef; margin: 0; transition: 0.2s;}
.titulo-mkt:hover { background: #e2e6ea; }

.painel-desconto { background: #e9ecef; padding: 15px; border-radius: 5px; margin-bottom: 15px; border: 1px solid #ccc; display: none;}

/* ESTILOS ESPECÍFICOS PARA O ADMIN */
.admin-only { display: none; }
body.is-admin .admin-only { display: block; }
body.is-admin .produtor-only { display: none; }

body.is-admin .menu-top.admin-only { display: flex; flex-direction: column; }

.hint-text { font-size: 12px; color: #666; margin-top: 2px; }
.textarea-padrao { resize: vertical; font-family: monospace; font-size: 13px; margin-top: 0; }
.btn-acao-texto { padding: 6px 12px; border: 1px solid #ced4da; background: #f8f9fa; cursor: pointer; border-radius: 4px; font-size: 13px; font-weight: bold; color: #444; }
.btn-acao-texto:hover { background: #e2e6ea; }

/* MODAL DETALHES ADMIN */
#modal_detalhes_admin .modal-legal-content { max-width: 900px; }
.bloco-info-admin { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px; padding: 15px; margin-bottom: 20px;}
.bloco-info-admin h4 { margin-top: 0; color: #6c757d; font-size: 14px; text-transform: uppercase;}
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* Modal genérico Tabela */
#modal_tabela_completa .modal-legal-content { max-width: 1200px; }

#stats_nome_evento {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: none;
    padding-bottom: 0;
    margin-bottom: 15px;
}


/* ==========================================
   RESPONSIVIDADE (MOBILE E CELULARES)
   ========================================== */
@media (max-width: 768px) {
    body { position: relative; }
    #app_painel { flex-direction: column; height: 100dvh; }
    
    /* Menu vira uma barra inferior tipo App - AJUSTE RODAPÉ */
    .sidebar { 
        width: 100%; 
        height: calc(65px + env(safe-area-inset-bottom, 0px));
        flex-direction: row; 
        padding: 0; 
        padding-bottom: env(safe-area-inset-bottom, 0px);
        position: fixed; 
        bottom: -1px; 
        left: 0; 
        z-index: 1000; 
        overflow-x: auto; 
        white-space: nowrap; 
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1); 
        justify-content: flex-start; 
        background-color: #2c3e50;
    }
    .sidebar::-webkit-scrollbar { display: none; }
    .sidebar { -ms-overflow-style: none; scrollbar-width: none; }
    .sidebar:hover { width: 100%; }
    .menu-top { flex-direction: row; flex: unset; }
    body.is-admin .menu-top.admin-only { flex-direction: row; flex: unset; }
    .menu-bottom { flex-direction: row; display: flex; border-left: 1px solid #34495e; padding-left: 0; border-top: none; }
    .menu-btn { width: auto; padding: 15px 20px; justify-content: center; }
    .menu-text { display: none; }
    .menu-icon { font-size: 24px; min-width: auto; margin: 0; text-align: center; }
    .profile-section { padding: 15px; margin: 0; border: none; display: flex; justify-content: center; align-items: center; border-right: 1px solid #34495e; }
    .profile-email { display: none; }
    .menu-btn-sair { border-top: none !important; border-left: 1px solid #34495e; }
    
    /* Ajuste da área principal para não ficar sob o menu inferior */
    .main-content { margin-bottom: calc(65px + env(safe-area-inset-bottom, 0px)); padding: 15px; height: auto; flex: 1; }
    
    /* Layouts em Coluna no Mobile */
    .dash-cards { flex-direction: column; gap: 10px; }
    .mkt-layout { flex-direction: column; }
    .mkt-preview-container { width: 100%; max-width: 100%; box-sizing: border-box; }
    .info-grid { grid-template-columns: 1fr; }
    .fila-superior-graficos { flex-direction: column; }
    .box-pizza, .box-legenda { width: 100%; box-sizing: border-box; }
    
    /* Ajuste de Caixas e Formulários */
    .ingresso-box, .taxa-box { flex-wrap: wrap; }
    .ingresso-box input, .taxa-box input, .taxa-box select { flex: 1 1 100% !important; min-width: 100% !important; margin-bottom: 5px; }
    .login-box, .cadastro-container, .modal-legal-content { width: 95%; padding: 20px; }
    .cadastro-container { flex-direction: column; }
    .cadastro-form-area, .cadastro-social-area { padding: 20px; }
    .cadastro-social-area { border-left: none; border-top: 1px solid #eee; }
    
    /* Área do QR Code / Check-in */
    .checkin-area div:first-child { flex-direction: column; text-align: center; gap: 15px; }
    .checkin-area div:first-child button { margin: 0 auto; }
    .checkin-area div:nth-child(2) { flex-direction: column; }
    .checkin-area div:nth-child(2) button { width: 100% !important; margin-top: 10px !important; }
    
    .modal-legal-content { margin: 10px; max-height: 90vh; }
    .grid-aprovacoes { grid-template-columns: 1fr; }
    
    .tabela-leads { display: block; overflow-x: auto; white-space: nowrap; }

    /* ==========================================
       AJUSTE DO CARD PARA O CELULAR (EMPILHADO)
       ========================================== */
    .card-evento {
        flex-direction: column; /* Volta a empilhar no celular */
        text-align: center; /* Centraliza o texto */
        gap: 15px;
    }
    .card-evento img {
        width: 100%; /* Ocupa o espaço inteiro */
        max-width: 250px;
        height: 250px;
    }
    .card-info {
        align-items: center; /* Centraliza os dados */
    }
    .card-info h3 {
        align-items: center; /* Centraliza o título e o badge */
    }
    .acoes-evento {
        border-left: none; /* Tira a linha lateral */
        border-top: 1px solid #eee; /* Volta a linha horizontal em cima dos botões */
        padding-left: 0;
        padding-top: 15px;
        width: 100%;
        flex-direction: row; /* Mantém os botões um do lado do outro */
    }
}
