/* ============================================================
   BET DOS BROTHERS - ESTILO MOBILE-FIRST & RESPONSIVO VERTICAL
   UX moderna de aplicativo de apostas com Bottom Navigation
   ============================================================ */

:root {
  /* Paleta Noturna Vibrante com Profundidade de Estádio */
  --bg-main: #060a12;
  --bg-card: #0d1526;
  --bg-card-hover: #141f36;
  --bg-input: #0a0f1d;
  --border-color: #1a2742;
  --border-active: #00ff87;
  
  /* Cores de Ação com Acento Elétrico */
  --primary: #00ff87;
  --primary-hover: #00e077;
  --primary-glow: rgba(0, 255, 135, 0.35);
  
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.35);
  
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.35);
  
  --danger: #ff3366;
  --danger-hover: #e02456;
  
  --text-main: #f8fafc;
  --text-muted: #8fa0bc;
  --text-dark: #0f172a;
  
  /* Odds com Alta Legibilidade */
  --odd-bg: #111b2e;
  --odd-bg-hover: #192742;
  --odd-active-bg: linear-gradient(135deg, #00ff87, #00d66c);
  --odd-active-text: #022c22;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  /* Tipografia Distinta & Sem Clichês de IA */
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-numeric: 'Space Grotesk', monospace;
  
  /* Curvas e Físicas de Emil Kowalski */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* iOS Safe Area Insets (iPhone Notch, Dynamic Island, Home Indicator) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  background-image: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.05) 0%, transparent 65%),
                    radial-gradient(circle at 85% 30%, rgba(0, 255, 135, 0.03) 0%, transparent 50%);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  user-select: none;
}

h1, h2, h3, h4, .brand-titles h1, .csb-title, .modal-header h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.op-value, .total-odd-num, .cmg-val-prize, .finished-score-pill {
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
}

/* ================= TOP BAR COMPACTA MOBILE ================= */
.top-header {
  background: #0d1629;
  border-bottom: 1px solid var(--border-color);
  padding-top: max(0.65rem, calc(0.65rem + env(safe-area-inset-top, 0px)));
  padding-bottom: 0.65rem;
  padding-left: max(0.85rem, calc(0.85rem + env(safe-area-inset-left, 0px)));
  padding-right: max(0.85rem, calc(0.85rem + env(safe-area-inset-right, 0px)));
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.top-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
}

.brand-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6));
}

.brand-titles h1 {
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-titles h1 span {
  color: var(--primary);
}

.brand-titles p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* BADGE / BOTÃO DE BLUETOOTH */
.bt-status-badge {
  background: #17243c;
  border: 1px solid #2d4269;
  color: #cbd5e1;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s;
}

.bt-status-badge.connected {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
}

.bt-status-badge.disconnected:hover {
  background: #203152;
  border-color: #3f5b8f;
}

/* CAMPO DE BUSCA RÁPIDA DE TIMES */
.search-bar-wrap {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: #fff;
  padding: 0.55rem 1rem 0.55rem 2.2rem;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--primary);
}

.search-icon-pos {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* ================= FILTROS DE LIGAS (SCROLL HORIZONTAL) ================= */
.leagues-scroll-bar {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.5rem 1rem;
  scrollbar-width: none;
  background: #090e1b;
  border-bottom: 1px solid #1a2742;
}

.leagues-scroll-bar::-webkit-scrollbar {
  display: none;
}

.league-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.league-chip.active {
  background: var(--primary);
  color: #022c22;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.league-chip.league-chip-election {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-weight: 800;
}
.league-chip.league-chip-election.active {
  background: var(--primary);
  color: #022c22;
  border-color: var(--primary);
}

.league-flag-img {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ================= CONTAINER PRINCIPAL (VERTICAL FOCUS) ================= */
.app-container {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

@media (min-width: 1024px) {
  /* Em telas maiores, centraliza em formato de celular com visual premium */
  .app-container {
    max-width: 720px;
  }
}

/* ABAS DE NAVEGAÇÃO DA APLICAÇÃO */
.app-view {
  display: none;
  animation: fadeIn 0.2s ease;
}

.app-view.active {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

/* ================= CARDS DE JOGO ================= */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  position: relative;
  animation: cardReveal 240ms var(--ease-out) both;
  animation-delay: calc(var(--card-index, 0) * 35ms);
  transition: border-color 200ms var(--ease-out), transform 200ms var(--ease-out);
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.league-tag {
  background: #1e293b;
  color: #cbd5e1;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.match-clock {
  color: #93c5fd;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* CONFRONTO DE TIMES */
.teams-duel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
}

.team-entry {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  flex: 1;
  min-width: 0;
}

.team-entry span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.team-entry.away {
  justify-content: flex-end;
  text-align: right;
}

.team-shield {
  width: 32px;
  height: 32px;
  background: #17243c;
  border: 1px solid #293d62;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.team-crest-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.score-or-vs {
  padding: 0 0.5rem;
  text-align: center;
  flex-shrink: 0;
  min-width: 85px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vs-pill {
  font-size: 0.7rem;
  font-weight: 900;
  color: #64748b;
  background: #0f172a;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.finished-score-pill {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--accent);
  background: #17243c;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid #364e78;
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.live-card-status-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-top: 0.75rem;
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

/* MERCADOS E BOTÕES DE ODDS */
.market-title-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.odds-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.odds-row-2 {
  grid-template-columns: repeat(2, 1fr);
}

.odd-pill {
  background: var(--odd-bg);
  border: 1px solid #1e2c47;
  border-radius: var(--radius-md);
  padding: 0.55rem 0.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  min-height: 48px;
  position: relative;
  overflow: hidden;
}

.odd-pill:active {
  transform: scale(0.96);
}

@media (hover: hover) and (pointer: fine) {
  .odd-pill:hover {
    background: var(--odd-bg-hover);
    border-color: #2e446d;
    transform: translateY(-1px);
  }
}

.odd-pill.selected {
  background: var(--odd-active-bg) !important;
  border-color: #00ff87 !important;
  box-shadow: 0 0 16px rgba(0, 255, 135, 0.45) !important;
  transform: scale(1.02);
}

.odd-pill.selected .op-label {
  color: #022c22 !important;
  font-weight: 800;
}

.odd-pill.selected .op-value {
  color: #022c22 !important;
  font-weight: 900;
}

.op-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.op-value {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: color 250ms ease-out;
}

/* ================= PULSO E INDICADORES DE ODDS AO VIVO (BET365 / BETANO STANDARD) ================= */
.odd-trend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  line-height: 1;
  font-weight: 900;
  border-radius: 4px;
  padding: 1px 3px;
  animation: trendPopIn 250ms cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.odd-trend.trend-down {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.5);
  text-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.odd-trend.trend-up {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(34, 197, 94, 0.5);
  text-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

@keyframes trendPopIn {
  0% { transform: scale(0.3); opacity: 0; }
  70% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Flash de Queda (Odd Baixou -> Vermelho) */
.odd-pill.odd-dropped {
  animation: oddDropFlash 3.5s ease-out forwards !important;
}

.odd-pill.odd-dropped .op-value {
  color: #f87171 !important;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes oddDropFlash {
  0% {
    background: rgba(239, 68, 68, 0.35) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.5) !important;
    transform: scale(0.98);
  }
  15% {
    background: rgba(239, 68, 68, 0.24) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.35) !important;
    transform: scale(1);
  }
  70% {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
  }
  100% {
    background: var(--odd-bg);
    border-color: #1e2c47;
    box-shadow: none;
  }
}

/* Flash de Subida (Odd Aumentou -> Verde) */
.odd-pill.odd-raised {
  animation: oddRaiseFlash 3.5s ease-out forwards !important;
}

.odd-pill.odd-raised .op-value {
  color: #4ade80 !important;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

@keyframes oddRaiseFlash {
  0% {
    background: rgba(34, 197, 94, 0.35) !important;
    border-color: #22c55e !important;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.5) !important;
    transform: scale(1.02);
  }
  15% {
    background: rgba(34, 197, 94, 0.24) !important;
    border-color: #22c55e !important;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.35) !important;
    transform: scale(1);
  }
  70% {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
  }
  100% {
    background: var(--odd-bg);
    border-color: #1e2c47;
    box-shadow: none;
  }
}

/* Quando o botão já estava selecionado pelo usuário */
.odd-pill.selected.odd-dropped {
  background: var(--odd-active-bg) !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6) !important;
}

.odd-pill.selected.odd-raised {
  background: var(--odd-active-bg) !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.6) !important;
}

/* ACCORDION MAIS MERCADOS */
.expand-markets-btn {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.4rem;
  cursor: pointer;
}

.expanded-markets-drawer {
  display: none;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
}

.expanded-markets-drawer.open {
  display: flex;
}

/* ================= BARRA FLUTUANTE INFERIOR (MINI SLIP) ================= */
.mini-slip-floating-bar {
  display: none;
  position: fixed;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px)); /* Logo acima do bottom nav com respeito integral a safe-area */
  left: 0;
  right: 0;
  padding: 0.5rem 1rem;
  z-index: 55;
  pointer-events: none;
}

.mini-slip-floating-bar.active {
  display: block;
}

.mini-slip-content {
  background: linear-gradient(135deg, #00ff87, #00d66c);
  color: #022c22;
  border-radius: var(--radius-full);
  padding: 0.7rem 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 255, 135, 0.45);
  cursor: pointer;
  pointer-events: auto;
  max-width: 500px;
  margin: 0 auto;
  transition: transform 160ms var(--ease-out);
  font-family: var(--font-display);
  font-weight: 800;
}

.mini-slip-content:active {
  transform: scale(0.96);
}

.mini-slip-badge {
  background: #022c22;
  color: #00ff87;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* ================= GAVETA / BOTTOM SHEET DO CUPOM ================= */
.slip-drawer-overlay {
  display: flex;
  visibility: hidden;
  opacity: 0;
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 70;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 220ms var(--ease-out), visibility 220ms var(--ease-out);
}

.slip-drawer-overlay.open {
  visibility: visible;
  opacity: 1;
}

.slip-sheet {
  background: #0d1526;
  border-top: 1px solid #1e2c47;
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.7);
  transform: translateY(100%);
  transition: transform 280ms var(--ease-drawer);
  will-change: transform;
}

.slip-drawer-overlay.open .slip-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 48px;
  height: 5px;
  background: #2a3b5c;
  border-radius: var(--radius-full);
  margin: 0 auto 0.5rem auto;
  transition: background-color 0.2s;
  cursor: grab;
}

.sheet-handle:active {
  background: var(--primary);
  cursor: grabbing;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
}

.sheet-header h2 {
  font-size: 1.15rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-close-sheet {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ITENS DO CUPOM */
.drawer-slip-items {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 42vh;
  min-height: 60px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  flex-shrink: 0;
}

.drawer-slip-item {
  background: #111a2e;
  border: 1px solid #223554;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.drawer-slip-item:active {
  transform: scale(0.985);
}

.drawer-slip-item.is-same-match {
  border-left: 3px solid #10b981;
}

.ds-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.ds-item-match {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-item-selection {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ds-market-pill {
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
}

.ds-tag-same {
  font-size: 0.65rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.ds-item-action {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 0.5rem;
}

.ds-item-odd {
  font-family: var(--font-numeric);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #1e2e4a;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  border: 1px solid #2d446d;
}

.btn-del-slip-item {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-del-slip-item:hover,
.btn-del-slip-item:active {
  background: #ef4444;
  color: #fff;
  transform: scale(0.92);
}

.slip-multi-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 78, 59, 0.25));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

/* CHIPS DE VALOR RÁPIDO */
.quick-chips-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
}

.qc-btn {
  background: #1c2844;
  border: 1px solid #2d416b;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  width: 100%;
}

.qc-btn:active {
  background: var(--primary);
  color: #022c22;
}

/* RESUMO DO CUPOM */
.drawer-summary-card {
  background: linear-gradient(135deg, #132238, #182a46);
  border: 1px solid #2d4269;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ds-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ds-row.big {
  border-top: 1px dashed #2f4773;
  padding-top: 0.45rem;
  margin-top: 0.2rem;
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
}

.ds-row.big span:last-child {
  color: var(--primary);
}

/* BOTÃO DE IMPRIMIR / EMITIR */
.btn-primary-action {
  background: linear-gradient(135deg, #00ff87, #00d66c);
  color: #022c22;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 18px rgba(0, 255, 135, 0.4);
  width: 100%;
  transition: transform 160ms var(--ease-out), filter 160ms var(--ease-out);
}

.btn-primary-action:active {
  transform: scale(0.97);
  filter: brightness(0.95);
}

.btn-primary-action:disabled {
  opacity: 0.5;
  filter: grayscale(0.8);
  box-shadow: none;
}

/* ================= BOTTOM NAVIGATION BAR (FIXA NO RODAPÉ) ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 16, 29, 0.94);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.nav-item-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  flex: 1;
  height: 100%;
  position: relative;
  transition: color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.nav-item-btn:active {
  transform: scale(0.92);
}

.nav-item-btn .nav-icon {
  font-size: 1.3rem;
  transition: transform 180ms var(--ease-spring);
}

.nav-item-btn.active {
  color: var(--primary);
}

.nav-item-btn.active .nav-icon {
  transform: scale(1.15) translateY(-2px);
}

.nav-badge-pill {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background: var(--primary);
  color: #022c22;
  font-size: 0.68rem;
  font-family: var(--font-numeric);
  font-weight: 900;
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(0, 255, 135, 0.6);
  animation: badgePop 240ms var(--ease-spring);
}

@keyframes badgePop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ================= MODAL DE BILHETE / IMPRESSÃO / PIX ================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex !important;
}

.modal-card {
  background: #111a2d;
  border: 1px solid #2d4269;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 1.2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 94vh;
  overflow-y: auto;
}

/* =========================================================
   PERFIL DO USUÁRIO & SALDO - MOBILE BOTTOM SHEET OVERHAUL
   ========================================================= */
#user-profile-modal {
  transition: opacity 220ms var(--ease-out), visibility 220ms var(--ease-out);
}

#user-profile-modal .user-profile-card {
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  background: #0b1322;
  border: 1px solid #1e2c47;
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  #user-profile-modal.modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  #user-profile-modal .user-profile-card {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 92vh !important;
    border-radius: 24px 24px 0 0 !important;
    border-bottom: none !important;
    padding: 1.15rem 1.15rem calc(1.5rem + env(safe-area-inset-bottom, 0px)) 1.15rem !important;
    transform: translateY(100%);
    transition: transform 280ms var(--ease-drawer);
  }

  #user-profile-modal.active .user-profile-card {
    transform: translateY(0);
  }
}

.profile-sheet-handle {
  display: block;
  margin-bottom: 0.75rem;
}

.profile-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #1a2742;
}

.profile-avatar-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f2744, #1a3a60);
  border: 2px solid #00ff87;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 12px rgba(0, 255, 135, 0.25);
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.profile-email {
  font-size: 0.78rem;
  color: #94a3b8;
}

/* CARD DE SALDO HERO */
.profile-balance-hero {
  background: linear-gradient(135deg, #053326 0%, #032018 100%);
  border: 1.5px solid #00ff87;
  border-radius: 16px;
  padding: 1.25rem 1.1rem 1.45rem 1.1rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 255, 135, 0.18);
  position: relative;
  overflow: visible;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  box-sizing: border-box;
}

.profile-balance-hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(0, 255, 135, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pb-hero-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #34d399;
  margin-bottom: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.pb-hero-value {
  font-family: var(--font-numeric), monospace;
  font-size: 2.35rem;
  font-weight: 900;
  color: #ffffff !important;
  letter-spacing: -1px;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 255, 135, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  width: 100%;
}

.pb-hero-sub {
  font-size: 0.74rem;
  color: #a7f3d0;
  margin-top: 0.15rem;
  font-weight: 600;
}

/* BANNER TORNEIO */
.profile-tournament-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  text-align: center;
}

.pt-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 0.15rem;
}

.pt-sub {
  font-size: 0.72rem;
  color: #cbd5e1;
  line-height: 1.35;
}

/* NAVEGAÇÃO SEGMENTADA */
.profile-segmented-nav {
  display: flex;
  gap: 0.35rem;
  background: #060b14;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #1a2742;
}

.prof-tab-btn {
  flex: 1;
  padding: 0.6rem 0.3rem;
  border: none;
  border-radius: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.prof-tab-btn.active {
  background: #182844;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* CONTEÚDO DAS ABAS (SEM MAX-HEIGHT 280PX!) */
.prof-tab-content-pane {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

/* CARDS DE BILHETE DENTRO DO PERFIL */
.prof-bet-card {
  background: #0f182c;
  border: 1px solid #1f3050;
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.prof-bet-card:active {
  transform: scale(0.985);
}

.prof-bet-card.badge-won {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, #0f182c 100%);
}

.prof-bet-card.badge-lost {
  border-color: rgba(239, 68, 68, 0.3);
}

.pbc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1a2742;
  padding-bottom: 0.45rem;
}

.pbc-code {
  font-family: var(--font-numeric);
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
}

.pbc-date {
  font-size: 0.72rem;
  color: #64748b;
  margin-left: 0.5rem;
}

.pbc-status-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.pbc-status-tag.badge-won {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.pbc-status-tag.badge-lost {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pbc-status-tag.badge-live {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pbc-status-tag.badge-pre {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* LISTA DE JOGOS DENTRO DO BILHETE */
.prof-bet-matches-list {
  background: rgba(6, 11, 20, 0.6);
  border: 1px solid #17243c;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.prof-bet-match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.prof-bet-match-row:not(:last-child) {
  border-bottom: 1px dashed #17243c;
  padding-bottom: 0.4rem;
}

.pbm-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.pbm-teams {
  font-family: var(--font-display);
  font-weight: 700;
  color: #e2e8f0;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pbm-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
}

.pbm-pick {
  color: #38bdf8;
  font-weight: 700;
}

.pbm-odd {
  font-family: var(--font-numeric);
  color: #94a3b8;
  font-weight: 700;
}

.pbm-score {
  font-family: var(--font-numeric);
  background: #182844;
  color: #f87171;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.72rem;
}

.pbm-status-icon {
  font-size: 0.95rem;
  margin-left: 0.5rem;
}

/* MÉTRICAS FINANCEIRAS DO BILHETE */
.pbc-financials {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 0.4rem;
  background: #0a1120;
  padding: 0.55rem 0.75rem;
  border-radius: 9px;
  border: 1px solid #16243d;
}

.pbc-fin-col {
  display: flex;
  flex-direction: column;
}

.pbc-fin-label {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
}

.pbc-fin-val {
  font-family: var(--font-numeric);
  font-size: 0.88rem;
  font-weight: 800;
  color: #e2e8f0;
}

.pbc-fin-col.highlight .pbc-fin-label {
  color: #34d399;
}

.pbc-fin-payout {
  font-family: var(--font-numeric);
  font-size: 1.05rem;
  font-weight: 900;
  color: #00ff87;
}

/* BOTÕES DE AÇÃO DO CARD DO BILHETE */
.pbc-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.btn-pbc-track {
  flex: 1;
  padding: 0.55rem 0.75rem;
  background: #132238;
  border: 1px solid #38bdf8;
  color: #38bdf8;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 40px;
}

.btn-pbc-track:active {
  background: #38bdf8;
  color: #04101e;
  transform: scale(0.97);
}

.btn-pbc-photo {
  padding: 0.55rem 0.95rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 40px;
}

.btn-pbc-photo:active {
  background: #10b981;
  color: #022c22;
  transform: scale(0.97);
}

/* EXTRATO CARD */
.prof-trans-card {
  background: #0f182c;
  border: 1px solid #1e2e4a;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ptc-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ptc-icon {
  font-size: 1.3rem;
}

.ptc-desc {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
}

.ptc-date {
  font-size: 0.7rem;
  color: #64748b;
}

.ptc-amount {
  font-family: var(--font-numeric);
  font-size: 0.95rem;
  font-weight: 800;
}

/* RODAPÉ DO PERFIL */
.profile-footer-actions {
  display: flex;
  gap: 0.55rem;
  padding-top: 0.85rem;
  border-top: 1px solid #1a2742;
  margin-top: 0.5rem;
}

.btn-profile-logout {
  padding: 0.8rem 1.15rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 44px;
}

.btn-profile-logout:active {
  background: #ef4444;
  color: #fff;
  transform: scale(0.96);
}

.modal-header-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
}

/* BOTÕES DE IMPRESSÃO */
.print-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-bt-print {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #022c22;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.8rem;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-rawbt-print {
  background: #1e3a8a;
  color: #93c5fd;
  border: 1px solid #3b82f6;
  border-radius: var(--radius-md);
  padding: 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
}

.btn-wa-print {
  background: #128c7e;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
}

/* CAIXA DE PIX */
.pix-payment-box {
  background: #142036;
  border: 1px dashed #2d4573;
  border-radius: var(--radius-md);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.pix-qr-img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 4px;
}

.btn-copy-pix {
  background: #1f3052;
  border: 1px solid #3d588a;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* TOAST */
.mobile-toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 200;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  animation: fadeInDown 0.25s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ================= BOTÃO VER MERCADOS NO CARD PRINCIPAL ================= */
.btn-open-match-detail {
  width: 100%;
  margin-top: 0.6rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #2d4573;
  color: #38bdf8;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-open-match-detail:hover {
  background: #1e3a8a;
  color: #fff;
  border-color: #3b82f6;
}

/* ================= PÁGINA DO JOGO (MATCH DETAIL VIEW) ================= */
.match-detail-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-nav-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0.3rem 0;
}

.detail-header-card {
  background: linear-gradient(180deg, #16243d, #0f172a);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.detail-teams-duel {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 1rem 0 0.5rem;
}

.detail-team-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.detail-team-shield {
  width: 64px;
  height: 64px;
  background: #1e293b;
  border-radius: 50%;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #334155;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.detail-team-shield img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-team-name {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
}

.detail-vs-pill {
  font-size: 0.85rem;
  font-weight: 900;
  color: #94a3b8;
  background: #17243c;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid #2d4573;
}

/* Categorias de mercados na tela do jogo */
.detail-market-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scrollbar-width: none;
}
.detail-market-tabs::-webkit-scrollbar { display: none; }

.detail-tab-chip {
  white-space: nowrap;
  background: #17243c;
  border: 1px solid #263859;
  color: #94a3b8;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
}

.detail-tab-chip.active {
  background: var(--primary);
  color: #022c22;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Card de seção de mercado */
.market-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.market-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 900;
  color: #fff;
  border-bottom: 1px solid #1e2c47;
  padding-bottom: 0.4rem;
}

/* ================= BANNER CRIAR APOSTA (BET BUILDER) ================= */
.bet-builder-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.3rem;
}

.badge-builder-count {
  background: #10b981;
  color: #022c22;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

/* ============================================================
   ESTILOS GERAIS PARA PAINEL ADMIN & CAMBISTA (DESKTOP & MOBILE)
   ============================================================ */
.navbar {
  background: #0d1629;
  border-bottom: 1px solid #1e2c47;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  width: 100%;
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

.navbar .brand-logo {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}

.navbar .brand-text h1 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.navbar .brand-text h1 span {
  color: #38bdf8;
}

.navbar .brand-text p {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-nav-outline {
  background: #17243c;
  border-color: #2d426b;
  color: #cbd5e1;
}

.btn-nav-outline:hover {
  background: #1f304f;
  color: #fff;
  border-color: #38bdf8;
}

.btn-nav-accent {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border: none;
}

.btn-nav-accent:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
}

/* FORMULÁRIOS & INPUTS PROFISSIONAIS */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.input-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-field {
  background: #0f172a !important;
  border: 1px solid #283955 !important;
  color: #fff !important;
  padding: 0.75rem 1rem !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  width: 100% !important;
  outline: none !important;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

select.input-field {
  cursor: pointer;
}

select.input-field option {
  background: #0f172a;
  color: #fff;
  padding: 0.5rem;
}

textarea.input-field {
  resize: vertical;
  min-height: 80px;
}

.btn-submit-slip {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  font-weight: 900;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-submit-slip:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.btn-submit-slip:active {
  transform: translateY(0);
}

/* GRID DE CONFIGURAÇÕES */
.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ============================================================
   LAYOUT PROFISSIONAL DESKTOP (3 COLUNAS) & GATILHOS VISUAIS
   ============================================================ */
.header-user-actions,
.header-desktop-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.btn-header-link {
  background: #17243c;
  border: 1px solid #2d426b;
  color: #cbd5e1;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.btn-header-link:hover {
  background: #1f304f;
  color: #fff;
  border-color: #38bdf8;
}
.btn-header-admin {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border-color: transparent;
  color: #fff;
}

/* Sidebar Esquerda (Oculta por padrão no mobile) */
.desktop-sidebar {
  display: none;
}
/* Cupom Lateral Direito (Oculto por padrão no mobile) */
.desktop-slip-panel {
  display: none;
}
.desktop-center-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0 !important;
  }
  .header-user-actions,
  .header-desktop-actions {
    display: flex;
    gap: 0.75rem;
  }
  .top-header {
    padding-top: max(0.75rem, calc(0.75rem + env(safe-area-inset-top, 0px)));
    padding-bottom: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 1360px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 16px 16px;
  }
  .app-container.app-layout-desktop {
    max-width: 1360px;
    width: 100%;
    margin: 1rem auto;
    padding: 0 0.85rem;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 280px;
    gap: 0.85rem;
    align-items: start;
    box-sizing: border-box;
  }
  @media (min-width: 1400px) {
    .app-container.app-layout-desktop {
      grid-template-columns: 220px minmax(0, 1fr) 320px;
      gap: 1.25rem;
      padding: 0 1.25rem;
    }
  }
  /* Colunas laterais grudam abaixo do cabeçalho (altura medida pelo JS em --app-header-h)
     e rolam sozinhas: dá para ver todos os campeonatos e o cupom inteiro sem ir ao fim da página. */
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: sticky;
    top: calc(var(--app-header-h, 112px) + 0.75rem);
    max-height: calc(100vh - var(--app-header-h, 112px) - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    min-width: 0;
    width: 100%;
  }
  .desktop-slip-panel {
    display: block;
    position: sticky;
    top: calc(var(--app-header-h, 112px) + 0.75rem);
    max-height: calc(100vh - var(--app-header-h, 112px) - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    min-width: 0;
    width: 100%;
  }
  .mini-slip-floating-bar,
  .bottom-nav,
  .mobile-only-conferir-btn {
    display: none !important;
  }
}

/* SIDEBAR CARDS */
.sidebar-card {
  background: #111a2d;
  border: 1px solid #1e2c47;
  border-radius: 12px;
  padding: 1rem;
}
.sidebar-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.sidebar-leagues-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sidebar-league-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  background: #0c1424;
  border: 1px solid transparent;
}
.sidebar-league-item:hover, .sidebar-league-item.active {
  background: #192742;
  color: #fff;
  border-color: #38bdf8;
}
.sidebar-league-item .badge-count {
  background: #17243c;
  color: #38bdf8;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 10px;
}
.sidebar-link-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: #0c1424;
  border: 1px solid #1e2c47;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: all 0.2s;
}
.sidebar-link-btn:hover {
  background: #18263f;
  border-color: #38bdf8;
  color: #fff;
}
.promo-sidebar-card {
  background: linear-gradient(135deg, #092c21 0%, #0d1e33 100%);
  border: 1px solid #059669;
}
.sidebar-promo-tag {
  display: inline-block;
  background: #059669;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* HERO PROMO BANNER */
.hero-promo-banner {
  background: linear-gradient(135deg, #064e3b 0%, #0f2c4a 50%, #1e1b4b 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(6, 78, 59, 0.35);
  margin-bottom: 0.5rem;
}
.hero-promo-banner::before {
  content: '⚽';
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 6rem;
  opacity: 0.12;
  pointer-events: none;
}
.hero-promo-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid #f59e0b;
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}
.hero-promo-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}
.hero-promo-subtitle {
  font-size: 0.85rem;
  color: #d1fae5;
  margin: 0;
  line-height: 1.35;
}

/* SEÇÃO DE BILHETES PRONTOS */
.ready-bets-section {
  background: #0d1629;
  border: 1px solid #1e2c47;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.5rem;
}
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.ready-bets-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}
.ready-bet-card {
  background: #111d33;
  border: 1px solid #233658;
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  transition: all 0.2s;
}
.ready-bet-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.ready-bet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ready-bet-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.ready-bet-odd-badge {
  background: #064e3b;
  border: 1px solid #10b981;
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
}
.ready-bet-items-list {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.35;
}
.ready-bet-items-list strong {
  color: #e2e8f0;
}
.btn-apply-ready-bet {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.15s;
}
.btn-apply-ready-bet:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* SELETOR DE MERCADOS NOS CARDS DA HOME */
.card-market-tabs-row {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.card-market-tabs-row::-webkit-scrollbar {
  display: none;
}
.card-market-tab-btn {
  background: transparent;
  border: 1px solid #233658;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.card-market-tab-btn:hover {
  color: #fff;
  border-color: #38bdf8;
}
.card-market-tab-btn.active {
  background: #38bdf8;
  color: #0c1424;
  border-color: #38bdf8;
}

/* DESKTOP BET SLIP FIXO */
.desktop-slip-card {
  background: #0d1629;
  border: 1px solid #1e2c47;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #334155 #0d1629;
}
.desktop-slip-card::-webkit-scrollbar {
  width: 4px;
}
.desktop-slip-card::-webkit-scrollbar-track {
  background: #0d1629;
}
.desktop-slip-card::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
.slip-header-desktop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e2c47;
  padding-bottom: 0.4rem;
}
.desktop-slip-count-badge {
  background: #10b981;
  color: #022c22;
  font-size: 0.76rem;
  font-weight: 900;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-clear-slip {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}
.turbo-boost-box {
  background: linear-gradient(135deg, #092c21 0%, #0d1e33 100%);
  border: 1px solid #059669;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}
.turbo-boost-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #a7f3d0;
  margin-bottom: 0.25rem;
}
.turbo-pct-tag {
  background: #10b981;
  color: #022c22;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 900;
}
.turbo-boost-bar {
  background: #091a27;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}
.turbo-boost-fill {
  background: linear-gradient(90deg, #10b981, #38bdf8);
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.turbo-boost-msg {
  font-size: 0.7rem;
  color: #cbd5e1;
  line-height: 1.2;
}
.desktop-slip-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 180px;
  overflow-y: auto;
}
.empty-slip-msg {
  text-align: center;
  padding: 1rem 0.5rem;
  color: #94a3b8;
  font-size: 0.78rem;
}
.desktop-slip-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 1px solid #1e2c47;
  padding-top: 0.5rem;
}
.slip-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.slip-input {
  width: 100%;
  background: #0f172a;
  border: 1px solid #233658;
  color: #fff;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.slip-input:focus {
  border-color: #38bdf8;
}
.desktop-summary-box {
  background: #0b1322;
  border: 1px solid #17243c;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.d-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* ================= ABAS PRINCIPAIS: JOGOS vs OFERTAS & BILHETES PRONTOS ================= */
.main-feed-tabs-row {
  display: flex;
  gap: 0.4rem;
  padding: 0.3rem 0.35rem;
  background: #0b1324;
  border: 1px solid #1e293b;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.main-feed-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.6rem;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  position: relative;
}

.main-feed-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.main-feed-tab-btn.active {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

#btn-tab-live.active {
  background: linear-gradient(135deg, #991b1b, #dc2626) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45) !important;
}

#btn-tab-election.active {
  background: linear-gradient(135deg, #065f46, #059669) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45) !important;
}

.btn-share-match {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0.65rem 0.85rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 9px;
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-share-match:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #fff;
  transform: translateY(-1px);
}
.btn-share-match-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.48rem 0.9rem;
  background: linear-gradient(135deg, #059669, #10b981);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  transition: all 0.2s;
}
.btn-share-match-top:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .main-feed-tab-btn {
    font-size: 0.74rem;
    padding: 0.52rem 0.2rem;
    gap: 0.25rem;
    white-space: nowrap;
  }
  .main-feed-tab-btn .tab-badge-fire {
    font-size: 0.58rem;
    padding: 1px 4px;
  }
}

.tab-badge-fire {
  font-size: 0.62rem;
  background: #f97316;
  color: #fff;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

/* Faixa de atalho para as ofertas quando estiver na aba de jogos */
.offers-shortcut-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.35), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.offers-shortcut-strip:hover {
  border-color: #38bdf8;
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.55), rgba(16, 185, 129, 0.25));
}

.offers-shortcut-strip span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
}

.offers-shortcut-strip .strip-action {
  font-size: 0.74rem;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

/* ================= RASTREADOR & CONSULTA DE BILHETES ================= */
.btn-check-ticket-glow {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.35)) !important;
  border: 1px solid #38bdf8 !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.btn-check-ticket-glow:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(14, 165, 233, 0.5)) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
}

.check-ticket-card {
  background: #0b1324;
  border: 1px solid #1e293b;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.check-result-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.check-status-banner {
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.csb-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.csb-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.csb-code {
  display: inline-block;
  margin-top: 0.45rem;
  font-family: monospace;
  font-weight: 900;
  font-size: 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 12px;
  border-radius: 6px;
  letter-spacing: 1.5px;
}

.check-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 0.75rem;
}

.cmg-item {
  display: flex;
  flex-direction: column;
}

.cmg-lbl {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}

.cmg-val {
  font-size: 0.88rem;
  color: #fff;
  font-weight: 800;
}

.cmg-item.highlight {
  grid-column: span 2;
  border-top: 1px solid #1e293b;
  padding-top: 0.4rem;
  margin-top: 0.2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.cmg-val-prize {
  font-size: 1.25rem;
  font-weight: 900;
  color: #10b981;
}

.check-picks-list {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.check-picks-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.btn-refresh-check {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-refresh-check:hover {
  background: rgba(56, 189, 248, 0.3);
}

.check-pick-item {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.cpi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.cpi-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  margin-right: 0.3rem;
}

.cpi-duel {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  flex: 1;
}

.cpi-score-badge {
  font-size: 0.75rem;
  font-weight: 800;
  background: #0f172a;
  color: #38bdf8;
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid #1e293b;
}

.cpi-score-badge.score-final {
  background: #022c22;
  color: #34d399;
  border-color: #059669;
}

.cpi-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cpi-pick-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cpi-choice {
  font-size: 0.8rem;
  font-weight: 800;
  color: #cbd5e1;
}

.cpi-odd {
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  background: #0f172a;
  padding: 1px 5px;
  border-radius: 4px;
}

.cpi-status-badge {
  font-size: 0.75rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.pick-won {
  background: #065f46;
  color: #34d399;
  border: 1px solid #10b981;
}

.pick-lost {
  background: #7f1d1d;
  color: #f87171;
  border: 1px solid #ef4444;
}

.pick-pending {
  background: #1e3a8a;
  color: #93c5fd;
  border: 1px solid #3b82f6;
}

.pick-void {
  background: #374151;
  color: #d1d5db;
  border: 1px solid #6b7280;
}

.check-actions-row {
  display: flex;
  gap: 0.5rem;
}

.btn-action-save-photo {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s;
  font-family: inherit;
}
.btn-action-save-photo:hover {
  background: linear-gradient(135deg, #047857, #059669) !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* ================= AUTENTICAÇÃO, SALDO & CONTA DO APOSTADOR ================= */
.auth-tab-btn {
  background: transparent;
  color: #94a3b8;
  font-family: inherit;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: #1e293b !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.btn-bonus-tag {
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-bonus-tag:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.7) !important;
}

.btn-user-balance-pill {
  transition: transform 0.2s, background-color 0.2s;
}

.btn-user-balance-pill:hover {
  transform: translateY(-1px);
  background: rgba(16, 185, 129, 0.25) !important;
}

@media (max-width: 1024px) {
  .desktop-only-btn {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .brand-titles p {
    display: none;
  }
  .brand-titles h1 {
    font-size: 1.05rem;
  }
  .btn-user-balance-pill {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.78rem !important;
  }
  .btn-user-profile-header {
    padding: 0.35rem 0.55rem !important;
    font-size: 0.75rem !important;
  }
}

.prof-bet-item {
  background: #131d31;
  border: 1px solid #1e2d4a;
  border-radius: 10px;
  padding: 0.85rem;
  transition: border-color 0.2s;
}

.prof-bet-item:hover {
  border-color: #38bdf8;
}

.prof-trans-item {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================= ESTILOS DO RANKING DO TORNEIO ================= */
.rank-item-card {
  background: #131d31;
  border: 1px solid #1e2d4a;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  transition: transform 0.15s, border-color 0.15s;
}

.rank-item-card:hover {
  border-color: #38bdf8;
  transform: translateX(2px);
}

.rank-item-card.is-me {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(16, 185, 129, 0.15));
  border: 2px solid #38bdf8;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.rank-item-card.rank-1 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), #131d31);
  border: 1px solid #f59e0b;
}

.rank-item-card.rank-2 {
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.15), #131d31);
  border: 1px solid #cbd5e1;
}

.rank-item-card.rank-3 {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.15), #131d31);
  border: 1px solid #b45309;
}

.rank-pos-badge {
  font-size: 1rem;
  font-weight: 900;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  background: #0f172a;
}

.rank-badge-1 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.rank-badge-2 {
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  color: #000;
}

.rank-badge-3 {
  background: linear-gradient(135deg, #d97706, #78350f);
  color: #fff;
}

/* ================= POPUP DE LANÇAMENTO & TORNEIO ================= */
.launch-popup-card {
  animation: launchModalFadeUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes launchModalFadeUp {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.launch-pulse-glow {
  animation: pulseGlowGold 2.2s infinite ease-in-out;
}

@keyframes pulseGlowGold {
  0%, 100% {
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  }
  50% {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.7);
  }
}

/* ========================================================
   RADAR DO JOGO AO VIVO & MATCH TRACKER 2D (ESTILO SOFASCORE)
   ======================================================== */
.live-dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
  animation: liveDotPulseAnim 1.6s infinite ease-in-out;
  margin-right: 4px;
  vertical-align: middle;
}

@keyframes liveDotPulseAnim {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.85);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.match-radar-card {
  background: linear-gradient(180deg, #0e172a 0%, #090f1d 100%);
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.radar-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radar-live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.radar-pregame-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

/* ABAS DO RADAR (CAMPINHO 2D VS WIDGET API-SPORTS) */
.radar-view-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.85);
  padding: 3px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.radar-tab-pill {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.65rem;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.radar-tab-pill:hover {
  color: #fff;
}

.radar-tab-pill.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.radar-score-banner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.85rem 1rem 0.5rem;
}

.radar-team-side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.radar-team-side.away {
  flex-direction: row-reverse;
  text-align: right;
}

.radar-team-side-name {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
}

.radar-score-center {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 0.3rem 0.9rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0.8rem;
}

.radar-score-sep {
  color: #64748b;
  font-size: 1.1rem;
}

/* O CAMPINHO DE FUTEBOL 2D PROFISSIONAL */
.pitch-container {
  padding: 0.5rem 0.75rem 0.85rem;
  max-width: 580px;
  margin: 0 auto;
}

.pitch-field {
  position: relative;
  width: 100%;
  height: 220px;
  background: repeating-linear-gradient(
    90deg,
    #092e18 0px,
    #092e18 42px,
    #0e3e22 42px,
    #0e3e22 84px
  );
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.7), 0 6px 18px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

/* Linha de meio-campo */
.pitch-field::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.45);
  transform: translateX(-50%);
}

/* Círculo central */
.pitch-center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 66px;
  height: 66px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pitch-center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Grande área Mandante (Esquerda) */
.pitch-box-left {
  position: absolute;
  top: 50%;
  left: 0;
  width: 18%;
  height: 68%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-left: none;
  transform: translateY(-50%);
}

.pitch-goalbox-left {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7.5%;
  height: 36%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-left: none;
  transform: translateY(-50%);
}

.pitch-pen-dot-left {
  position: absolute;
  top: 50%;
  left: 11.5%;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pitch-arc-left {
  position: absolute;
  top: 50%;
  left: 18%;
  width: 28px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-left: none;
  border-radius: 0 50% 50% 0;
  transform: translateY(-50%);
}

.pitch-goal-net.left {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 24%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-left: none;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
}

/* Grande área Visitante (Direita) */
.pitch-box-right {
  position: absolute;
  top: 50%;
  right: 0;
  width: 18%;
  height: 68%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-right: none;
  transform: translateY(-50%);
}

.pitch-goalbox-right {
  position: absolute;
  top: 50%;
  right: 0;
  width: 7.5%;
  height: 36%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-right: none;
  transform: translateY(-50%);
}

.pitch-pen-dot-right {
  position: absolute;
  top: 50%;
  right: 11.5%;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.pitch-arc-right {
  position: absolute;
  top: 50%;
  right: 18%;
  width: 28px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-right: none;
  border-radius: 50% 0 0 50%;
  transform: translateY(-50%);
}

.pitch-goal-net.right {
  position: absolute;
  top: 50%;
  right: 0;
  width: 6px;
  height: 24%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-right: none;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
}

/* Marcador da Bola Animado com Glow */
.pitch-ball-marker {
  position: absolute;
  top: 50%;
  left: 65%;
  width: 16px;
  height: 16px;
  background: #facc15;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px #facc15, 0 0 24px rgba(250, 204, 21, 0.8);
  animation: pitchBallGlide 4s infinite ease-in-out;
  z-index: 5;
}

.pitch-ball-marker::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 2px solid rgba(250, 204, 21, 0.6);
  border-radius: 50%;
  animation: ballRingExpand 1.5s infinite ease-out;
}

@keyframes ballRingExpand {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes pitchBallGlide {
  0%, 100% { left: 60%; top: 46%; }
  25% { left: 74%; top: 38%; }
  50% { left: 52%; top: 58%; }
  75% { left: 68%; top: 62%; }
}

/* Faixa de Ação Atual no Campo */
.pitch-event-strip {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: #fff;
  z-index: 6;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.pitch-event-text {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ESTATÍSTICAS DO RADAR */
.radar-stats-box {
  padding: 0.5rem 1rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-possession-row {
  margin-bottom: 0.75rem;
}

.stat-possession-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}

.stat-possession-bar-track {
  height: 8px;
  border-radius: 4px;
  background: #38bdf8;
  overflow: hidden;
  display: flex;
}

.stat-possession-fill-home {
  background: #10b981;
  height: 100%;
  transition: width 0.5s ease;
}

.radar-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.radar-stat-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.4rem 0.25rem;
}

.radar-stat-vals {
  font-size: 0.88rem;
  font-weight: 900;
  color: #fff;
  display: flex;
  justify-content: center;
  gap: 0.3rem;
}

.radar-stat-name {
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

/* BOTÕES DE NAVEGAÇÃO ENTRE CAMPINHO E WIDGET API-SPORTS */
.btn-radar-widget-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: calc(100% - 2rem);
  margin: 0.3rem auto 0.9rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.25));
  border: 1px solid #10b981;
  color: #34d399;
  padding: 0.65rem;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-radar-widget-toggle:hover {
  background: #10b981;
  color: #000;
  transform: translateY(-1px);
}

.btn-radar-widget-toggle.back {
  background: rgba(30, 41, 59, 0.7);
  border-color: #334155;
  color: #94a3b8;
}

.btn-radar-widget-toggle.back:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #fff;
}

.api-sports-widget-card-container {
  min-height: 480px;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

/* ================= TELA DE CARREGAMENTO INICIAL (ANTI-FLICKER F5) ================= */
.app-initial-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at 50% 38%, #0d1829 0%, #070d17 65%, #03060a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  user-select: none;
}

.app-initial-loader.loader-fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 360px;
}

.loader-ball-glow {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

.loader-ball-glow::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #10b981;
  border-right-color: #f59e0b;
  border-bottom-color: rgba(16, 185, 129, 0.3);
  animation: loaderRingSpin 0.9s linear infinite;
}

.loader-ball-glow::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, transparent 70%);
  filter: blur(10px);
}

@keyframes loaderRingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-brand-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0 0 0.25rem;
}

.loader-brand-title span {
  color: #10b981;
}

.loader-brand-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1.6rem;
}

.loader-progress-track {
  width: 190px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.85rem;
}

.loader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 45%;
  background: linear-gradient(90deg, #10b981, #38bdf8, #f59e0b);
  border-radius: 4px;
  animation: loaderProgressSlide 1.25s ease-in-out infinite;
}

@keyframes loaderProgressSlide {
  0% { left: -45%; width: 45%; }
  50% { left: 25%; width: 65%; }
  100% { left: 100%; width: 45%; }
}

.loader-status-text {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

/* ============================================================
   OFERTAS DA RODADA & BILHETES PRONTOS (WCAG & ACCESSIBILITY)
   ============================================================ */
.ready-bets-section {
  background: linear-gradient(180deg, #0d1629 0%, #0a1120 100%);
  border: 1px solid #1e2c47;
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.ready-bets-section:focus-within {
  border-color: #38bdf8;
}

.ready-bets-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.ready-bet-card {
  background: #111d33;
  border: 1px solid #1e2c47;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.ready-bet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #34d399);
}

.ready-bet-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.ready-bet-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  align-self: flex-start;
}

.ready-bet-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 0.2rem;
  line-height: 1.3;
}

.ready-bet-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

.ready-bet-picks-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(10, 17, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.ready-bet-pick-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.ready-bet-pick-row strong {
  color: #ffffff;
}

.ready-bet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.ready-bet-odd-wrap {
  display: flex;
  flex-direction: column;
}

.ready-bet-odd-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.ready-bet-odd-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #34d399;
}

.btn-ready-bet-action {
  min-height: 44px;
  min-width: 140px;
  padding: 0 1rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  outline: none;
}

.btn-ready-bet-action:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-ready-bet-action:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}

.btn-ready-bet-action:active {
  transform: scale(0.98);
}

/* ============================================================
   ADMIN COMBOS MANAGEMENT (STAGING & JEV ANALYTICS)
   ============================================================ */
.admin-combo-card {
  background: #111d33;
  border: 1px solid #1e2c47;
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-combo-card:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.admin-combo-card.status-active {
  border-left: 4px solid #10b981;
}

.admin-combo-card.status-draft {
  border-left: 4px solid #f59e0b;
}

.admin-combo-card.status-archived {
  border-left: 4px solid #64748b;
  opacity: 0.75;
}

.admin-combo-jev-box {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-tab-pill {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-tab-pill:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
  color: #fff;
}

.filter-tab-pill.active {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.btn-my-bets-glow {
  transition: all 0.2s ease;
}

.btn-my-bets-glow:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

/* ================= ORGANIZAÇÃO DO APP DO APOSTADOR (2026-10-15) ================= */
/* Cor só comunica estado (verde = dinheiro, âmbar = ação, vermelho = risco). Menus e atalhos neutros. */

/* Busca + Conferir (celular) */
.search-bar-wrap {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.search-field-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}
.search-input[type="search"]::-webkit-search-cancel-button { filter: invert(0.7); }
.mobile-only-conferir-btn {
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  white-space: nowrap;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Botões de navegação do cabeçalho (neutros) */
.header-nav-btn {
  background: #17243c;
  border-color: #2d426b;
  color: #e2e8f0;
}
.header-count-badge {
  background: #38bdf8;
  color: #020617;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 2px;
}

/* Atalhos (Indique / Cambista) na barra de ligas: só no celular, no PC estão na barra lateral */
.sport-cat-chip.chip-shortcut {
  border-style: dashed;
}
@media (min-width: 1024px) {
  .sport-cat-chip.chip-shortcut { display: none !important; }
}

/* Barra lateral (PC): lista de ações neutra */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sidebar-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sidebar-menu-item:hover {
  background: #17243c;
  border-color: #2d426b;
  color: #fff;
}
.sidebar-menu-item .smi-icon {
  width: 1.3rem;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-menu-item .smi-tag {
  margin-left: auto;
  font-size: 0.66rem;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1px 6px;
  border-radius: 6px;
}

/* Cupom: rótulo do mínimo e dica do PIX */
.slip-min-label {
  font-size: 0.7rem;
  color: #8b9ab3;
  font-weight: 800;
}
.slip-pix-hint {
  font-size: 0.72rem;
  color: #8b9ab3;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
}

/* Perfil: saldo, ações e informação */
.prof-balance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.prof-balance-grid.has-bonus {
  grid-template-columns: 1fr 1fr;
}
.prof-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.prof-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 0.5rem;
  background: #17243c;
  border: 1px solid #2d426b;
  border-radius: 10px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.prof-action-btn:hover {
  background: #1f304f;
  border-color: #38bdf8;
}
.prof-info-line {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #cbd5e1;
}

/* Avisos: um por vez, quebram linha no celular e erro em vermelho */
.mobile-toast {
  max-width: calc(100vw - 2rem);
  box-sizing: border-box;
  line-height: 1.35;
}
.mobile-toast.toast-error {
  background: #3b1218;
  border-color: #ef4444;
  color: #fecaca;
}

/* Card de jogo no celular: o nome do campeonato não pode sumir */
.bmc-league-box {
  flex: 1 1 auto;
  min-width: 0;
}
.bmc-league-box span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 480px) {
  /* Compartilhar continua na página do jogo; no card ele roubava o espaço do campeonato */
  .bmc-header .btn-share-match { display: none; }
  .mobile-toast { border-radius: 14px; }
}

/* ================= VISUAL MOBILE-FIRST (2026-10-15, rodada 2) ================= */
/* A maioria da galera aposta pelo celular: tudo abaixo prioriza tela de 360–430px. */

/* Estado vazio padrão (ex.: Bilhetes Prontos sem oferta) */
.empty-state-card {
  text-align: center;
  background: #111a2d;
  border: 1px dashed #2d426b;
  border-radius: 14px;
  padding: 1.6rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.empty-state-card .esc-icon { font-size: 2rem; }
.empty-state-card .esc-title { font-weight: 900; color: #fff; font-size: 0.98rem; }
.empty-state-card .esc-text { font-size: 0.8rem; color: #8b9ab3; line-height: 1.45; max-width: 300px; }
.empty-state-card .esc-btn {
  margin-top: 0.4rem;
  background: #17243c;
  border: 1px solid #2d426b;
  color: #e2e8f0;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
}

/* Conferir bilhete: placeholder normal (o que o cliente digita continua em caixa alta) */
.check-ticket-code-input::placeholder { text-transform: none; font-weight: 600; letter-spacing: 0; }

@media (max-width: 767px) {
  /* Cabeçalho no iPhone / Mobile: respeito pleno à barra de status, notch e Dynamic Island */
  .app-apostador .top-header {
    gap: 0.5rem;
    padding-top: max(0.75rem, calc(0.6rem + env(safe-area-inset-top, 0px)));
    padding-bottom: 0.55rem;
  }
  @media all and (display-mode: standalone) {
    .app-apostador .top-header {
      padding-top: max(48px, calc(env(safe-area-inset-top, 44px) + 6px)) !important;
    }
    body.has-staging-banner .app-apostador .top-header,
    body.has-staging-banner .top-header {
      padding-top: 0.65rem !important;
    }
    body.has-staging-banner #staging-environment-banner {
      padding-top: max(calc(env(safe-area-inset-top, 48px) + 6px), 52px) !important;
    }
  }
  body.has-staging-banner .app-apostador .top-header,
  body.has-staging-banner .top-header {
    padding-top: 0.65rem !important;
  }
  .app-apostador .brand-icon { font-size: 1.35rem; }
  .app-apostador .brand-titles h1 { font-size: 0.98rem; line-height: 1.05; }
  .app-apostador #quick-search-input { padding-top: 0.5rem; padding-bottom: 0.5rem; }

  /* Barra inferior: item ativo com marcador em cima, ícones um pouco menores */
  .bottom-nav { height: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .nav-item-btn { font-size: 0.68rem; color: #8b9ab3; }
  .nav-item-btn .nav-icon { font-size: 1.2rem; }
  .nav-item-btn.active .nav-icon { transform: translateY(-1px); }
  .nav-item-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28%;
    right: 28%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(0, 255, 135, 0.6);
  }
  #bnav-btn-offers .tab-badge-fire { top: 2px !important; right: calc(50% - 22px) !important; }

  /* Barra flutuante do cupom mais enxuta e com respeito total à safe area do iPhone / Android */
  .mini-slip-floating-bar {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 0.4rem 0.75rem;
  }
  .mini-slip-content { padding: 0.6rem 1rem; }

  /* Janelas abrem de baixo, como app nativo (fácil de alcançar com o polegar).
     Só no app do apostador: admin e cambista também carregam este CSS. */
  .app-apostador .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .app-apostador .modal-overlay > .modal-card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 22px 22px 0 0 !important;
    border-bottom: none !important;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
    animation: sheetSlideUp 260ms var(--ease-drawer, cubic-bezier(0.32, 0.72, 0, 1)) both;
  }
  .app-apostador .modal-overlay > .modal-card::before {
    content: '';
    display: block;
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: #2a3b5c;
    margin: -0.35rem auto 0.4rem;
    flex-shrink: 0;
  }
  /* O perfil já tem alça e animação próprias */
  #user-profile-modal > .modal-card { animation: none; }
  #user-profile-modal > .modal-card::before { display: none; }
}

/* ================= PC: barra de filtros e rolagem das colunas ================= */
@media (min-width: 1024px) {
  /* Ligas ficam só na barra lateral; os filtros cabem e quebram linha se precisar (nada escondido) */
  .sport-cat-chip.chip-league { display: none !important; }
  .app-apostador #leagues-bar {
    flex-wrap: wrap;
    overflow: visible;
    position: sticky;
    top: var(--app-header-h, 112px);
    z-index: 20;
    background: linear-gradient(180deg, var(--bg-main) 82%, rgba(6, 10, 18, 0));
    margin: 0 -0.25rem 0.35rem;
    padding: 0.6rem 0.25rem 0.7rem;
  }
  .desktop-sidebar > * { flex-shrink: 0; }
  .desktop-sidebar,
  .desktop-slip-panel {
    scrollbar-width: thin;
    scrollbar-color: #2d426b transparent;
  }
  .desktop-sidebar::-webkit-scrollbar,
  .desktop-slip-panel::-webkit-scrollbar { width: 6px; }
  .desktop-sidebar::-webkit-scrollbar-thumb,
  .desktop-slip-panel::-webkit-scrollbar-thumb { background: #2d426b; border-radius: 6px; }
  .desktop-sidebar::-webkit-scrollbar-track,
  .desktop-slip-panel::-webkit-scrollbar-track { background: transparent; }
  /* Uma rolagem só (a da coluna): o card do cupom tinha uma segunda rolagem interna */
  .desktop-slip-panel .desktop-slip-card { max-height: none; overflow: visible; }
  .slip-header-desktop > div { min-width: 0; }
  .slip-header-desktop > div > span:nth-child(2) { white-space: nowrap; }
  /* Botão Finalizar do cupom sempre visível, mesmo com o cupom cheio */
  #btn-desktop-submit {
    position: sticky;
    bottom: 0;
    z-index: 2;
    box-shadow: 0 -10px 18px #0d1526;
  }
}

/* Meus Bilhetes: carregando e aviso de "bilhetes deste aparelho" (cliente sem conta) */
.mybets-loading {
  text-align: center;
  color: #8b9ab3;
  padding: 2.5rem 1rem;
}
.mybets-device-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #111a2d;
  border: 1px solid #2d426b;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.9rem;
}
.mybets-device-banner div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mybets-device-banner strong { font-size: 0.82rem; color: #fff; }
.mybets-device-banner span { font-size: 0.72rem; color: #8b9ab3; line-height: 1.35; }
.mybets-device-banner button {
  flex-shrink: 0;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-weight: 900;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Perfil = extrato financeiro */
.prof-actions-row.prof-actions-single { grid-template-columns: 1fr; }
.prof-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.15rem 0 0.5rem;
}
.prof-section-title span { font-size: 0.9rem; font-weight: 900; color: #fff; }
.prof-section-title small { font-size: 0.7rem; color: #8b9ab3; }
.prof-statement { display: flex; flex-direction: column; gap: 0.45rem; }
.prof-statement .prof-trans-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
}
.prof-statement .ptc-left { min-width: 0; }
.prof-statement .ptc-texts { min-width: 0; }
.prof-statement .ptc-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #17243c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.prof-statement .ptc-desc { font-size: 0.78rem; line-height: 1.3; overflow-wrap: anywhere; }
.prof-statement .ptc-date { color: #8b9ab3; margin-top: 2px; }
.prof-statement .ptc-amount { flex-shrink: 0; white-space: nowrap; font-size: 0.9rem; }
.prof-statement .ptc-amount.is-in { color: #34d399; }
.prof-statement .ptc-amount.is-out { color: #f87171; }
.prof-statement .ptc-amount-info {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Filtros de Meus Bilhetes: os 4 cabem na tela (antes "Reds" ficava escondido à direita) */
.mybets-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  margin-bottom: 1rem;
}
/* Abas em 2 linhas: nome em cima e número embaixo, cabem em 375px sem cortar */
.mybets-filter-row .filter-tab-pill {
  padding: 0.4rem 0.2rem;
  font-size: 0.7rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1.15;
}
.mybets-filter-row .mbf-label { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mybets-filter-row .mbf-count { font-size: 0.95rem; font-weight: 900; color: #fff; }
.mybets-filter-row .filter-tab-pill.active .mbf-count { color: #38bdf8; }

/* Cash out disponível (oferta da banca para o cliente aceitar) */
.mb-cashout-alert {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #a7f3d0;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.mb-cashout-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(6, 78, 59, 0.4));
  border: 1px solid rgba(52, 211, 153, 0.7);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  margin: 0.6rem 0 0.2rem;
}
.mb-cashout-info { display: flex; flex-direction: column; min-width: 0; }
.mb-cashout-title { font-size: 0.72rem; font-weight: 900; color: #34d399; text-transform: uppercase; }
.mb-cashout-value { font-size: 1.25rem; font-weight: 900; color: #fff; line-height: 1.2; }
.mb-cashout-until { font-size: 0.7rem; color: #cbd5e1; }
.mb-cashout-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
}
.mb-cashout-until .js-co-countdown { color: #fff; font-variant-numeric: tabular-nums; }
.js-co-countdown.co-urgent { color: #fbbf24 !important; }
.mb-cashout-ended {
  margin: 0.6rem 0 0.2rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.45);
  color: #fde68a;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.76rem;
  line-height: 1.35;
}

/* Tela própria do cash out (gaveta de baixo no celular, cartão no centro no PC) */
.co-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(4, 7, 13, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 200ms ease, visibility 200ms ease;
}
.co-sheet-overlay.open { visibility: visible; opacity: 1; }
.co-sheet {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, #0f2a22 0%, #0d1526 45%);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  padding: 0.9rem 1.15rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.7);
  transform: translateY(100%);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.co-sheet-overlay.open .co-sheet { transform: translateY(0); }
@media (min-width: 768px) {
  .co-sheet-overlay { align-items: center; }
  .co-sheet { border-radius: 20px; border-bottom: 1px solid rgba(52, 211, 153, 0.45); }
}
.co-sheet-body { display: flex; flex-direction: column; gap: 0.6rem; }
.co-handle { width: 46px; height: 5px; border-radius: 999px; background: #2a3b5c; margin: 0 auto 0.2rem; }
.co-head { display: flex; justify-content: space-between; align-items: center; }
.co-badge { font-size: 0.72rem; font-weight: 900; color: #34d399; background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(52, 211, 153, 0.45); padding: 3px 10px; border-radius: 999px; letter-spacing: 0.4px; }
.co-x { width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.08); color: #e2e8f0; font-size: 1rem; cursor: pointer; }
.co-code { font-size: 0.78rem; color: #8b9ab3; font-weight: 700; text-align: center; }
.co-amount { font-size: 2.3rem; font-weight: 900; color: #fff; text-align: center; line-height: 1.05; font-variant-numeric: tabular-nums; }
.co-amount-sub { font-size: 0.82rem; color: #a7f3d0; text-align: center; }
.co-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.2rem; }
.co-opt { display: flex; flex-direction: column; gap: 0.15rem; background: #111a2d; border: 1px solid #1e2c47; border-radius: 12px; padding: 0.6rem 0.7rem; }
.co-opt span { font-size: 0.72rem; color: #8b9ab3; font-weight: 800; }
.co-opt strong { font-size: 1.05rem; color: #fff; font-weight: 900; }
.co-opt small { font-size: 0.68rem; color: #8b9ab3; line-height: 1.25; }
.co-opt-now { border-color: rgba(52, 211, 153, 0.6); background: rgba(16, 185, 129, 0.1); }
.co-opt-now strong { color: #34d399; }
.co-timer { font-size: 0.76rem; color: #cbd5e1; text-align: center; }
.co-timer .js-co-countdown { color: #fff; font-variant-numeric: tabular-nums; }
.co-accept {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}
.co-accept:active { transform: scale(0.98); }
.co-cancel {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}
.co-foot { font-size: 0.7rem; color: #8b9ab3; text-align: center; }
.co-center { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; padding: 0.8rem 0 0.4rem; }
.co-center small { font-size: 0.8rem; color: #cbd5e1; line-height: 1.4; }
.co-msg { font-size: 1.1rem; font-weight: 900; color: #fff; }
.co-done-icon { font-size: 2.4rem; }
.co-spin { width: 38px; height: 38px; border-radius: 50%; border: 4px solid rgba(52, 211, 153, 0.25); border-top-color: #34d399; animation: coSpin 0.8s linear infinite; }
@keyframes coSpin { to { transform: rotate(360deg); } }
#modal-my-bets-content .pbc-code { white-space: nowrap; }
#modal-my-bets-content .pbc-date { white-space: nowrap; }
#modal-my-bets-content .pbc-status-tag { white-space: nowrap; flex-shrink: 0; }

/* Linha de atalhos do celular (Indique & Ganhe / Seja Cambista) */
.mobile-shortcuts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.mobile-shortcut-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #111a2d;
  border: 1px solid #1e2c47;
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  color: #e2e8f0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.15s, background 0.15s;
}
.mobile-shortcut-btn:active { background: #17243c; border-color: #2d426b; }
.mobile-shortcut-btn .msb-icon {
  font-size: 1.25rem;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #17243c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-shortcut-btn .msb-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mobile-shortcut-btn .msb-text strong { font-size: 0.8rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-shortcut-btn .msb-text small { font-size: 0.68rem; color: #8b9ab3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) {
  .mobile-shortcuts-row { display: none; }
}

/* Itens do cupom no PC (não tinham estilo nenhum: apareciam como texto solto) */
.desktop-slip-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: #111a2d;
  border: 1px solid #1e2c47;
  border-radius: 8px;
  padding: 0.5rem 0.55rem 0.5rem 0.65rem;
}
.d-item-info { min-width: 0; flex: 1; }
.d-item-match {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.d-item-market {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 700;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.d-item-odd-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.d-item-odd {
  font-weight: 900;
  font-size: 0.85rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.btn-remove-slip-item {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-remove-slip-item:hover { background: rgba(239, 68, 68, 0.25); }

/* Barra de filtros entre 768 e 1023px (mouse sem rolagem lateral): setinha de "tem mais" na borda */
@media (min-width: 768px) and (max-width: 1023px) {
  .app-apostador #leagues-bar {
    mask-image: linear-gradient(90deg, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
}

/* Cupom (gaveta, só existe abaixo de 1024px): retorno e Finalizar grudados no rodapé */
@media (max-width: 1023px) {
  .sheet-sticky-footer {
    position: sticky;
    bottom: calc(-1.25rem - env(safe-area-inset-bottom, 0px));
    margin: 0 -1.25rem calc(-1.25rem - env(safe-area-inset-bottom, 0px));
    padding: 0.7rem 1.25rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(13, 21, 38, 0.92), #0d1526 22%);
    border-top: 1px solid #1e2c47;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 2;
  }
  .sheet-sticky-footer .drawer-summary-card { padding: 0.6rem 0.8rem; gap: 0.3rem; }
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
