/* ================================================
   TucaClass — CSS público (baseado no design "Meu Agendador")
================================================ */
.tc-public *, .tc-public *::before, .tc-public *::after{ box-sizing:border-box; }
.tc-public{
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    /* Mesma correção/motivo do .tc-public-carrossel mais abaixo (testado ao vivo no site): o
       tema usa `body{display:flex}` sem min-width:0 no wrapper raiz, então só max-width em px
       não segura a largura no celular - precisa do 100vw. Tem também uma regra `max-width:100%`
       do tema que empata em especificidade e ganha por ordem de carregamento - daí o !important. */
    max-width:min(1100px, 100vw) !important; margin:0 auto; color:#1e2a3a;
}

/* [tucaclass_chamada] - card de chamada pro cadastro (título/texto/botão/rodapé editáveis em
   Configurações > Geral). Não fica dentro de .tc-public (é usado solto, em qualquer página) -
   por isso define box-sizing e a trava de largura (mesmo motivo do .tc-public-carrossel: o tema
   usa `body{display:flex}` sem min-width:0, então só max-width em px não segura no celular). */
.tc-chamada-card, .tc-chamada-card *{ box-sizing:border-box; }
.tc-chamada-card{
    max-width:min(820px, 100vw) !important; margin:24px auto; padding:28px 32px; text-align:center;
    background:#fff; border-radius:20px; box-shadow:0 10px 25px rgba(0,0,0,.08); border:1px solid #e5e5e5;
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
.tc-chamada-titulo{ color:#0d4d2b; font-size:22px; font-weight:800; margin:0 0 10px; }
.tc-chamada-texto{ color:#4a4a4a; font-size:14.5px; line-height:1.6; margin:0 0 20px; }
.tc-chamada-botao{
    display:inline-block; padding:12px 30px; font-size:15px; font-weight:700; color:#fff;
    background:linear-gradient(135deg,#2fae63,#0d4d2b); border-radius:999px; text-decoration:none;
    box-shadow:0 8px 16px rgba(13,77,43,.3); border:2px solid #f6c744;
}
.tc-chamada-botao:hover{ background:linear-gradient(135deg,#0d4d2b,#2fae63); }
.tc-chamada-rodape{ margin-top:16px; font-size:14px; color:#9a9a9a; }

/* ── Grade de turmas ── */
.tc-turmas-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px; margin-bottom:28px; }
.tc-turma-card{
    background:#fff; border-radius:16px; padding:20px 22px; border:1px solid #e5eaf0;
    box-shadow:0 2px 12px rgba(0,0,0,.06); display:flex; flex-direction:column; gap:6px;
}
/* 3 tons leves alternados nos cards do carrossel (regra fechada 2026-09-12) - só um "clareado" de
   fundo pra diferenciar visualmente um card do outro, sem relação com esporte/categoria. */
.tc-turma-card.tc-turma-cor-1{ background:#f0f6ff; border-color:#dbe7fb; }
.tc-turma-card.tc-turma-cor-2{ background:#f0fbf4; border-color:#d9f0e1; }
.tc-turma-card.tc-turma-cor-3{ background:#fff9ec; border-color:#f7ecd0; }
.tc-turma-card h3{ margin:0; color:#0f2744; font-size:16px; font-weight:700; }
.tc-turma-cat{ color:#94a3b8; font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; font-weight:700; margin:0; }
.tc-turma-prof{ color:#1a3a5c; font-size:12.5px; font-weight:600; margin:0; }
.tc-turma-cancelada{ color:#92400e; background:#fff8e1; border:1px solid #fde68a; border-radius:6px; padding:6px 10px; font-size:12px; font-weight:600; margin:6px 0 0; }
.tc-turma-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }

/* ── Botões públicos ── */
.tc-btn{ display:inline-flex; align-items:center; gap:6px; height:38px; padding:0 16px; border-radius:8px; border:none; font-size:13px; font-weight:600; cursor:pointer; text-decoration:none; transition:all .15s; font-family:inherit; }
.tc-btn-primary{ background:#1a3a5c; color:#fff; }
.tc-btn-primary:hover{ background:#0f2744; }
.tc-btn-success{ background:#059669; color:#fff; }
.tc-btn-success:hover{ background:#047857; }
.tc-btn-danger{ background:#dc2626; color:#fff; }
.tc-btn-danger:hover{ background:#b91c1c; }
.tc-btn-ghost{ background:#f1f5f9; color:#475569; border:1.5px solid #e5eaf0; }
.tc-btn-ghost:hover{ background:#e2e8f0; }
.tc-btn-sm{ height:32px; padding:0 12px; font-size:12px; border-radius:6px; }

/* ── Formulário de cadastro / autoatendimento ── */
/* Tamanho padrão de TODAS as abas do portal (2026-09-16) - era 720px/900px só pro resto do
   portal, com a Administração alargada à parte (precisava de mais espaço pras tabelas de
   Turmas/Alunos/Chamadas) - unificado pra não ter card de tamanho diferente entre abas. */
.tc-form-container{ background:#fff; border:1px solid #e5eaf0; border-radius:16px; overflow:hidden; box-shadow:0 2px 12px rgba(0,0,0,.06); margin:0 auto 24px; max-width:1040px; }
.tc-form-header{ background:linear-gradient(135deg,#0f2744,#1a3a5c); padding:20px 28px; }
.tc-form-header h3{ margin:0 0 3px; font-size:17px; font-weight:700; color:#fff; }
.tc-form-header p{ margin:0; font-size:12px; color:rgba(255,255,255,.65); }
.tc-form-body{ padding:24px 28px; }

.tc-public-form{ display:flex; flex-direction:column; gap:2px; }
.tc-field, .tc-form-row{ display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }

/* Grade de 2 colunas pros campos simples do formulário (Nome, CPF, Sexo, Idade, Rua, Casa etc.) -
   em vez de um campo por linha, deixando o card bem mais comprido pra baixo do que precisa. Campo
   que precisa ocupar a largura toda (ex: Tipo, Turma, um texto longo) usa .tc-field-full. */
.tc-field-grid{ display:grid; grid-template-columns:1fr 1fr; gap:4px 20px; }
.tc-field-grid .tc-field{ margin-bottom:12px; min-width:0; }
.tc-field-full{ grid-column:1/-1; }
@media (max-width:680px){
    .tc-field-grid{ grid-template-columns:1fr; }
}

/* Aba pública "Tutorial" - botões de PDF/Vídeo (Tutoriais no admin) */
.tc-tutorial-lista{ display:flex; flex-direction:column; gap:12px; }
.tc-tutorial-botao{
    display:flex; align-items:center; gap:14px; padding:16px 20px; border-radius:12px;
    text-decoration:none; font-weight:700; font-size:14.5px; color:#fff;
    background:linear-gradient(135deg,#1a3a5c,#0f2744); box-shadow:0 4px 14px rgba(15,39,68,.18);
    transition:transform .15s, box-shadow .15s;
}
.tc-tutorial-botao:hover{ transform:translateY(-2px); box-shadow:0 8px 20px rgba(15,39,68,.28); }
.tc-tutorial-botao.tc-tutorial-video{ background:linear-gradient(135deg,#0891b2,#0e7490); box-shadow:0 4px 14px rgba(8,145,178,.18); }
.tc-tutorial-icone{ font-size:22px; line-height:1; }

/* Assistente "Novo cadastro" em 3 telas */
.tc-wizard-passos{ display:flex; align-items:center; justify-content:center; gap:6px; margin-bottom:24px; flex-wrap:wrap; }
.tc-wizard-passo{
    display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700; color:#94a3b8;
    padding:6px 14px 6px 6px; border-radius:999px; background:#f8fafc; border:1px solid #e5eaf0;
}
.tc-wizard-passo em{
    font-style:normal; width:22px; height:22px; border-radius:50%; background:#e5eaf0; color:#64748b;
    display:flex; align-items:center; justify-content:center; font-size:12px;
}
.tc-wizard-passo-ativo{ color:#1a3a5c; background:#eef4fb; border-color:#1a3a5c; }
.tc-wizard-passo-ativo em{ background:#1a3a5c; color:#fff; }
.tc-wizard-nav{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:24px; padding-top:16px; border-top:1px solid #e5eaf0; }
@media (max-width:680px){
    .tc-wizard-passos{ gap:4px; }
    .tc-wizard-passo{ font-size:0; padding:6px; gap:0; }
    .tc-wizard-passo em{ width:26px; height:26px; }
    .tc-wizard-nav{ flex-direction:column-reverse; align-items:stretch; }
    .tc-wizard-nav .tc-btn{ width:100%; text-align:center; }
}
.tc-field label, .tc-form-row label{ font-size:11px; font-weight:700; color:#64748b; text-transform:uppercase; letter-spacing:.05em; }
.tc-field input[type=text], .tc-field input[type=email], .tc-field input[type=tel],
.tc-field input[type=number], .tc-field input[type=password], .tc-field input[type=date],
.tc-field input[type=month], .tc-field input[type=time], .tc-field select, .tc-form-row input, .tc-form-row select{
    padding:11px 14px; border:1.5px solid #e5eaf0; border-radius:10px; font-size:14px; font-family:inherit;
    color:#1e2a3a; background:#fafbfc; transition:border-color .15s, box-shadow .15s; height:44px; box-sizing:border-box;
}
.tc-field select, .tc-form-row select{ appearance:auto; -webkit-appearance:menulist; cursor:pointer; text-overflow:ellipsis; overflow:hidden; white-space:nowrap; }
.tc-field input:focus, .tc-form-row input:focus, .tc-field select:focus, .tc-form-row select:focus{
    outline:none; border-color:#1a3a5c; background:#fff; box-shadow:0 0 0 3px rgba(26,58,92,.08);
}

/* ── Tabs estilo pill (CPF / Cadastro / Ações) ── */
.tc-login-tabs{ display:flex; gap:8px; margin-bottom:24px; justify-content:center; flex-wrap:wrap; }
.tc-login-tab{ padding:10px 22px; border:2px solid #e5eaf0; border-radius:50px; background:#fff; cursor:pointer; font-size:13.5px; font-weight:600; color:#64748b; transition:all .2s; font-family:inherit; }
.tc-login-tab:hover{ border-color:#1a3a5c; color:#1a3a5c; background:#f0f5ff; }
.tc-login-tab.active{ background:#1a3a5c; border-color:#1a3a5c; color:#fff; box-shadow:0 4px 14px rgba(26,58,92,.25); }
.tc-login-panel{ display:none; }
.tc-login-panel.active{ display:block; }

/* ── Avisos / mensagens ── */
.tc-alert{ padding:14px 18px; border-radius:10px; margin-bottom:16px; font-weight:600; font-size:13.5px; }
.tc-alert-success{ background:#f0fdf4; color:#15803d; border:1px solid #bbf7d0; }
.tc-alert-error{ background:#fff1f2; color:#be123c; border:1px solid #fecdd3; }
.tc-aviso{ background:linear-gradient(135deg,#fff8e1,#fffbf0); border:1px solid #fde68a; border-radius:14px; padding:14px 20px; margin-bottom:20px; font-size:13.5px; color:#92400e; }

.tc-badge{ display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:20px; font-size:11px; font-weight:700; }
.tc-badge::before{ content:''; width:6px; height:6px; border-radius:50%; background:currentColor; }
.tc-badge-info{ background:#ecfeff; color:#0e7490; }
.tc-badge-ok{ background:#f0fdf4; color:#16a34a; }
.tc-badge-bad{ background:#fff1f2; color:#dc2626; }
.tc-badge-warn{ background:#fffbeb; color:#d97706; }
.tc-vagas-info{ font-size:13px; font-weight:600; color:#1a3a5c; margin-top:4px; }
.tc-vagas-ok{ color:#16a34a; font-weight:700; }
.tc-vagas-cheia{ color:#d97706; font-weight:700; }

.tc-vagas-linha{ display:flex; gap:8px; flex-wrap:wrap; margin:8px 0; }
.tc-badge-vagas-livres{ display:inline-flex; align-items:center; gap:4px; padding:5px 12px; border-radius:20px; font-size:12.5px; font-weight:800; background:#f0fdf4; color:#15803d; border:1.5px solid #bbf7d0; }
.tc-badge-vagas-alunos{ display:inline-flex; align-items:center; gap:4px; padding:5px 12px; border-radius:20px; font-size:12.5px; font-weight:800; background:#eff6ff; color:#1d4ed8; border:1.5px solid #bfdbfe; }
.tc-badge-vagas-espera{ display:inline-flex; align-items:center; gap:4px; padding:5px 12px; border-radius:20px; font-size:12.5px; font-weight:800; background:#fffbeb; color:#b45309; border:1.5px solid #fde68a; }

.tc-dependente-row{ background:#f8fafc; border:1px solid #e5eaf0; border-radius:10px; padding:14px; max-width:100%; overflow:hidden; box-sizing:border-box; }
.tc-dependente-row .tc-field{ margin-bottom:0; min-width:0; }
.tc-linha-praticante, .tc-linha-dependente{
    display:grid; gap:10px; align-items:end;
    grid-template-columns:repeat(auto-fit, minmax(120px, 1fr));
}
.tc-linha-praticante .tc-remove-linha, .tc-linha-dependente .tc-remove-linha{ grid-column:1/-1; justify-self:start; }
@media (min-width:560px){
    .tc-linha-praticante .tc-remove-linha, .tc-linha-dependente .tc-remove-linha{ grid-column:auto; justify-self:auto; }
}

/* Carrossel de turmas - voltou pro formato anterior (1 card por vez, mais legível); o que
   mudou é que agora ele passa sozinho, com intervalo configurável em Configurações > Geral. */
.tc-carrossel-wrap{ position:relative; display:flex; align-items:center; gap:8px; min-width:0; }
.tc-carrossel-trilho{
    display:flex; gap:18px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth;
    padding:6px 2px 14px; flex:1; min-width:0; -webkit-overflow-scrolling:touch;
}
.tc-carrossel-trilho::-webkit-scrollbar{ height:6px; }
.tc-carrossel-trilho::-webkit-scrollbar-thumb{ background:#cbd5e1; border-radius:10px; }
/* max-width:calc(100vw - 100px) garante que o card sempre caiba inteiro na tela, mesmo em
   celulares mais estreitos/antigos (Galaxy mais velhos etc) onde 280px fixo não cabia por
   completo e cortava informação na lateral - 100px é o espaço reservado pras setas + espaçamento
   dos dois lados. Em telas largas, o flex-basis de 280px continua valendo normalmente. */
.tc-carrossel-item{ flex:0 0 280px; max-width:calc(100vw - 100px); scroll-snap-align:start; }
/* Carrossel de turmas precisa de mais largura que o padrão de .tc-public (900px) pra caber 4
   cards de 280px por vez em vez de 3 - só essa seção fica mais larga, o resto (formulários etc)
   continua com a largura de sempre.
   Testado ao vivo no site: o tema usa `body{display:flex}` no wrapper raiz do WordPress, sem
   min-width:0 - então mesmo com o carrossel se comportando direito por dentro (min-width:0 nele
   mesmo, acima), o max-width sozinho em px não é suficiente pra impedir a PÁGINA INTEIRA de
   esticar no celular; o `100vw` é necessário mesmo (tirei numa correção anterior achando que não
   precisava mais, mas o teste ao vivo provou o contrário - devolvido). O tema também tem uma
   regra `max-width:100%` que empata em especificidade e ganhava por ordem de carregamento -
   daí o !important. */
.tc-public-carrossel{ max-width:min(1340px, 100vw) !important; }
.tc-carrossel-seta{
    flex-shrink:0; width:38px; height:38px; border-radius:50%; border:1.5px solid #e5eaf0; background:#fff;
    font-size:20px; line-height:1; color:#1a3a5c; cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.tc-carrossel-seta:hover{ background:#f0f5ff; border-color:#1a3a5c; }
@media (max-width:680px){
    .tc-carrossel-item{ flex-basis:240px; }
}

.tc-info-box{ background:#f8fafc; border-left:3px solid #1a3a5c; border-radius:0 8px 8px 0; padding:12px 16px; font-size:13px; color:#475569; margin-bottom:16px; }
.tc-muted{ color:#64748b; font-size:13px; }

/* ── Cards de estatística (ex.: Dashboard público da Administração) - mesmo padrão visual do
   .tc-stat-card do admin (admin.css), reescrito aqui porque front.css não herda nada de lá. ── */
.tc-public .tc-cards-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:14px; }
.tc-public .tc-stat-card{
    background:#fff; border-radius:12px; padding:16px 18px; box-shadow:0 2px 8px rgba(0,0,0,.06);
    border:1px solid #e5eaf0; border-top:3px solid #1a3a5c; display:flex; flex-direction:column; gap:4px;
}
.tc-public .tc-stat-card.tc-stat-warn{ border-top-color:#d97706; }
.tc-public .tc-stat-card.tc-stat-bad{ border-top-color:#dc2626; }
.tc-public .tc-stat-card.tc-stat-info{ border-top-color:#0891b2; }
.tc-public .tc-stat-card.tc-stat-ok{ border-top-color:#1f8a4c; }
.tc-public .tc-stat-num{ font-size:28px; font-weight:800; color:#1a3a5c; line-height:1; }
.tc-public .tc-stat-label{ color:#64748b; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; margin-top:2px; }
@media (max-width:680px){
    .tc-public .tc-cards-grid{ grid-template-columns:1fr 1fr; }
    .tc-public .tc-stat-num{ font-size:22px; }
}

/* ── Caixa de código 2FA / PIN ── */
.tc-codigo-input, .tc-pin-input{ letter-spacing:8px; font-size:22px; font-weight:700; text-align:center; max-width:200px; margin:0 auto; }

/* ── Tabela (ex.: histórico financeiro em "Consultar") - front.css não herda o .tc-table do
   admin, então sem isto a tabela sai sem nenhum estilo (colunas coladas, sem espaçamento). ── */
.tc-public .tc-table{
    width:100%; border-collapse:separate; border-spacing:0; margin-top:8px;
    background:#fff; border:1px solid #e5eaf0; border-radius:12px; overflow:hidden;
}
.tc-public .tc-table th, .tc-public .tc-table td{ padding:12px 16px; text-align:left; font-size:13.5px; }
.tc-public .tc-table th{
    background:#f8fafc; color:#64748b; font-size:11px; font-weight:700; text-transform:uppercase;
    letter-spacing:.05em; border-bottom:1px solid #e5eaf0;
}
.tc-public .tc-table td{ border-bottom:1px solid #f1f5f9; color:#1e2a3a; }
.tc-public .tc-table tbody tr:last-child td{ border-bottom:none; }
.tc-public .tc-table td:nth-child(2){ font-weight:700; }

/* ── Cards do Financeiro (mesmo visual do wp-admin - .tc-col-grid/.tc-subsection/.tc-stat-grid em
   admin.css) - front.css não herda nada de lá, então a aba pública "Financeiro" da Administração
   saía como texto corrido dentro de uma caixinha em vez dos cards bonitos do wp-admin (a pedido
   2026-09-16). Mesmas cores de admin.css (--tc-primary/--tc-border/--tc-bg-soft/--tc-muted), só
   com os valores escritos direto (front.css não usa variáveis CSS). ── */
.tc-public .tc-col-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; align-items:start; margin-top:8px; }
.tc-public .tc-subsection{ background:#f8fafc; border:1px solid #e5eaf0; border-radius:8px; padding:14px 16px; }
.tc-public .tc-subsection h4{ margin:0 0 10px; font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:#64748b; font-weight:700; }
.tc-public .tc-stat-grid{ display:flex; flex-flow:row wrap; gap:10px; margin:0 0 10px; }
.tc-public .tc-stat-item{
    display:flex; flex-flow:column nowrap; background:#fff; border:1px solid #e5eaf0; border-radius:10px;
    padding:10px 14px; flex:1 1 130px; min-width:120px; max-width:100%; box-sizing:border-box;
}
.tc-public .tc-stat-item .tc-stat-label{
    display:block; width:100%; font-size:10.5px; text-transform:uppercase; letter-spacing:.04em;
    color:#64748b; font-weight:700; margin:0 0 4px; white-space:normal;
}
.tc-public .tc-stat-item .tc-stat-value{
    display:block; width:100%; font-size:18px; line-height:1.2; font-weight:800;
    color:#0f2744; word-break:break-word;
}
.tc-public .tc-stat-item.tc-stat-destaque{ background:#eef4ff; border-color:#c8d9f5; }
.tc-public .tc-stat-item.tc-stat-destaque .tc-stat-value{ color:#1a3a5c; }
.tc-public .tc-stat-item.tc-stat-alerta{ background:#fdecec; border-color:#f3c6c6; }
.tc-public .tc-stat-item.tc-stat-alerta .tc-stat-value{ color:#c0392b; }
.tc-public .tc-stat-item.tc-stat-ok{ background:#eafaf1; border-color:#bfe8cf; }
.tc-public .tc-stat-item.tc-stat-ok .tc-stat-value{ color:#1f8a4c; }

@media (max-width:680px){
    .tc-turmas-grid{ grid-template-columns:1fr; }
    .tc-login-tabs{ gap:6px; }
    .tc-login-tab{ font-size:12px; padding:8px 14px; }
}

/* ================================================
   TucaClass — Assistente de cadastro com Plano (Fase 3)
================================================ */
.tc-wizard-precos{ display:flex; flex-direction:column; gap:18px; margin:14px 0; }
.tc-plano-cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:10px; }
.tc-plano-card{
    position:relative; display:flex; flex-direction:column; gap:3px; padding:12px 14px;
    border:2px solid #e5eaf0; border-radius:10px; cursor:pointer; background:#fff;
    transition:border-color .15s, box-shadow .15s;
}
.tc-plano-card:hover{ border-color:#1a3a5c; }
.tc-plano-card input[type="radio"]{ position:absolute; top:10px; right:10px; }
.tc-plano-card-ativo{ border-color:#059669; box-shadow:0 0 0 3px rgba(5,150,105,.15); }
.tc-plano-card-nome{ font-weight:700; font-size:14px; color:#0f2744; }
.tc-plano-card-vagas{ font-size:11.5px; color:#94a3b8; }
.tc-plano-card-riscado{ font-size:12px; color:#dc2626; text-decoration:line-through; }
.tc-plano-card-preco{ font-size:15px; font-weight:700; color:#1e2a3a; }
.tc-plano-card-economia{ font-size:11px; font-weight:700; color:#059669; }
.tc-plano-card-futebol-gratis{ font-size:11px; color:#0891b2; font-weight:600; }
.tc-resumo-pedido{ background:#eef4fb; border:1px solid #e5eaf0; border-radius:14px; padding:14px 16px; }
.tc-resumo-pedido h4{ margin:0 0 8px; }
.tc-resumo-linha{ display:flex; justify-content:space-between; font-size:13px; padding:3px 0; color:#1e2a3a; }
.tc-resumo-total{ margin-top:8px; padding-top:8px; border-top:1px dashed #e5eaf0; font-size:18px; font-weight:700; display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.tc-resumo-riscado{ font-size:14px; color:#dc2626; text-decoration:line-through; font-weight:500; }
.tc-resumo-final{ color:#0f2744; }
.tc-resumo-economia-tag{ font-size:11px; font-weight:700; color:#fff; background:#059669; border-radius:999px; padding:2px 10px; }
/* Pílula-botão (idêntico ao admin): esconde o checkbox/radio, o <span> vira o botão. */
.tc-toggle-pill{ position:relative; display:inline-flex; }
.tc-toggle-pill input[type=checkbox], .tc-toggle-pill input[type=radio]{ position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.tc-toggle-pill span{
    display:inline-flex; align-items:center; padding:8px 16px; border-radius:8px; border:2px solid #e5eaf0;
    background:#fff; color:#64748b; font-size:12.5px; font-weight:600; cursor:pointer; transition:all .15s; user-select:none;
}
.tc-toggle-pill input:hover + span{ border-color:#1a3a5c; color:#1a3a5c; }
.tc-toggle-pill input:checked + span{ background:#1a3a5c; border-color:#1a3a5c; color:#fff; box-shadow:0 4px 14px rgba(26,58,92,.25); }

/* Campo de arquivo nativo (foto) - sem isso o texto "Nenhum arquivo escolhido" do navegador
   fica cortado dentro de colunas estreitas do grid de esporte/turma. */
.tc-field input[type=file], .tc-form-row input[type=file]{ width:100%; max-width:100%; font-size:12px; }

.tc-toggle-pill input:focus-visible + span{ outline:2px solid #1a3a5c; outline-offset:2px; }

/* ================================================
   TucaClass — Escolha inicial, Termo+Assinatura, Financeiro (Fase 4)
================================================ */
/* Escolha por categoria em cards coloridos + checklist vivo acima (a pedido 2026-09-18: pílulas
   pequenas confundiam no celular - "não sabe onde apertar", "esquece de adicionar dependente").
   Reaproveita a mesma base .tc-toggle-pill (checkbox some, cobre a área toda pro cartão inteiro
   ser clicável) - só troca o miolo visual. .tc-cat-inner é o span logo depois do input (o único
   que a regra antiga ".tc-toggle-pill input:checked + span" alcança); ele é neutralizado abaixo
   pra não herdar o visual de pílula, e o destaque de "marcado" vira border+sombra no card inteiro
   via :has(), com fallback silencioso (sem quebrar nada) em navegador muito antigo sem suporte. */
.tc-checklist-escolha{ display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 12px; }
.tc-chk-item{ display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; padding:5px 10px; border-radius:999px; background:#f1f5f9; color:#94a3b8; }
.tc-chk-item::before{ content:''; width:6px; height:6px; border-radius:50%; background:currentColor; flex-shrink:0; }
.tc-chk-item.tc-chk-ok{ background:#e7f7ef; color:#059669; }
.tc-chk-item.tc-chk-pendente{ background:#fef3e2; color:#d97706; }

.tc-escolha-cards{ display:grid; grid-template-columns:1fr; gap:10px; margin-top:10px; }
.tc-cat-card{ display:flex; align-items:center; gap:12px; width:100%; padding:14px; border:1.5px solid #e5eaf0; border-radius:14px; background:#fff; transition:border-color .15s, box-shadow .15s; }
.tc-cat-card:hover{ border-color:#c7cbd1; }
.tc-cat-card input:hover + .tc-cat-inner, .tc-cat-card input:checked + .tc-cat-inner{ background:none; border-color:transparent; color:inherit; box-shadow:none; }
.tc-cat-card .tc-cat-inner{ display:flex; align-items:center; gap:12px; width:100%; padding:0; border:none; background:none; box-shadow:none; border-radius:0; }
.tc-cat-card .tc-cat-icon{ display:flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:11px; font-size:19px; flex-shrink:0; padding:0; border:none; background:var(--cat-bg,#eef4fb); color:var(--cat-fg,#1a3a5c); }
.tc-cat-card .tc-cat-text{ display:flex; flex-direction:column; gap:1px; padding:0; border:none; background:none; text-align:left; }
.tc-cat-card .tc-cat-title{ font-size:13.5px; font-weight:700; color:#1a1d23; padding:0; border:none; background:none; }
.tc-cat-card .tc-cat-sub{ font-size:11px; color:#8a8f98; padding:0; border:none; background:none; }
.tc-cat-card .tc-cat-check{ margin-left:auto; width:20px; height:20px; border-radius:50%; display:none; align-items:center; justify-content:center; font-size:11px; color:#fff; background:var(--cat-fg,#1a3a5c); padding:0; border:none; flex-shrink:0; }
.tc-cat-card.has-item .tc-cat-check{ display:flex; }
.tc-cat-card:has(input:checked){ border-color:var(--cat-fg,#1a3a5c); box-shadow:0 0 0 3px var(--cat-shadow,rgba(26,58,92,.15)); }
.tc-cat-card input:focus-visible{ outline:2px solid var(--cat-fg,#1a3a5c); outline-offset:2px; }

.tc-cat-modalidades{ --cat-bg:#eef4fb; --cat-fg:#1a3a5c; --cat-shadow:rgba(26,58,92,.15); }
.tc-cat-futebol{ --cat-bg:#e7f7ef; --cat-fg:#059669; --cat-shadow:rgba(5,150,105,.15); }
.tc-cat-academia{ --cat-bg:#fef3e2; --cat-fg:#d97706; --cat-shadow:rgba(217,119,6,.15); }
.tc-cat-espera{ --cat-bg:#e3f4f8; --cat-fg:#0891b2; --cat-shadow:rgba(8,145,178,.15); }

.tc-btn-cat{ color:#fff; border:none; }
.tc-btn-cat-modalidades{ background:#1a3a5c; }
.tc-btn-cat-modalidades:hover{ background:#0f2744; color:#fff; }
.tc-btn-cat-futebol{ background:#059669; }
.tc-btn-cat-futebol:hover{ background:#047857; color:#fff; }
.tc-btn-cat-academia{ background:#d97706; }
.tc-btn-cat-academia:hover{ background:#b45309; color:#fff; }
.tc-btn-cat-espera{ background:#0891b2; }
.tc-btn-cat-espera:hover{ background:#0e7490; color:#fff; }
.tc-btn-cat:disabled{ background:#e2e5ea !important; color:#a7acb5 !important; cursor:not-allowed; }

/* Telas maiores (tablet/desktop): cards em grade em vez de empilhados, e o "✓" some pro canto
   pra não brigar de layout com o texto quando o card fica mais largo. */
@media (min-width: 620px){
    .tc-escolha-cards{ grid-template-columns:repeat(2,1fr); }
}
@media (min-width: 900px){
    .tc-escolha-cards{ grid-template-columns:repeat(4,1fr); }
    .tc-cat-card{ align-items:flex-start; position:relative; }
    .tc-cat-card .tc-cat-inner{ flex-direction:column; align-items:flex-start; gap:10px; }
    .tc-cat-card .tc-cat-check{ position:absolute; top:12px; right:12px; margin-left:0; }
}

.tc-bloco-condicional{ border-left:3px solid #eef4fb; padding-left:14px; margin:10px 0; }
.tc-termo-texto{
    max-height:220px; overflow-y:auto; white-space:pre-line; background:#f8fafc;
    border:1px solid #e5eaf0; border-radius:10px; padding:14px 16px;
    font-size:12.5px; line-height:1.6; color:#1e2a3a;
}
.tc-assinatura-box label{ display:block; font-weight:600; font-size:12.5px; margin-bottom:6px; color:#1e2a3a; }
.tc-assinatura-canvas{
    width:100%; max-width:600px; height:180px; border:2px dashed #e5eaf0; border-radius:10px;
    background:#fff; touch-action:none; cursor:crosshair; display:block;
}
.tc-assinatura-acoes{ display:flex; align-items:center; gap:12px; margin-top:8px; flex-wrap:wrap; }
.tc-financeiro-box{ display:flex; flex-direction:column; gap:10px; }
.tc-financeiro-box h4{ margin:12px 0 4px; }

/* ================================================
   TucaClass — Responsivo geral (Fase 5)
================================================ */
@media (max-width: 780px){
    .tc-public{ max-width:100%; padding:0 4px; }
    .tc-form-container{ padding:0; }
    .tc-field{ min-width:100% !important; }
    .tc-table{ display:block; overflow-x:auto; white-space:nowrap; -webkit-overflow-scrolling:touch; }
    .tc-tabs{ flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; }
    .tc-tab{ flex:0 0 auto; white-space:nowrap; }
    .tc-plano-cards{ grid-template-columns:repeat(2,1fr); }
    .tc-btn{ min-height:42px; }
    .tc-assinatura-canvas{ height:150px; }
}
@media (max-width: 480px){
    .tc-plano-cards{ grid-template-columns:1fr; }
    .tc-turmas-grid{ grid-template-columns:1fr; }
    .tc-resumo-total{ font-size:16px; }
}
