/* =========================
   Variáveis e base
========================= */
:root {
  --bg-dark: #0f172a;
  --bg-medium: #1e293b;
  --bg-light: #334155;
  --border-color: #475569;
  --primary-green: #22c55e;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --font-family: 'Inter', sans-serif;
}

/* Fonte */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-family);
  background: var(--bg-dark);
  color: var(--text-primary);
}

a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }

/* =========================
   Header
========================= */
.header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem; background: var(--bg-medium);
  border-bottom: 1px solid var(--border-color);
}
.logo { font-size: 1.5rem; font-weight: 700; }
.logo a { color: inherit; text-decoration: none; }

.main-nav a {
  color: var(--text-secondary); text-decoration: none;
  margin: 0 1rem; font-weight: 500; padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--text-primary); }
.main-nav a.active { color: var(--text-primary); border-color: var(--primary-green); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.language-selector { color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; gap: 6px; }

.btn {
  border: none; padding: 0.6rem 1.2rem; border-radius: 6px; font-weight: 600; cursor: pointer;
}
.btn-primary { background: var(--primary-green); color: var(--bg-dark); }
.btn-secondary { background: var(--bg-light); color: var(--text-primary); }

/* Profile dropdown */
.profile-dropdown { position: relative; }
.profile-toggle {
  background: transparent; border: 1px solid var(--border-color); border-radius: 6px;
  color: var(--text-primary); cursor: pointer; display: flex; align-items: center; gap: 0.8rem;
  padding: 0.5rem 1rem;
}
.profile-toggle:hover { background: var(--bg-light); }
.profile-toggle .fa-user { font-size: 1.2rem; }
.balance { font-weight: 600; }

.dropdown-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--bg-light); border-radius: 8px; width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); padding: 0.5rem; z-index: 1000;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header {
  padding: 0.8rem 1rem; font-weight: 700; color: var(--text-primary);
  border-bottom: 1px solid var(--border-color); margin-bottom: 0.5rem;
}
.dropdown-item {
  display: flex; align-items: center; gap: 0.8rem;
  color: var(--text-secondary); text-decoration: none;
  padding: 0.8rem 1rem; border-radius: 6px;
}
.dropdown-item:hover { background: var(--bg-medium); color: var(--text-primary); }

/* =========================
   Layout
========================= */
.main-container {
  display: grid; grid-template-columns: 240px 1fr 320px;
  gap: 1.5rem; padding: 1.5rem; align-items: flex-start;
}
.sidebar {
  background: var(--bg-medium); border-radius: 8px; padding: 1rem;
}

/* Sidebar esquerda (include) */
.left-sidebar { position: relative; z-index: 2; }
.sidebar-nav { display: flex; flex-direction: column; }
.sidebar-nav a {
  color: var(--text-secondary); padding: 0.8rem 1rem;
  border-radius: 8px; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.8rem;
  position: relative; z-index: 1; pointer-events: auto;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--bg-light); color: var(--text-primary); }

.popular-section h3 {
  color: var(--text-secondary); text-transform: uppercase; font-size: 0.8rem;
  padding: 1rem 1rem 0.5rem; letter-spacing: 1px;
}
.sports-navigation a { margin-bottom: 0.25rem; }

/* =========================
   Conteúdo principal
========================= */
.main-content h2 {
  margin-top: 1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}

/* Hero banners (carrossel) — escopo na coluna central */
.main-content .hero-banners {
  width: 100%; height: 180px; max-height: 220px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; position: relative; overflow: hidden; margin-bottom: 16px;
}
.main-content .hero-track { height: 100%; will-change: transform; }
.main-content .hero-slide { display: block; height: 100%; background-size: cover; background-position: center; }
.main-content .hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.35); color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: .15s ease; z-index: 3;
}
.main-content .hero-nav:hover { background: rgba(0,0,0,0.5); }
.main-content .hero-nav.prev { left: 10px; }
.main-content .hero-nav.next { right: 10px; }
.main-content .hero-dots {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.main-content .hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7); background: rgba(255,255,255,0.3);
  cursor: pointer;
}
.main-content .hero-dot.active { background: #fff; }
@media (max-width: 900px) { .main-content .hero-banners { height: 160px; } }
@media (max-width: 600px) { .main-content .hero-banners { height: 130px; } }

/* Guard rail: nunca renderizar banners na direita */
.right-sidebar .hero-banners { display: none !important; }

/* Busca */
.search-form { display: flex; margin-bottom: 1.5rem; position: relative; }
.search-form input {
  flex-grow: 1; border: 1px solid var(--border-color); background: var(--bg-medium);
  padding: 0.8rem 1rem; border-radius: 6px 0 0 6px; color: var(--text-primary); font-size: 1rem;
}
.search-form button {
  border: 1px solid var(--border-color); background: var(--bg-light); color: var(--text-primary);
  padding: 0 1.2rem; border-radius: 0 6px 6px 0; cursor: pointer; border-left: none;
}
.search-form button:hover { background: var(--primary-green); color: var(--bg-dark); }
.clear-search-btn {
  position: absolute; right: 50px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-secondary);
  font-size: 1.2rem; cursor: pointer; padding: 0 0.5rem;
}
.clear-search-btn:hover { color: var(--text-primary); }

/* Cartas de jogo */
.match-card {
  background: var(--bg-medium); border-radius: 8px; padding: 1rem; margin-bottom: 1rem;
}
.match-header {
  display: flex; justify-content: space-between; font-size: 0.85rem;
  color: var(--text-secondary); margin-bottom: 1rem;
}
.match-body {
  display: grid; grid-template-columns: 1fr auto 1fr 2fr; align-items: center; gap: 1rem;
}
.team { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }

/* Odds */
.odds { display: flex; justify-content: flex-end; gap: 0.5rem; }
.odd-btn {
  background: var(--bg-light); color: var(--text-primary);
  border: 1px solid var(--border-color); border-radius: 6px; padding: 0.8rem;
  cursor: pointer; flex-grow: 1; text-align: center; transition: 0.15s ease;
}
.odd-btn:hover { border-color: var(--primary-green); }
.odd-btn span { font-weight: 700; margin-left: 0.5rem; }
.odd-btn.active { outline: 2px solid #18cfc0; background: rgba(24,207,192,0.12); }

/* Live indicator */
.live-indicator { color: #f87171; font-weight: 700; animation: blink 1.5s linear infinite; }
@keyframes blink { 50% { opacity: 0.5; } }

/* =========================
   Betslip (direita)
========================= */
.betslip {
  background: #13202d; border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 12px;
}

/* Header + abas */
.betslip .betslip-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.betslip .betslip-tabs { display: flex; gap: 10px; }
.betslip .betslip-tab {
  background: transparent; border: none; color: #aeb6c1; cursor: pointer;
  padding: 6px 10px; border-bottom: 2px solid transparent; font-weight: 600;
}
.betslip .betslip-tab.active { color: #18cfc0; border-color: #18cfc0; }

/* Modes */
.betslip .betslip-modes { display: flex; gap: 8px; margin-bottom: 10px; background: var(--bg-dark); border-radius: 6px; padding: 4px; }
.betslip .mode-btn {
  flex: 1; background: rgba(255,255,255,0.06); color: #cfd6df; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 6px 10px; cursor: pointer; transition: .15s;
}
.betslip .mode-btn.active { background: rgba(24,207,192,0.14); border-color: #18cfc0; color: #18cfc0; }

/* Lista de itens */
.betslip #bet-items-container { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.betslip .empty-betslip { color: #93a0b0; font-size: 0.92rem; text-align: center; padding: 1rem 0; font-style: italic; }

/* Item */
.betslip .bet-item {
  position: relative; background: #1a2a3a; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 12px 12px 14px;
}
.betslip .bet-line {
  display: grid; grid-template-columns: 1fr auto; grid-column-gap: 12px; align-items: start;
  padding-right: 38px; /* espaço pro botão X sem cobrir a odd */
}
.betslip .bet-info { min-width: 0; }
.betslip .bet-match {
  color: #e8edf5; font-weight: 600; line-height: 1.25; margin-bottom: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.betslip .bet-type { color: #aeb6c1; font-size: 0.92rem; line-height: 1.2; }
.betslip .bet-odd { color: #e8edf5; font-weight: 800; font-size: 1.2rem; min-width: 56px; text-align: right; }

/* Remover item (X) */
.betslip .bet-remove {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
  color: #cfd6df; cursor: pointer; transition: .15s; font-size: 0;
}
.betslip .bet-remove::before { content: "×"; font-size: 14px; line-height: 1; }
.betslip .bet-remove:hover { background: rgba(225,64,64,0.12); border-color: rgba(225,64,64,0.35); color: #ff6b6b; }

/* Stake por linha (Single) */
.betslip .bet-stake-row { margin-top: 10px; position: relative; }
.betslip .bet-stake-row::before {
  content: "Stake  $"; display: flex; align-items: center; gap: 6px;
  color: #93a0b0; font-size: 0.8rem; margin-bottom: 6px;
}
/* remove $ interno sobreposto (se havia) */
.betslip .bet-stake-row::after { content: none !important; }

.betslip .bet-stake {
  width: 100%; height: 40px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.06);
  color: #e8edf5; outline: none; font-size: 0.95rem;
}
.betslip .bet-stake::placeholder { color: #93a0b0; }
.betslip .bet-stake:focus { border-color: #18cfc0; box-shadow: 0 0 0 2px rgba(24,207,192,0.15); }

/* Stake global (Multiple) */
.betslip .bet-amount .input-group { margin-bottom: 10px; }
.betslip .bet-amount .input-group input#bet-value {
  height: 44px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.06);
  color: #e8edf5; outline: none;
}
.betslip .bet-amount .input-group input#bet-value::placeholder { color: #93a0b0; }
.betslip .bet-amount .input-group input#bet-value:focus { border-color: #18cfc0; box-shadow: 0 0 0 2px rgba(24,207,192,0.15); }

/* Quick bets */
.betslip .quick-bets { display: flex; gap: 8px; }
.betslip .quick-bets button {
  flex: 1; height: 36px; background: rgba(255,255,255,0.06); color: #cfd6df;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; font-weight: 600; cursor: pointer; transition: .15s;
}
.betslip .quick-bets button:hover { border-color: rgba(24,207,192,0.5); color: #18cfc0; }

/* Total odds / Possible win */
.total-odds, .betslip .possible-win {
  display: flex; align-items: center; justify-content: space-between; margin: 12px 0;
}
.total-odds span:first-child, .betslip .possible-win span:first-child { color: #aeb6c1; }
#total-odds-value { color: #e8edf5; font-weight: 700; }
#possible-win-value { color: #2ecc71; font-weight: 800; }

/* Botões de ação */
.betslip .btn.btn-place-bet, .betslip .btn.btn-book {
  width: 100%; border-radius: 10px; padding: 12px; margin-bottom: 8px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.08); font-weight: 700;
}
.betslip .btn.btn-place-bet { background: #e8edf5; color: #0b0f14; }
.betslip .btn.btn-place-bet:hover { background: #f3f6fb; }
.betslip .btn.btn-book { background: rgba(255,255,255,0.06); color: #cfd6df; }
.betslip .btn.btn-book:hover { color: #18cfc0; border-color: rgba(24,207,192,0.35); }

/* Footer com links bonitos */
.betslip-footer {
  display: flex; gap: 10px; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-color);
}
.betslip-footer .footer-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 10px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.06);
  color: #cfd6df; font-weight: 600; transition: 0.15s ease;
}
.betslip-footer .footer-link:hover { color: var(--text-primary); border-color: rgba(24,207,192,0.35); }
.betslip-footer .footer-link.primary {
  background: var(--primary-green); border-color: var(--primary-green);
  color: var(--bg-dark); font-weight: 700;
}
.betslip-footer .footer-link.primary:hover { filter: brightness(1.05); }
.betslip-footer .footer-link i { color: currentColor; }

/* Abas do betslip */
.betslip-panel { display: none; }
.betslip-panel.active { display: block; }

/* Botão fechar betslip mobile */
.betslip-close {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  padding: 0 10px;
  transition: color 0.2s;
}

.betslip-close:hover {
  color: var(--text-primary);
}

/* =========================
   Utilidades
========================= */
.odd-flash { animation: flash 1s ease-out; }
@keyframes flash { 0% { background: var(--primary-green); } 100% { background: var(--bg-light); } }

/* Switch */
.switch { position: relative; display: inline-block; width: 34px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: var(--bg-light); transition: .4s; border-radius: 20px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background: var(--primary-green); }
input:checked + .slider:before { transform: translateX(14px); }

/* Remover spinners do input number */
.betslip .bet-stake,
.betslip .bet-amount .input-group input#bet-value {
  -moz-appearance: textfield;
}
.betslip .bet-stake::-webkit-outer-spin-button,
.betslip .bet-stake::-webkit-inner-spin-button,
.betslip .bet-amount .input-group input#bet-value::-webkit-outer-spin-button,
.betslip .bet-amount .input-group input#bet-value::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}

/* Sports filter (chips bonitos) */
.sports-filter {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 16px;
}

.sports-filter .filter-btn,
.sports-filter button.filter-btn,
.sports-filter a.filter-btn {
appearance: none;
-webkit-appearance: none;
background: var(--bg-medium);
color: var(--text-secondary);
border: 1px solid var(--border-color);
border-radius: 9999px; /* pílula */
padding: 8px 14px;
line-height: 1;
font-weight: 600;
font-size: 0.92rem;
display: inline-flex;
align-items: center;
gap: 8px;
cursor: pointer;
transition: 0.15s ease;
}

.sports-filter .filter-btn i {
font-size: 0.95rem;
color: currentColor; /* ícone herda a cor do texto */
}

.sports-filter .filter-btn:hover {
border-color: rgba(24,207,192,0.5);
color: var(--text-primary);
}

.sports-filter .filter-btn.active {
background: var(--primary-green);
border-color: var(--primary-green);
color: var(--bg-dark);
}

.sports-filter .filter-btn:focus-visible {
outline: 2px solid var(--primary-green);
outline-offset: 2px;
}

.sports-filter .filter-btn[disabled],
.sports-filter .filter-btn.disabled {
opacity: .6;
cursor: not-allowed;
}

/* ===== Top Leagues (sidebar extra) ===== */
.sidebar.top-leagues {
  margin-top: 12px;
  background: var(--bg-medium);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

.top-leagues-header h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.top-leagues-header h3 i { color: var(--primary-green); }

.top-leagues-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.league-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text-secondary);
  transition: .15s ease;
}
.league-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.1);
}
.league-item.active {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(34,197,94,0.15) inset;
  color: var(--text-primary);
}

.league-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.league-left i { color: currentColor; }
.league-name { font-weight: 600; }

.league-right { display: inline-flex; align-items: center; gap: 6px; }

.league-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.72rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
}
.league-badge.live {
  background: rgba(239, 68, 68, 0.15);  /* vermelho 500 com opacidade */
  border-color: rgba(239, 68, 68, 0.35);
  color: #ff9f9f;
  font-weight: 700;
}



/* ===== Próximos 3 Jogos ===== */
.next3 { 
  background: var(--bg-medium);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
}
.next3-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.95rem; margin-bottom: 10px; color: var(--text-primary);
}
.next3-title i { color: var(--primary-green); }

.next3-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.next3-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 10px;
}
.next3-top { display: flex; justify-content: space-between; color: var(--text-secondary); font-size: 0.82rem; margin-bottom: 6px; }
.next3-teams { color: var(--text-primary); font-weight: 600; margin-bottom: 6px; }
.next3-vs { color: var(--text-secondary); font-weight: 500; }
.next3-odds { display: flex; gap: 6px; }
.next3-odds .odd-btn { 
  background: var(--bg-light); color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px; padding: 6px 8px;
  font-size: 0.85rem; cursor: pointer; transition: .15s ease;
}
.next3-odds .odd-btn:hover { border-color: rgba(24,207,192,0.5); }
.next3-empty { color: var(--text-secondary); font-size: 0.85rem; }

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 2px 8px;
  background: #ffecb3;
  color: #b36b00;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.featured-badge .fa-star { color: #f3b000; }

.top-leagues .league-item .league-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.league-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
  background: rgba(255,255,255,0.05);
}

/* Header básico */
.header {
  position: relative;
  z-index: 10;
  /* se tiver overflow:hidden, ele corta o dropdown; deixe visível: */
  overflow: visible;
}

/* Container do perfil precisa ser o posicionamento de referência */
.header .profile-dropdown {
  position: relative;
}

/* Menu: começa oculto */
.header .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #2a2f45;
  border: 1px solid #3a4263;
  border-radius: 10px;
  padding: 10px 0;
  display: none;              /* oculto por padrão */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease;
  z-index: 9999;              /* acima de banners etc */
}

/* Estado visível */
.header .dropdown-menu.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Exemplo de itens (ajuste se já tiver) */
.header .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #dbe2ff;
  text-decoration: none;
}
.header .dropdown-item:hover {
  background: rgba(255,255,255,0.06);
}

/* Estilos para Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.pagination a {
    color: #cdd3ee;
    background: #1a2040;
    border: 1px solid #2c3356;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background-color 0.2s;
}
.pagination a:hover {
    background: #232a52;
    border-color: #3b82f6;
}
.pagination a.active {
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
    border-color: #3b82f6;
}

/* Destaque para o Casino na sidebar */
.sidebar-nav a[href*="casino"] {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 3px solid #667eea;
}

.sidebar-nav a[href*="casino"]:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-left-color: #764ba2;
}

.sidebar-nav a[href*="casino"] i {
    color: #667eea;
    animation: diceRoll 2s ease-in-out infinite;
}

@keyframes diceRoll {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* =========================
   RESPONSIVO MOBILE
========================= */

/* Mobile: 768px e abaixo */
@media (max-width: 768px) {
    /* Layout geral */
    .main-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    /* Esconde sidebar esquerda em mobile */
    .left-col {
        display: none;
    }
    
    /* Betslip vai para baixo */
    .right-col {
        order: 3;
    }
    
    .main-content {
        order: 2;
    }
    
    /* Header mobile */
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .main-nav {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
    }
    
    .main-nav a {
        margin: 0 0.5rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Hero banners mobile */
    .main-content .hero-banners {
        height: 150px;
    }
    
    /* Match cards mobile */
    .match-body {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .team {
        justify-content: flex-start;
    }
    
    .match-vs {
        text-align: center;
        padding: 0.5rem 0;
    }
    
    .odds {
        width: 100%;
    }
    
    /* Sports filter mobile */
    .sports-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .sports-filter .filter-btn {
        flex-shrink: 0;
    }
    
/* =========================
   BETSLIP MOBILE - FIXO NA PARTE INFERIOR
========================= */

/* Esconde o balão flutuante (não vamos usar) */
.mobile-betslip-trigger {
    display: none !important;
}

/* Esconde o botão X no desktop */
.betslip-close {
    display: none;
}

/* =========================
   DESKTOP - Mantém comportamento normal
========================= */
@media (min-width: 993px) {
    .sidebar.right-sidebar {
        position: relative;
        /* Comportamento normal do grid */
    }
}

/* =========================
   RESPONSIVO MOBILE - BETSLIP INFERIOR
========================= */

@media (max-width: 992px) {
    
    /* Remove a coluna direita do grid em mobile */
    .main-container {
        grid-template-columns: 1fr !important;
        padding: 1rem;
        padding-bottom: 420px; /* Espaço para o betslip fixo */
        gap: 1rem;
    }
    
    /* Esconde sidebar esquerda no mobile */
    .left-col {
        display: none;
    }
    
    /* Betslip fixo na parte inferior - CORRIGIDO */
    .sidebar.right-sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important; /* Remove qualquer top */
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 50vh !important; /* 50% da altura da tela */
        min-height: 300px;
        z-index: 999 !important;
        background: #13202d !important;
        border-top: 2px solid rgba(24, 207, 192, 0.3);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        margin: 0 !important;
        padding: 0 !important;
        transform: translateY(0) !important; /* Garante que não está deslocado */
    }
    
    /* Ajusta o betslip interno */
    .betslip {
        padding: 14px !important;
        height: 100%;
        display: flex;
        flex-direction: column;
        background: transparent;
    }
    
    /* Header do betslip */
    .betslip-header {
        margin-bottom: 10px;
        flex-shrink: 0;
    }
    
    /* Tabs menores */
    .betslip-tab {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    /* Modos mais compactos */
    .betslip-modes {
        margin-bottom: 10px;
        flex-shrink: 0;
    }
    
    .mode-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    /* Container de itens com scroll */
    #bet-items-container {
        flex: 1;
        max-height: 180px;
        overflow-y: auto;
        margin-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mensagem vazia */
    .empty-betslip {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
    
    /* Itens de aposta menores */
    .bet-item {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .bet-match {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .bet-type {
        font-size: 0.82rem;
    }
    
    .bet-odd {
        font-size: 1.1rem;
    }
    
    /* Stake row */
    .bet-stake-row {
        margin-top: 8px;
    }
    
    /* Inputs menores */
    .bet-stake,
    #bet-value {
        height: 40px;
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    /* Bet amount section */
    .bet-amount {
        flex-shrink: 0;
    }
    
    .bet-amount .input-group {
        margin-bottom: 8px;
    }
    
    /* Quick bets compactos */
    .quick-bets {
        gap: 6px;
    }
    
    .quick-bets button {
        height: 34px;
        font-size: 0.85rem;
    }
    
    /* Total odds e possible win */
    .total-odds,
    .possible-win {
        margin: 10px 0;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    /* Botões de ação menores */
    .btn-place-bet,
    .btn-book {
        padding: 11px;
        font-size: 0.95rem;
        margin-bottom: 8px;
        flex-shrink: 0;
    }
    
    /* Footer compacto */
    .betslip-footer {
        margin-top: 10px;
        padding-top: 10px;
        gap: 8px;
        flex-shrink: 0;
    }
    
    .footer-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .footer-link i {
        font-size: 0.9rem;
    }
}

/* Tablets - ajuste intermediário */
@media (min-width: 769px) and (max-width: 992px) {
    .sidebar.right-sidebar {
        max-height: 45vh !important;
    }
    
    #bet-items-container {
        max-height: 200px;
    }
}

/* Mobile pequeno - betslip ainda mais compacto */
@media (max-width: 480px) {
    .main-container {
        padding-bottom: 400px;
    }
    
    .sidebar.right-sidebar {
        max-height: 55vh !important;
        min-height: 280px;
    }
    
    .betslip {
        padding: 12px !important;
    }
    
    #bet-items-container {
        max-height: 140px;
    }
    
    .bet-item {
        padding: 8px;
    }
    
    .betslip-tab {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    .mode-btn {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    
    .bet-stake,
    #bet-value {
        height: 38px;
        font-size: 0.85rem;
    }
    
    .quick-bets button {
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Landscape mobile - betslip menor */
@media (max-height: 600px) and (orientation: landscape) {
    .sidebar.right-sidebar {
        max-height: 65vh !important;
        min-height: 240px;
    }
    
    #bet-items-container {
        max-height: 100px;
    }
    
    .main-container {
        padding-bottom: 280px;
    }
    
    .betslip {
        padding: 10px !important;
    }
}

/* Correção para devices muito pequenos */
@media (max-width: 360px) {
    .sidebar.right-sidebar {
        min-height: 260px;
    }
    
    .betslip {
        padding: 10px !important;
    }
    
    #bet-items-container {
        max-height: 120px;
    }
}

/* =============================================
   BETSLIP MOBILE - MINIMIZAR/MAXIMIZAR
   Cole isso no FINAL do seu styles.css
   ============================================= */

/* Botão toggle (escondido no desktop) */
.betslip-toggle {
    display: none;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s ease;
    align-items: center;
    justify-content: center;
}

.betslip-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.betslip-toggle i {
    transition: transform 0.3s ease;
}

/* =============================================
   MOBILE - SISTEMA DE MINIMIZAR
   ============================================= */
@media (max-width: 992px) {
    /* Mostra o botão toggle no mobile */
    .betslip-toggle {
        display: flex !important;
    }
    
    /* Esconde o switch no mobile (economiza espaço) */
    .betslip-header .switch {
        display: none !important;
    }
    
    /* Betslip fixo no bottom */
    .sidebar.right-sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        z-index: 999 !important;
        background: #13202d !important;
        border-top: 2px solid rgba(24, 207, 192, 0.3);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(0);
    }
    
    /* ===== ESTADO MINIMIZADO - SÓ MOSTRA A PONTINHA ===== */
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 48px)) !important;
    }
    
    /* Roda o ícone 180° quando minimizado */
    .sidebar.right-sidebar.minimized .betslip-toggle i {
        transform: rotate(180deg);
    }
    
    /* Header sempre visível */
    .betslip-header {
        padding: 10px 14px !important;
        background: #13202d;
        border-radius: 16px 16px 0 0;
        position: relative;
        z-index: 2;
        min-height: 48px;
        max-height: 48px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Body que minimiza */
    .betslip-body {
        max-height: calc(50vh - 48px);
        overflow-y: auto;
        overflow-x: hidden;
        transition: opacity 0.3s ease, max-height 0.3s ease;
        background: #13202d;
        -webkit-overflow-scrolling: touch;
        padding: 0 14px 14px 14px;
    }
    
    /* ===== ESCONDE TUDO QUANDO MINIMIZADO ===== */
    .sidebar.right-sidebar.minimized .betslip-body {
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        padding: 0 !important;
    }
    
    /* Ajusta o betslip interno */
    .betslip {
        padding: 0 !important;
        height: 100%;
        display: flex;
        flex-direction: column;
        background: transparent;
    }
    
    /* Tabs menores e mais compactas */
    .betslip-tab {
        font-size: 0.85rem !important;
        padding: 4px 10px !important;
        white-space: nowrap;
    }
    
    /* Toggle button menor */
    .betslip-toggle {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    /* Container de itens com scroll */
    #bet-items-container {
        max-height: 180px;
        overflow-y: auto;
        margin-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ajuste do padding principal no mobile */
    .main-container {
        padding-bottom: 60px !important;
    }
}

/* =============================================
   MOBILE PEQUENO (< 768px)
   ============================================= */
@media (max-width: 768px) {
    .betslip-body {
        max-height: calc(55vh - 44px);
    }
    
    #bet-items-container {
        max-height: 140px;
    }
    
    /* Header ainda mais compacto */
    .betslip-header {
        padding: 8px 12px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }
    
    .betslip-tab {
        font-size: 0.8rem !important;
        padding: 3px 8px !important;
    }
    
    /* Ajusta translateY para mobile pequeno */
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 44px)) !important;
    }
    
    .main-container {
        padding-bottom: 50px !important;
    }
}

/* =============================================
   LANDSCAPE MOBILE
   ============================================= */
@media (max-height: 600px) and (orientation: landscape) {
    .betslip-body {
        max-height: calc(65vh - 40px);
    }
    
    #bet-items-container {
        max-height: 100px;
    }
    
    .betslip-header {
        padding: 6px 12px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }
    
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 40px)) !important;
    }
}

/* =============================================
   DESKTOP - REMOVE TODAS AS CUSTOMIZAÇÕES
   ============================================= */
@media (min-width: 993px) {
    .betslip-toggle {
        display: none !important;
    }
    
    .betslip-header .switch {
        display: inline-flex !important;
    }
    
    .sidebar.right-sidebar {
        position: relative !important;
        transform: none !important;
    }
    
    .sidebar.right-sidebar.minimized {
        transform: none !important;
    }
    
    .betslip-body {
        max-height: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* =============================================
   BETSLIP MOBILE - MINIMIZAR/MAXIMIZAR
   Cole isso no FINAL do seu styles.css
   ============================================= */

/* Botão toggle (escondido no desktop) */
.betslip-toggle {
    display: none;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s ease;
    align-items: center;
    justify-content: center;
}

.betslip-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.betslip-toggle i {
    transition: transform 0.3s ease;
}

/* =============================================
   MOBILE - SISTEMA DE MINIMIZAR
   ============================================= */
@media (max-width: 992px) {
    /* Esconde o Next 3 Games no mobile */
    .right-col #next3-container,
    .right-col .next3 {
        display: none !important;
    }
    
    /* Mostra o botão toggle no mobile */
    .betslip-toggle {
        display: flex !important;
    }
    
    /* Esconde o switch no mobile (economiza espaço) */
    .betslip-header .switch {
        display: none !important;
    }
    
    /* Betslip fixo no bottom */
    .sidebar.right-sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        z-index: 999 !important;
        background: #13202d !important;
        border-top: 2px solid rgba(24, 207, 192, 0.3);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(0);
    }
    
    /* ===== ESTADO MINIMIZADO - SÓ MOSTRA A PONTINHA ===== */
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 48px)) !important;
    }
    
    /* Roda o ícone 180° quando minimizado */
    .sidebar.right-sidebar.minimized .betslip-toggle i {
        transform: rotate(180deg);
    }
    
    /* Header sempre visível */
    .betslip-header {
        padding: 10px 14px !important;
        background: #13202d;
        border-radius: 16px 16px 0 0;
        position: relative;
        z-index: 999;
        min-height: 48px;
        max-height: 48px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Body que minimiza */
    .betslip-body {
        max-height: calc(50vh - 48px);
        overflow-y: auto;
        overflow-x: hidden;
        transition: opacity 0.3s ease, max-height 0.3s ease;
        background: #13202d;
        -webkit-overflow-scrolling: touch;
        padding: 0 14px 14px 14px;
    }
    
    /* ===== ESCONDE TUDO QUANDO MINIMIZADO ===== */
    .sidebar.right-sidebar.minimized .betslip-body {
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        padding: 0 !important;
    }
    
    /* Ajusta o betslip interno */
    .betslip {
        padding: 0 !important;
        height: 100%;
        display: flex;
        flex-direction: column;
        background: transparent;
    }
    
    /* Tabs menores e mais compactas */
    .betslip-tab {
        font-size: 0.85rem !important;
        padding: 4px 10px !important;
        white-space: nowrap;
    }
    
    /* Toggle button menor */
    .betslip-toggle {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    /* Container de itens com scroll */
    #bet-items-container {
        max-height: 180px;
        overflow-y: auto;
        margin-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ajuste do padding principal no mobile */
    .main-container {
        padding-bottom: 60px !important;
    }
}

/* =============================================
   MOBILE PEQUENO (< 768px)
   ============================================= */
@media (max-width: 768px) {
    .betslip-body {
        max-height: calc(55vh - 44px);
    }
    
    #bet-items-container {
        max-height: 140px;
    }
    
    /* Header ainda mais compacto */
    .betslip-header {
        padding: 8px 12px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }
    
    .betslip-tab {
        font-size: 0.8rem !important;
        padding: 3px 8px !important;
    }
    
    /* Ajusta translateY para mobile pequeno */
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 44px)) !important;
    }
    
    .main-container {
        padding-bottom: 50px !important;
    }
}

/* =============================================
   LANDSCAPE MOBILE
   ============================================= */
@media (max-height: 600px) and (orientation: landscape) {
    .betslip-body {
        max-height: calc(65vh - 40px);
    }
    
    #bet-items-container {
        max-height: 100px;
    }
    
    .betslip-header {
        padding: 6px 12px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }
    
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 40px)) !important;
    }
}

/* =============================================
   DESKTOP - REMOVE TODAS AS CUSTOMIZAÇÕES
   ============================================= */
@media (min-width: 993px) {
    .betslip-toggle {
        display: none !important;
    }
    
    .betslip-header .switch {
        display: inline-flex !important;
    }
    
    .sidebar.right-sidebar {
        position: relative !important;
        transform: none !important;
    }
    
    .sidebar.right-sidebar.minimized {
        transform: none !important;
    }
    
    .betslip-body {
        max-height: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* =============================================
   BETSLIP MOBILE - MINIMIZAR/MAXIMIZAR
   Cole isso no FINAL do seu styles.css
   ============================================= */

/* Botão toggle (escondido no desktop) */
.betslip-toggle {
    display: none;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s ease;
    align-items: center;
    justify-content: center;
}

.betslip-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.betslip-toggle i {
    transition: transform 0.3s ease;
}

/* =============================================
   MOBILE - SISTEMA DE MINIMIZAR
   ============================================= */
@media (max-width: 992px) {
    /* Betslip ocupa toda a right-col no mobile */
    .right-col {
        display: flex !important;
        flex-direction: column;
    }
    
    /* Esconde TUDO que não é betslip dentro da right-col */
    .right-col > *:not(.sidebar) {
        display: none !important;
    }
    
    /* O betslip fica visível */
    .right-col .sidebar.right-sidebar {
        display: block !important;
    }
    
    /* Mostra o botão toggle no mobile */
    .betslip-toggle {
        display: flex !important;
    }
    
    /* Esconde o switch no mobile (economiza espaço) */
    .betslip-header .switch {
        display: none !important;
    }
    
    /* Betslip fixo no bottom */
    .sidebar.right-sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        z-index: 100 !important;
        background: #13202d !important;
        border-top: 2px solid rgba(24, 207, 192, 0.3);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(0);
    }
    
    /* ===== ESTADO MINIMIZADO - SÓ MOSTRA A PONTINHA ===== */
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 48px)) !important;
    }
    
    /* Roda o ícone 180° quando minimizado */
    .sidebar.right-sidebar.minimized .betslip-toggle i {
        transform: rotate(180deg);
    }
    
    /* Header sempre visível */
    .betslip-header {
        padding: 10px 14px !important;
        background: #13202d;
        border-radius: 16px 16px 0 0;
        position: relative;
        z-index: 2;
        min-height: 48px;
        max-height: 48px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Body que minimiza */
    .betslip-body {
        max-height: calc(50vh - 48px);
        overflow-y: auto;
        overflow-x: hidden;
        transition: opacity 0.3s ease, max-height 0.3s ease;
        background: #13202d;
        -webkit-overflow-scrolling: touch;
        padding: 0 14px 14px 14px;
    }
    
    /* ===== ESCONDE TUDO QUANDO MINIMIZADO ===== */
    .sidebar.right-sidebar.minimized .betslip-body {
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        padding: 0 !important;
    }
    
    /* Ajusta o betslip interno */
    .betslip {
        padding: 0 !important;
        height: 100%;
        display: flex;
        flex-direction: column;
        background: transparent;
    }
    
    /* Tabs menores e mais compactas */
    .betslip-tab {
        font-size: 0.85rem !important;
        padding: 4px 10px !important;
        white-space: nowrap;
    }
    
    /* Toggle button menor */
    .betslip-toggle {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    /* Container de itens com scroll */
    #bet-items-container {
        max-height: 180px;
        overflow-y: auto;
        margin-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ajuste do padding principal no mobile */
    .main-container {
        padding-bottom: 60px !important;
    }
}

/* =============================================
   MOBILE PEQUENO (< 768px)
   ============================================= */
@media (max-width: 768px) {
    .betslip-body {
        max-height: calc(55vh - 44px);
    }
    
    #bet-items-container {
        max-height: 140px;
    }
    
    /* Header ainda mais compacto */
    .betslip-header {
        padding: 8px 12px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }
    
    .betslip-tab {
        font-size: 0.8rem !important;
        padding: 3px 8px !important;
    }
    
    /* Ajusta translateY para mobile pequeno */
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 44px)) !important;
    }
    
    .main-container {
        padding-bottom: 50px !important;
    }
}

/* =============================================
   LANDSCAPE MOBILE
   ============================================= */
@media (max-height: 600px) and (orientation: landscape) {
    .betslip-body {
        max-height: calc(65vh - 40px);
    }
    
    #bet-items-container {
        max-height: 100px;
    }
    
    .betslip-header {
        padding: 6px 12px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }
    
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 40px)) !important;
    }
}

/* =============================================
   DESKTOP - REMOVE TODAS AS CUSTOMIZAÇÕES
   ============================================= */
@media (min-width: 993px) {
    .betslip-toggle {
        display: none !important;
    }
    
    .betslip-header .switch {
        display: inline-flex !important;
    }
    
    .sidebar.right-sidebar {
        position: relative !important;
        transform: none !important;
    }
    
    .sidebar.right-sidebar.minimized {
        transform: none !important;
    }
    
    .betslip-body {
        max-height: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}


/* =============================================
   BETSLIP MOBILE - MINIMIZAR/MAXIMIZAR
   Cole isso no FINAL do seu styles.css
   ============================================= */

/* Botão toggle (escondido no desktop) */
.betslip-toggle {
    display: none;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s ease;
    align-items: center;
    justify-content: center;
}

.betslip-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.betslip-toggle i {
    transition: transform 0.3s ease;
}

/* =============================================
   MOBILE - SISTEMA DE MINIMIZAR
   ============================================= */
@media (max-width: 992px) {
    /* A right-col fica invisível MAS ocupa espaço zero */
    .main-container > .right-col {
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: none !important;
    }
    
    /* O betslip "escapa" do container e fica fixo */
    .right-col .sidebar.right-sidebar#betslip-sidebar {
        pointer-events: auto !important;
    }
    
    /* Mostra o botão toggle no mobile */
    .betslip-toggle {
        display: flex !important;
    }
    
    /* Esconde o switch no mobile (economiza espaço) */
    .betslip-header .switch {
        display: none !important;
    }
    
    /* Betslip fixo no bottom */
    .sidebar.right-sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        z-index: 100 !important;
        background: #13202d !important;
        border-top: 2px solid rgba(24, 207, 192, 0.3);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(0);
    }
    
    /* ===== ESTADO MINIMIZADO - SÓ MOSTRA A PONTINHA ===== */
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 48px)) !important;
    }
    
    /* Roda o ícone 180° quando minimizado */
    .sidebar.right-sidebar.minimized .betslip-toggle i {
        transform: rotate(180deg);
    }
    
    /* Header sempre visível */
    .betslip-header {
        padding: 10px 14px !important;
        background: #13202d;
        border-radius: 16px 16px 0 0;
        position: relative;
        z-index: 2;
        min-height: 48px;
        max-height: 48px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Body que minimiza */
    .betslip-body {
        max-height: calc(50vh - 48px);
        overflow-y: auto;
        overflow-x: hidden;
        transition: opacity 0.3s ease, max-height 0.3s ease;
        background: #13202d;
        -webkit-overflow-scrolling: touch;
        padding: 0 14px 14px 14px;
    }
    
    /* ===== ESCONDE TUDO QUANDO MINIMIZADO ===== */
    .sidebar.right-sidebar.minimized .betslip-body {
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        padding: 0 !important;
    }
    
    /* Ajusta o betslip interno */
    .betslip {
        padding: 0 !important;
        height: 100%;
        display: flex;
        flex-direction: column;
        background: transparent;
    }
    
    /* Tabs menores e mais compactas */
    .betslip-tab {
        font-size: 0.85rem !important;
        padding: 4px 10px !important;
        white-space: nowrap;
    }
    
    /* Toggle button menor */
    .betslip-toggle {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    /* Container de itens com scroll */
    #bet-items-container {
        max-height: 180px;
        overflow-y: auto;
        margin-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ajuste do padding principal no mobile */
    .main-container {
        padding-bottom: 60px !important;
    }
}

/* =============================================
   MOBILE PEQUENO (< 768px)
   ============================================= */
@media (max-width: 768px) {
    .betslip-body {
        max-height: calc(55vh - 44px);
    }
    
    #bet-items-container {
        max-height: 140px;
    }
    
    /* Header ainda mais compacto */
    .betslip-header {
        padding: 8px 12px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }
    
    .betslip-tab {
        font-size: 0.8rem !important;
        padding: 3px 8px !important;
    }
    
    /* Ajusta translateY para mobile pequeno */
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 44px)) !important;
    }
    
    .main-container {
        padding-bottom: 50px !important;
    }
}

/* =============================================
   LANDSCAPE MOBILE
   ============================================= */
@media (max-height: 600px) and (orientation: landscape) {
    .betslip-body {
        max-height: calc(65vh - 40px);
    }
    
    #bet-items-container {
        max-height: 100px;
    }
    
    .betslip-header {
        padding: 6px 12px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }
    
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 40px)) !important;
    }
}

/* =============================================
   DESKTOP - REMOVE TODAS AS CUSTOMIZAÇÕES
   ============================================= */
@media (min-width: 993px) {
    .betslip-toggle {
        display: none !important;
    }
    
    .betslip-header .switch {
        display: inline-flex !important;
    }
    
    .sidebar.right-sidebar {
        position: relative !important;
        transform: none !important;
    }
    
    .sidebar.right-sidebar.minimized {
        transform: none !important;
    }
    
    .betslip-body {
        max-height: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* =============================================
   BETSLIP MOBILE - MINIMIZAR/MAXIMIZAR
   COLE ISSO NO FINAL DO SEU styles.css
   ============================================= */

/* Botão toggle (escondido no desktop) */
.betslip-toggle {
    display: none;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s ease;
    align-items: center;
    justify-content: center;
}

.betslip-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.betslip-toggle i {
    transition: transform 0.3s ease;
}

/* =============================================
   MOBILE - SISTEMA DE MINIMIZAR
   ============================================= */
@media (max-width: 992px) {
    /* A right-col fica invisível MAS ocupa espaço zero */
    .main-container > .right-col {
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: none !important;
    }
    
    /* O betslip "escapa" do container e fica fixo */
    .right-col .sidebar.right-sidebar#betslip-sidebar {
        pointer-events: auto !important;
    }
    
    /* Mostra o botão toggle no mobile */
    .betslip-toggle {
        display: flex !important;
    }
    
    /* Esconde o switch no mobile (economiza espaço) */
    .betslip-header .switch {
        display: none !important;
    }
    
    /* Betslip fixo no bottom */
    .sidebar.right-sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        z-index: 100 !important;
        background: #13202d !important;
        border-top: 2px solid rgba(24, 207, 192, 0.3);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transform: translateY(0) !important;
    }
    
    /* ===== ESTADO MINIMIZADO - SÓ MOSTRA A PONTINHA ===== */
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 48px)) !important;
    }
    
    /* Roda o ícone 180° quando minimizado */
    .sidebar.right-sidebar.minimized .betslip-toggle i {
        transform: rotate(180deg);
    }
    
    /* Header sempre visível */
    .betslip-header {
        padding: 10px 14px !important;
        background: #13202d;
        border-radius: 16px 16px 0 0;
        position: relative;
        z-index: 2;
        min-height: 48px;
        max-height: 48px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Body que minimiza */
    .betslip-body {
        max-height: calc(50vh - 48px);
        overflow-y: auto;
        overflow-x: hidden;
        transition: opacity 0.3s ease, max-height 0.3s ease;
        background: #13202d;
        -webkit-overflow-scrolling: touch;
        padding: 0 14px 14px 14px;
    }
    
    /* ===== ESCONDE TUDO QUANDO MINIMIZADO ===== */
    .sidebar.right-sidebar.minimized .betslip-body {
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        padding: 0 !important;
    }
    
    /* Ajusta o betslip interno */
    .betslip {
        padding: 0 !important;
        height: 100%;
        display: flex;
        flex-direction: column;
        background: transparent;
    }
    
    /* Tabs menores e mais compactas */
    .betslip-tab {
        font-size: 0.85rem !important;
        padding: 4px 10px !important;
        white-space: nowrap;
    }
    
    /* Toggle button menor */
    .betslip-toggle {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    /* Container de itens com scroll */
    #bet-items-container {
        max-height: 180px;
        overflow-y: auto;
        margin-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ajuste do padding principal no mobile */
    .main-container {
        padding-bottom: 60px !important;
    }
}

/* =============================================
   MOBILE PEQUENO (< 768px)
   ============================================= */
@media (max-width: 768px) {
    .betslip-body {
        max-height: calc(55vh - 44px);
    }
    
    #bet-items-container {
        max-height: 140px;
    }
    
    /* Header ainda mais compacto */
    .betslip-header {
        padding: 8px 12px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }
    
    .betslip-tab {
        font-size: 0.8rem !important;
        padding: 3px 8px !important;
    }
    
    /* Ajusta translateY para mobile pequeno */
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 44px)) !important;
    }
    
    .main-container {
        padding-bottom: 50px !important;
    }
}

/* =============================================
   LANDSCAPE MOBILE
   ============================================= */
@media (max-height: 600px) and (orientation: landscape) {
    .betslip-body {
        max-height: calc(65vh - 40px);
    }
    
    #bet-items-container {
        max-height: 100px;
    }
    
    .betslip-header {
        padding: 6px 12px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }
    
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 40px)) !important;
    }
}

/* =============================================
   DESKTOP - REMOVE TODAS AS CUSTOMIZAÇÕES
   ============================================= */
@media (min-width: 993px) {
    .betslip-toggle {
        display: none !important;
    }
    
    .betslip-header .switch {
        display: inline-flex !important;
    }
    
    .sidebar.right-sidebar {
        position: relative !important;
        transform: none !important;
    }
    
    .sidebar.right-sidebar.minimized {
        transform: none !important;
    }
    
    .betslip-body {
        max-height: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .main-container > .right-col {
        position: relative !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }
}



/* =============================================
   BETSLIP MOBILE - MINIMIZAR/MAXIMIZAR
   COLE ISSO NO FINAL DO SEU styles.css
   ============================================= */

/* Botão toggle (escondido no desktop) */
.betslip-toggle {
    display: none;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s ease;
    align-items: center;
    justify-content: center;
}

.betslip-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.betslip-toggle i {
    transition: transform 0.3s ease;
}

/* =============================================
   MOBILE - SISTEMA DE MINIMIZAR
   ============================================= */
@media (max-width: 992px) {
    /* A right-col fica invisível MAS ocupa espaço zero */
    .main-container > .right-col {
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: none !important;
    }
    
    /* O betslip "escapa" do container e fica fixo */
    .right-col .sidebar.right-sidebar#betslip-sidebar {
        pointer-events: auto !important;
    }
    
    /* Mostra o botão toggle no mobile */
    .betslip-toggle {
        display: flex !important;
    }
    
    /* Esconde o switch no mobile (economiza espaço) */
    .betslip-header .switch {
        display: none !important;
    }
    
    /* Betslip fixo no bottom - MAIS COMPACTO */
    .sidebar.right-sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        z-index: 999 !important;
        background: #13202d !important;
        border-top: 2px solid rgba(24, 207, 192, 0.3);
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transform: translateY(0) !important;
    }
    
    /* ===== ESTADO MINIMIZADO - SÓ MOSTRA A PONTINHA ===== */
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 40px)) !important;
    }
    
    /* Roda o ícone 180° quando minimizado */
    .sidebar.right-sidebar.minimized .betslip-toggle i {
        transform: rotate(180deg);
    }
    
    /* Header MAIS FINO */
    .betslip-header {
        padding: 6px 10px !important;
        background: #13202d;
        border-radius: 12px 12px 0 0;
        position: relative;
        z-index: 2;
        min-height: 40px;
        max-height: 40px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Body que minimiza - ALTURA REDUZIDA */
    .betslip-body {
        max-height: 45vh; /* Reduzido de 50vh */
        overflow-y: auto;
        overflow-x: hidden;
        transition: opacity 0.3s ease, max-height 0.3s ease;
        background: #13202d;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px 10px 10px; /* Padding menor */
    }
    
    /* ===== ESCONDE TUDO QUANDO MINIMIZADO ===== */
    .sidebar.right-sidebar.minimized .betslip-body {
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        padding: 0 !important;
    }
    
    /* Ajusta o betslip interno */
    .betslip {
        padding: 0 !important;
        height: 100%;
        display: flex;
        flex-direction: column;
        background: transparent;
    }
    
    /* Tabs MAIS COMPACTAS */
    .betslip-tab {
        font-size: 0.75rem !important;
        padding: 3px 8px !important;
        white-space: nowrap;
    }
    
    /* Toggle button MENOR */
    .betslip-toggle {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
    
    /* Modos MAIS COMPACTOS */
    .betslip-modes {
        margin-bottom: 6px;
        padding: 2px;
        gap: 4px;
    }
    
    .mode-btn {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
    }
    
    /* Container de itens REDUZIDO */
    #bet-items-container {
        max-height: 140px; /* Reduzido */
        overflow-y: auto;
        margin-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* ITENS DE APOSTA COMPACTOS - TUDO EM UMA LINHA */
    .bet-item {
        padding: 6px 8px !important;
        margin-bottom: 6px !important;
    }
    
    .bet-line {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        padding-right: 28px !important;
    }
    
    .bet-info {
        flex: 1;
        min-width: 0;
    }
    
    .bet-match {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .bet-type {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .bet-odd {
        font-size: 1rem !important;
        min-width: 44px !important;
        flex-shrink: 0;
    }
    
    .bet-remove {
        width: 20px !important;
        height: 20px !important;
        font-size: 12px !important;
        top: 4px !important;
        right: 4px !important;
    }
    
    /* Stake row MAIS COMPACTA */
    .bet-stake-row {
        margin-top: 6px !important;
    }
    
    .bet-stake {
        height: 32px !important;
        font-size: 0.85rem !important;
        padding: 6px 8px !important;
    }
    
    /* Bet amount COMPACTO */
    .bet-amount .input-group {
        margin-bottom: 6px;
    }
    
    .bet-amount .input-group label {
        font-size: 0.7rem !important;
        margin-bottom: 2px !important;
    }
    
    #bet-value {
        height: 32px !important;
        font-size: 0.85rem !important;
        padding: 6px 8px !important;
    }
    
    /* Quick bets MENORES */
    .quick-bets {
        gap: 4px;
    }
    
    .quick-bets button {
        height: 28px !important;
        font-size: 0.75rem !important;
        padding: 0 8px !important;
    }
    
    /* Total odds / Possible win COMPACTOS */
    .total-odds,
    .possible-win {
        margin: 6px 0 !important;
        font-size: 0.8rem !important;
    }
    
    #total-odds-value,
    #possible-win-value {
        font-size: 0.85rem !important;
    }
    
    /* Botões de ação MENORES */
    .btn-place-bet,
    .btn-book {
        padding: 8px !important;
        font-size: 0.85rem !important;
        margin-bottom: 6px !important;
        border-radius: 8px !important;
    }
    
    /* Footer MAIS COMPACTO - SEMPRE VISÍVEL */
    .betslip-footer {
        margin-top: 6px !important;
        padding-top: 6px !important;
        gap: 6px;
        display: flex !important;
        border-top: 1px solid var(--border-color);
    }
    
    .footer-link {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
        flex: 1;
        text-align: center;
    }
    
    .footer-link i {
        font-size: 0.8rem !important;
        margin-right: 4px;
    }
    
    /* Ajuste do padding principal no mobile */
    .main-container {
        padding-bottom: 50px !important;
    }
}

/* =============================================
   MOBILE PEQUENO (< 768px)
   ============================================= */
@media (max-width: 768px) {
    .betslip-body {
        max-height: calc(55vh - 44px);
    }
    
    #bet-items-container {
        max-height: 140px;
    }
    
    /* Header ainda mais compacto */
    .betslip-header {
        padding: 8px 12px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }
    
    .betslip-tab {
        font-size: 0.8rem !important;
        padding: 3px 8px !important;
    }
    
    /* Ajusta translateY para mobile pequeno */
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 44px)) !important;
    }
    
    .main-container {
        padding-bottom: 50px !important;
    }
}

/* =============================================
   LANDSCAPE MOBILE
   ============================================= */
@media (max-height: 600px) and (orientation: landscape) {
    .betslip-body {
        max-height: calc(65vh - 40px);
    }
    
    #bet-items-container {
        max-height: 100px;
    }
    
    .betslip-header {
        padding: 6px 12px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }
    
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 40px)) !important;
    }
}

/* =============================================
   DESKTOP - REMOVE TODAS AS CUSTOMIZAÇÕES
   ============================================= */
@media (min-width: 993px) {
    .betslip-toggle {
        display: none !important;
    }
    
    .betslip-header .switch {
        display: inline-flex !important;
    }
    
    .sidebar.right-sidebar {
        position: relative !important;
        transform: none !important;
    }
    
    .sidebar.right-sidebar.minimized {
        transform: none !important;
    }
    
    .betslip-body {
        max-height: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .main-container > .right-col {
        position: relative !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }
}

/* =============================================
   BETSLIP MOBILE - MINIMIZAR/MAXIMIZAR
   COLE ISSO NO FINAL DO SEU styles.css
   ============================================= */

/* Botão toggle (escondido no desktop) */
.betslip-toggle {
    display: none;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s ease;
    align-items: center;
    justify-content: center;
}

.betslip-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.betslip-toggle i {
    transition: transform 0.3s ease;
}

/* =============================================
   MOBILE - SISTEMA DE MINIMIZAR
   ============================================= */
@media (max-width: 992px) {
    /* A right-col fica invisível MAS ocupa espaço zero */
    .main-container > .right-col {
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        pointer-events: none !important;
    }
    
    /* O betslip "escapa" do container e fica fixo */
    .right-col .sidebar.right-sidebar#betslip-sidebar {
        pointer-events: auto !important;
    }
    
    /* Mostra o botão toggle no mobile */
    .betslip-toggle {
        display: flex !important;
    }
    
    /* Esconde o switch no mobile (economiza espaço) */
    .betslip-header .switch {
        display: none !important;
    }
    
    /* Betslip fixo no bottom - MAIS COMPACTO */
    .sidebar.right-sidebar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        z-index: 100 !important; /* ACIMA DA SIDEBAR (800) */
        background: #13202d !important;
        border-top: 2px solid rgba(24, 207, 192, 0.3);
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transform: translateY(0) !important;
    }
    
    /* ===== ESTADO MINIMIZADO - SÓ MOSTRA A PONTINHA ===== */
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 40px)) !important;
    }
    
    /* Roda o ícone 180° quando minimizado */
    .sidebar.right-sidebar.minimized .betslip-toggle i {
        transform: rotate(180deg);
    }
    
    /* Header MAIS FINO */
    .betslip-header {
        padding: 6px 10px !important;
        background: #13202d;
        border-radius: 12px 12px 0 0;
        position: relative;
        z-index: 2;
        min-height: 40px;
        max-height: 40px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Body que minimiza - ALTURA REDUZIDA */
    .betslip-body {
        max-height: 45vh; /* Reduzido de 50vh */
        overflow-y: auto;
        overflow-x: hidden;
        transition: opacity 0.3s ease, max-height 0.3s ease;
        background: #13202d;
        -webkit-overflow-scrolling: touch;
        padding: 0 10px 10px 10px; /* Padding menor */
    }
    
    /* ===== ESCONDE TUDO QUANDO MINIMIZADO ===== */
    .sidebar.right-sidebar.minimized .betslip-body {
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        padding: 0 !important;
    }
    
    /* Ajusta o betslip interno */
    .betslip {
        padding: 0 !important;
        height: 100%;
        display: flex;
        flex-direction: column;
        background: transparent;
    }
    
    /* Tabs MAIS COMPACTAS */
    .betslip-tab {
        font-size: 0.75rem !important;
        padding: 3px 8px !important;
        white-space: nowrap;
    }
    
    /* Toggle button MENOR */
    .betslip-toggle {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
    
    /* Modos MAIS COMPACTOS */
    .betslip-modes {
        margin-bottom: 6px;
        padding: 2px;
        gap: 4px;
    }
    
    .mode-btn {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
    }
    
    /* Container de itens REDUZIDO */
    #bet-items-container {
        max-height: 140px; /* Reduzido */
        overflow-y: auto;
        margin-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    
    /* ITENS DE APOSTA COMPACTOS - TUDO EM UMA LINHA */
    .bet-item {
        padding: 6px 8px !important;
        margin-bottom: 6px !important;
    }
    
    .bet-line {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        padding-right: 28px !important;
    }
    
    .bet-info {
        flex: 1;
        min-width: 0;
    }
    
    .bet-match {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .bet-type {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .bet-odd {
        font-size: 1rem !important;
        min-width: 44px !important;
        flex-shrink: 0;
    }
    
    .bet-remove {
        width: 20px !important;
        height: 20px !important;
        font-size: 12px !important;
        top: 4px !important;
        right: 4px !important;
    }
    
    /* Stake row MAIS COMPACTA */
    .bet-stake-row {
        margin-top: 6px !important;
    }
    
    .bet-stake {
        height: 32px !important;
        font-size: 0.85rem !important;
        padding: 6px 8px !important;
    }
    
    /* Bet amount COMPACTO */
    .bet-amount .input-group {
        margin-bottom: 6px;
    }
    
    .bet-amount .input-group label {
        font-size: 0.7rem !important;
        margin-bottom: 2px !important;
    }
    
    #bet-value {
        height: 32px !important;
        font-size: 0.85rem !important;
        padding: 6px 8px !important;
    }
    
    /* Quick bets MENORES */
    .quick-bets {
        gap: 4px;
    }
    
    .quick-bets button {
        height: 28px !important;
        font-size: 0.75rem !important;
        padding: 0 8px !important;
    }
    
    /* Total odds / Possible win COMPACTOS */
    .total-odds,
    .possible-win {
        margin: 6px 0 !important;
        font-size: 0.8rem !important;
    }
    
    #total-odds-value,
    #possible-win-value {
        font-size: 0.85rem !important;
    }
    
    /* Botões de ação MENORES */
    .btn-place-bet,
    .btn-book {
        padding: 8px !important;
        font-size: 0.85rem !important;
        margin-bottom: 6px !important;
        border-radius: 8px !important;
    }
    
    /* Footer MAIS COMPACTO - SEMPRE VISÍVEL */
    .betslip-footer {
        margin-top: 6px !important;
        padding-top: 6px !important;
        gap: 6px;
        display: flex !important;
        border-top: 1px solid var(--border-color);
    }
    
    .footer-link {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        border-radius: 8px !important;
        flex: 1;
        text-align: center;
    }
    
    .footer-link i {
        font-size: 0.8rem !important;
        margin-right: 4px;
    }
    
    /* Ajuste do padding principal no mobile */
    .main-container {
        padding-bottom: 50px !important;
    }
}

/* =============================================
   MOBILE PEQUENO (< 768px)
   ============================================= */
@media (max-width: 768px) {
    .betslip-body {
        max-height: calc(55vh - 44px);
    }
    
    #bet-items-container {
        max-height: 140px;
    }
    
    /* Header ainda mais compacto */
    .betslip-header {
        padding: 8px 12px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }
    
    .betslip-tab {
        font-size: 0.8rem !important;
        padding: 3px 8px !important;
    }
    
    /* Ajusta translateY para mobile pequeno */
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 44px)) !important;
    }
    
    .main-container {
        padding-bottom: 50px !important;
    }
}

/* =============================================
   LANDSCAPE MOBILE
   ============================================= */
@media (max-height: 600px) and (orientation: landscape) {
    .betslip-body {
        max-height: calc(65vh - 40px);
    }
    
    #bet-items-container {
        max-height: 100px;
    }
    
    .betslip-header {
        padding: 6px 12px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }
    
    .sidebar.right-sidebar.minimized {
        transform: translateY(calc(100% - 40px)) !important;
    }
}

/* =============================================
   DESKTOP - REMOVE TODAS AS CUSTOMIZAÇÕES
   ============================================= */
@media (min-width: 993px) {
    .betslip-toggle {
        display: none !important;
    }
    
    .betslip-header .switch {
        display: inline-flex !important;
    }
    
    .sidebar.right-sidebar {
        position: relative !important;
        transform: none !important;
    }
    
    .sidebar.right-sidebar.minimized {
        transform: none !important;
    }
    
    .betslip-body {
        max-height: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .main-container > .right-col {
        position: relative !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }
}

/* =========================
SIDEBAR MOBILE APRIMORADA
========================= */
@media (max-width: 992px) {
/ Altura do header (ajuste se seu header variar) */
:root { --header-height: 70px; }
/* Sidebar minimizada: rola com a página, alinhada à esquerda, sem cobrir conteúdo */*
.left-sidebar,
aside.sidebar.left-sidebar,
#sidebar {
width: 60px !important;
overflow: visible !important;
transition: width 0.3s ease !important;
flex-shrink: 0 !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
position: sticky !important;    / Acompanha a rolagem e fica “presa” no topo quando chega lá /
top: var(--header-height) !important;
z-index: 1 !important;          / Bem abaixo do betslip /
background: var(--bg-medium) !important;
transform: none !important;
padding-bottom: 0 !important;
height: calc(100vh - var(--header-height)) !important;  / Prepara a altura */
}
/* Botão toggle visível e clicável */
.sidebar-toggle {
display: flex !important;
justify-content: center;
align-items: center;
position: relative;
margin-top: 12px;
z-index: 10;
width: 32px;
height: 32px;
background-color: var(--background-secondary, #2a3140);
border: 1px solid var(--border-color, #3a4150);
border-radius: 50%;
color: var(--text-primary, #fff);
font-size: 0.8rem;
cursor: pointer;
transition: transform 0.3s ease, background-color 0.3s ease;
}
/* Oculta textos na versão minimizada */
.left-sidebar .nav-text,
.left-sidebar .popular-section h3 {
display: none !important;
white-space: nowrap;
}
/* Centraliza ícones */
.left-sidebar .sidebar-nav a {
display: flex !important;
align-items: center !important;
justify-content: center !important;
padding-left: 0 !important;
padding-right: 0 !important;
height: 50px !important;
}
.left-sidebar .sidebar-nav a i {
font-size: 1.2rem !important;
margin-right: 0 !important;
width: 60px !important;
text-align: center !important;
}
/* EXPANDIDA: fica encostada no header e com rolagem interna elegante */
.left-sidebar.sidebar-expanded,
aside.sidebar.left-sidebar.sidebar-expanded,
#sidebar.sidebar-expanded {
width: 240px !important;
box-shadow: 2px 0 20px rgba(0,0,0,0.4) !important;
position: fixed !important;                 / Sobrepõe conteúdo /
left: 0 !important;
top: var(--header-height) !important;       / Encosta no header /
height: calc(100vh - var(--header-height)) !important;
bottom: auto !important;
max-height: none !important;
z-index: 500 !important;                    / Abaixo do betslip (que fica 9999) */
align-items: flex-start !important;
background: var(--bg-medium) !important;
padding-bottom: 16px !important;
}
/* Conteúdo interno com scroll suave */
.left-sidebar.sidebar-expanded .popular-section,
.left-sidebar.sidebar-expanded .main-navigation,
.left-sidebar.sidebar-expanded .sports-navigation {
width: 100% !important;
}
/* Cria um contêiner de rolagem interno elegante */
.left-sidebar.sidebar-expanded {
overflow: hidden !important; / o contêiner /
}
.left-sidebar.sidebar-expanded > .popular-section,
.left-sidebar.sidebar-expanded > .main-navigation {
overflow: hidden !important;
}
/ Envolve os navs para rolar: use a própria sidebar como scroller */
.left-sidebar.sidebar-expanded {
overflow-y: auto !important;
-webkit-overflow-scrolling: touch !important;
scroll-behavior: smooth;
}
/* Estilo da barra de rolagem (WebKit/Chromium) */
.left-sidebar.sidebar-expanded::-webkit-scrollbar {
width: 10px;
}
.left-sidebar.sidebar-expanded::-webkit-scrollbar-track {
background: rgba(255,255,255,0.06);
}
.left-sidebar.sidebar-expanded::-webkit-scrollbar-thumb {
background: rgba(255,255,255,0.25);
border-radius: 8px;
border: 2px solid transparent;
background-clip: content-box;
}
/* Mostra textos quando expandida */
.left-sidebar.sidebar-expanded .nav-text,
.left-sidebar.sidebar-expanded .popular-section h3 {
display: block !important;
}
/* Alinha links à esquerda quando expandida */
.left-sidebar.sidebar-expanded .sidebar-nav a {
justify-content: flex-start !important;
padding: 0 20px !important;
width: 100% !important;
height: 48px !important;
}
.left-sidebar.sidebar-expanded .sidebar-nav a i {
margin-right: 12px !important;
width: auto !important;
text-align: left !important;
}
/* Botão toggle dentro, virado para fechar */
.left-sidebar.sidebar-expanded .sidebar-toggle {
position: absolute !important;
top: 12px !important;
right: 12px !important;
transform: rotate(180deg) !important;
background-color: var(--background-dark, #1a2030) !important;
margin: 0 !important;
z-index: 20 !important;
}
/* Título popular com padding na expandida */
.left-sidebar.sidebar-expanded .popular-section h3 {
padding: 10px 20px !important;
text-align: left !important;
width: 100% !important;
margin: 8px 0 !important;
}
/* Overlay escuro por trás da sidebar expandida */
.left-sidebar.sidebar-expanded::before {
content: '' !important;
position: fixed !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
background: rgba(0, 0, 0, 0.5) !important;
z-index: -1 !important; / atrás da própria sidebar */
pointer-events: none !important;
}
/* Muito pequeno */
@media (max-width: 480px) {
.left-sidebar.sidebar-expanded { width: 220px !important; }
}
}
/* Dica: garanta que o header tenha altura estável */
.header { min-height: var(--header-height); }

<!-- Cole este CSS no seu styles.css ou adicione no <head> do index.php -->

<style>
/* =============================================
   FIX CRÍTICO: Odds clicáveis
   O span interno não deve capturar cliques
   ============================================= */

.odd-btn span,
.odd-option-btn span {
    pointer-events: none !important; /* CRÍTICO: span não captura cliques */
    display: inline-block;
    user-select: none; /* Não permite selecionar texto */
}

/* Garante que o botão em si capture cliques */
.odd-btn,
.odd-option-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative; /* Contexto para z-index se necessário */
}

.odd-btn:disabled,
.odd-option-btn:disabled {
    pointer-events: none !important; /* Disabled não clica mesmo */
    cursor: not-allowed !important;
    opacity: 0.3;
}

/* Extra: garante que NADA dentro do botão capture cliques */
.odd-btn *:not(.odd-btn),
.odd-option-btn *:not(.odd-option-btn) {
    pointer-events: none !important;
}

/* Feedback visual de hover (para confirmar que está clicável) */
.odd-btn:not(:disabled):hover,
.odd-option-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.odd-btn:not(:disabled):active,
.odd-option-btn:not(:disabled):active {
    transform: translateY(0);
}

/* Estado ativo (quando adicionado ao betslip) */
.odd-btn.active,
.odd-option-btn.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2) !important;
}



/* =================================================================== */
/* CSS da Caixa de Notificações (VERSÃO COM ALTA PRIORIDADE)
/* =================================================================== */

/* O botão do sino */
header#site-header .notification-toggle { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    border: 1px solid #3a4263; 
    background: #1f2438; 
    color: #e8ecf7; 
    padding: 8px 12px; 
    border-radius: 8px; 
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

header#site-header .notification-toggle:hover {
    background: #2a2f45;
    border-color: #4a5578;
    transform: translateY(-1px);
}

/* O pontinho vermelho piscando */
header#site-header .notification-dot {
    width: 10px; 
    height: 10px; 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%; 
    border: 2px solid #1f2438;
    position: absolute; 
    top: 4px; 
    right: 4px;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}

/* A "Caixinha" de Notificações (base) */
/* ESTA É A REGRA MAIS IMPORTANTE */
header#site-header .notification-menu { 
    position: fixed !important;
    min-width: 280px; 
    background: #2a2f45 !important; 
    color: #e8ecf7 !important; 
    border: 1px solid #3a4263 !important; 
    border-radius: 10px !important; 
    padding: 10px 0 !important; 
    display: none !important; 
    opacity: 0; 
    pointer-events: none; 
    transform: translateY(-6px); 
    transition: opacity .15s ease, transform .15s ease; 
    z-index: 99999 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3) !important;
    overflow: visible !important;
}

/* Quando a caixinha é mostrada */
header#site-header .notification-menu.show { 
    display: block !important; 
    opacity: 1 !important; 
    pointer-events: auto !important; 
    transform: translateY(0) !important; 
}

/* O cabeçalho ("Notifications") */
header#site-header .notification-header { 
    font-weight: 700 !important; 
    padding: 10px 14px !important; 
    border-bottom: 1px solid #3a4263 !important;
    font-size: 0.95rem !important;
    background: transparent !important;
    margin: 0 !important;
    color: #e8ecf7 !important;
}

/* Tamanho específico da caixinha de notificações */
header#site-header .notification-menu {
    min-width: 360px !important;
    max-width: 400px !important;
}

/* A lista que segura os itens */
header#site-header .notification-list { 
    max-height: 400px !important; 
    overflow-y: auto !important; 
    padding: 0 !important; 
    margin: 0 !important;
    background: transparent !important;
}

/* Scrollbar da lista */
header#site-header .notification-list::-webkit-scrollbar {
    width: 6px;
}
header#site-header .notification-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.03);
}
header#site-header .notification-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}
header#site-header .notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}

/* Cada item individual da notificação */
header#site-header .notification-item {
    display: block !important; 
    padding: 0 !important;
    margin: 8px 10px !important;
    text-decoration: none;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.02) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 8px !important;
    overflow: hidden;
    color: inherit !important;
}

header#site-header .notification-item:hover { 
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.12) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Item NÃO LIDO (borda azul) */
header#site-header .notification-item.status-unread { 
    background: rgba(59, 130, 246, 0.08) !important;
    border-left: 3px solid #3b82f6 !important;
}

header#site-header .notification-item.status-unread:hover {
    background: rgba(59, 130, 246, 0.12) !important;
}

/* Conteúdo (padding) dentro do item */
header#site-header .notification-item-inner {
    padding: 12px 14px !important;
}

/* Título do item */
header#site-header .notification-title { 
    color: #fff !important; 
    font-weight: 600 !important; 
    font-size: 0.92rem !important; 
    margin-bottom: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

header#site-header .notification-title i {
    font-size: 0.9rem !important;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 50%;
    color: #22c55e !important;
}

/* Mensagem do item */
header#site-header .notification-message { 
    color: #a8b3cf !important; 
    font-size: 0.85rem !important; 
    line-height: 1.5 !important;
    margin-bottom: 6px !important;
}

/* Tempo ("Just now") */
header#site-header .notification-time {
    color: #6b7280 !important;
    font-size: 0.75rem !important;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 4px;
}

header#site-header .notification-time i {
    font-size: 0.7rem;
}

/* Quando não há notificações */
header#site-header .notification-empty { 
    color: #6b7280 !important; 
    text-align: center; 
    padding: 3rem 1.5rem !important;
    font-style: italic;
    background: transparent !important;
}

header#site-header .notification-empty i {
    font-size: 3rem;
    color: #3a4263 !important;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
}

header#site-header .notification-empty-text {
    font-size: 0.95rem;
    color: #8892a6;
}

/* Regras de celular */
@media (max-width: 992px) {
    header#site-header .notification-toggle {
        padding: 6px 10px; 
    }
    
    header#site-header .notification-menu {
        min-width: 300px;
        max-width: calc(100vw - 20px);
    }
}

