/* ==========================================
   COMPORTAMENTO NATIVO DE APLICATIVO
========================================== */
html {
    background-color: #050505; /* Fundo super escuro para o tablet/PC */
    display: flex;
    justify-content: center; /* Centraliza o app na tela grande */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Garante que as bordas não quebrem o tamanho das caixas */
    -webkit-tap-highlight-color: transparent; /* Tira o piscar azul ao clicar no Android */
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /* 📱 MODO APLICATIVO ATIVADO */
    width: 100%; 
    max-width: 450px; /* Trava o crescimento máximo no tamanho de um celular grande */
    margin: 0;
    position: relative;
    box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.9); /* Sombra 3D elegante ao redor do app */
    
    min-height: 100vh;
    min-height: 100dvh; /* ✅ mobile: 100vh quebrava com a barra do navegador; dvh se adapta */
    overflow-x: hidden; /* PROÍBE a tela de rolar para os lados */
    
    /* Impede o usuário de selecionar os textos sem querer */
    -webkit-user-select: none;
    user-select: none; 
    
    /* ESCONDE A ROLAGEM NO FIREFOX E EDGE */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
    
    background-color: var(--cor-fundo); 
    color: var(--cor-texto);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Libera a seleção apenas para campos de digitação */
input, textarea {
    -webkit-user-select: auto;
    user-select: auto;
}

/* Esconde a barra de rolagem EM TODOS OS NAVEGADORES (Forçado) */
::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

/* ==========================================
   VARIÁVEIS DO ADMIN (v3.0)
   Extraídas para fácil manutenção
========================================== */
:root {
    --adm-bg: #0a0a0c;
    --adm-surface: #141416;
    --adm-surface-2: #1c1c1f;
    --adm-border: rgba(255,255,255,0.06);
    --adm-text: #ffffff;
    --adm-text-2: #a0a0a8;
    --adm-text-3: #66666e;
    --adm-red: #E53935;
    --adm-red-dark: #B71C1C;
    --adm-green: #22c55e;
    --adm-green-dim: rgba(34,197,94,0.12);
    --adm-yellow: #f59e0b;
    --adm-blue: #3b82f6;
    --adm-purple: #a855f7;
    --adm-radius: 14px;
    --adm-radius-sm: 10px;
}

/* ==========================================
   CORES GLOBAIS (4L ACADEMY)
========================================== */
:root {
    --cor-fundo: #000000;       /* Preto profundo absoluto */
    --cor-cartao: #161618;      /* Cinza muito escuro para os cartões */
    --cor-destaque: #E53935;    /* Vermelho Jiu-Jitsu (Faixa/Logotipo) */
    --cor-destaque-hover: #D32F2F; 
    --cor-texto: #ffffff;
    --cor-texto-secundario: #9e9e9e;
    --cor-borda: rgba(255, 255, 255, 0.05);
}

/* ==========================================
   BANNERS (FUNDO COM FADE TO BLACK)
========================================== */
.banner-topo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 380px;
    z-index: 0;
    background-image:
        linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 65%, #000000 100%),
        url('4L.png');
    background-size: cover;
    background-position: center top;
}

.banner-aluno {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 380px;
    z-index: 0;
    background-image:
        linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 65%, #000000 100%),
        url('fundo-aluno.png'); 
    background-size: cover;
    background-position: center top;
}

/* ==========================================
   EFEITO VIDRO (GLASSMORPHISM) NOS CARTÕES
========================================== */
.login-container, .card-status, .secao-admin {
    background: rgba(22, 22, 24, 0.55) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* Suporte para iPhone */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: deslizarSuave 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.login-container {
    padding: 25px 20px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    z-index: 10;
    margin-top: 8vh;
    margin-bottom: 20px;
}

/* ==========================================
   TIPOGRAFIA
========================================== */
h1, h2 { 
    color: var(--cor-texto); 
    margin-bottom: 5px; 
    font-size: 26px; 
    font-weight: 800;
    letter-spacing: -0.5px;
}

.subtitulo { 
    color: var(--cor-texto-secundario); 
    margin-bottom: 25px; 
    font-size: 14px; 
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================
   CAMPOS DE TEXTO (INPUTS)
========================================== */
input, textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--cor-borda);
    border-radius: 12px;
    background-color: #0a0a0a;
    color: var(--cor-texto);
    font-size: 16px; /* ✅ iOS: fonte < 16px causava zoom automático indesejado ao focar */
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

input::placeholder, textarea::placeholder {
    color: #555555;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--cor-destaque);
    box-shadow: 0 0 10px rgba(229, 57, 53, 0.2); /* Brilho vermelho ao focar */
}

/* ==========================================
   BOTÕES E MICRO-INTERAÇÕES (FEEDBACK TÁTIL)
========================================== */
button {
    width: 100%;
    padding: 16px;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); /* Essencial para a mola do botão */
}

/* Efeito tátil movido para .btn-tactile (v3.0) */

/* Estado desabilitado: feedback visual de que o botão está processando (anti double-submit) */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Botões Vermelhos (Ação Principal) com Brilho e Gradiente */
button[type="submit"], #btn-enviar-comprovante, #btn-gerar-mes {
    background: linear-gradient(135deg, var(--cor-destaque) 0%, #B71C1C 100%);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botões Escuros Secundários */
#btn-copiar-pix, #btn-pagar {
    background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    color: white; 
}

/* Botão Transparente (Sair) */
#btn-sair {
    background: transparent;
    border: 1px solid var(--cor-borda);
    color: var(--cor-texto-secundario);
    box-shadow: none;
    padding: 8px 15px;
}

/* ==========================================
   NAVEGAÇÃO POR ABAS (MENU INFERIOR)
========================================== */
.menu-inferior {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0d0d0d;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 100;
}

.tab-item {
    text-align: center;
    color: #666;
    transition: all 0.3s ease;
}

.tab-item span {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

.tab-item p {
    font-size: 10px;
    margin: 0;
    text-transform: uppercase;
    font-weight: bold;
}

.tab-item.active {
    color: var(--cor-destaque);
}

/* ==========================================
   MENU LATERAL (DRAWER) OTIMIZADO — GPU
========================================== */
.menu-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); 
    z-index: 999; 
    display: none; 
    opacity: 0;
    pointer-events: none; 
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: opacity 0.35s ease, backdrop-filter 0.35s ease;
}

.menu-backdrop.ativo {
    pointer-events: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.menu-lateral {
    position: fixed; top: 0; left: 0; width: 280px; height: 100%; height: 100dvh;
    background-color: var(--cor-cartao); z-index: 1000;
    display: flex; flex-direction: column;
    box-shadow: 15px 0 40px rgba(0,0,0,0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    /* GPU-accelerated: transform em vez de left */
    transform: translateX(-105%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
}

.menu-lateral.aberto { 
    transform: translateX(0); 
}

.menu-header { display: flex; justify-content: space-between; align-items: center; padding: 25px 20px 10px; }
.menu-items { display: flex; flex-direction: column; flex: 1; padding: 0 10px 20px; overflow-y: auto; }

.menu-item {
    padding: 15px 20px; color: var(--cor-texto); font-size: 15px; font-weight: bold;
    border-radius: 8px; cursor: pointer; margin: 4px 10px; display: flex; align-items: center; gap: 15px;
    transition: all 0.2s ease;
}

.menu-item:hover, .menu-item.active { 
    background-color: rgba(229, 57, 53, 0.1); 
    color: var(--cor-destaque); 
}

.menu-item:active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(0.98); /* Feedback tátil suave no menu */
}

.menu-item.disabled { color: #555; cursor: not-allowed; font-weight: normal; }
.menu-item.disabled:hover { background-color: transparent; color: #555; }

.admin-body .menu-inferior { display: none; }

/* ==========================================
   ANIMAÇÕES DE ENTRADA
========================================== */
.secao-admin {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes deslizarSuave {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   RODAPÉ COMPACTO E ÍCONES METÁLICOS
========================================== */
.social-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.social-title {
    color: #cccccc;
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: 500;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.icon-metal {
    width: 42px; 
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(145deg, #3a3a3a, #1f1f1f);
    box-shadow: 4px 4px 8px #111111, -4px -4px 8px #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    border: 2px solid #444;
    transition: all 0.2s ease-in-out;
}

.icon-metal:active {
    box-shadow: inset 4px 4px 8px #111111, inset -4px -4px 8px #333333;
    color: #e53935; 
}

.social-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #aaaaaa;
    font-size: 12px;
}

/* O Segredo: Se o celular do aluno for muito pequeno, ele diminui a fonte do rodapé automaticamente */
@media (max-height: 700px) {
    .login-container { margin-top: 4vh; padding: 15px; }
    .social-title { margin-bottom: 8px; }
    .social-icons { margin-bottom: 8px; }
    .icon-metal { width: 35px; height: 35px; font-size: 16px; }
}
/* ==========================================
   ESTILO DO BANNER VIP (CORRIGIDO: RELATIVO E VERMELHO)
========================================== */
.banner-vip {
    background: rgba(22, 22, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--cor-destaque);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px; 
    text-align: center;
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.25);
    
    /* Faz o banner ficar quieto lá no topo */
    position: relative; 
    z-index: 10;
    animation: fadeIn 0.5s ease;
}

.btn-vip {
    /* Força o botão a ficar com o gradiente vermelho oficial */
    background: linear-gradient(135deg, #E53935 0%, #B71C1C 100%) !important;
    color: white !important;
    font-weight: bold;
    padding: 12px;
    font-size: 14px;
    border-radius: 8px;
    border: none;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.35);
    transition: transform 0.2s ease;
}

/* Efeito tátil de afundar o botão ao clicar */
.btn-vip:active {
    transform: scale(0.96);
}
/* ==========================================
   ESTILO DA CARTEIRINHA DIGITAL DO ATLETA
========================================== */
.carteirinha-atleta {
    background: linear-gradient(135deg, #161618 0%, #0a0a0a 100%);
    border: 1px solid #E53935;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Fundo com leve textura */
.carteirinha-atleta::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(229, 57, 53, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.carteirinha-foto-container {
    width: 90px; height: 90px; margin: 0 auto 15px;
    border-radius: 50%; border: 3px solid #E53935; padding: 3px; background: #000;
}

.carteirinha-foto-container img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}

.carteirinha-dados .cart-label {
    font-size: 9px; color: #888; letter-spacing: 1px; margin-bottom: 2px;
}

.carteirinha-dados .cart-valor {
    font-size: 16px; color: white; font-weight: 800; text-transform: uppercase; margin-bottom: 0;
}

/* Simulação de uma Faixa de Jiu-Jitsu */
.cart-faixa-box {
    background: #fff; color: #000; padding: 5px; margin: 15px auto; width: 85%;
    border-radius: 4px; 
    border-right: 20px solid #E53935; /* Tarja Vermelha */
    border-left: 15px solid #222; /* Ponta Preta */
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.carteirinha-qr {
    background: white; padding: 10px; border-radius: 8px; width: 140px; margin: 15px auto;
}

.carteirinha-qr img { width: 100%; height: auto; }
.carteirinha-qr p { color: #000; font-size: 9px; font-weight: bold; margin-top: 5px; margin-bottom: 0; }

.carteirinha-info-rodape {
    text-align: left; font-size: 11px; color: #aaa; line-height: 1.6;
    margin-top: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1);
}

.carteirinha-info-rodape span { color: white; font-weight: bold; }
.carteirinha-footer-br { font-size: 10px; color: #888; margin-top: 15px; }
/* ==========================================
   ANIMAÇÃO DO SKELETON LOADER (FANTASMA)
   ========================================== */
.skeleton {
    background: linear-gradient(90deg, #161618 25%, #2a2a2c 50%, #161618 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.5s infinite linear;
    border-radius: 4px;
}

@keyframes loadingSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* ==========================================
   VISUAL DA CARTEIRINHA DIGITAL E RECIBO
   ========================================== */

/* Estrutura Principal da Carteirinha */
.carteirinha-container {
    background: linear-gradient(135deg, #111 0%, #000 100%); 
    border-radius: 16px; 
    padding: 25px 20px; 
    text-align: center; 
    position: relative; 
    overflow: hidden;
}

.carteirinha-header h2 {
    font-style: italic; 
    font-size: 22px; 
    margin: 0; 
    color: white; 
    font-weight: 900;
}

.carteirinha-header p {
    font-size: 10px; 
    color: #aaa; 
    letter-spacing: 1px; 
    margin-top: 2px;
}

.carteirinha-foto-wrapper {
    position: relative; 
    z-index: 2; 
    width: 110px; 
    height: 110px; 
    margin: 0 auto 15px; 
    border-radius: 50%; 
    padding: 4px; 
    background: #000;
}

.carteirinha-foto-wrapper img {
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    object-fit: cover;
}

.carteirinha-info p {
    font-size: 10px; 
    color: #888; 
    letter-spacing: 1px; 
    margin-bottom: 2px;
}

.carteirinha-info h3 {
    color: white; 
    font-weight: 800; 
    text-transform: uppercase; 
    margin: 0 0 10px 0;
}

.carteirinha-qr {
    position: relative; 
    z-index: 2; 
    background: white; 
    padding: 10px; 
    border-radius: 8px; 
    width: 140px; 
    margin: 0 auto 20px;
}

.carteirinha-footer {
    position: relative; 
    z-index: 2; 
    text-align: left; 
    font-size: 11px; 
    color: #aaa; 
    line-height: 1.6; 
    padding-bottom: 15px; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Estrutura do Recibo em PDF */
.recibo-print {
    text-align: left; 
    background: white; 
    color: black; 
    padding: 20px; 
    border-radius: 8px; 
    font-family: monospace; 
    border: 1px solid #ccc; 
    margin-top: 10px;
}

.recibo-header {
    text-align: center; 
    border-bottom: 1px dashed black; 
    padding-bottom: 15px; 
    margin-bottom: 15px;
}

/* ==========================================
   CORREÇÕES v2.1 — ADIÇÕES E FIXES
   ========================================== */

/* 1. Media Print para Recibo */
@media print {
    body * {
        visibility: hidden;
    }
    .swal2-popup, .swal2-popup * {
        visibility: visible;
    }
    .swal2-popup {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        background: white !important;
    }
    .swal2-close, .swal2-actions {
        display: none !important;
    }
    #recibo-print {
        visibility: visible;
        background: white !important;
        color: black !important;
        border: none !important;
        box-shadow: none !important;
        padding: 20px !important;
    }
    #recibo-print * {
        visibility: visible;
        color: black !important;
    }
}

/* Efeito tátil unificado em .btn-tactile (v3.0) */

/* 3. Garante que o menu lateral não fique escondido em telas grandes */
@media (min-width: 451px) {
    body {
        margin: 0 auto;
    }
}

/* 4. Previne que imagens quebrem layout */
img {
    max-width: 100%;
    height: auto;
}

/* 5. Melhora contraste da faixa preta na foto */
.adm-modal-avatar[style*="border: 3px solid #424242"],
img[style*="border: 3px solid #424242"] {
    border-color: #888 !important;
}

/* ==========================================
   CORREÇÃO v2.2 — ELEMENTOS FIXED EM TELAS GRANDES
   ========================================== */
@media (min-width: 451px) {
    .adm-nav, .adm-header, .adm-toast, .adm-modal-overlay, .adm-fab {
        max-width: 450px;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
    }
    .adm-modal-overlay {
        align-items: center !important;
        justify-content: center !important;
    }
    .adm-modal {
        border-radius: var(--adm-radius) !important;
        max-height: 85vh !important;
        transform: translateY(20px) !important;
    }
    .adm-modal-overlay.aberto .adm-modal {
        transform: translateY(0) !important;
    }
}
/* ==========================================
   HOTFIX v2.3 — Overflow, Textos e Micro-ajustes
   ========================================== */

/* 1. Protege nomes longos no modal dossiê */
#dossie-nome, .adm-modal-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 30px !important;
}

/* 2. Tags ao lado do nome quebram linha se necessário */
.adm-list-info h4 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}
.adm-list-info h4 .adm-tag {
    flex-shrink: 0;
}

/* 3. Títulos de avisos não passam por baixo do botão delete */
#lista-avisos-admin h4,
#lista-avisos .adm-card-body h4 {
    padding-right: 32px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 4. Gráfico: sobe o padding-bottom para não cortar labels */
.adm-chart {
    padding: 10px 0 24px 0 !important;
}

/* 5. Touch target da navegação inferior (mínimo 48px) */
.adm-nav-item {
    min-height: 48px;
    justify-content: center;
}

/* 6. Barra de ação em massa quebra linha em telas estreitas */
.adm-mass-bar {
    flex-wrap: wrap;
    row-gap: 6px;
}
.adm-mass-count {
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 4px;
}

/* 7. Nomes no financeiro/pendentes com corte suave */
#lista-financeiro h4,
#lista-pendentes h4,
#lista-pendentes p[style*="font-weight: 800"] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* 8. Chevron e ícones de ação não encolhem */
.adm-list-item > span:last-child,
.adm-list-item .fa-chevron-right {
    flex-shrink: 0;
}

/* 9. Preview de mensagem: quebra palavras enormes */
#zap-preview {
    word-break: break-word;
    hyphens: auto;
}

/* 10. Remove scale estranho de botões de ícone/fechar */
.adm-btn-icon:active,
.adm-modal-close:active,
.adm-nav-item:active,
.adm-chip:active,
.adm-mass-btn:active {
    transform: none !important;
    opacity: 0.7;
}

/* 11. Saudação do aluno não invade a foto */
#saudacao-aluno {
    max-width: calc(100% - 85px);
    word-break: break-word;
}

/* 12. Cartões de aniversário com altura uniforme */
.adm-bday-card {
    min-height: 135px;
    justify-content: center;
}

/* 13. Títulos de modais de ação protegidos */
#titulo-gerar-mens {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 10px;
}

/* 14. Fallback visual para inputs de senha com type duplicado */
input#novo-senha[type="text"],
input#modal-senha[type="text"] {
    -webkit-text-security: disc !important;
}

/* 15. Header com altura mínima consistente */
.adm-header {
    min-height: 56px;
}

/* 16. Valores no grid do dossiê alinhados à direita sem quebrar */
.adm-info-value {
    text-align: right;
    margin-left: 8px;
    flex-shrink: 0;
}

/* 17. Texto de ações rápidas não quebra estranho */
.adm-card-body button span {
    line-height: 1.2;
}

/* 18. Nome na carteirinha não estoura */
.c4l-name {
    max-width: 100%;
}

/* 19. Recibo e feedback PIX não extrapolam */
.recibo-print,
#feedback-pix {
    max-width: 100%;
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}
/* ==========================================
   v3.0 — Feedback Tátil Isolado (.btn-tactile)
   ========================================== */

/* Apenas botões com .btn-tactile recebem o efeito de escala */
.btn-tactile:active {
    transform: scale(0.95);
    opacity: 0.85;
}

/* 2. Scroll bleed nos modais (impede que a página de trás role) */
.adm-modal-overlay.aberto,
body.modal-aberto,
body:has(.adm-modal-overlay.aberto),
body.menu-aberto {
    overflow: hidden !important;
    touch-action: none;
}

/* 3. Menu lateral do aluno contido ao app em telas grandes */
@media (min-width: 451px) {
    .menu-lateral {
        left: 50% !important;
        margin-left: -225px;
        max-width: 280px;
        /* mantém transform GPU */
        transform: translateX(-105%);
    }
    .menu-lateral.aberto {
        transform: translateX(0);
    }
    .menu-backdrop {
        max-width: 450px;
        left: 50% !important;
        transform: translateX(-50%);
    }
}

/* 4. Date picker visível no tema escuro (Android/Chrome) */
input[type="date"],
input[type="datetime-local"] {
    color-scheme: dark;
}

/* 5. Inputs de senha nunca escondem texto atrás do ícone de olho */
input[type="password"],
input[type="text"].input-senha {
    padding-right: 44px !important;
}

/* 6. Avisos e textos longos quebram corretamente */
.adm-card-body p,
#lista-avisos-admin p,
.card-status p {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 7. Verso da carteirinha — grid não estoura */
.c4l-back-item {
    min-width: 0;
    overflow: hidden;
}
.c4l-back-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 8. Card de recibo alinhado verticalmente quando vira flex */
#card-recibo-home {
    align-items: center !important;
}

/* 9. Botão de upload de foto — touch target maior */
#input-foto + label,
label[for="input-foto"] {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
}

/* 10. Safe area para iPhone/Android com notch (painel do aluno) */
body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* 11. Botão fantasma "Esqueci senha" vira link elegante */
#btn-esqueci-senha {
    width: auto !important;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}
#btn-esqueci-senha:active {
    background: rgba(229, 57, 53, 0.1);
    transform: none;
    opacity: 1;
}

/* 12. Ícone de notificação desativado visualmente */
header button:has(.fa-bell) {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}

/* 13. Menu lateral — item li corrigido para parecer div */
.menu-items li.menu-item {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 14. Código Pix selecionável manualmente (override do user-select:none) */
#feedback-pix code,
#feedback-pix {
    -webkit-user-select: text !important;
    user-select: text !important;
}

/* 15. Container do painel com padding de safe area */
.painel-container {
    padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)) !important;
}
/* ==========================================
   v4.0 — ABA AJUSTES & SUPORTE (aditivo)
   Decisões:
   - Reaproveita .card-status (padrão visual já existente do app)
   - Inputs escuros com foco vermelho visível (acessibilidade)
   - FAQ usa <details> nativo: zero JS, acessível por teclado
   - Badge de não lidos: pill vermelho com leve pulso (desliga em reduced-motion)
========================================== */

/* --- Badge de avisos não lidos (menu lateral) --- */
.badge-naolido {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: auto; /* empurra para a direita do item do menu */
    background: #E53935;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 99px;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.18);
    animation: badgePulso 2s ease-in-out infinite;
}

@keyframes badgePulso {
    0%, 100% { box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.18); }
    50%      { box-shadow: 0 0 0 6px rgba(229, 57, 53, 0.06); }
}

/* --- Cartões da aba Ajustes --- */
.ajs-card {
    padding: 20px;
    margin-bottom: 16px;
    text-align: left;
}

.ajs-titulo {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 14px;
    letter-spacing: 0.2px;
}

.ajs-label {
    display: block;
    color: #9e9e9e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 12px 0 6px;
}

.ajs-input {
    width: 100%;
    min-height: 48px; /* alvo de toque AA */
    background: #0d0d10;
    border: 1px solid var(--cor-borda);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ajs-input:focus {
    border-color: var(--cor-destaque);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.18);
}

/* --- Botões da aba --- */
.ajs-btn-primario,
.ajs-btn-sec,
.ajs-btn-zap,
.ajs-btn-perigo {
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.18s ease;
}

.ajs-btn-primario { background: linear-gradient(135deg, #E53935, #B71C1C); color: #fff; }
.ajs-btn-sec      { background: rgba(255,255,255,0.06); color: #ddd; border: 1px solid rgba(255,255,255,0.1); }
.ajs-btn-zap      { background: #22c55e; color: #06270f; }
.ajs-btn-perigo   { background: transparent; color: #E53935; border: 1px solid rgba(229,57,53,0.5); }

.ajs-btn-primario:disabled,
.ajs-btn-sec:disabled {
    opacity: 0.55;
    cursor: wait;
}

.ajs-divisor {
    height: 1px;
    background: var(--cor-borda);
    margin: 20px 0 6px;
}

/* --- Linha da foto --- */
.ajs-foto-linha {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
}

#ajs-foto-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cor-destaque);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    background: #0d0d10;
}

.ajs-btn-foto {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ddd;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease;
}

.ajs-btn-foto:active { background: rgba(255,255,255,0.12); }

/* --- FAQ nativo (details/summary) --- */
.ajs-faq-item {
    border: 1px solid var(--cor-borda);
    border-radius: 10px;
    margin-top: 8px;
    background: rgba(255,255,255,0.02);
    overflow: hidden;
}

.ajs-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 14px;
    color: #ddd;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
}

.ajs-faq-item summary::-webkit-details-marker { display: none; }

.ajs-faq-item summary::after {
    content: '▾';
    color: #666;
    font-size: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.ajs-faq-item[open] summary::after { transform: rotate(180deg); }

.ajs-faq-item p {
    padding: 0 14px 14px;
    margin: 0;
    color: #9e9e9e;
    font-size: 13px;
    line-height: 1.55;
}

/* --- Acessibilidade: sem pulso/anim extra para quem pede menos movimento --- */
@media (prefers-reduced-motion: reduce) {
    .badge-naolido { animation: none; }
    .ajs-input, .ajs-btn-primario, .ajs-btn-sec, .ajs-btn-zap, .ajs-btn-perigo,
    .ajs-btn-foto, .ajs-faq-item summary::after { transition: none; }
}
