/* Layout padrão site de apostas - verde e branco */

:root {
  --verde-escuro: #031808;
  --verde-sidebar: #05200a;
  --verde-medio: #165824;
  --verde-principal: #23a73d;
  --verde-claro: #267436;
  --verde-destaque: #338062;
  --branco: #fff;
  --cinza-fundo: #1a1a1a;
  --cinza-card: #2d2d2d;
  --cinza-texto: #888;
  --vermelho-vivo: #e74c3c;
  --azul-odds: #3498db;
}

* {
  box-sizing: border-box;
}

.bets-page {
  margin: 0;
  font-family: 'Source Sans Pro', sans-serif;
  background: var(--verde-escuro);
  color: var(--branco);
  min-height: 100vh;
}

/* ========== Header superior ========== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--verde-escuro);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.menu-toggle {
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  margin-right: 14px;
}

.menu-toggle .icon-bar {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--branco);
  margin: 5px 0;
  border-radius: 2px;
}

.logo-text {
  flex: 1;
  color: var(--branco);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.btn-entrar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--verde-principal);
  color: var(--branco);
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.header-auth { display: flex; align-items: center; gap: 15px; }

/* Badge de Indicação */
.badge-indicacao {
  background: rgba(35, 167, 61, 0.15);
  border: 1px solid var(--verde-principal);
  color: var(--branco);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-indicacao strong { color: var(--verde-principal); }
.btn-clear-indicacao {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}
.btn-clear-indicacao:hover { color: var(--vermelho-vivo); }

@media (max-width: 768px) {
  .badge-indicacao { font-size: 0.75rem; padding: 4px 8px; }
  .badge-indicacao i { display: none; }
}

.cambista-logado { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.cambista-logado .cambista-nome { color: rgba(255,255,255,0.95); }
.cambista-logado .btn-sair { color: var(--verde-principal); text-decoration: none; font-weight: 600; }
.cambista-logado .btn-sair:hover { text-decoration: underline; color: var(--branco); }
.cambista-logado .btn-painel { color: var(--verde-principal); text-decoration: none; font-weight: 600; margin-right: 6px; }
.cambista-logado .btn-painel:hover { text-decoration: underline; color: var(--branco); }
.btn-entrar:hover {
  background: #1e8f34;
  color: var(--branco);
}

.btn-bilhete-mobile {
  display: none;
  background: var(--verde-claro);
  border: none;
  color: var(--branco);
  padding: 8px 12px;
  border-radius: 8px;
  margin-right: 10px;
  position: relative;
  font-size: 1.2rem;
  cursor: pointer;
}

.btn-bilhete-mobile .badge-bilhete {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--vermelho-vivo);
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 2px solid var(--verde-escuro);
}

/* ========== Corpo: sidebar + conteúdo + bilhete ========== */
.app-body {
  display: flex;
  padding-top: 60px;
  min-height: 100vh;
}

/* ========== Sidebar esquerda ========== */
.sidebar-left {
  width: 300px;
  min-width: 300px;
  background: var(--verde-sidebar);
  padding: 18px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.logo-shield {
  background: linear-gradient(180deg, var(--verde-escuro) 0%, var(--verde-medio) 100%);
  border: 2px solid var(--verde-destaque);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 18px;
  position: relative;
}

.shield-inner {
  position: relative;
}

.logo-shield .stars {
  color: #ffc107;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 6px;
}

.logo-shield .brand {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--branco);
  letter-spacing: 0.5px;
}

.logo-shield .tagline {
  display: block;
  font-size: 1rem;
  color: var(--verde-claro);
  margin-top: 6px;
}

.logo-shield .ball-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: var(--verde-destaque);
  opacity: 0.8;
}

.search-bilhete {
  position: relative;
  margin-bottom: 24px;
}

.search-bilhete input {
  background: var(--verde-escuro);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--branco);
  padding: 14px 52px 14px 16px;
  border-radius: 8px;
  width: 100%;
  font-size: 1.3rem;
}

.search-bilhete input::placeholder {
  color: var(--cinza-texto);
}

.search-bilhete .fa-search {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cinza-texto);
}

.search-bilhete .btn-conferir-bilhete {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--cinza-texto);
  padding: 10px 14px;
  cursor: pointer;
}

.search-bilhete .btn-conferir-bilhete:hover {
  color: var(--verde-principal);
}

.menu-block {
  margin-bottom: 24px;
}

.menu-block-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--verde-destaque);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.menu-links,
.ligas-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-links li,
.ligas-list li {
  margin-bottom: 6px;
}

.menu-links a,
.ligas-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: var(--branco);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
}

.menu-links a:hover,
.ligas-list a:hover {
  background: var(--verde-medio);
  color: var(--branco);
}

.ligas-list .flag {
  font-size: 1.7rem;
}

/* ========== Conteúdo central ========== */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 16px;
  overflow-x: hidden;
}

/* Banner / Carrossel Estilo Betano */
.banner-carousel {
  position: relative;
  margin-bottom: 24px;
  width: 100%;
  overflow: hidden;
  height: auto;
  min-height: auto;
}

.banner-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 0 16px 0;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  scroll-snap-type: x mandatory;
}

.banner-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.banner-card-item {
  flex: 0 0 450px; /* Largura fixa para os cards no desktop */
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #2d2d2d;
  scroll-snap-align: start;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
}

.banner-card-item:hover {
  transform: translateY(-4px);
}

.banner-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.banner-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
}

.banner-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.banner-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.banner-card-tag {
  background: var(--vermelho-vivo);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.banner-card-tag.live i {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

.banner-card-match {
  margin-top: auto;
  margin-bottom: 15px;
}

.banner-card-teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.banner-card-team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.banner-card-team img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.banner-card-odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.banner-odd-box {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s;
}

.banner-odd-box:hover {
  background: var(--verde-principal);
  border-color: var(--verde-principal);
}

.banner-odd-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  font-weight: 600;
}

.banner-odd-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--verde-principal);
}

.banner-odd-box:hover .banner-odd-value {
  color: #fff;
}

.banner-card-info {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

@media (max-width: 768px) {
  .banner-carousel {
    margin-bottom: 15px;
  }

  .banner-container {
    padding: 0 0 10px 0;
    gap: 10px;
  }

  .banner-card-item {
    flex: 0 0 90%;
    height: 160px;
  }
  
  .banner-card-team {
    font-size: 1rem;
  }
  
  .banner-odd-value {
    font-size: 1rem;
  }

  .carousel-arrow {
    display: none !important;
  }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.carousel-arrow:hover {
  background: var(--verde-principal);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* Abas de esportes */
.sport-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sport-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--cinza-card);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--branco);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.sport-tab:hover {
  background: var(--verde-medio);
}

.sport-tab.active {
  background: var(--verde-escuro);
  border-color: var(--verde-destaque);
  color: var(--verde-destaque);
}

/* Datas e busca */
.date-search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.date-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

/* Esconder scrollbar mas manter funcionalidade */
.date-tabs::-webkit-scrollbar {
  display: none;
}

.date-tab {
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--branco);
  border-radius: 20px; /* Mais arredondado como no app */
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
  font-weight: 600;
  transition: all 0.2s;
}

.date-tab:hover {
  background: rgba(255,255,255,0.08);
}

.date-tab.active {
  background: var(--branco);
  color: var(--verde-escuro);
  border-color: var(--branco);
}

.date-tab.ao-vivo {
  color: var(--vermelho-vivo);
  border-color: var(--vermelho-vivo);
}

.date-tab.ao-vivo:hover,
.date-tab.ao-vivo.active {
  background: var(--vermelho-vivo);
  color: var(--branco);
}

.search-jogos {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-jogos input {
  width: 100%;
  padding: 8px 36px 8px 12px;
  background: var(--cinza-card);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--branco);
  border-radius: 6px;
}

.search-jogos input::placeholder {
  color: var(--cinza-texto);
}

.search-jogos .fa-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cinza-texto);
}

/* Lista de jogos */
.lista-jogos {
  margin-top: 8px;
}

.liga-block {
  margin-bottom: 20px;
}

.liga-titulo {
  background: var(--verde-destaque);
  color: var(--verde-escuro);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  padding: 16px 20px;
  border-radius: 6px 6px 0 0;
}

/* Estilos para a tabela de jogos */
.table-responsive-jogos {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.jogos-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cinza-card);
}

.jogos-table thead {
  background: var(--verde-medio);
}

.jogos-table th {
  padding: 10px;
  text-align: left;
  font-size: 1.1rem;
  color: var(--branco);
  text-transform: uppercase;
}

.jogos-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}

.jogo-row-table:hover {
  background: rgba(255,255,255,0.03);
}

.jogo-times-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.time-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--branco);
}

.escudo-mini {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 5px;
  display: inline-block;
  vertical-align: middle;
  background: rgba(0,0,0,0.05); /* Placeholder suave */
  border-radius: 2px;
}

.jogo-data-mini {
  font-size: 1.1rem;
  color: var(--cinza-texto);
}

.text-center {
  text-align: center;
}

/* Ajustes Mobile para a Tabela */
@media (max-width: 768px) {
  .jogos-table th {
    font-size: 0.9rem;
    padding: 8px 5px;
  }

  .jogos-table td {
    padding: 8px 5px;
  }

  .time-item {
    font-size: 1rem;
    gap: 4px;
  }

  .escudo-mini {
    width: 18px;
    height: 18px;
  }

  .jogo-data-mini {
    font-size: 0.85rem;
  }

  .odd-btn {
    min-width: 50px;
    padding: 8px 4px;
    font-size: 0.9rem;
  }

  .odd-mais {
    min-width: 30px;
    padding: 8px 4px;
    font-size: 0.9rem;
  }
}

.odd-btn {
  padding: 12px 18px;
  background: var(--cinza-fundo);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--branco);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.45rem;
  font-weight: 700;
  min-width: 90px;
}

.odd-btn:hover {
  background: var(--verde-medio);
  border-color: var(--verde-destaque);
}

/* Selecionado: azul claro + texto branco (como na referência) */
.odd-btn.selecionada {
  background: #5dade2;
  border-color: #3498db;
  color: #fff;
}

.odd-mais {
  padding: 12px 16px;
  background: var(--azul-odds);
  border: none;
  color: var(--branco);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.45rem;
  font-weight: 700;
}

.odd-mais:hover {
  opacity: 0.9;
}

/* ========== Bilhete (sidebar direita) ========== */
.sidebar-right.bilhete {
  width: 380px;
  min-width: 380px;
  height: calc(100vh - 60px); /* Altura total menos o header */
  position: sticky;
  top: 60px;
  background: linear-gradient(180deg, #f0f4f2 0%, #fff 120px);
  color: #333;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(0,0,0,0.06);
  box-shadow: -4px 0 20px rgba(0,0,0,0.04);
}

.bilhete-header {
  flex-shrink: 0; /* Não encolhe o header */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--verde-escuro) 0%, #0a2a0d 100%);
  color: #fff;
  border-bottom: none;
}

.bilhete-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.bilhete-header h3 i {
  margin-right: 10px;
  opacity: 0.95;
}

.bilhete-limpar {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s;
  font-size: 1.1rem;
}

.bilhete-limpar:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.bilhete-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* Permite scroll no corpo todo se necessário */
  -webkit-overflow-scrolling: touch; /* Melhora rolagem no iOS */
  overscroll-behavior: contain; /* Evita scroll no fundo */
}

.bilhete-body::-webkit-scrollbar {
  width: 4px;
}

.bilhete-body::-webkit-scrollbar-thumb {
  background: var(--verde-principal);
  border-radius: 4px;
}

.bilhete-campos-topo {
  flex-shrink: 0;
}

.bilhete-body .form-group {
  margin-bottom: 20px;
}

.bilhete-body label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #444;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bilhete-body .input-icon {
  position: relative;
}

.bilhete-body .input-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--verde-principal);
  font-size: 1.2rem;
  opacity: 0.8;
}

.bilhete-body .input-icon input {
  padding-left: 44px;
  border: 1px solid #e2e6e4;
  border-radius: 10px;
  width: 100%;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 1.25rem;
  background: #fff;
  color: #165824; /* Green for input value */
  font-weight: 700;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bilhete-body .input-icon input:focus {
  outline: none;
  border-color: var(--verde-principal);
  box-shadow: 0 0 0 3px rgba(35, 167, 61, 0.15);
}

.bilhete-quick-values {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.quick-val {
  padding: 12px 18px;
  border: none;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s, filter 0.2s;
}

.quick-val:hover {
  filter: brightness(90%);
  color: #fff;
  transform: translateY(-1px);
}

.bilhete-totais {
  flex-shrink: 0;
  margin-bottom: 22px;
  padding: 18px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecea;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.bilhete-totais .total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.bilhete-totais .total-row:last-child {
  margin-bottom: 0;
}

.bilhete-totais .total-row .label {
  color: #666;
  font-size: 1.1rem;
}

.bilhete-totais .total-row .value {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--azul-odds);
}

.bilhete-totais .total-row.destaque .value {
  color: var(--verde-principal);
  font-size: 1.6rem;
}

.btn-apostar {
  flex-shrink: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(180deg, var(--verde-principal) 0%, #1e8f34 100%);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(35, 167, 61, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-apostar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(35, 167, 61, 0.4);
  color: #fff;
}

.btn-apostar:disabled {
  opacity: 0.7;
  transform: none;
  cursor: not-allowed;
}

/* Separador entre Apostar e a lista de apostas (evita confusão com o card) */
.bilhete-separador {
  flex-shrink: 0;
  height: 0;
  border: none;
  border-top: 3px dotted #a0a8a4;
  margin: 22px 0 12px 0;
}

.bilhete-listagem-titulo {
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px 0;
}

.bilhete-itens {
  flex: 0 0 auto;
  min-height: 200px; /* Garante que a lista tenha um espaço mínimo visível */
  overflow-y: visible;
  padding: 0;
  margin-top: 20px;
}

.bilhete-itens::-webkit-scrollbar {
  width: 8px;
}

.bilhete-itens::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.bilhete-itens::-webkit-scrollbar-thumb {
  background: #c0c8c4;
  border-radius: 4px;
}

.bilhete-item {
  margin-bottom: 0;
  border-radius: 0;
  overflow: hidden;
  font-size: 1.1rem;
  color: #333;
  background: #e8ecea !important;
  border-top: 2px dotted #b0b8b4;
  border-bottom: 2px dotted #b0b8b4;
  border-left: none;
  border-right: none;
  box-shadow: none;
}

.bilhete-item:first-child {
  border-top: none;
}

.bilhete-item + .bilhete-item {
  margin-top: 0;
}

/* Barra azul clara (cyan) - cabeçalho do card */
.bilhete-item-header-azul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #5dade2;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

.bilhete-item-liga {
  flex: 1;
}

.bilhete-item-remover {
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.2s;
}

.bilhete-item-remover:hover {
  background: rgba(255,255,255,0.35);
  color: #fff;
}

/* Corpo do card: fundo cinza claro bem visível */
.bilhete-item-corpo {
  padding: 12px 16px 14px 16px;
  background: #e8ecea !important;
  font-size: 1.1rem;
  color: #333;
}

.bilhete-item-jogo {
  font-weight: 700;
  margin-bottom: 4px;
  color: #222;
  font-size: 1.15rem;
}

/* Data/hora em vermelho (bem visível como na referência) */
.bilhete-item-data {
  font-size: 1rem;
  color: #c0392b;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Nome do mercado em negrito, linha própria */
.bilhete-item-mercado-nome {
  font-weight: 700;
  color: #222;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

/* Linha: Palpite (verde) à esquerda + Odd (preto) à direita, bem separados */
.bilhete-item-palpite-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.bilhete-item-palpite {
  font-weight: 700;
  color: #23a73d !important;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.bilhete-item-odd {
  font-weight: 800;
  color: #222;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.bilhete-vazio {
  font-size: 1.1rem;
  margin: 0 0 18px 0;
  padding: 18px 16px;
  background: #f5f8f6;
  border-radius: 10px;
  border: 1px dashed #d0d8d4;
  color: #6b7c72;
  text-align: center;
  line-height: 1.4;
}

/* ========== Modal Mais cotações (mercados do jogo) ========== */
.modal-mais-cotacoes .modal-content {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.modal-mais-cotacoes-header {
  background: #2d2d2d;
  color: #fff;
  border-bottom: none;
  padding: 12px 16px;
  display: flex;
  align-items: center;
}

.modal-mais-cotacoes-header .modal-title {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.modal-mais-cotacoes-header .modal-menu-btn {
  background: none;
  border: none;
  color: #fff;
  padding: 6px 10px;
  margin-right: 8px;
  cursor: pointer;
}

.modal-mais-cotacoes-header .close {
  color: #fff;
  opacity: 1;
  text-shadow: none;
  margin: 0;
  padding: 4px 8px;
}

.modal-mais-cotacoes-match {
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 200"><rect fill="%231a2a1a" width="800" height="200"/><ellipse fill="%23223a22" cx="400" cy="100" rx="200" ry="60"/></svg>') center/cover;
  padding: 24px 16px;
  text-align: center;
  color: #fff;
}

.modal-match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.modal-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
}

.modal-team-escudo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.modal-match-vs {
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0.9;
}

.modal-match-datetime {
  font-size: 0.9rem;
  opacity: 0.95;
}

.modal-match-datetime i {
  margin-right: 4px;
}

.modal-mais-cotacoes-body {
  padding: 0;
  max-height: 50vh;
  overflow-y: auto;
  background: #fff;
  color: #333;
}

.modal-market-group {
  border-bottom: 1px solid #e8e8e8;
}

.modal-market-header {
  background: var(--verde-principal);
  color: #fff;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
}

.modal-market-header:hover {
  background: var(--verde-medio);
}

.modal-market-header .fa-chevron-down {
  transition: transform 0.2s;
}

.modal-market-header.collapsed .fa-chevron-down {
  transform: rotate(-90deg);
}

.modal-market-body {
  padding: 0;
}

.modal-market-odds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
}

.modal-odd-btn {
  display: inline-flex;
  align-items: center;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s;
}

.modal-odd-btn:hover {
  background: #e8e8e8;
  border-color: var(--verde-principal);
}

.modal-odd-btn.selected {
  background: #e8f5e9;
  border-color: var(--verde-principal);
  color: #165824;
}

.modal-odd-label {
  color: #555;
  margin-right: 8px;
}

.modal-odd-value {
  background: #2d2d2d;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  min-width: 44px;
  text-align: center;
}

/* Sidebar responsiva */
@media (max-width: 992px) {
  .sidebar-left {
    position: fixed;
    left: -300px;
    top: 60px;
    bottom: 0;
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .sidebar-left::-webkit-scrollbar {
    width: 4px;
  }

  .sidebar-left::-webkit-scrollbar-thumb {
    background: var(--verde-principal);
    border-radius: 4px;
  }

  .sidebar-left.aberto {
    left: 0;
  }

  .sidebar-right.bilhete {
    width: 320px;
    min-width: 320px;
  }
}

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }

  .btn-menu-acoes-mobile {
    background: var(--verde-claro);
    border: none;
    color: var(--branco);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .btn-menu-acoes-mobile-text {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .menu-acoes-mobile-content {
      background: #2d2d2d;
      border: none;
      box-shadow: none;
      border-radius: 0;
      margin-top: 0;
      min-width: none;
      position: fixed !important;
      top: 60px !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      width: 100vw !important;
      height: calc(100vh - 60px) !important;
      overflow-y: auto !important;
      overscroll-behavior: contain;
      z-index: 1002;
      padding: 20px 0;
    }

    .menu-acoes-mobile-content::-webkit-scrollbar {
      width: 4px;
    }

    .menu-acoes-mobile-content::-webkit-scrollbar-thumb {
      background: var(--verde-principal);
      border-radius: 4px;
    }

    .menu-acoes-mobile-content li {
      width: 100%;
    }

    .menu-acoes-mobile-content li a {
      color: #fff;
      padding: 15px 25px;
      display: flex;
      align-items: center;
      gap: 15px;
      font-weight: 600;
      text-decoration: none;
      font-size: 1.2rem;
      border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .menu-acoes-mobile-content li a:hover {
      background: var(--verde-medio);
    }

    .menu-acoes-mobile-content .divider {
      background-color: rgba(255,255,255,0.1);
      height: 1px;
      margin: 10px 0;
    }

    body.menu-mobile-open {
      overflow: hidden !important;
      height: 100vh;
      position: fixed;
      width: 100%;
    }

    .btn-bilhete-mobile {
      display: flex;
      align-items: center;
      justify-content: center;
    }

  .logo-text {
    font-size: 1.35rem;
  }

  .btn-entrar {
    padding: 8px 16px;
    font-size: 1rem;
  }

  .sidebar-right.bilhete {
    position: fixed;
    right: -320px;
    width: 320px;
    min-width: 320px;
    top: 60px;
    bottom: 0;
    height: calc(100vh - 60px); /* Garante altura total no mobile */
    z-index: 1001;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
  }

  .sidebar-right.bilhete.aberto {
    right: 0;
  }

  /* Aumentar fontes no mobile */
  .liga-titulo {
    font-size: 1.65rem;
    padding: 16px 20px;
  }

  .jogo-times .time {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block; /* Garante que o ellipsis funcione */
    max-width: 80px;
  }

  .jogo-times .time img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
  }

  .jogo-times .vs {
    font-size: 0.8rem;
  }

  .jogo-data {
    font-size: 0.85rem;
  }

  .odd-btn {
    padding: 8px 4px;
    font-size: 0.95rem;
    min-width: 55px;
    width: auto;
    border-radius: 4px;
    text-align: center;
  }

  .odd-mais {
    padding: 8px 4px;
    font-size: 0.95rem;
    width: auto;
    min-width: 35px;
    border-radius: 4px;
  }

  /* Ajuste Banner Mobile */
  .banner-carousel {
    height: auto;
    min-height: auto;
  }

  .banner-text {
    padding: 20px 30px;
  }

  .banner-text h2 {
    font-size: 1.6rem;
  }

  .banner-text p {
    font-size: 1.2rem;
  }

  .banner-text .hashtag {
    font-size: 1rem;
  }

  .jogo-row {
    flex-direction: row;
    align-items: center;
    padding: 10px 8px;
    gap: 8px;
    overflow: hidden; /* Evita que o row individual role, queremos a grid fixa ou o container rolando */
    display: flex;
    justify-content: space-between;
  }

  .jogo-info-col {
    min-width: 0; /* Permite encolher */
    flex: 1;
    gap: 2px;
    overflow: hidden;
  }

  .jogo-times {
    gap: 4px;
    flex-wrap: nowrap;
  }

  .jogo-odds {
    display: flex;
    flex-direction: row;
    gap: 3px;
    flex-shrink: 0;
  }

  .bilhete-header h3 {
    font-size: 1.2rem;
  }

  .btn-apostar {
    padding: 18px;
    font-size: 1.2rem;
  }

  .bilhete-body label {
    font-size: 0.9rem;
  }

  .bilhete-body .input-icon input {
    font-size: 1.1rem;
    padding: 12px 12px 12px 42px;
  }

  .bilhete-totais .total-row .label {
    font-size: 1rem;
  }

  .bilhete-totais .total-row .value {
    font-size: 1.2rem;
  }

  .bilhete-totais .total-row.destaque .value {
    font-size: 1.5rem;
  }
}
