
  /* ─── TOKENS ──────────────────────────────────────────── */
  :root {
    --bg:          #080c12;
    --surface:     #0e1420;
    --card:        #131c2e;
    --card-alt:    #1a2540;
    --border:      #1e2d47;
    --accent:      #00d68f;
    --accent-dim:  #00d68f22;
    --accent-glow: 0 0 18px #00d68f55;
    --yellow:      #f5c518;
    --orange:      #f59d18;
    --red:         #e84545;
    --blue:        #3d9be9;
    --text:        #c9d8f0;
    --text-muted:  #7285a5;
    --text-light:  #e8f0ff;
    --sidebar-w:   260px;
    --topbar-h:    56px;
    --radius:      10px;
    --mono:        'JetBrains Mono', monospace;
    --display:     'Bebas Neue', sans-serif;
    /*--body-font:   'DM Sans', sans-serif;*/
    --body-font:   'JetBrains Mono', monospace;
  }

  /* ─── RESET / BASE ────────────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; background: var(--bg); color: var(--text); font-family: var(--body-font); font-size: 14px; line-height: 1.55; }
  ::-webkit-scrollbar { width: 5px; height: 5px; }
  ::-webkit-scrollbar-track { background: var(--surface); }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
  a { color: var(--accent); text-decoration: none; }
  a:hover { color: #fff; }

  /* ─── TOPBAR ──────────────────────────────────────────── */
  #topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--topbar-h);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; padding: 0 20px;
    gap: 16px;
  }
  #topbar-nome {
    text-transform: uppercase;
    font-family: var(--display); font-size: 18px; letter-spacing: 1.2px; color: var(--text-light); line-height: 1; font-weight: normal;
  }

  

/* ─── LOGO COM ANIMAÇÃO TOUR ─────────────────────────── */
#topbar .logo {
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: visible; /* ← Alterado de hidden para visible */
  min-width: 120px;
}

#topbar .logo:hover {
  opacity: 0.85;
}

#topbar .logo:active {
  transform: scale(0.97);
}

.logo-inner {
  position: relative;
  width: 120px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img,
.logo-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, transform 0.4s ease;
}

.logo-img {
  opacity: 1;
  transform: translateY(0);
  z-index: 1; /* ← Adicionado */
}

.logo-img img {
  width: 120px;
  height: auto;
  display: block;
}

.logo-text {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--accent);
  opacity: 0;
  transform: translateY(6px);
  text-transform: uppercase;
  line-height: 1;
  font-weight: normal;
  z-index: 2; /* ← Adicionado - garante que fique acima da imagem */
  white-space: nowrap; /* ← Adicionado - evita quebra de linha */
  background: transparent; /* ← Adicionado */
  text-shadow: 0 0 12px rgba(0, 214, 143, 0.4); /* ← Brilho sutil para destacar */
}

/* Estados da animação */
.logo-inner.show-text .logo-img {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.logo-inner.show-text .logo-text {
  opacity: 1;
  transform: translateY(0);
}

/* Efeito de glow no texto */
.logo-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.6s ease;
}

.logo-inner.show-text .logo-text::after {
  width: 60%;
}

/* Piscada sutil do cursor no final do texto */
@keyframes logo-cursor-blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.logo-text::before {
  content: '▎';
  position: absolute;
  right: 0; /* ← Ajustado de 8px para 0 */
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--accent);
  opacity: 0;
  animation: none;
}

.logo-inner.show-text .logo-text::before {
  animation: logo-cursor-blink 1.2s ease-in-out infinite;
}  



  #topbar .logo span:not(.logo-text) { color: var(--text-muted); font-size: 11px; letter-spacing: 1px; display: block; font-family: var(--body-font); margin-top: -2px; }

  #topbar .divider { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }
  #topbar .coach-pill {
    display: flex; align-items: center; gap: 8px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 40px; padding: 4px 14px 4px 6px;
    min-width: 0;
  }
  @media (max-width: 768px) {  #topbar .coach-pill {display:none} }
  #topbar .coach-pill .avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--accent-dim); border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--accent); flex-shrink: 0;
    position: relative; overflow: hidden;
  }
  #topbar .coach-pill .info { line-height: 1.3; min-width: 0; }
  #topbar .coach-pill .info strong { font-size: 12px; color: var(--text-light); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
  #topbar .coach-pill .info small { font-size: 10px; color: var(--text-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
  #topbar .ms-auto { margin-left: auto; flex-shrink: 0; }
  #sidebar-toggle { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 6px; flex-shrink: 0; }
  #sidebar-toggle:hover { color: var(--text-light); background: var(--card); }

  /* ─── SIDEBAR ─────────────────────────────────────────── */
  #sidebar {
    position: fixed; top: var(--topbar-h); left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    z-index: 900;
    transition: transform .25s ease;
    overflow-y: auto;
  }
  #sidebar.collapsed { transform: translateX(calc(-1 * var(--sidebar-w))); }

  .nav-section-label {
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-muted); padding: 18px 20px 6px;
  }
  .nav-item-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px; width: 100%;
    background: none; border: none; color: var(--text);
    font-family: var(--body-font); font-size: 13px; font-weight: 500;
    cursor: pointer; border-radius: 0;
    position: relative; transition: background .15s, color .15s;
    text-align: left;
  }
  .nav-item-btn i { font-size: 16px; width: 20px; text-align: center; color: var(--text-muted); transition: color .15s; }
  .nav-item-btn:hover { background: var(--card); color: var(--text-light); }
  .nav-item-btn:hover i { color: var(--accent); }
  .nav-item-btn.active { background: var(--accent-dim); color: var(--accent); border-right: 2px solid var(--accent); }
  .nav-item-btn.active i { color: var(--accent); }
  .nav-badge {
    margin-left: auto; font-size: 10px; font-weight: 600;
    padding: 4px 7px 2px 7px; border-radius: 20px;
    background: var(--card-alt); color: var(--text-muted);
  }
  .nav-item-btn.active .nav-badge { background: var(--accent); color: #000; }

  .sidebar-footer {
    margin-top: auto; padding: 16px 20px;
    border-top: 1px solid var(--border);
    font-size: 10px; color: var(--text-muted); line-height: 1.6;
  }
  .sidebar-competition {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px 16px; margin: 12px 16px;
  }
  .sidebar-competition .comp-label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
  .sidebar-competition .comp-club { font-family: var(--display); font-size: 18px; color: var(--text-light); letter-spacing: 1px; line-height: 1.1; margin-top: 2px; }
  .sidebar-competition .comp-competition { font-size: 11px; color: var(--accent); margin-top: 2px; }

  /* ─── BOTTOM NAV (mobile) ─────────────────────────────── */
  #bottom-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    height: 60px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    align-items: center; justify-content: space-around;
  }
  .bnav-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; flex: 1; height: 100%;
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 10px; letter-spacing: .3px;
    font-family: var(--body-font); transition: color .15s; position: relative;
    padding: 0;
  }
  .bnav-btn i { font-size: 22px; transition: color .15s; }
  .bnav-btn.active { color: var(--accent); }
  .bnav-btn.active i { color: var(--accent); }
  .bnav-badge {
    position: absolute; top: 6px; right: calc(50% - 20px);
    background: var(--accent); color: #000;
    font-size: 8px; font-weight: 700;
    min-width: 14px; height: 14px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
  }
  .bnav-badge:empty { display: none; }

  /* ─── MAIN CONTENT ────────────────────────────────────── */
  #main {
    margin-left: var(--sidebar-w);
    margin-top: var(--topbar-h);
    padding: 28px 28px 40px;
    min-height: calc(100vh - var(--topbar-h));
    transition: margin-left .25s ease;
  }
  #main.expanded { margin-left: 0; }

  .section { display: none; }
  .section.active { display: block; }

  /* ─── PAGE HEADER ─────────────────────────────────────── */
  .page-header { margin-bottom: 24px; }
  .page-header h1 { font-family: var(--display); font-size: 32px; letter-spacing: 2px; color: var(--text-light); line-height: 1; }
  .page-header p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }

  /* ─── CARDS ───────────────────────────────────────────── */
  .e-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    overflow: hidden;
  }
  .e-card-title {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
  }
  .e-card-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

  /* ─── STAT CHIPS ──────────────────────────────────────── */
  .stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
  .stat-chip {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 20px;
    min-width: 130px; flex: 1;
  }
  .stat-chip .s-val { font-family: var(--display); font-size: 36px; line-height: 1; color: var(--text-light); }
  .stat-chip .s-label { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
  .stat-chip.green { border-color: #00d68f44; }
  .stat-chip.green .s-val { color: var(--accent); }
  .stat-chip.yellow { border-color: #f5c51844; }
  .stat-chip.yellow .s-val { color: var(--yellow); }
  .stat-chip.red { border-color: #e8454544; }
  .stat-chip.red .s-val { color: var(--red); }
  .stat-chip.blue { border-color: #3d9be944; }
  .stat-chip.blue .s-val { color: var(--blue); }

  /* ─── FORMS ───────────────────────────────────────────── */
  .e-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; display: block; }
  .e-control {
    width: 100%; background: var(--bg); border: 1px solid var(--border);
    border-radius: 7px; color: var(--text-light);
    padding: 9px 13px; font-family: var(--body-font); font-size: 13px;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
  }
  .e-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
  .e-control::placeholder { color: var(--text-muted); }
  select.e-control option { background: var(--card); }
  textarea.e-control { resize: vertical; min-height: 80px; }

  /* ─── BUTTONS ─────────────────────────────────────────── */
  .btn-e {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px; border-radius: 7px; font-size: 12px;
    font-weight: 600; letter-spacing: .5px; cursor: pointer;
    border: none; font-family: var(--body-font);
    transition: opacity .15s, transform .1s, box-shadow .15s;
  }
  .btn-e:active { transform: scale(.97); }
  .btn-e-accent { background: var(--accent); color: #000; }
  .btn-e-accent:hover { opacity: .88; box-shadow: var(--accent-glow); }
  .btn-e-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
  .btn-e-outline:hover, .btn-e-outline.active { border-color: var(--accent); color: var(--accent); }
  .btn-e-red { background: #e8454518; color: var(--red); border: 1px solid #e8454540; }
  .btn-e-red:hover { background: var(--red); color: #fff; }
  .btn-e-green { background: #00d68f18; color: var(--accent); border: 1px solid #00d68f40; }
  .btn-e-green:hover { background: var(--accent); color: #000; }
  .btn-e-sm { padding: 5px 8px; font-size: 11px; }
  

  /* ─── ALERTS ──────────────────────────────────────────── */
  .e-alert { border-radius: 8px; padding: 11px 16px; font-size: 13px; margin-bottom: 14px; border: 1px solid; display: flex; align-items: flex-start; gap: 10px; }
  .e-alert i { font-size: 15px; margin-top: 1px; flex-shrink: 0; }
  .e-alert-success { background: #00d68f12; border-color: #00d68f33; color: #00d68f; }
  .e-alert-error   { background: #e8454512; border-color: #e8454533; color: var(--red); }
  .e-alert-warning { background: #f5c51812; border-color: #f5c51833; color: var(--yellow); }

  /* ─── TABLES / DATATABLES ─────────────────────────────── */
  .dataTables_wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dataTables_wrapper .dataTables_length select,
  .dataTables_wrapper .dataTables_filter input {
    background: var(--bg) !important; border: 1px solid var(--border) !important;
    color: var(--text) !important; border-radius: 6px !important; padding: 5px 10px !important;
  }
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_length label,
  .dataTables_wrapper .dataTables_filter label { color: var(--text-muted) !important; font-size: 12px !important; }
  .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-muted) !important; border-radius: 6px !important;
  }
  .dataTables_wrapper .dataTables_paginate .paginate_button.current,
  .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--accent-dim) !important; color: var(--accent) !important; border-color: var(--accent) !important;
  }
  table.dataTable { border-collapse: collapse !important; width: 100% !important; }
  table.dataTable thead th {
    background: var(--card-alt); color: var(--text-muted);
    font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 10px 14px; border-bottom: 1px solid var(--border) !important;
    border-top: none !important;
  }
  table.dataTable tbody tr { background: transparent !important; }
  table.dataTable tbody tr:nth-child(even) td { background: #ffffff05; }
  table.dataTable tbody td {
    padding: 10px 14px; border-top: 1px solid var(--border) !important;
    vertical-align: middle; color: var(--text);
  }
  table.dataTable tbody tr:hover td { background: var(--card-alt) !important; }
  table.dataTable thead th.sorting::after,
  table.dataTable thead th.sorting_asc::after,
  table.dataTable thead th.sorting_desc::after { color: var(--text-muted); }

  /* ─── STATUS BADGES ───────────────────────────────────── */
  .badge-status {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 600; letter-spacing: .5px;
    padding: 3px 9px; border-radius: 20px; text-transform: uppercase;
  }
  .badge-status .dot { width: 5px; height: 5px; border-radius: 50%; }
  .bs-aprovado   { background: #00d68f18; color: var(--accent);  border: 1px solid #00d68f33; }
  .bs-aprovado .dot { background: var(--accent); }
  .bs-reprovado  { background: #e8454518; color: var(--red);     border: 1px solid #e8454533; }
  .bs-reprovado .dot { background: var(--red); }
  .bs-em_analise { background: #f5c51818; color: var(--yellow);  border: 1px solid #f5c51833; }
  .bs-em_analise .dot { background: var(--yellow); }
  .bs-pendente   { background: #f5c51818; color: var(--orange);    border: 1px solid #f5c51833; }
  .bs-pendente .dot { background: var(--orange); }
  .bs-aprovada  { background: #00d68f18; color: var(--accent); border: 1px solid #00d68f33; }
  .bs-aprovada .dot  { background: var(--accent); }
  .bs-reprovada { background: #e8454518; color: var(--red);    border: 1px solid #e8454533; }
  .bs-reprovada .dot { background: var(--red); }
  .badge-status.bs-desatualizada { background: #f59d1822; border-color: #f59d1844; color: var(--orange); }
  .badge-status.bs-desatualizada .dot { background: var(--orange); }
  
  /* ─── ASSINATURA VALIDADE BADGE ──────────────────────── */
  .asv-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 600; letter-spacing: .5px;
    padding: 3px 9px; border-radius: 20px; text-transform: uppercase;
  }
  .asv-badge .dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
  .asv-ativa    { background: #00d68f18; color: var(--accent); border: 1px solid #00d68f33; }
  .asv-ativa    .dot { background: var(--accent); }
  .asv-trial    { background: #f5c51818; color: var(--yellow); border: 1px solid #f5c51833; }
  .asv-trial    .dot { background: var(--yellow); }
  .asv-expirada { background: #e8454518; color: var(--red);    border: 1px solid #e8454533; }
  .asv-expirada .dot { background: var(--red); }

  /* ─── RADIO GROUP ELENCO ──────────────────────────────── */
  .radio-status-group { display: flex; gap: 6px; }
  .radio-status-group label {
    cursor: pointer; font-size: 10px; font-weight: 600; letter-spacing: .5px;
    padding: 4px 10px; border-radius: 20px; border: 1px solid var(--border);
    color: var(--text-muted); transition: all .15s; white-space: nowrap;
    user-select: none;
  }
  .radio-status-group input[type="radio"] { display: none; }
  .radio-status-group input[type="radio"]:checked + label.lbl-aprovado   { background: #00d68f18; color: var(--accent);  border-color: #00d68f55; }
  .radio-status-group input[type="radio"]:checked + label.lbl-em_analise { background: #f5c51818; color: var(--yellow); border-color: #f5c51855; }
  .radio-status-group input[type="radio"]:checked + label.lbl-reprovado  { background: #e8454518; color: var(--red);    border-color: #e8454555; }
  .radio-status-group label:hover { border-color: var(--text-muted); color: var(--text-light); }

  /* ─── POSIÇÃO CHIP ────────────────────────────────────── */
  .pos-chip {
    display: inline-block; font-size: 9px; font-weight: 700;
    padding: 2px 8px; border-radius: 4px; letter-spacing: 1px;
    background: var(--card-alt); color: var(--text-muted); text-transform: uppercase;
  }

/* ─── ANÁLISE CARD ────────────────────────────────────── */
  .analise-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px;
    transition: border-color .2s; overflow: hidden; min-width: 0;
    display: flex; flex-direction: column;
  }
  .analise-card:hover { border-color: #2a3d5e; }
  .analise-card.aprovada  { border-left: 3px solid var(--accent); }
  .analise-card.reprovada { border-left: 3px solid var(--red); opacity: .6; }
  .analise-card.pendente  { border-left: 3px solid var(--blue); }

  .analise-card .ac-top {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 12px; margin-bottom: 14px;
  }
  .analise-card .ac-top-left {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; min-width: 0; flex: 1;
  }
  .analise-card .ac-nome {
    font-size: 14px; font-weight: 600; color: var(--text-light);
    word-break: break-word; min-width: 0;
  }
  .analise-card .ac-meta {
    font-size: 11px; color: var(--text-muted);
    white-space: nowrap; flex-shrink: 0;
  }
  .analise-card .ac-tipo {
    font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 3px 9px; border-radius: 4px; font-weight: 700;
    white-space: nowrap; flex-shrink: 0;
  }
  .ac-tipo.individual  { background: #3d9be918; color: var(--blue); }
  .ac-tipo.comparativo { background: #f5c51818; color: var(--yellow); }

  .analise-card .ac-conteudo {
    font-size: 12.5px; color: var(--text); line-height: 1.7;
    max-height: 160px; overflow: hidden; position: relative;
    word-break: break-word;
  }
  .analise-card .ac-conteudo.expanded { max-height: none; }
  .analise-card .ac-conteudo::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 40px; background: linear-gradient(transparent, var(--card));
  }
  .analise-card .ac-conteudo.expanded::after { display: none; }

  .analise-card .ac-bottom {
    display: flex; align-items: center;
    justify-content: space-between; gap: 8px;
    margin-top: 14px; flex-wrap: wrap;
  }
  .analise-card .ac-bottom-left {
    display: flex; align-items: center; gap: 8px;
  }
  .analise-card .ac-bottom-right {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; justify-content: flex-end;
  }

@media (max-width: 480px) {
    .analise-card { padding: 14px 16px; }
    .analise-card .ac-bottom { gap: 6px; }
    .analise-card .ac-bottom .btn-e { font-size: 11px; padding: 5px 10px; }
    .analise-card .ac-bottom-left { flex-wrap: wrap; }
    .analise-card .ac-bottom-left .btn-status-analise { order: 10; }
  }

  /* ─── LOADING OVERLAY ─────────────────────────────────── */
  #loading-overlay {
    position: fixed; inset: 0; background: rgba(8,12,18,.85);
    z-index: 9999; display: none;
    flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  }
  #loading-overlay.show { display: flex; }
  .loader-ring {
    width: 48px; height: 48px; border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    animation: spin .8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  #loading-overlay p { color: var(--text-muted); font-size: 13px; letter-spacing: 1px; }

  /* ─── MODAL OVERRIDES ─────────────────────────────────── */
  .modal-content {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; color: var(--text);
  }
  .modal-header { border-bottom: 1px solid var(--border); padding: 18px 24px; }
  .modal-footer { border-top: 1px solid var(--border); padding: 14px 24px; }
  .modal-title { font-family: var(--display); font-size: 22px; letter-spacing: 1px; color: var(--text-light); }
  .btn-close { filter: invert(1) brightness(.6); }

  /* ─── JSON PREVIEW ────────────────────────────────────── */
  .json-preview {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 8px; padding: 14px; font-family: var(--mono);
    font-size: 11px; color: #8ba7d0; max-height: 220px;
    overflow-y: auto; white-space: pre-wrap; word-break: break-all;
  }

  /* ─── TREINADOR PROFILE ───────────────────────────────── */
  .profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 768px) {
    .profile-grid { grid-template-columns: 1fr; }
    #sidebar { display: none !important; }
    #sidebar-toggle { display: none; }
    #topbar .logo span:not(.logo-text) { display: none; }
    #topbar .divider { display: none; }
    #main { margin-left: 0; padding-bottom: 72px; }
    #bottom-nav { display: flex; }
    #toast-container { bottom: 72px; right: 12px; }
    .jtab-label { display: none; }
    #jogos-tabs .nav-link { padding: 10px 14px; }
    #jogos-tabs .jtab-icon { margin-right: 0px; font-size: 16px; }
    
    /* Ajuste do logo no mobile */
    .logo-inner {
        width: 100px;
        height: 24px;
    }
    
    .logo-img img {
        width: 100px;
    }
    
    .logo-text {
        font-size: 18px;
        letter-spacing: 3px;
    }
    
    #topbar .logo {
        min-width: 100px;
    }
    
    #topbar {
        padding: 0 12px;
        gap: 10px;
    }
}
  .profile-avatar-big {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--accent-dim); border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--accent); flex-shrink: 0;
  }

  /* ─── TOASTS ──────────────────────────────────────────── */
  #toast-container {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 9000; display: flex; flex-direction: column; gap: 8px;
  }
  .e-toast {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px 18px;
    min-width: 280px; max-width: 380px;
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; color: var(--text-light);
    box-shadow: 0 8px 24px #00000066;
    animation: toastIn .25s ease;
  }
  .e-toast.removing { animation: toastOut .25s ease forwards; }
  @keyframes toastIn  { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
  @keyframes toastOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(30px); } }
  .e-toast i { font-size: 18px; flex-shrink: 0; }
  .e-toast.t-success { border-left: 3px solid var(--accent); }
  .e-toast.t-success i { color: var(--accent); }
  .e-toast.t-error   { border-left: 3px solid var(--red); }
  .e-toast.t-error i { color: var(--red); }
  .e-toast.t-info    { border-left: 3px solid var(--blue); }
  .e-toast.t-info i  { color: var(--blue); }

  /* ─── DIVISOR FIELD ───────────────────────────────────── */
  .field-group { margin-bottom: 14px; }

  /* ─── LOGIN OVERLAY ──────────────────────────────────── */
  #login-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(8, 12, 18, 0.97);
    display: flex; align-items: center; justify-content: center;
  }
  #login-overlay.hidden { display: none; }
  /*
  .login-box {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px 36px 32px;
    width: 100%; max-width: 380px;
  }
    */
.login-box {
    background: var(--card);
    border-radius: var(--radius); padding: 36px 36px 32px;
    width: 100%; max-width: 380px;
    position: relative;
    z-index: 0;
  }
  .login-box::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius) + 2px);
    background: conic-gradient(
      from var(--_a, 0deg),
      transparent 0deg,
      var(--accent) 60deg,
      transparent 120deg
    );
    z-index: -1;
    animation: login-border-spin 30s linear infinite;
  }
  .login-box::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius) - 1px);
    background: var(--card);
    z-index: -1;
  }
  @property --_a {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
  }
  @keyframes login-border-spin {
    to { --_a: 360deg; }
  }
  
  

  .login-box .lb-logo {
    font-family: var(--display); font-size: 36px; letter-spacing: 4px;
    color: var(--accent); text-align: center; margin-bottom: 4px;
  }
  .login-box .lb-sub {
    font-size: 11px; color: var(--text-muted); text-align: center;
    letter-spacing: 1px; text-transform: uppercase; margin-bottom: 22px;
  }
  .lb-tabs {
    display: flex; border-bottom: 1px solid var(--border); margin-bottom: 22px;
  }
  .lb-tab {
    flex: 1; background: none; border: none; padding: 9px 0;
    font-family: var(--body-font); font-size: 12px; font-weight: 600;
    letter-spacing: .5px; text-transform: uppercase; cursor: pointer;
    color: var(--text-muted); border-bottom: 2px solid transparent;
    margin-bottom: -1px; transition: color .15s, border-color .15s;
  }
  .lb-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
  .login-box .field-group { margin-bottom: 14px; }
  /* ─── CÓDIGO DE RECUPERAÇÃO ──────────────────────────── */
  .codigo-box {
    background: var(--bg); border: 1px solid var(--accent);
    border-radius: 8px; padding: 14px 18px; margin: 14px 0;
    font-family: var(--mono); font-size: 20px; letter-spacing: 4px;
    color: var(--accent); text-align: center; word-break: break-all;
  }
  .codigo-aviso {
    font-size: 11px; color: var(--yellow); text-align: center;
    line-height: 1.6; margin-bottom: 6px;
  }

  /* ─── PAINEL TÁTICO — CAMPO ──────────────────────────── */
  .campo-outer {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px;
  }
  .campo-legenda-top,
  .campo-legenda-bottom {
    font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
    font-weight: 600; display: flex; align-items: center; gap: 6px;
  }
  .campo-legenda-top    { color: #c45070; }
  .campo-legenda-bottom { color: #4a9960; }

  .campo-wrapper {
    position: relative;
    width: 100%; max-width: 300px;
    border-radius: 6px; overflow: hidden;
    box-shadow: 0 4px 24px #00000055;
    touch-action: none; /* evita scroll durante drag no mobile */
  }
  .campo-svg {
    width: 100%; height: auto;
    display: block;
  }

  /* ─── PONTOS DE JOGADORES ────────────────────────────── */
  .jogador-ponto {
    position: absolute;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent);
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    user-select: none;
    transition: border-color .15s, box-shadow .15s;
  }
  .jogador-ponto:hover      { border-color: var(--yellow); box-shadow: 0 0 8px #f5c51866; }
  .jogador-ponto.dragging   { cursor: grabbing; opacity: .85; z-index: 20; }
  .jogador-ponto.selected   { border-color: var(--yellow); box-shadow: 0 0 10px #f5c518aa; z-index: 15; }

  .jp-num {
    font-size: 15px; font-weight: 800; color: #111; font-family: var(--body-font); 
    line-height: 1; pointer-events: none;
  }
  .jp-label {
    position: absolute;
    bottom: -17px; left: 50%;
    transform: translateX(-50%);
    white-space: nowrap; font-size: 8px;
    color: #fff;
    background: rgba(0,0,0,0.7);
    padding: 1px 5px; border-radius: 3px;
    pointer-events: none;
    max-width: 72px; overflow: hidden; text-overflow: ellipsis;
  }

  /* ─── BOLA ──────────────────────────────────────────── */
  .bola-ponto {
    position: absolute;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #ffe066 0%, #c9a800 60%, #7a6400 100%);
    border: 1.5px solid rgba(0,0,0,0.45);
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 11;
    user-select: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  }
    .bola-ponto.dragging { cursor: grabbing; opacity: .9; z-index: 21; }

  /* ─── LINHAS DE REFERÊNCIA ──────────────────────────── */
  .linha-referencia {
    position: absolute;
    z-index: 5;
    cursor: grab;
    background-color: var(--red);
    opacity: 0.65;
    transition: opacity 0.15s, background-color 0.15s;
  }
  .linha-referencia.vertical {
    width: 3px;
    height: 100%;
    top: 0;
    transform: translateX(-50%);
  }
  .linha-referencia.horizontal {
    width: 100%;
    height: 3px;
    left: 0;
    transform: translateY(-50%);
  }
  .linha-referencia:hover {
    opacity: 1;
    background-color: var(--yellow);
    z-index: 8;
  }
  .linha-referencia.dragging {
    cursor: grabbing;
    opacity: 1;
    background-color: var(--yellow);
    z-index: 22;
  }
  .linha-referencia.selected {
    opacity: 1;
    background-color: var(--yellow);
    z-index: 8;
    box-shadow: 0 0 12px #f5c51866;
  }

  /* Rótulo flutuante da linha */
  .linha-rotulo {
    position: absolute;
    font-size: 8px;
    color: #fff;
    background: rgba(0,0,0,0.75);
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .linha-referencia.vertical .linha-rotulo {
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
  }
  .linha-referencia.horizontal .linha-rotulo {
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Popup de edição de linha */
  #linha-popup {
    position: fixed;
    z-index: 9999;
    background: var(--card);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 10px 12px;
    width: 260px;
    box-shadow: 0 6px 24px #00000088;
  }

  /* ─── POPUP DE FUNÇÃO ────────────────────────────────── */
  #funcao-popup {
    position: absolute;
    z-index: 30;
    background: var(--card);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 10px 12px;
    width: 46%;
    min-width: 140px;
    box-shadow: 0 6px 24px #00000088;
  }
  .fp-titulo {
    font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 7px;
  }

  /* ─── CARDS DE MODELOS SALVOS ────────────────────────── */
  .modelo-card {
    background: var(--card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 14px;
    transition: border-color .2s;
  }
  .modelo-card:hover { border-color: #2a3d5e; }
  .mc-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 8px; gap: 10px;
  }
  .mc-nome {
    font-family: var(--display); font-size: 20px;
    letter-spacing: 1.5px; color: var(--text-light);
  }
  .mc-data {
    font-size: 10px; color: var(--text-muted);
    white-space: nowrap; flex-shrink: 0;
  }
  .mc-descricao {
    font-size: 12px; color: var(--text); line-height: 1.6;
    margin-bottom: 14px;
    background: var(--card); border-left: 2px solid var(--border);
    padding: 8px 12px; border-radius: 0 6px 6px 0;
  }
  .mc-body {
    display: flex; gap: 16px; align-items: flex-start;
    margin-bottom: 14px;
  }
  .mc-field { flex-shrink: 0; }
  .mc-svg {
    width: 90px; height: auto; display: block;
    border-radius: 4px; overflow: hidden;
  }
  .mc-funcoes { flex: 1; min-width: 0; }
  .mc-funcao-item {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 12px; color: var(--text); margin-bottom: 5px;
    line-height: 1.4;
  }
  .mc-funcao-num {
    flex-shrink: 0;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--accent); color: #000;
    font-size: 9px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
  }
  .mc-actions {
    display: flex; gap: 8px; flex-wrap: wrap;
  }

  /* ─── RESPONSIVO: campo max-width no mobile ──────────── */
  @media (max-width: 480px) {
    .campo-wrapper { max-width: 260px; }
    #funcao-popup  { width: 54%; }
    .mc-body      { flex-direction: column; }
    .mc-field     { width: 100%; }
    .mc-svg       { width: 100%; max-width: 140px; }
    .mc-funcoes   { width: 100%; }
  }
/* ─── EDITOR TÁTICO: layout duas colunas no desktop ─── */
  .tac-editor-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .tac-col-campo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .tac-col-form {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  @media (min-width: 768px) {
    .tac-editor-layout {
      flex-direction: row;
      align-items: flex-start;
      gap: 32px;
    }
    .tac-col-campo {
      flex-shrink: 0;
      align-items: flex-start;
    }
    .tac-col-campo .campo-wrapper {
      max-width: 280px;
    }
    .tac-col-form {
      flex: 1;
      min-width: 0;
    }
    .tac-col-form #tac-descricao {
      resize: vertical;
    }
  }
  
  /* ─── CAMPO FULLSCREEN ────────────────────────────────── */
  #campo-fullscreen-overlay {
    position: fixed; inset: 0; z-index: 9998;
    background: var(--bg);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; padding: 20px;
  }
  #campo-fullscreen-overlay.ativo { display: flex; }
  .cfo-topbar {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 480px;
  }
  #campo-fullscreen-overlay .campo-wrapper {
    max-width: 480px; width: 100%;
  }
  #funcao-popup { z-index: 9999 !important; }
  @media (max-width: 600px) {
    #campo-fullscreen-overlay .campo-wrapper { max-width: 88vw; }
  }   

  
  /* ═══════════════════════════════════════════════════════════
     CHATBOT — BOTÃO TOPBAR (borda gradiente animada)
  ═══════════════════════════════════════════════════════════ */

  @property --cb-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
  }

  @keyframes cb-spin {
    to { --cb-angle: 360deg; }
  }

  @keyframes cb-pulse-glow {
    0%, 100% { box-shadow: 0 0 8px #00d68f33; }
    50%       { box-shadow: 0 0 18px #00d68f88, 0 0 32px #00d68f33; }
  }

  .btn-chatbot {
    position: relative;
    background: var(--card);
    color: var(--accent);
    border: none;
    border-radius: 8px;
    padding: 6px 13px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--body-font);
    z-index: 0;
    flex-shrink: 0;
    animation: cb-pulse-glow 3s ease-in-out infinite;
    transition: opacity .15s, transform .1s;
    text-transform: uppercase;
  }
  .btn-chatbot:active { transform: scale(.96); }
  .btn-chatbot:hover  { opacity: .9; }

  /* Anel gradiente animado */
  .btn-chatbot::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 9.5px;
    background: conic-gradient(
      from var(--cb-angle),
      #00d68f 0%,
      #00ffb3 20%,
      #00d68f44 50%,
      #003d28  70%,
      #00d68f  100%
    );
    z-index: -1;
    animation: cb-spin 2.4s linear infinite;
  }

  /* Fundo interno para encobrir o gradiente e mostrar só a borda */
  .btn-chatbot::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: 7px;
    background: #020000;
    z-index: -1;
  }

  .btn-chatbot i { font-size: 15px; }

  /* badge de créditos no botão */
  .btn-chatbot .cb-badge {
    background: var(--accent);
    color: #000;
    font-size: 8px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    margin-left: 2px;
  }

  /* ═══════════════════════════════════════════════════════════
     CHATBOT — MODAL
  ═══════════════════════════════════════════════════════════ */

  #modal-chatbot .modal-dialog {
    max-width: 680px;
    height: calc(100vh - 80px);
    margin: 40px auto;
  }

  #modal-chatbot .modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Header */
  .cb-modal-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

  .cb-bot-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: var(--accent);
    flex-shrink: 0;
    position: relative;
  }
  .cb-bot-avatar::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 9px; height: 9px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--card);
  }

  .cb-modal-header .cb-title {
    flex: 1;
  }
  .cb-modal-header .cb-title strong {
    font-family: var(--display);
    font-size: 16px;
    letter-spacing: 1.5px;
    color: var(--text-light);
    display: block;
  }
  .cb-modal-header .cb-title small {
    font-size: 10px;
    color: var(--text-muted);
  }

  .cb-credits-pill {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
  }
  .cb-credits-pill strong {
    color: var(--accent);
    font-size: 12px;
  }
  .cb-credits-pill.low strong { color: var(--red); }
  .cb-credits-pill.low { border-color: #e8454533; }

  .cb-modal-close {
    background: none; border: none;
    color: var(--text-muted); font-size: 20px;
    cursor: pointer; padding: 4px; border-radius: 6px;
    line-height: 1; flex-shrink: 0;
    transition: color .15s, background .15s;
  }
  .cb-modal-close:hover { color: var(--text-light); background: var(--card-alt); }

  /* Messages area */
  .cb-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
  }

  .cb-msg {
    display: flex;
    gap: 10px;
    max-width: 90%;
    align-items: flex-end;
  }
  .cb-msg.user { margin-left: auto; flex-direction: row-reverse; }

  .cb-msg-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--card-alt); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: var(--text-muted);
    flex-shrink: 0;
  }
  .cb-msg.bot .cb-msg-avatar  { color: var(--accent); border-color: #00d68f33; background: var(--accent-dim); }

  .cb-msg-bubble {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px 12px 12px 4px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    word-break: break-word;
  }
  .cb-msg.user .cb-msg-bubble {
    background: var(--accent-dim);
    border-color: #00d68f33;
    color: var(--text-light);
    border-radius: 12px 12px 4px 12px;
  }

  /* Markdown inside bot bubble */
  .cb-msg-bubble h3 { font-size: 13px; color: var(--text-light); margin: 8px 0 4px; }
  .cb-msg-bubble strong { color: var(--text-light); }
  .cb-msg-bubble ul { padding-left: 16px; margin: 4px 0; }
  .cb-msg-bubble li { margin: 2px 0; }
  .cb-msg-bubble p { margin: 4px 0; }
  .cb-msg-bubble p:first-child { margin-top: 0; }
  .cb-msg-bubble p:last-child  { margin-bottom: 0; }

  /* Typing indicator */
  .cb-typing {
    display: flex; gap: 5px; align-items: center;
    padding: 10px 14px;
  }
  .cb-typing span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--text-muted);
    animation: cb-bounce 1.2s infinite ease-in-out;
  }
  .cb-typing span:nth-child(2) { animation-delay: .2s; }
  .cb-typing span:nth-child(3) { animation-delay: .4s; }
  @keyframes cb-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: .4; }
    40%           { transform: translateY(-6px); opacity: 1; }
  }

  /* Welcome state */
  .cb-welcome {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 24px;
    color: var(--text-muted);
    background-color: #020000;
  }
  .cb-welcome i { font-size: 48px; color: var(--accent); margin-bottom: 14px; opacity: .7; }
  .cb-welcome h3 { font-family: var(--display); font-size: 22px; letter-spacing: 2px; color: var(--text-light); margin-bottom: 8px; }
  .cb-welcome p  { font-size: 13px; max-width: 320px; line-height: 1.6; }

  .cb-suggestions {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center; margin-top: 20px;
  }
  .cb-suggestion-btn {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 20px; padding: 6px 14px;
    font-size: 11px; color: var(--text-muted);
    cursor: pointer; font-family: var(--body-font);
    transition: border-color .15s, color .15s;
  }
  .cb-suggestion-btn:hover { border-color: var(--accent); color: var(--accent); }

  /* Footer / input */
  .cb-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--card);
    flex-shrink: 0;
  }

  .cb-input-row {
    display: flex; gap: 10px; align-items: flex-end;
  }

  .cb-input-wrap {
    flex: 1; position: relative;
  }

  #cb-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-light);
    padding: 10px 14px;
    font-family: var(--body-font);
    font-size: 13px;
    resize: none;
    outline: none;
    min-height: 44px;
    max-height: 120px;
    line-height: 1.5;
    transition: border-color .15s;
  }
  #cb-input:focus { border-color: var(--accent); }
  #cb-input::placeholder { color: var(--text-muted); }

  .cb-send-btn {
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 10px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; cursor: pointer; flex-shrink: 0;
    transition: opacity .15s, transform .1s;
  }
  .cb-send-btn:hover   { opacity: .85; }
  .cb-send-btn:active  { transform: scale(.93); }
  .cb-send-btn:disabled { opacity: .35; cursor: default; }

  #cb-send-btn {
    font-size: 28px;
    color: var(--accent);
    cursor: pointer;
    align-self: center;
  }
  #cb-send-btn:hover {
    opacity: 0.8;
  }

  .cb-footer-meta {
    font-size: 10px; color: var(--text-muted);
    margin-top: 8px; text-align: center;
  }

  /* Sem créditos */
  .cb-no-credits {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 32px 24px; gap: 14px;
  }
  .cb-no-credits i { font-size: 40px; color: var(--red); opacity: .7; }
  .cb-no-credits h3 { font-family: var(--display); font-size: 20px; letter-spacing: 2px; color: var(--text-light); }
  .cb-no-credits p  { font-size: 13px; color: var(--text-muted); max-width: 280px; line-height: 1.6; }

.e-radio-group {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.45rem 0;
}

.e-radio-pill input[type="radio"] {
  display: none;
}

.e-radio-pill span {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid #ffffff55;
  color: #ffffffaa;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.e-radio-pill input[type="radio"]:checked + span {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #1a1a2e;
  font-weight: 700;
}

.e-radio-pill span:hover {
  border-color: #ffffffcc;
  color: #ffffffcc;
}

  /* Mobile */
  @media (max-width: 768px) {
    #modal-chatbot .modal-dialog {
      max-width: 100%;
      height: 100dvh;
      margin: 0;
    }
    #modal-chatbot .modal-content {
      border-radius: 0;
    }
    .btn-chatbot .cb-label { display: none; }
        .btn-chatbot .cb-label { display: none; }
    .btn-chatbot .cb-badge { display: none; }
    .btn-chatbot { padding: 6px 8px; }
  }

  .cb-msg-truncada {
    font-size: 0.75rem;
    color: var(--color-warning, #f59e0b);
    text-align: center;
    padding: 4px 12px;
    opacity: 0.85;
}

/* Rodapé do chatbot — linha de meta com ações */
.cb-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cb-footer-actions {
  display: flex;
  gap: 4px;
}

.cb-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.cb-action-btn#cb-btn-reiniciar, .cb-action-btn#cb-btn-copiar {
  color: var(--text-light);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  margin-left: 10px;
}

.cb-action-btn:hover {
  color: var(--text-light);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* ═══════════════════════════════════════════════════════════
   DESTAQUE DO MENU DURANTE O TOUR
═══════════════════════════════════════════════════════════ */
.nav-item-btn.tour-focus,
.bnav-btn.tour-focus {
  position: relative;
  z-index: 1045 !important;            /* acima do backdrop (1040), abaixo do modal (1050) */
  box-shadow: 0 0 18px 3px var(--accent), inset 0 0 12px rgba(0,214,143,0.3);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  animation: tourFocusPulse 2s ease-in-out infinite;
}

@keyframes tourFocusPulse {
  0%, 100% { box-shadow: 0 0 18px 3px var(--accent), inset 0 0 12px rgba(0,214,143,0.3); }
  50%      { box-shadow: 0 0 28px 6px var(--accent), inset 0 0 18px rgba(0,214,143,0.5); }
}


/* ═══════════════════════════════════════════════════════════
   MODAL TOUR VIRTUAL
═══════════════════════════════════════════════════════════ */

#modal-tour .modal-dialog {
  max-width: 520px;
}

#modal-tour .modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

#modal-tour .modal-header {
  border-bottom: none;
  padding: 16px 20px 0;
}

#modal-tour .modal-body {
  padding: 20px 24px 28px;
}

#modal-tour .modal-footer {
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ── Barra de progresso ── */
.tour-progress-wrap {
  height: 3px;
  background: var(--border);
  margin: 0 20px;
  border-radius: 2px;
  overflow: hidden;
}

.tour-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.35s ease;
}

/* ── Ícone grande ── */
.tour-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-dim);
  border: 1px solid #00d68f33;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  flex-shrink: 0;
}

.tour-icon-wrap i {
  font-size: 30px;
  color: var(--accent);
}

/* ── Conteúdo ── */
.tour-body {
  text-align: center;
}

#tour-titulo {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: 12px;
}

#tour-descricao {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
}

/* ── Contador ── */
#tour-contador {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  flex-shrink: 0;
}

/* ── Botões ── */
.tour-nav-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

#tour-btn-anterior,
#tour-btn-proximo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--body-font);
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
}

#tour-btn-anterior {
  background: var(--card);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

#tour-btn-anterior:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

#tour-btn-anterior:disabled {
  opacity: 0.35;
  cursor: default;
}

#tour-btn-proximo {
  background: var(--accent);
  color: #000;
}

#tour-btn-proximo:hover {
  opacity: 0.88;
  box-shadow: var(--accent-glow);
}

#tour-btn-pular {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--body-font);
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

#tour-btn-pular:hover {
  color: var(--text-light);
  background: var(--card);
}

/* ── Animação do modal ── */
#modal-tour.fade .modal-dialog {
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

#modal-tour.show .modal-dialog {
  transform: scale(1);
}

/* ── Responsivo ── */
@media (max-width: 576px) {
  #modal-tour .modal-body {
    padding: 16px 18px 20px;
  }

  .tour-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    margin-bottom: 14px;
  }

  .tour-icon-wrap i {
    font-size: 24px;
  }

  #tour-titulo {
    font-size: 22px;
  }

  #tour-descricao {
    font-size: 13px;
  }

  #tour-btn-anterior,
  #tour-btn-proximo {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ── Cursor pointer no logo ── */
#topbar .logo {
  cursor: pointer;
  transition: opacity 0.15s, filter 0.15s;
  user-select: none;
}

#topbar .logo:hover {
  opacity: 0.8;
  filter: drop-shadow(0 0 8px var(--accent-dim));
}

#topbar .logo:active {
  transform: scale(0.97);
}

/* ── Tooltip do logo ── */
#topbar .logo[title] {
  position: relative;
}


/* ═══════════════════════════════════════════════════════════
   LISTA DE COMPETIÇÕES — RESPONSIVO
═══════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  /* Cada item da lista de competições */
  #lista-competicoes > div {
    flex-wrap: wrap !important;
    gap: 4px 8px !important;
    padding: 10px 0 !important;
  }

  /* Nome da competição ocupa linha inteira */
  #lista-competicoes > div > span[style*="flex:1"] {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
  }

  /* Ajuste dos chips (tipo, ano, time) */
  #lista-competicoes .pos-chip {
    font-size: 9px !important;
    padding: 2px 8px !important;
    white-space: nowrap !important;
  }
}

/* ─── CÍRCULOS DE LIMITES NO MOBILE ──────────────────── */
@media (max-width: 768px) {
  /* Container principal dos círculos */
  #card-assinatura [style*="display:flex"][style*="gap:20px"][style*="flex-wrap:wrap"] {
    gap: 10px !important;
  }
  
  /* Força os círculos a ficarem lado a lado */
  #card-assinatura [style*="display:flex"][style*="gap:20px"][style*="flex-wrap:wrap"] > div:last-child {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    gap: 8px !important;
    width: 100%;
  }
  
  /* Reduz tamanho dos círculos */
  #card-assinatura [style*="width:130px"] {
    width: 105px !important;
  }
}



/* ═══════════════════════════════════════════════════════════
   PLANOS DE ENTRADA — CARDS LADO A LADO
═══════════════════════════════════════════════════════════ */

.pt-plan-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pt-plan-card {
  flex: 1 1 180px;
  min-width: 160px;
  max-width: 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.pt-plan-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pt-plan-card:active {
  transform: scale(0.97);
}

/* Card destaque (Elite) */
.pt-plan-card-destaque {
  background: var(--card-alt);
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 0 20px rgba(0, 214, 143, 0.12);
}

.pt-plan-card-destaque:hover {
  border-color: var(--accent);
  box-shadow: 0 0 28px rgba(0, 214, 143, 0.22);
}

/* Badge "Mais popular" */
.pt-card-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 214, 143, 0.25);
  border-radius: 20px;
  padding: 3px 14px;
  margin-bottom: 2px;
  line-height: 1;
}

/* Nome do plano */
.pt-card-name {
  font-family: var(--display);
  font-size: clamp(20px, 3.5vw, 28px);
  letter-spacing: 2px;
  color: var(--text-light);
  line-height: 1.1;
  word-break: break-word;
}

/* Preço */
.pt-card-price {
  font-family: var(--mono);
  font-size: clamp(18px, 3vw, 24px);
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}

/* Período */
.pt-card-period {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  margin-top: -4px;
}

/* Features */
.pt-card-features {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text);
  text-align: left;
  padding: 0 4px;
}

.pt-card-features div {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}

.pt-card-features i {
  color: var(--accent);
  font-size: 12px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.pt-card-features strong {
  color: var(--text-light);
}

.pt-card-validity {
  font-size: 10px !important;
  color: var(--text-muted) !important;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

/* Botão de ação */
.pt-card-action {
  width: 100%;
  margin-top: auto;
  padding-top: 4px;
}

.pt-card-action .btn-e {
  transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}

.pt-card-action .btn-e:hover {
  opacity: 0.88;
}

/* Hover no card destaque → botão fica mais brilhante */
.pt-plan-card-destaque:hover .pt-card-action .btn-e {
  box-shadow: 0 0 14px rgba(0, 214, 143, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVO — CARDS DE PLANOS
═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .pt-plan-card {
    flex: 1 1 150px;
    min-width: 140px;
    max-width: none;
    padding: 16px 12px;
    gap: 8px;
  }
  
  .pt-card-name {
    font-size: 20px;
    letter-spacing: 1.5px;
  }
  
  .pt-card-price {
    font-size: 18px;
  }
  
  .pt-card-features {
    font-size: 11px;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .pt-plan-card {
    flex: 1 1 100%;
    min-width: 100%;
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 14px 16px;
    gap: 4px;
  }
  
  .pt-card-badge {
    order: -1;
    width: 100%;
    text-align: center;
    margin-bottom: 2px;
  }
  
  .pt-card-name {
    font-size: 18px;
    letter-spacing: 1px;
  }
  
  .pt-card-price {
    font-size: 16px;
    margin-left: auto;
  }
  
  .pt-card-period {
    display: none;
  }
  
  .pt-card-features {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 10px;
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 4px;
  }
  
  .pt-card-features div {
    font-size: 10px;
  }
  
  .pt-card-validity {
    display: none;
  }
  
  .pt-card-action {
    width: 100%;
    margin-top: 6px;
  }
}

/*-- microfone do chatbot --*/
#cb-mic-btn,
#cb-voice-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  margin-left: 6px;
}
#cb-mic-btn:hover,
#cb-voice-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.cb-input-row {
  display: flex;
  gap: 10px;
  align-items: center;   /* alinha todos os filhos verticalmente ao centro */
}