/* Tema v2 - Clube Personal
   Paleta: preto (#0d0d0d) + laranja (#ff6a00) + verde musculo (#39d353)
   Cards escuros (#1a1a1a), tipografia clara, botoes laranja.
   A classe .tema-v2 e aplicada ao <body> por base.html.
   Nada de azul (#1a73e8).
*/

.tema-v2 {
    --preto: #0d0d0d;
    --laranja: #ff6a00;
    --laranja-hover: #e05e00;
    --laranja-forte: #cc5500;
    --verde-musculo: #39d353;
    --verde-musculo-hover: #2eb848;
    --bg-body: #0d0d0d;
    --bg-card: #1a1a1a;
    --bg-card-hover: #242424;
    --texto: #e0ddd5;
    --texto-mudo: #9a958f;
    --texto-claro: #c4c1ba;
    --borda: #383838;
    --destaque: #ff6a00;
    --suave-bg: #1a1a1a;
    /* --- Alias de compatibilidade (variaveis legadas) --- */
    --texto-suave: var(--texto-mudo);
    --carvao: var(--bg-card);
    --ambar: var(--laranja);
    --perigo: #c53030;
    --grafite: var(--borda);
    --ok: var(--verde-musculo);
    --raio: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--texto);
    line-height: 1.6;
    padding-bottom: 80px;
    min-height: 100vh;
    margin: 0;
}

/* --- Topbar --- */
.tema-v2 .topbar {
    background: var(--preto);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--borda);
}

.tema-v2 .topbar .logo a {
    color: var(--laranja);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.tema-v2 .topbar nav a {
    color: var(--texto-claro);
    text-decoration: none;
    margin-left: 12px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.tema-v2 .topbar nav a:hover { opacity: 1; color: #fff; }

/* --- Container --- */
.tema-v2 .container {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px;
}

@media (min-width: 768px) {
    .tema-v2 .container { max-width: 800px; }
}

/* --- Tipografia --- */
.tema-v2 h1 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--texto-claro);
}

.tema-v2 h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--texto-mudo);
}

.tema-v2 h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--texto-claro);
}

/* --- Card --- */
.tema-v2 .card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.tema-v2 .centro { text-align: center; }

.tema-v2 .subtitulo {
    color: var(--texto-mudo);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.tema-v2 .dica {
    font-size: 0.8rem;
    color: var(--texto-mudo);
    margin-top: 12px;
}

.tema-v2 .small { font-size: 0.8rem; color: var(--texto-mudo); }

/* --- Alertas --- */
.tema-v2 .alerta {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.tema-v2 .erro { background: #3d1f1f; color: #f08080; }

.tema-v2 .card-alerta {
    background: #2a1a0a;
    border: 2px solid var(--laranja);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.tema-v2 .card-alerta h2 { color: var(--laranja); }
.tema-v2 .card-alerta p { color: var(--texto-claro); }

.tema-v2 .notificacao-topo {
    background: var(--bg-card);
    border: 1px solid var(--borda);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.tema-v2 .notif-item {
    padding: 6px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tema-v2 .notif-item em { color: var(--texto-mudo); font-size: 0.85rem; }

.tema-v2 .btn-notif-fechar {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--texto-mudo);
    margin-left: auto;
}

.tema-v2 .btn-notif-link,
.tema-v2 .btn-notif-mapa {
    color: var(--laranja);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.tema-v2 .local-details {
    margin-top: 8px;
    font-size: 0.85rem;
}

.tema-v2 .local-details summary {
    cursor: pointer;
    color: var(--laranja);
    font-weight: 600;
}

/* --- Botoes --- */
.tema-v2 .btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--laranja);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    margin-top: 8px;
    transition: background 0.2s;
}

.tema-v2 .btn:hover { background: var(--laranja-hover); }

.tema-v2 .btn-sm { padding: 6px 12px; font-size: 0.85rem; }

.tema-v2 .btn-block { display: block; width: 100%; }

.tema-v2 .btn-large {
    padding: 14px 32px;
    font-size: 1.2rem;
    font-weight: 700;
    width: 100%;
}

.tema-v2 .btn-link {
    display: block;
    background: var(--bg-card);
    color: var(--laranja);
    margin: 4px 0;
    padding: 10px;
    text-decoration: none;
    border-radius: 8px;
}

.tema-v2 .btn-link:hover { background: var(--bg-card-hover); }

.tema-v2 .btn-warning {
    background: var(--laranja);
    color: #fff;
}

.tema-v2 .btn-warning:hover { background: var(--laranja-hover); }

.tema-v2 .btn-success {
    background: var(--verde-musculo);
    color: #fff;
}

.tema-v2 .btn-success:hover { background: var(--verde-musculo-hover); }

.tema-v2 .btn-share {
    background: var(--laranja);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 12px;
}

.tema-v2 .btn-share:hover { background: var(--laranja-hover); }

.tema-v2 .btn-aprovar { background: var(--verde-musculo); color: #fff; }
.tema-v2 .btn-aprovar:hover { background: var(--verde-musculo-hover); }

.tema-v2 .btn-recusar { background: #c53030; color: #fff; }
.tema-v2 .btn-recusar:hover { background: #9b2c2c; }

.tema-v2 .btn-publicar { background: var(--laranja); color: #fff; }
.tema-v2 .btn-publicar:hover { background: var(--laranja-hover); }

.tema-v2 .btn-galeria {
    background: var(--laranja);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
}

.tema-v2 .btn-galeria:hover { background: var(--laranja-hover); }

/* --- Botoes de compartilhamento --- */
.tema-v2 .share-botoes { display: flex; flex-wrap: wrap; gap: 6px; }

.tema-v2 .share-botoes .btn {
    flex: 1;
    min-width: 80px;
    font-size: 0.8rem;
    padding: 8px 6px;
    margin: 0;
}

.tema-v2 .btn-whats { background: #25d366; }
.tema-v2 .btn-whats:hover { background: #1da851; }
.tema-v2 .btn-telegram { background: #0088cc; }
.tema-v2 .btn-telegram:hover { background: #006699; }
.tema-v2 .btn-facebook { background: #1877f2; }
.tema-v2 .btn-facebook:hover { background: #125ac7; }
.tema-v2 .btn-email { background: #ea4335; }
.tema-v2 .btn-email:hover { background: #c62828; }
.tema-v2 .btn-copy { background: #555; }
.tema-v2 .btn-copy:hover { background: #333; }

/* --- Links --- */
.tema-v2 a { color: var(--laranja); text-decoration: none; }
.tema-v2 a:hover { color: var(--laranja-hover); }

.tema-v2 .nav-voltar { margin-bottom: 8px; }

.tema-v2 .nav-voltar a {
    color: var(--laranja);
    text-decoration: none;
    font-size: 0.95rem;
}

/* --- Tabelas --- */
.tema-v2 .tabela,
.tema-v2 table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tema-v2 .tabela th,
.tema-v2 .tabela td,
.tema-v2 table th,
.tema-v2 table td {
    padding: 8px 6px;
    text-align: left;
    border-bottom: 1px solid var(--borda);
}

.tema-v2 .tabela th,
.tema-v2 table th { font-weight: 600; color: var(--texto-mudo); }

/* --- Formularios --- */
.tema-v2 label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--texto-claro);
}

.tema-v2 input[type="email"],
.tema-v2 input[type="password"],
.tema-v2 input[type="text"],
.tema-v2 input[type="number"],
.tema-v2 input[type="date"],
.tema-v2 input[type="tel"],
.tema-v2 input[type="time"],
.tema-v2 textarea,
.tema-v2 select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--borda);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 4px;
    background: #1e1e1e;
    color: var(--texto);
}

.tema-v2 input:focus,
.tema-v2 textarea:focus,
.tema-v2 select:focus {
    border-color: var(--laranja);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,106,0,0.25);
}

.tema-v2 textarea { resize: vertical; min-height: 60px; }

.tema-v2 select { background: #1e1e1e; cursor: pointer; }

.tema-v2 .checkbox-label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--texto);
}

.tema-v2 .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--laranja);
}

.tema-v2 .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
}

.tema-v2 .form-inline {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.tema-v2 .form-inline label {
    margin: 0;
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tema-v2 .form-carga {
    display: flex;
    gap: 4px;
    align-items: center;
}

.tema-v2 .input-carga {
    width: 80px;
    padding: 4px 8px;
    font-size: 0.85rem;
}

.tema-v2 .form-agua label,
.tema-v2 .form-lembrete label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.tema-v2 .form-agua input[type="number"],
.tema-v2 .form-agua input[type="time"],
.tema-v2 .form-agua select,
.tema-v2 .form-lembrete input[type="time"] {
    width: auto;
    max-width: 120px;
}

.tema-v2 .form-lembrete input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.tema-v2 .form-local label {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
}

.tema-v2 .form-local input {
    width: auto;
    flex: 1;
    padding: 6px 8px;
    font-size: 0.85rem;
}

.tema-v2 .form-consulta {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

/* --- Listas --- */
.tema-v2 .lista { list-style: none; }

.tema-v2 .lista li {
    padding: 6px 0;
    border-bottom: 1px solid var(--borda);
    font-size: 0.9rem;
}

/* --- Aluno card (listagem de alunos) --- */
.tema-v2 .card-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 768px) {
    .tema-v2 .card-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.tema-v2 .aluno-card {
    text-decoration: none;
    color: var(--texto);
    border-left: 4px solid var(--laranja);
    transition: box-shadow 0.2s;
}

.tema-v2 .aluno-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

.tema-v2 .aluno-nome { font-weight: 700; font-size: 1.05rem; }

.tema-v2 .aluno-info { font-size: 0.85rem; color: var(--texto-mudo); margin-top: 2px; }

/* --- Grade de treino (aluno) --- */
.tema-v2 .ex-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 6px;
}
.tema-v2 .ex-item-thumb {
    width: 60px;
    flex-shrink: 0;
}
.tema-v2 .ex-item-img {
    width: 60px;
    height: 75px;
    display: block;
}
.tema-v2 .ex-item-info {
    flex: 1;
}
.tema-v2 .ex-item-nome {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--texto-claro);
}
.tema-v2 .ex-item-grupo {
    font-size: 0.8rem;
    color: var(--texto-mudo);
}
.tema-v2 .ex-item-carga {
    text-align: right;
}
.tema-v2 .ex-item-series {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--texto-claro);
}
.tema-v2 .ex-item-peso {
    font-size: 0.85rem;
    color: var(--laranja);
}
.tema-v2 .dia-treino {
    padding: 12px;
    margin-bottom: 8px;
}
.tema-v2 .dia-treino h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--texto-claro);
}
.tema-v2 .mensagem-vazia {
    color: var(--texto-mudo);
    text-align: center;
    padding: 16px;
}

/* --- Tags / Badges --- */
.tema-v2 .tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tema-v2 .pago { background: #1a3a1a; color: var(--verde-musculo); }

.tema-v2 .pendente { background: #2a1a0a; color: var(--laranja); }

.tema-v2 .tag-pendente { background: #2a1a0a; color: var(--laranja); }
.tema-v2 .tag-aprovado { background: #1a3a1a; color: var(--verde-musculo); }
.tema-v2 .tag-recusado { background: #3d1f1f; color: #f08080; }

.tema-v2 .tag-lotada {
    background: #3d1f1f;
    color: #f08080;
    font-size: 0.7rem;
    padding: 1px 8px;
    border-radius: 10px;
    font-weight: 700;
    display: inline-block;
    margin-top: 2px;
}

.tema-v2 .tag-lotada-grande {
    font-size: 0.85rem;
    padding: 3px 12px;
    border-radius: 14px;
    margin-top: 6px;
}

/* --- Status colors --- */
.tema-v2 .status-ok { color: var(--verde-musculo); font-weight: 700; font-size: 1.1rem; }
.tema-v2 .status-pendente { color: var(--laranja); font-weight: 700; font-size: 1.1rem; }

.tema-v2 .verde { color: var(--verde-musculo); }
.tema-v2 .positivo { color: var(--verde-musculo); }
.tema-v2 .negativo { color: #c53030; }

/* --- Resumo / Destaque (Financeiro) --- */
.tema-v2 .resumo { flex-direction: row; gap: 12px; }

.tema-v2 .destaque { flex: 1; text-align: center; }

.tema-v2 .valor {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--laranja);
}

/* --- Filtro vagas --- */
.tema-v2 .filtro-vagas {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.tema-v2 .filtro-vagas .btn {
    margin: 0;
    background: var(--bg-card);
    color: var(--laranja);
    border: 1px solid var(--borda);
}

.tema-v2 .filtro-vagas .btn-ativo {
    background: var(--laranja);
    color: #fff;
    border-color: var(--laranja);
}

/* --- QR Code --- */
.tema-v2 .qr-img {
    width: 180px;
    height: 180px;
    margin: 12px auto;
    display: block;
}

.tema-v2 .qr-img-grande {
    width: 250px;
    height: 250px;
    margin: 12px auto;
    display: block;
}

/* --- Agua --- */
.tema-v2 .agua-hoje { text-align: center; }

.tema-v2 .agua-copos {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--laranja);
    margin-bottom: 8px;
}

.tema-v2 .agua-barra {
    width: 100%;
    height: 20px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.tema-v2 .agua-barra-preenchimento {
    height: 100%;
    background: var(--laranja);
    border-radius: 10px;
    transition: width 0.3s;
}

.tema-v2 .frase-motivacional {
    font-style: italic;
    font-size: 1rem;
    color: var(--texto-mudo);
    padding: 8px;
    text-align: center;
    background: var(--bg-card);
    border-radius: 8px;
}

/* --- Termo pre --- */
.tema-v2 .termo-pre {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.6;
    background: #1e1e1e;
    padding: 12px;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
}

/* --- Viagem --- */
.tema-v2 .viagem-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--borda);
}

.tema-v2 .viagem-item pre {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.85rem;
    background: #1e1e1e;
    padding: 8px;
    border-radius: 6px;
    margin-top: 4px;
}

/* --- Midia / Moderacao --- */
.tema-v2 .midia-thumb {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-card);
}

.tema-v2 .moderacao-item {
    border-left: 4px solid var(--laranja);
}

.tema-v2 .moderacao-item .midia-info p {
    margin: 4px 0;
    font-size: 0.9rem;
}

.tema-v2 .midia-acoes {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.tema-v2 .input-motivo {
    width: auto;
    min-width: 120px;
    padding: 4px 8px;
    font-size: 0.8rem;
    border: 1px solid var(--borda);
    border-radius: 6px;
}

.tema-v2 .input-rede {
    padding: 4px 8px;
    font-size: 0.8rem;
    border: 1px solid var(--borda);
    border-radius: 6px;
    background: #1e1e1e;
}

.tema-v2 .motivo-recusa {
    font-size: 0.8rem;
    color: #f08080;
    background: #3d1f1f;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 2px;
}

/* --- Galeria --- */
.tema-v2 .galeria-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 600px) {
    .tema-v2 .galeria-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.tema-v2 .galeria-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-card);
}

.tema-v2 .galeria-legenda {
    font-size: 0.9rem;
    margin-top: 6px;
    color: var(--texto-mudo);
}

/* --- Portal --- */
.tema-v2 .portal-hero {
    text-align: center;
    padding: 32px 0 24px;
}

.tema-v2 .portal-hero h1 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.tema-v2 .busca-cidade {
    max-width: 400px;
    margin: 16px auto 0;
}

.tema-v2 .busca-cidade input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--borda);
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 8px;
    background: #1e1e1e;
    color: var(--texto);
}

.tema-v2 .busca-cidade input:focus {
    border-color: var(--laranja);
}

.tema-v2 .cidades-lista h2 {
    margin-top: 24px;
    font-size: 1rem;
    color: var(--texto-mudo);
}

.tema-v2 .cidade-card {
    text-decoration: none;
    color: var(--texto);
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: box-shadow 0.2s;
}

.tema-v2 .cidade-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.4); }

.tema-v2 .personal-card {
    text-decoration: none;
    color: var(--texto);
    padding: 16px;
    transition: box-shadow 0.2s;
}

.tema-v2 .personal-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.4); }

.tema-v2 .personal-card-topo {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.tema-v2 .personal-foto {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-card);
}

.tema-v2 .personal-nome {
    font-size: 1.05rem;
    font-weight: 700;
    display: block;
}

.tema-v2 .personal-exp {
    font-size: 0.8rem;
    color: var(--texto-mudo);
}

.tema-v2 .personal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0;
}

.tema-v2 .tag-especialidade {
    background: var(--bg-card);
    color: var(--laranja);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tema-v2 .personal-academias {
    font-size: 0.8rem;
    color: var(--texto-mudo);
    margin-top: 4px;
}

.tema-v2 .personal-card-info { margin-left: 68px; }

.tema-v2 .perfil-topo {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.tema-v2 .perfil-foto {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-card);
    flex-shrink: 0;
}

.tema-v2 .perfil-topo h1 {
    margin-bottom: 2px;
    font-size: 1.3rem;
}

.tema-v2 .perfil-exp {
    font-size: 0.9rem;
    color: var(--texto-mudo);
}

.tema-v2 .perfil-bio {
    font-size: 0.9rem;
    color: var(--texto-claro);
    margin-top: 6px;
    line-height: 1.5;
}

/* --- Calendario --- */
.tema-v2 .cal-mes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tema-v2 .cal-mes-header h2 {
    font-size: 1.2rem;
    color: var(--texto-claro);
    margin: 0;
}

.tema-v2 .cal-nav-btn {
    background: var(--bg-card);
    color: var(--laranja);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

.tema-v2 .cal-nav-btn:hover { background: var(--bg-card-hover); }

.tema-v2 .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.tema-v2 .cal-dia-header {
    text-align: center;
    font-size: 0.75rem;
    color: var(--texto-mudo);
    padding: 4px 0;
    font-weight: 600;
}

.tema-v2 .cal-dia {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 6px 4px;
    text-align: center;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    border: 1px solid transparent;
}

.tema-v2 .cal-dia:hover { background: var(--bg-card-hover); }

.tema-v2 .cal-dia-numero {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--texto-claro);
}

.tema-v2 .cal-dia-fora-mes .cal-dia-numero { opacity: 0.3; }

.tema-v2 .cal-dia-semana-atual {
    border-color: var(--laranja);
}

.tema-v2 .cal-dia-semana-proxima {
    border-color: var(--borda);
}

.tema-v2 .cal-dia-hoje {
    background: var(--bg-card) !important;
    border: 2px solid var(--verde-musculo) !important;
}

.tema-v2 .cal-dia-hoje .cal-dia-numero {
    color: var(--verde-musculo);
    font-weight: 700;
}

.tema-v2 .cal-dia-contagem {
    font-size: 0.65rem;
    color: var(--laranja);
    margin-top: 2px;
    font-weight: 600;
}

.tema-v2 .cal-dia-com-aula {
    background: var(--bg-card);
    border-left: 3px solid var(--laranja);
}

.tema-v2 .cal-dia-vazio {
    background: transparent;
    cursor: default;
    min-height: 44px;
}

.tema-v2 .cal-dia-vazio:hover { background: transparent; }

/* --- Calendario expandido --- */
.tema-v2 .cal-expandido {
    background: var(--bg-card);
    border: 1px solid var(--laranja-forte);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    animation: fadeIn 0.2s ease;
}

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

.tema-v2 .cal-expandido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tema-v2 .cal-expandido-header h3 {
    font-size: 1rem;
    color: var(--texto-claro);
    margin: 0;
}

.tema-v2 .cal-expandido-fechar {
    background: none;
    border: none;
    color: var(--texto-mudo);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 4px;
}

.tema-v2 .cal-expandido-fechar:hover { color: var(--texto); }

.tema-v2 .cal-compromisso {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--borda);
}

.tema-v2 .cal-compromisso:last-child { border-bottom: none; }

.tema-v2 .cal-compromisso-info { flex: 1; }

.tema-v2 .cal-compromisso-nome {
    font-weight: 700;
    color: var(--texto-claro);
    font-size: 0.95rem;
}

.tema-v2 .cal-compromisso-academia {
    font-size: 0.8rem;
    color: var(--texto-mudo);
    margin-top: 2px;
}

.tema-v2 .cal-compromisso-horario {
    font-size: 0.85rem;
    color: var(--laranja);
    font-weight: 600;
    white-space: nowrap;
}

.tema-v2 .cal-compromisso-sem-dados {
    color: var(--texto-mudo);
    font-size: 0.85rem;
    text-align: center;
    padding: 12px 0;
    font-style: italic;
}

/* --- Cadastro 3 etapas --- */
.tema-v2 .etapas-indicador {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    justify-content: center;
}

.tema-v2 .etapa-ponto {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--borda);
    color: var(--texto-mudo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.tema-v2 .etapa-ponto.ativa {
    background: var(--laranja);
    color: #fff;
}

.tema-v2 .etapa-ponto.concluida {
    background: var(--laranja-forte);
    color: #fff;
}

.tema-v2 .etapa-titulo {
    font-size: 0.85rem;
    color: var(--texto-mudo);
    margin-bottom: 16px;
    text-align: center;
}

.tema-v2 .etapa-botoes {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.tema-v2 .etapa-botoes .btn { flex: 1; margin-top: 0; }

.tema-v2 .etapa-botoes .btn-voltar {
    background: var(--borda);
    color: var(--texto);
}

.tema-v2 .etapa-botoes .btn-voltar:hover { background: #4a4a4a; }

/* --- Saude grid --- */
.tema-v2 .saude-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

@media (max-width: 480px) {
    .tema-v2 .saude-grid { grid-template-columns: 1fr; }
}

.tema-v2 .saude-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-card);
    border: 1px solid var(--borda);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--texto);
}

.tema-v2 .saude-item:hover { border-color: var(--laranja); }

.tema-v2 .saude-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--laranja);
    cursor: pointer;
}

.tema-v2 .saude-item.marcado {
    background: var(--bg-card);
    border-color: var(--laranja);
}

/* --- Modal / Share --- */
.tema-v2 .modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tema-v2 .modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.tema-v2 .modal-close {
    position: absolute;
    top: 12px; right: 16px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--texto-mudo);
}

.tema-v2 .modal h3 { margin-bottom: 12px; color: var(--texto-claro); }

.tema-v2 .share-texto {
    width: 100%;
    font-size: 0.85rem;
    padding: 8px;
    border: 1px solid var(--borda);
    border-radius: 8px;
    resize: none;
    margin-bottom: 8px;
    background: #1e1e1e;
    color: var(--texto);
}

.tema-v2 .share-link-input {
    width: 100%;
    font-size: 0.8rem;
    padding: 6px 8px;
    border: 1px solid var(--borda);
    border-radius: 8px;
    margin-bottom: 12px;
    background: #1e1e1e;
    color: var(--texto);
}

.tema-v2 .share-msg { font-size: 0.8rem; color: var(--verde-musculo); margin-top: 8px; }

/* --- Bottom Navigation (mobile) --- */
.tema-v2 .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--preto);
    border-top: 1px solid var(--borda);
    padding: 6px 0;
    z-index: 150;
}

.tema-v2 .bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--texto-mudo);
    padding: 4px 0;
    flex: 1;
    font-size: 0.75rem;
}

.tema-v2 .bn-icon {
    font-size: 1.2rem;
    margin-bottom: 2px;
    line-height: 1;
}

.tema-v2 .bn-label {
    font-size: 0.65rem;
    color: var(--texto-mudo);
}

.tema-v2 .bn-item:hover .bn-label,
.tema-v2 .bn-item:hover { color: var(--laranja); }

/* --- Exercicio: musculo destacado em verde --- */
.tema-v2 .musculo-destaque {
    color: var(--verde-musculo);
    font-weight: bold;
    border-left: 4px solid var(--verde-musculo);
    padding-left: 8px;
}

.tema-v2 .musculo-sem-info { color: var(--texto-mudo); }

.tema-v2 .ex-figura { margin-bottom: 6px; }

.tema-v2 .ex-img {
    max-width: 100%;
    max-height: 120px;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.tema-v2 .busca-exercicio .btn { margin: 0; }

.tema-v2 .busca-exercicio input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--borda);
    border-radius: 8px;
    font-size: 1rem;
    background: #1e1e1e;
    color: var(--texto);
}

/* --- Biblioteca exercicios: filtros, grid, cards --- */
.tema-v2 .filtro-grupo {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.tema-v2 .filtro-grupo strong {
    margin-right: 4px;
    font-size: 0.85rem;
    color: var(--texto-mudo);
}

.tema-v2 .btn-filtro {
    background: var(--bg-card);
    color: var(--laranja);
    border: 1px solid var(--borda);
    margin: 0;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.tema-v2 .btn-filtro.ativo {
    background: var(--laranja);
    color: #fff;
    border-color: var(--laranja);
}

.tema-v2 .btn-filtro:hover { background: var(--bg-card-hover); }

.tema-v2 .ex-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tema-v2 .ex-card { cursor: default; }

.tema-v2 .ex-card .ex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.tema-v2 .ex-card .ex-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--texto-claro);
}

.tema-v2 .ex-meta {
    font-size: 0.75rem;
    color: var(--texto-mudo);
    margin-bottom: 4px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tema-v2 .ex-instrucoes {
    font-size: 0.85rem;
    color: var(--texto-mudo);
}

.tema-v2 .tag-grupo,
.tema-v2 .tag-musculo {
    display: inline-block;
    background: var(--bg-card);
    color: var(--laranja);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.tema-v2 .busca-info {
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--texto-mudo);
}

.tema-v2 .busca-info a { color: var(--laranja); }

.tema-v2 .paginacao {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    align-items: center;
}

.tema-v2 .paginacao .btn { margin: 0; }

.tema-v2 .paginacao span {
    color: var(--texto-mudo);
    font-size: 0.85rem;
}

.tema-v2 .alerta-icone {
    color: var(--laranja);
    font-weight: 700;
}

.tema-v2 .alerta-item {
    padding: 4px 0;
    color: var(--texto-claro);
}

/* --- Scrollbar escura --- */
.tema-v2 ::-webkit-scrollbar { width: 8px; }
.tema-v2 ::-webkit-scrollbar-track { background: var(--bg-body); }
.tema-v2 ::-webkit-scrollbar-thumb { background: var(--borda); border-radius: 4px; }
.tema-v2 ::-webkit-scrollbar-thumb:hover { background: #555; }

/* --- Relatorios / Grafico --- */
.tema-v2 .grafico-presenca {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    margin-top: 12px;
}

.tema-v2 .grafico-bar {
    width: 100%;
    background: var(--laranja);
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: height 0.3s;
}

/* --- Ebook / Leitura --- */
.tema-v2 .ebook-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--texto);
}

.tema-v2 .ebook-content p { margin-bottom: 12px; }

/* --- Campus personal -- lista de espera --- */
.tema-v2 .lista-espera-item {
    padding: 10px;
    border-bottom: 1px solid var(--borda);
}

/* --- Login page --- */
.tema-v2 .login-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 32px 24px;
    margin-top: 60px;
}

.tema-v2 .login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.tema-v2 .login-logo-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 8px;
    color: var(--laranja);
}

.tema-v2 .login-logo h1 {
    font-size: 1.6rem;
    color: var(--laranja);
    margin: 0 0 4px;
    font-weight: 800;
}

.tema-v2 .login-field {
    margin-bottom: 8px;
}

.tema-v2 .login-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--borda);
    border-radius: 10px;
    font-size: 1.1rem;
    background: #1e1e1e;
    color: var(--texto);
    box-sizing: border-box;
}

.tema-v2 .login-input:focus {
    border-color: var(--laranja);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,106,0,0.25);
}

.tema-v2 .login-link {
    margin-top: 16px;
    text-align: center;
    font-size: 0.95rem;
}

.tema-v2 .login-link a {
    color: var(--laranja);
    text-decoration: none;
    font-weight: 600;
}

.tema-v2 .login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .tema-v2 .login-card {
        padding: 24px 16px;
        margin-top: 40px;
    }
    .tema-v2 .login-input {
        padding: 12px 14px;
        font-size: 1rem;
    }
}