@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Paleta Inseto Tips (tema dark — verde + preto) */
  --bg: #0d0d0d;            /* fundo principal preto */
  --bg-2: #1a1a1a;          /* cards/seções */
  --bg-3: #2a2a2a;          /* hover/secundário */
  --line: #2e2e2e;
  --line-strong: #3a3a3a;
  --text: #f0f4f8;          /* texto branco-azulado */
  --text-dim: #94a3b8;
  --accent: #16a34a;        /* verde principal */
  --accent-2: #15803d;      /* verde escuro (hover/destaque) */
  --accent-3: #22c55e;      /* verde claro (gradient) */
  --accent-soft: rgba(22, 163, 74, 0.15);
  --warn: #f59e0b;
  --live: #ef4444;
  --bet-bg: #1a1a1a;
  --bet-bg-h: #2a2a2a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.match, .cupom, .sidebar, .market-block, .bet-card, .match-hero {
  box-shadow: var(--shadow-sm);
}
.match:hover, .market-block:hover { box-shadow: var(--shadow-md); }
.header { box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); background: rgba(255, 255, 255, 0.92); }
body {
  background-image:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.07), transparent 600px),
    radial-gradient(circle at bottom left, rgba(22, 163, 74, 0.06), transparent 700px);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* Header */
.header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px;
  color: var(--text);
}
.logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.logo-img {
  width: 38px; height: 38px;
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(34,197,94,0.4));
  transition: filter 200ms ease;
}
.logo:hover .logo-img { filter: drop-shadow(0 0 14px rgba(34,197,94,0.7)); }
.header-search {
  flex: 1;
  max-width: 420px;
  margin: 0 24px;
}
.header-search input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px 14px 9px 36px;
  border-radius: 20px;
  font-size: 13px;
  font-family: inherit;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%236b7689' viewBox='0 0 16 16'><path d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/></svg>");
  background-repeat: no-repeat;
  background-position: 12px center;
  outline: none;
  transition: border-color 120ms ease;
}
.header-search input:focus { border-color: var(--accent); }
@media (max-width: 900px) { .header-search { display: none; } }

/* Header compacto no mobile pra não estourar com saldos grandes */
@media (max-width: 700px) {
  .header { padding: 0 10px; height: 52px; gap: 8px; }
  .logo { font-size: 14px; gap: 6px; }
  .logo-img { width: 32px; height: 32px; border-radius: 8px; }
  .header-right { gap: 8px; flex-wrap: nowrap; min-width: 0; }
  .saldo-pill {
    padding: 5px 11px;
    font-size: 12px;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(22,163,74,0.3);
    white-space: nowrap;
    flex-shrink: 0;
  }
  /* Esconde "Minhas apostas" texto no mobile (já tem na bottom nav) */
  .header-right .nav-link { display: none; }
  .user-pill { padding: 3px 10px 3px 3px; gap: 5px; flex-shrink: 0; }
  .user-pill #user-nome { font-size: 12px; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .user-pill .avatar { width: 24px; height: 24px; font-size: 11px; }
  .user-pill .user-caret { font-size: 9px; }
}
@media (max-width: 380px) {
  .saldo-pill { font-size: 11px; padding: 4px 9px; }
  .user-pill #user-nome { max-width: 40px; }
  .logo span:not(.logo-img) { display: none; } /* só logo, sem texto "Inseto Bet" */
}

/* Toolbar mobile (escondida no desktop) */
.mobile-toolbar { display: none; }
@media (max-width: 900px) {
  .mobile-toolbar {
    display: flex; gap: 8px;
    padding: 10px 14px 4px;
    background: var(--bg-1);
    align-items: center;
  }
  .mobile-tool-btn {
    flex: 1;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px; font-weight: 700;
    color: var(--text);
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
  }
  .mobile-tool-btn .caret { color: var(--text-dim); font-size: 11px; }
  .mobile-tool-btn.icon-only { flex: 0 0 46px; padding: 10px; font-size: 16px; }
  .mobile-tool-btn:active { transform: scale(0.98); background: rgba(22,163,74,0.08); border-color: var(--accent); }
}

/* Overlay + bottom sheets */
.sheet-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
  backdrop-filter: blur(2px);
}
.sheet-overlay.open { display: block; animation: fadeIn 200ms ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.bottom-sheet {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-2);
  border-radius: 20px 20px 0 0;
  z-index: 100;
  max-height: 80vh;
  overflow: hidden;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}
.bottom-sheet.open { display: flex; animation: slideUp 250ms cubic-bezier(0.4,0,0.2,1); }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.sheet-head::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 4px;
  background: var(--line);
  border-radius: 4px;
}
.sheet-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--text); }
.sheet-close {
  background: var(--bg-3);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 14px; font-weight: 800;
  color: var(--text-dim);
  cursor: pointer;
}
.sheet-list {
  list-style: none; padding: 8px 0; margin: 0;
  overflow-y: auto;
  flex: 1;
}
.sheet-list li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px; font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 120ms ease;
}
.sheet-list li a.active {
  background: linear-gradient(135deg, rgba(22,163,74,0.12), rgba(34,197,94,0.08));
  color: var(--accent);
  font-weight: 800;
  border-left: 3px solid var(--accent);
}
.sheet-list li a:active { background: var(--bg-3); }
.sheet-list li a .count {
  font-size: 11px; font-weight: 800;
  background: var(--bg-3);
  color: var(--text-dim);
  padding: 3px 10px;
  border-radius: 10px;
  min-width: 24px; text-align: center;
}
.sheet-list li a.active .count { background: var(--accent); color: #fff; }
/* Busca inline mobile */
.busca-inline {
  display: none;
  padding: 0 14px 6px;
  background: var(--bg-1);
  position: relative;
}
.busca-inline.open {
  display: flex; align-items: center; gap: 6px;
  animation: slideInline 180ms ease;
}
@keyframes slideInline {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.busca-inline input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--accent);
  font-size: 14px;
  background: var(--bg-2);
  outline: none;
  color: var(--text);
}
.busca-inline input:focus { box-shadow: 0 0 0 3px rgba(22,163,74,0.15); }
.busca-clear {
  width: 38px; height: 38px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 13px; font-weight: 800;
  color: var(--text-dim);
  cursor: pointer;
}
.mobile-tool-btn.active {
  background: linear-gradient(135deg, rgba(22,163,74,0.12), rgba(34,197,94,0.08));
  border-color: var(--accent);
  color: var(--accent);
}

.header-right {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px;
}
.saldo-pill {
  background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent) 100%);
  color: #fff;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
  letter-spacing: -0.2px;
  transition: transform 120ms ease;
}
.saldo-pill:hover { transform: translateY(-1px); }

/* Dropdown do saldo */
.saldo-dropdown {
  position: fixed;
  background: var(--bg-2);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(22, 163, 74, 0.2), 0 0 0 1px var(--line);
  padding: 6px;
  min-width: 240px;
  z-index: 250;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 200ms cubic-bezier(.2,.8,.2,1);
}
.saldo-dropdown.open { opacity: 1; transform: translateY(0); }
.saldo-dd-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 12px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 120ms ease;
}
.saldo-dd-item:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(22, 163, 74, 0.08));
}
.saldo-dd-item .ico {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.saldo-dd-item .t { font-weight: 700; font-size: 13px; color: var(--text); }
.saldo-dd-item .s { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.saldo-dd-sep {
  height: 1px;
  background: var(--line);
  margin: 6px 12px;
}
.saldo-dd-item.danger .ico { background: rgba(239,68,68,0.12); }
.saldo-dd-item.danger .t { color: #dc2626; }
.saldo-dd-item.danger:hover { background: rgba(239,68,68,0.06); }
.user-pill { cursor: pointer; }
.user-pill .user-caret { color: var(--text-dim); font-size: 10px; margin-left: 2px; }
.user-pill:hover { background: var(--bg-2); }

/* ================== Preview do bilhete pra compartilhar ================== */
.preview-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 200ms ease;
}
.preview-overlay.open { opacity: 1; }
.preview-box {
  background: var(--bg-2);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: previewIn 350ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes previewIn {
  from { transform: translateY(20px) scale(0.95); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.preview-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.preview-head h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--text); }
.preview-close {
  width: 32px; height: 32px;
  background: var(--bg-3);
  border: none;
  border-radius: 50%;
  font-size: 14px; font-weight: 800;
  color: var(--text-dim);
  cursor: pointer;
}
.preview-img-wrap {
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(22,163,74,0.04), rgba(34,197,94,0.03));
}
.preview-img-wrap img {
  width: 100%; max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(22,163,74,0.18);
  display: block;
}
.preview-help {
  text-align: center;
  padding: 0 22px 14px;
  font-size: 13px; color: var(--text-dim);
  font-weight: 600;
}
.preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 0 22px 22px;
}
@media (max-width: 480px) { .preview-actions { grid-template-columns: 1fr; } }
.btn-preview-download, .btn-preview-copy, .btn-preview-wpp {
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  font-weight: 800; font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 150ms ease, box-shadow 200ms ease;
}
.btn-preview-download {
  background: var(--bg-2);
  color: var(--text);
  border: 1.5px solid var(--line);
}
.btn-preview-download:hover { border-color: var(--accent); }
.btn-preview-copy {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  box-shadow: 0 6px 16px rgba(22,163,74,0.3);
}
.btn-preview-copy:hover { transform: translateY(-2px); }
.btn-preview-wpp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37,211,102,0.3);
}
.btn-preview-wpp:hover { transform: translateY(-2px); }

/* Modal de instruções pós-share */
.instr-box {
  max-width: 460px;
  padding: 32px 28px 24px;
}
.instr-head {
  text-align: center;
  margin-bottom: 22px;
}
.instr-check {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  box-shadow: 0 12px 30px rgba(16,185,129,0.35);
}
.instr-head h3 {
  margin: 0 0 6px;
  font-size: 22px; font-weight: 900;
  color: var(--text);
  letter-spacing: -0.4px;
}
.instr-head p { margin: 0; font-size: 13px; color: var(--text-dim); }
.instr-passos {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.instr-passos li {
  background: linear-gradient(135deg, rgba(22,163,74,0.06), rgba(34,197,94,0.04));
  border: 1px solid rgba(22,163,74,0.18);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px; color: var(--text);
  line-height: 1.5;
}
.instr-passos li strong:first-child {
  color: var(--accent); font-weight: 900;
  margin-right: 6px;
}
.instr-passos kbd {
  background: var(--text);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px; font-weight: 800;
  font-family: 'SF Mono', Consolas, monospace;
  box-shadow: 0 2px 0 rgba(0,0,0,0.2);
  margin: 0 2px;
}
.instr-passos code {
  background: var(--bg-3);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 12px;
  font-family: 'SF Mono', Consolas, monospace;
}
.instr-aviso {
  background: rgba(245,158,11,0.10);
  color: #d97706;
  border: 1px solid rgba(245,158,11,0.3);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 14px;
  text-align: center;
  font-weight: 600;
}
.instr-ok {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px; font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(22,163,74,0.35);
}
.instr-ok:hover { transform: translateY(-2px); }

/* Banner de apostas suspensas na página do jogo */
.apostas-suspensas {
  display: flex; align-items: center; gap: 18px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.04));
  border: 1.5px solid rgba(239,68,68,0.25);
  border-radius: 16px;
  margin: 18px 0;
}
.apostas-suspensas .susp-ico {
  font-size: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(239,68,68,0.25));
}
.apostas-suspensas .susp-text { display: flex; flex-direction: column; gap: 4px; }
.apostas-suspensas .susp-text strong {
  font-size: 16px; font-weight: 800;
  color: #dc2626;
  letter-spacing: 0.4px;
}
.apostas-suspensas .susp-text span {
  font-size: 13px; color: var(--text-dim);
  line-height: 1.5;
}

/* ================== Bilhete (modal de aposta redesenhado) ================== */
.bilhete-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 200ms ease;
  padding: 20px;
  overflow-y: auto;
}
.bilhete-overlay.open { opacity: 1; }
.bilhete {
  background: var(--bg-2);
  border-radius: 22px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  position: relative;
  display: flex; flex-direction: column;
  filter: drop-shadow(0 24px 60px rgba(22,163,74,0.25));
  animation: bilheteIn 350ms cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11';
  color: var(--text);
}
.bilhete::-webkit-scrollbar { display: none; } /* Chrome/Safari/Edge — esconde scrollbar */
.bilhete *, .bilhete *::before, .bilhete *::after { font-family: inherit; }
@keyframes bilheteIn {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* Topo: marca + status pill + close */
.bilhete-top {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #000000 0%, #0f3a1c 60%, #15803d 100%);
  color: #fff;
  border-radius: 22px 22px 0 0;
}
.bilhete-top.ganha { background: linear-gradient(135deg, #064e3b 0%, #047857 60%, #10b981 100%); }
.bilhete-top.perdida { background: linear-gradient(135deg, #3f0d0d 0%, #7f1d1d 60%, #dc2626 100%); }
.bilhete-top.ganha-iminente { background: linear-gradient(135deg, #000000 0%, #047857 60%, #10b981 100%); }
.bilhete-marca { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.bilhete-marca .marca-logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #000;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(34,197,94,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.bilhete-marca .marca-logo img { width: 100%; height: 100%; object-fit: cover; }
.bilhete-top.ganha .bilhete-marca .marca-logo { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); }
.bilhete-marca .marca-nome { font-size: 15px; font-weight: 800; letter-spacing: -0.3px; }
.bilhete-marca .marca-id {
  font-size: 11px; color: rgba(255,255,255,0.65);
  font-feature-settings: 'tnum'; letter-spacing: 0.3px;
  margin-top: 2px;
  font-weight: 500;
}
.bilhete-status-pill {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 12px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.bilhete-top.ganha .bilhete-status-pill { background: rgba(255,255,255,0.25); }
.bilhete-top.perdida .bilhete-status-pill { background: rgba(255,255,255,0.18); }
.bilhete-close {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #fff;
  font-size: 14px; font-weight: 800;
  cursor: pointer;
}
.bilhete-close:hover { background: rgba(255,255,255,0.25); }

/* Selo de status grande */
.bilhete-selo {
  padding: 22px 22px 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(22,163,74,0.04), transparent);
}
.bilhete-selo.ganha { background: linear-gradient(180deg, rgba(16,185,129,0.08), transparent); }
.bilhete-selo.perdida { background: linear-gradient(180deg, rgba(239,68,68,0.08), transparent); }
.bilhete-selo.ganha-iminente { background: linear-gradient(180deg, rgba(16,185,129,0.08), transparent); }
.selo-tipo {
  font-size: 11px; color: var(--text-dim);
  letter-spacing: 1px; text-transform: uppercase; font-weight: 800;
}
.selo-status {
  margin: 4px 0 6px;
  font-size: 22px; font-weight: 900;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.bilhete-selo.ganha .selo-status { background: linear-gradient(135deg, #059669, #10b981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.bilhete-selo.perdida .selo-status { background: linear-gradient(135deg, #991b1b, #dc2626); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.bilhete-selo.ganha-iminente .selo-status { background: linear-gradient(135deg, #059669, #10b981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.selo-data { font-size: 12px; color: var(--text-dim); }

/* Perfuração separadora (visual de bilhete) */
.bilhete-perfuracao {
  position: relative;
  height: 16px;
  border-top: 2px dashed var(--line);
}
.bilhete-perfuracao .hole {
  position: absolute;
  top: -8px;
  width: 16px; height: 16px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 50%;
}
.bilhete-perfuracao .hole.l { left: -8px; }
.bilhete-perfuracao .hole.r { right: -8px; }

/* Cabeçalho estilo Betano: Tipo + odd combinada */
.bil-cab {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 10px;
  border-bottom: 1px solid var(--line);
}
.bil-cab-titulo {
  font-size: 16px; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}
.bil-cab-odd {
  font-size: 16px; font-weight: 800;
  color: var(--text);
  font-feature-settings: 'tnum';
}

/* Lista de seleções estilo Betano (uma linha clean por jogo) */
.bilhete-selecoes {
  padding: 0 22px;
  display: flex; flex-direction: column;
}
.bil-row {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.bil-row:last-child { border-bottom: none; }
.bil-row-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: flex-start;
}
.bil-icone-apostado {
  width: 32px; height: 32px;
  flex-shrink: 0;
  background: var(--bg-2);
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px;
}
.bil-icone-apostado img { width: 100%; height: 100%; object-fit: contain; }
.bil-icone-apostado.bola {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  border-color: transparent;
  padding: 0;
}
.bil-row-text { min-width: 0; }
.bil-row-pick {
  font-size: 15px;
  font-weight: 700;
  color: #f0f4f8;
  letter-spacing: -0.2px;
  margin-bottom: 4px;
  line-height: 1.25;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.bil-row-badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.bil-row-badge.ok {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16,185,129,0.35);
}
.bil-row-badge.err {
  background: rgba(239,68,68,0.12);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.35);
}
.bil-row-badge.warn {
  background: rgba(245,158,11,0.12);
  color: #d97706;
  border: 1px solid rgba(245,158,11,0.35);
}
.bil-row-badge.wait {
  background: rgba(148,163,184,0.15);
  color: #64748b;
  border: 1px solid rgba(148,163,184,0.3);
}
.bil-row-mercado {
  font-size: 13px;
  color: #4ade80;
  font-weight: 600;
  margin-bottom: 4px;
}
.bil-row-jogo {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 500;
  line-height: 1.3;
}
.bil-row-right {
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.bil-row-odd {
  font-size: 15px;
  font-weight: 800;
  color: #f0f4f8;
  font-feature-settings: 'tnum';
  background: linear-gradient(180deg, #2d2d2d, #1f1f1f);
  border: 1px solid #3a3a3a;
  border-top-color: #4a4a4a;
  padding: 5px 12px;
  border-radius: 6px;
  min-width: 50px; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 1px 2px rgba(0,0,0,0.3);
}
.bil-row-quando {
  font-size: 12px;
  color: #86efac;
  font-weight: 500;
}
.bil-row-placar {
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
  font-feature-settings: 'tnum';
}
/* Estados (cores sutis na borda) */
.bil-row.ok { background: linear-gradient(90deg, rgba(16,185,129,0.10), transparent); }
.bil-row.err { background: linear-gradient(90deg, rgba(239,68,68,0.10), transparent); opacity: 0.7; }
.bil-row.warn { background: linear-gradient(90deg, rgba(245,158,11,0.10), transparent); }
.bil-row.ok .bil-row-odd { color: #4ade80; border-color: #16a34a; background: linear-gradient(180deg, rgba(34,197,94,0.20), rgba(22,163,74,0.10)); }
.bil-row.err .bil-row-odd { color: #fca5a5; border-color: #ef4444; text-decoration: line-through; background: linear-gradient(180deg, rgba(239,68,68,0.15), rgba(220,38,38,0.08)); }
.bilhete-sel {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  border-left: 4px solid var(--text-dim);
}
.bilhete-sel.ok { border-left-color: #10b981; }
.bilhete-sel.err { border-left-color: #ef4444; opacity: 0.7; }
.bilhete-sel.warn { border-left-color: #f59e0b; }
.bilhete-sel.wait { border-left-color: var(--accent); }

.bilhete-sel-bullet {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900;
  background: var(--bg-3);
  color: var(--text-dim);
}
.bilhete-sel.ok .bilhete-sel-bullet { background: rgba(16,185,129,0.15); color: #059669; }
.bilhete-sel.err .bilhete-sel-bullet { background: rgba(239,68,68,0.15); color: #dc2626; }
.bilhete-sel.warn .bilhete-sel-bullet { background: rgba(245,158,11,0.15); color: #d97706; }
.bilhete-sel.wait .bilhete-sel-bullet { background: rgba(22,163,74,0.12); color: var(--accent); }

.bilhete-sel-info { flex: 1; min-width: 0; }
.bilhete-sel-jogo { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.bilhete-team-row {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.bilhete-team-logo {
  position: relative;
  width: 22px; height: 22px;
  flex-shrink: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: inline-block;
}
.bilhete-team-logo img {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px); height: calc(100% - 4px);
  object-fit: contain;
  z-index: 2;
  background: var(--bg-2);
}
.bilhete-team-fbk {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 11px; font-weight: 800;
  z-index: 1;
}
.bilhete-team-name {
  font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap;
}
.bilhete-vs {
  font-size: 10px; font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 2px;
}
.bilhete-sel-pick {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
  margin-bottom: 4px;
}
.pick-mercado {
  font-size: 10px; font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.pick-sel { font-size: 14px; font-weight: 800; color: var(--text); }
.pick-odd {
  font-size: 13px; font-weight: 800;
  color: var(--accent);
  font-feature-settings: 'tnum';
}
.bilhete-sel-status {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.bilhete-sel.ok .bilhete-sel-status { color: #059669; }
.bilhete-sel.err .bilhete-sel-status { color: #dc2626; }
.bilhete-sel.warn .bilhete-sel-status { color: #d97706; }

.bilhete-sel-placar {
  font-size: 18px; font-weight: 900;
  color: var(--accent);
  font-feature-settings: 'tnum';
  letter-spacing: -0.5px;
  display: flex; align-items: baseline; gap: 4px;
  flex-shrink: 0;
}
.bilhete-sel-placar span { font-size: 11px; color: var(--text-dim); font-weight: 700; }

/* Resumo */
.bilhete-resumo {
  padding: 16px 22px;
  background: linear-gradient(180deg, var(--bg-2), transparent);
}
.bilhete-resumo .resumo-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.bilhete-resumo .resumo-row:last-child { border-bottom: none; }
.bilhete-resumo .resumo-row .k { color: var(--text-dim); font-weight: 600; }
.bilhete-resumo .resumo-row .v { color: var(--text); font-weight: 800; font-feature-settings: 'tnum'; }
.bilhete-resumo .odd-pill {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(22,163,74,0.3);
}
.bilhete-resumo .resumo-row.total {
  border-top: 2px solid var(--line);
  margin-top: 4px; padding-top: 14px;
  border-bottom: none;
}
.bilhete-resumo .resumo-row.total .k { font-size: 14px; font-weight: 800; color: var(--text); }
.bilhete-resumo .resumo-row.total .v {
  font-size: 24px;
  color: #22c55e;
}

.bilhete-aviso {
  margin: 0 22px 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px; font-weight: 700;
  text-align: center;
  letter-spacing: 0.2px;
}
.bilhete-aviso.erro {
  background: rgba(239,68,68,0.08);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.25);
}
.bilhete-aviso.ok {
  background: rgba(16,185,129,0.08);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.25);
}

/* Botões de ação do bilhete */
.bilhete-actions {
  padding: 0 22px 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.btn-copy-link {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg-2);
  color: var(--text);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-weight: 800; font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 180ms ease;
  white-space: nowrap;
}
.btn-copy-link:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(22,163,74,0.06), rgba(34,197,94,0.04));
  color: var(--accent);
}
.btn-copy-link:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-share-wpp {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 800; font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 150ms ease, box-shadow 200ms ease;
}
.btn-share-wpp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}
.btn-share-wpp:active { transform: translateY(0); }

/* ================== Página de Perfil ================== */
.perfil-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
}

.perfil-hero {
  background: linear-gradient(135deg, #000000 0%, #0f3a1c 60%, #15803d 100%);
  border-radius: 24px;
  padding: 30px;
  color: #fff;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  position: relative; overflow: hidden;
}
.perfil-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(34,197,94,0.4), transparent 70%);
  filter: blur(40px);
}
@media (max-width: 760px) {
  .perfil-hero { grid-template-columns: 1fr; text-align: center; gap: 16px; padding: 24px; }
  .perfil-hero .perfil-saldo-card { width: 100%; }
}

.perfil-avatar-wrap { position: relative; z-index: 1; text-align: center; }
.perfil-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 48px; font-weight: 900;
  color: #fff;
  box-shadow: 0 12px 32px rgba(34,197,94,0.5), inset 0 2px 0 rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.2);
}
.perfil-status {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  background: rgba(16,185,129,0.18);
  border: 1px solid rgba(16,185,129,0.4);
  padding: 4px 12px; border-radius: 14px;
  font-size: 11px; font-weight: 700;
}
.perfil-status .status-dot {
  width: 7px; height: 7px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 1.4s infinite;
}

.perfil-info { position: relative; z-index: 1; }
.role-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 4px 12px; border-radius: 12px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  margin-bottom: 12px;
}
.role-badge.admin {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: #f59e0b;
  color: #78350f;
}
.perfil-info h1 {
  font-size: 28px; font-weight: 900; margin: 0 0 4px;
  letter-spacing: -0.6px;
}
.perfil-email { margin: 0 0 12px; font-size: 13px; color: rgba(255,255,255,0.7); }
.perfil-meta { font-size: 12px; color: rgba(255,255,255,0.6); }
.perfil-meta strong { color: rgba(255,255,255,0.9); }

.perfil-saldo-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 18px 22px;
  backdrop-filter: blur(18px);
  text-align: center;
  position: relative; z-index: 1;
}
.perfil-saldo-card .lbl {
  font-size: 11px; color: rgba(255,255,255,0.7);
  text-transform: uppercase; font-weight: 700; letter-spacing: 0.6px;
}
.perfil-saldo-card .val {
  font-size: 28px; font-weight: 900;
  margin: 4px 0 12px;
  background: linear-gradient(135deg, #fff, #c4b5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-feature-settings: 'tnum';
}
.btn-add-saldo {
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 10px 20px; border-radius: 10px;
  font-weight: 800; font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 16px rgba(16,185,129,0.35);
  transition: transform 150ms ease;
}
.btn-add-saldo:hover { transform: translateY(-2px); }

/* Stats */
.perfil-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
@media (max-width: 980px) { .perfil-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .perfil-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.stat-card .ico { font-size: 22px; margin-bottom: 4px; }
.stat-card .num {
  font-size: 22px; font-weight: 900;
  color: var(--text);
  font-feature-settings: 'tnum';
  letter-spacing: -0.3px;
}
.stat-card .lbl {
  font-size: 11px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700;
  margin-top: 2px;
}
.stat-card.win .num { color: #059669; }
.stat-card.lose .num { color: #dc2626; }
.stat-card.highlight {
  background: linear-gradient(135deg, rgba(22,163,74,0.06), rgba(34,197,94,0.04));
  border-color: rgba(22,163,74,0.25);
}
.stat-card.highlight .num { color: var(--accent); }
.stat-card .num.pos { color: #059669; }
.stat-card .num.neg { color: #dc2626; }

/* Quick access */
.perfil-quick { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.perfil-quick h2, .perfil-conta h2 { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: var(--text); }
.quick-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (max-width: 600px) { .quick-grid { grid-template-columns: 1fr; } }
.quick-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 180ms ease;
}
.quick-card:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(22,163,74,0.06), rgba(34,197,94,0.04));
  transform: translateY(-2px);
}
.quick-ico {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(22,163,74,0.12), rgba(34,197,94,0.08));
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.quick-t { font-weight: 800; font-size: 14px; }
.quick-s { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.quick-card .quick-arrow {
  margin-left: auto;
  font-size: 22px; color: var(--text-dim);
  transition: transform 150ms ease, color 150ms ease;
}
.quick-card:hover .quick-arrow { color: var(--accent); transform: translateX(3px); }

/* Cards específicos de transação */
.quick-card.transacao { padding: 18px; gap: 16px; }
.quick-card.deposito .quick-ico {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(5,150,105,0.10));
  font-size: 22px;
}
.quick-card.deposito:hover {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(5,150,105,0.04));
}
.quick-card.saque .quick-ico {
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(220,38,38,0.10));
  font-size: 22px;
}
.quick-card.saque:hover {
  border-color: #ef4444;
  background: linear-gradient(135deg, rgba(239,68,68,0.06), rgba(220,38,38,0.04));
}

/* Página saque: tipos de chave PIX e resumo */
.saque-hero { background: linear-gradient(135deg, #000000 0%, #831843 60%, #22c55e 100%) !important; }
.saque-hero .saldo-hero-card .meta .dot { background: #fbbf24; }

.pix-tipos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .pix-tipos { grid-template-columns: repeat(2, 1fr); } }
.pix-tipo {
  padding: 12px 8px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: 10px;
  font-size: 13px; font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 150ms ease;
  font-family: inherit;
}
.pix-tipo:hover { border-color: var(--accent); }
.pix-tipo.active {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-color: #16a34a;
  color: #fff;
  box-shadow: 0 6px 16px rgba(22,163,74,0.3);
}

.pix-chave-input, .pix-titular {
  margin-bottom: 14px;
}
.pix-chave-input label, .pix-titular label {
  display: block;
  font-size: 12px; color: var(--text-dim);
  font-weight: 700; margin-bottom: 6px;
}
.pix-chave-input input, .pix-titular input {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 14px; font-weight: 600;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color 150ms ease;
}
.pix-chave-input input:focus, .pix-titular input:focus { border-color: var(--accent); }
.pix-chave-input input:disabled, .pix-titular input:disabled {
  opacity: 0.5; cursor: not-allowed; background: var(--bg-3);
}
.pix-titular small {
  display: block; margin-top: 6px;
  font-size: 11px; color: var(--text-dim);
}

.resumo-saque {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 18px;
  margin-bottom: 14px;
}
.resumo-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.resumo-row:last-child { border-bottom: none; }
.resumo-row .k { color: var(--text-dim); font-weight: 600; }
.resumo-row .v { color: var(--text); font-weight: 800; font-feature-settings: 'tnum'; }
.resumo-row .v.free { color: #059669; }
.resumo-row.total { border-top: 2px solid var(--accent); }
.resumo-row.total .k { color: var(--text); font-weight: 800; }
.resumo-row.total .v {
  font-size: 22px;
  color: #22c55e;
}

/* Conta / segurança */
.perfil-conta { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.conta-list { display: flex; flex-direction: column; }
.conta-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.conta-item:last-child { border-bottom: none; }
.conta-item .ico-wrap {
  width: 40px; height: 40px;
  background: var(--bg-2);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.conta-item.danger .ico-wrap { background: rgba(239,68,68,0.1); }
.conta-item .info { flex: 1; min-width: 0; }
.conta-item .info strong { display: block; font-size: 14px; color: var(--text); }
.conta-item .info span { font-size: 12px; color: var(--text-dim); }
.btn-secondary, .btn-danger {
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 700; font-size: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-danger {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.btn-danger:hover { background: #b91c1c; }

/* ================== Página de Saldo / PIX ================== */
.saldo-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
}

.saldo-hero {
  background: linear-gradient(135deg, #000000 0%, #0f3a1c 60%, #15803d 100%);
  border-radius: 24px;
  padding: 36px 38px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.saldo-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(34,197,94,0.4), transparent 70%);
  filter: blur(40px);
}
.saldo-hero-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
  position: relative; z-index: 1;
}
.saldo-hero-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.6px; text-transform: uppercase;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.saldo-hero h1 {
  font-size: 32px; font-weight: 900;
  letter-spacing: -1px; line-height: 1.1;
  margin: 0 0 12px;
}
.saldo-hero h1 .grad {
  background: linear-gradient(135deg, #fbbf24 0%, #22c55e 60%, #16a34a 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.saldo-hero-sub { font-size: 14px; color: rgba(255,255,255,0.8); margin: 0; line-height: 1.6; max-width: 420px; }

.saldo-hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 22px 26px;
  backdrop-filter: blur(20px);
  text-align: center;
}
.saldo-hero-card .lbl {
  font-size: 11px; color: rgba(255,255,255,0.7);
  letter-spacing: 1px; text-transform: uppercase; font-weight: 700;
}
.saldo-hero-card .val {
  font-size: 38px; font-weight: 900;
  margin: 6px 0 4px;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-feature-settings: 'tnum';
  letter-spacing: -1px;
}
.saldo-hero-card .meta {
  font-size: 11px; color: rgba(255,255,255,0.6);
  display: inline-flex; align-items: center; gap: 6px;
}
.saldo-hero-card .meta .dot { width: 6px; height: 6px; background: #10b981; border-radius: 50%; animation: pulse 1.4s infinite; }

@media (max-width: 700px) {
  .saldo-hero-grid { grid-template-columns: 1fr; }
  .saldo-hero { padding: 24px; }
  .saldo-hero h1 { font-size: 24px; }
}

/* Steps */
.saldo-step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 28px;
  display: flex; gap: 22px;
}
.step-num {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 18px;
  box-shadow: 0 6px 16px rgba(22,163,74,0.3);
}
.step-body { flex: 1; min-width: 0; }
.step-body h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.step-body .step-sub { margin: 0 0 18px; font-size: 13px; color: var(--text-dim); }

.valor-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 8px; margin-bottom: 18px;
}
@media (max-width: 700px) { .valor-grid { grid-template-columns: repeat(3, 1fr); } }
.valor-chip {
  padding: 14px 8px;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 14px; font-weight: 800;
  color: var(--text);
  cursor: pointer;
  transition: all 150ms ease;
  font-family: inherit;
}
.valor-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.valor-chip.active {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-color: #16a34a;
  color: #fff;
  box-shadow: 0 8px 20px rgba(22,163,74,0.35);
}

.valor-custom label {
  display: block; font-size: 12px; color: var(--text-dim);
  font-weight: 700; margin-bottom: 6px;
}
.valor-custom-input {
  display: flex; align-items: center;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  transition: border-color 150ms ease;
}
.valor-custom-input:focus-within { border-color: var(--accent); }
.valor-custom-input .prefix {
  font-weight: 800; color: var(--text-dim); font-size: 15px;
  margin-right: 8px;
}
.valor-custom-input input {
  border: none; outline: none; background: transparent;
  width: 100%; padding: 14px 0;
  font-size: 18px; font-weight: 800; color: var(--text);
  font-feature-settings: 'tnum';
  font-family: inherit;
}

/* PIX box */
.pix-box {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 24px; align-items: start;
}
@media (max-width: 760px) { .pix-box { grid-template-columns: 1fr; } }

.pix-qr {
  width: 280px; height: 280px;
  margin: 0 auto;
}
.qr-placeholder {
  width: 100%; height: 100%;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.qr-grid {
  position: absolute; inset: 12px;
  background-image:
    linear-gradient(0deg, rgba(0,0,0,0.85) 50%, transparent 50%),
    linear-gradient(90deg, rgba(0,0,0,0.85) 50%, transparent 50%);
  background-size: 14px 14px;
  opacity: 0.18;
  filter: blur(0.5px);
}
.qr-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(2px);
}
.qr-em-breve {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  padding: 8px 18px; border-radius: 20px;
  font-weight: 800; font-size: 14px;
  box-shadow: 0 8px 20px rgba(22,163,74,0.35);
}
.qr-overlay small { color: var(--text-dim); font-size: 11px; max-width: 200px; text-align: center; }

.pix-info {
  display: flex; flex-direction: column; gap: 10px;
}
.pix-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: var(--bg-2);
  border-radius: 10px;
  font-size: 13px;
}
.pix-row .k { color: var(--text-dim); font-weight: 600; }
.pix-row .v { color: var(--text); font-weight: 800; font-size: 14px; font-feature-settings: 'tnum'; }

.pix-copia-cola { margin-top: 8px; }
.pix-copia-cola label {
  display: block; font-size: 11px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700;
  margin-bottom: 6px;
}
.copia-cola-wrap {
  display: flex; gap: 6px;
}
.copia-cola-wrap input {
  flex: 1; padding: 12px 14px;
  background: var(--bg-3);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 12px; color: var(--text-dim);
  font-family: 'SF Mono', Consolas, monospace;
  outline: none;
}
.btn-copia {
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  border: none; border-radius: 10px;
  font-weight: 800; font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.btn-copia:disabled { background: #94a3b8; cursor: not-allowed; }

.pix-instrucoes {
  margin-top: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(22,163,74,0.06), rgba(34,197,94,0.04));
  border: 1px solid rgba(22,163,74,0.15);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.pix-instrucoes .instr {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 13px; color: var(--text);
}
.pix-instrucoes .instr span {
  color: var(--accent); font-weight: 900; font-size: 13px;
  flex-shrink: 0; min-width: 16px;
}

/* Confirmar passo */
.confirm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.btn-pago, .btn-comprovante {
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 800; font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  border: none;
}
.btn-pago {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 8px 20px rgba(16,185,129,0.3);
}
.btn-comprovante {
  background: var(--bg-2);
  color: var(--text);
  border: 1.5px solid var(--line);
}
.btn-pago:disabled, .btn-comprovante:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.status-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 16px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.3px;
}
.status-pendente {
  background: rgba(245,158,11,0.12);
  color: #d97706;
  border: 1px solid rgba(245,158,11,0.3);
}
.status-help { font-size: 12px; color: var(--text-dim); }

/* Histórico */
.saldo-historico {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 28px;
}
.saldo-historico h2 { margin: 0 0 16px; font-size: 18px; font-weight: 800; }
.historico-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}
.historico-empty .empty-ico { font-size: 48px; margin-bottom: 12px; }
.historico-empty p { font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 4px; }
.historico-empty small { font-size: 12px; }

/* Avisos */
.saldo-avisos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 4px;
}
@media (max-width: 760px) { .saldo-avisos { grid-template-columns: 1fr; } }
.aviso {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex; gap: 14px;
  align-items: flex-start;
}
.aviso-ico {
  font-size: 24px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(22,163,74,0.1), rgba(34,197,94,0.08));
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.aviso strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.aviso p { font-size: 12px; color: var(--text-dim); margin: 0; line-height: 1.5; }
.user-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-3);
  padding: 5px 12px 5px 5px;
  border-radius: 20px;
}
.user-pill .avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 12px;
}
.nav-link { color: var(--text-dim); padding: 8px 0; }
.nav-link:hover { color: var(--text); }

/* Tabs (sports/quick filters) */
.tabs {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 12px 16px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Layout */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr 340px;
  gap: 16px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 16px 20px;
}
.layout.layout-no-cupom { grid-template-columns: 240px 1fr; }
@media (max-width: 1100px) {
  .layout, .layout.layout-no-cupom { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* Sidebar */
.sidebar {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  height: fit-content;
  position: sticky; top: 110px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.sidebar h3 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
}
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 13px;
  transition: background 120ms ease, color 120ms ease;
}
.sidebar-list li a:hover { background: var(--bg-3); color: var(--text); }
.sidebar-list li a.active { background: var(--accent-soft); color: var(--accent); }
.sidebar-list .count {
  background: var(--bg-3);
  color: var(--text-dim);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

/* Section */
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 4px 14px;
}
.section-title h2 { font-size: 16px; font-weight: 700; margin: 0; }
.section-title .info { font-size: 12px; color: var(--text-dim); }

/* Group by date */
.grupo-data { margin-bottom: 24px; }
.grupo-data-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 4px 10px;
}
.grupo-data-head h2 {
  font-size: 14px; font-weight: 700; margin: 0;
  display: flex; align-items: center; gap: 8px;
}
.grupo-data-head h2 .ico {
  width: 22px; height: 22px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.grupo-data-head .info { font-size: 11px; color: var(--text-dim); }

/* Featured banner */
.featured {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.4), transparent 50%),
    linear-gradient(135deg, #000000 0%, #0f3a1c 60%, #15803d 100%);
  color: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(21, 128, 61, 0.3);
  position: relative;
  overflow: hidden;
}
.featured::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.featured.is-live { border-left: 4px solid var(--live); padding-left: 18px; }
.featured .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.85;
  font-weight: 700;
  margin-bottom: 6px;
}
.featured .teams { font-size: 19px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.3px; }
.featured .teams a { color: inherit; }
.featured .teams a:hover { opacity: 0.85; }
.featured .meta { font-size: 12px; opacity: 0.75; }
.featured .live-pill {
  background: var(--live);
  color: #fff;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 800;
  display: inline-flex; align-items: center; gap: 5px;
}
.featured-teams-visual {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.08);
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
}
.featured-teams-visual .team-logo img,
.featured-teams-visual .team-avatar {
  width: 42px !important; height: 42px !important;
  max-width: 42px !important; max-height: 42px !important;
}
.featured-teams-visual .vs-min {
  font-weight: 800; font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1px;
}
.featured-teams-visual .vs-min.vs-grande {
  font-size: 14px;
}
.featured-teams-visual .placar-grupo {
  display: flex; align-items: center; gap: 8px;
}
.featured-teams-visual .placar-num {
  font-weight: 800; font-size: 26px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  letter-spacing: -0.5px;
  min-width: 22px; text-align: center;
}
.featured .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  opacity: 0.7; font-weight: 600; margin-bottom: 6px;
}
.featured .teams { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.featured .meta { font-size: 12px; opacity: 0.85; }
.featured-odds { display: flex; gap: 6px; }
.featured-odds button {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 60px;
  transition: all 150ms ease;
  border: 1px solid rgba(255,255,255,0.18);
}
.featured-odds button:hover {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.5);
}
.featured-odds .v { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.featured-odds .n { font-size: 10px; opacity: 0.8; }
@media (max-width: 700px) {
  .featured {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
    text-align: center;
  }
  .featured-teams-visual {
    justify-content: center;
    padding: 10px 14px;
    gap: 10px;
  }
  .featured-teams-visual .team-logo img,
  .featured-teams-visual .team-avatar {
    width: 36px !important; height: 36px !important;
    max-width: 36px !important; max-height: 36px !important;
  }
  .featured-teams-visual .placar-num { font-size: 22px; }
  .featured .teams { font-size: 16px; line-height: 1.25; }
  .featured .meta { font-size: 11px; }
  .featured-odds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .featured-odds button {
    padding: 10px 6px;
    font-size: 12px;
    min-width: 0;
  }
  .featured-odds .v { font-size: 14px; }
  .featured-odds .n { font-size: 9px; }
}

/* Team avatars + logos */
.team-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-weight: 600; font-size: 14px; }
.team-row:last-child { margin-bottom: 0; }
.team-avatar {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.3px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}
.team-avatar::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent);
  border-radius: 6px 6px 0 0;
}
.team-logo {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.team-logo img {
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

/* Match horizontal layout (date | teams | score | odds | actions) */
.match-row-top {
  display: grid;
  grid-template-columns: 56px minmax(180px, 1fr) auto 320px auto;
  gap: 12px;
  align-items: center;
}
.match-mobile-odds { display: none !important; }

/* Layout horizontal: tempo | casa+escudo | [3 odds iguais] | escudo+fora | actions */
.match-row-h {
  display: grid;
  grid-template-columns: 56px 1fr 340px 1fr;
  gap: 20px;
  align-items: center;
}
.odds-cluster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.odds-cluster.suspended {
  display: flex; align-items: center; justify-content: center;
  min-height: 50px;
}
.suspended-banner {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.odds-cluster.suspended.ao_vivo .suspended-banner {
  color: var(--live);
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
}
.odds-cluster.suspended.finalizado .suspended-banner {
  color: var(--text-dim);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--line);
}
.suspended-banner .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.4s ease-in-out infinite;
}

.featured-odds.suspended {
  display: flex; align-items: center; justify-content: flex-end;
}
.featured-suspended {
  padding: 12px 22px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-weight: 800; font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.bet-odd-box {
  background: linear-gradient(180deg, #2d2d2d 0%, #1f1f1f 100%);
  border: 1px solid #3a3a3a;
  border-top-color: #4a4a4a;
  border-bottom-color: #1a1a1a;
  border-radius: 10px;
  padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  cursor: pointer;
  transition: all 150ms cubic-bezier(.2,.8,.2,1);
  font-family: inherit;
  position: relative;
  overflow: hidden;
  min-height: 64px;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -2px 4px rgba(0,0,0,0.4),
    0 2px 4px rgba(0,0,0,0.3),
    0 4px 12px rgba(0,0,0,0.2);
}
.bet-odd-box::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(22, 163, 74, 0.05));
  opacity: 0;
  transition: opacity 150ms ease;
}
.bet-odd-box .lbl {
  font-size: 10px; font-weight: 800;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative; z-index: 1;
}
.bet-odd-box .val {
  font-size: 17px; font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
  position: relative; z-index: 1;
}
.bet-odd-box:hover {
  background: linear-gradient(180deg, #353535 0%, #252525 100%);
  border-color: var(--accent);
  border-top-color: #4ade80;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(34,197,94,0.25),
    inset 0 -2px 4px rgba(0,0,0,0.4),
    0 0 18px rgba(22, 163, 74, 0.35),
    0 6px 16px rgba(0,0,0,0.5);
}
.bet-odd-box:hover::before { opacity: 1; }
.bet-odd-box:hover .val { color: var(--accent-3); text-shadow: 0 0 12px rgba(34,197,94,0.6); }
.bet-odd-box:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(0,0,0,0.3),
    0 1px 2px rgba(0,0,0,0.4);
}
.bet-odd-box.selected {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 60%, #15803d 100%);
  border-color: transparent;
  border-top-color: rgba(255,255,255,0.4);
  border-bottom-color: rgba(0,0,0,0.3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -2px 4px rgba(0,0,0,0.25),
    0 0 24px rgba(34,197,94,0.5),
    0 6px 16px rgba(22,163,74,0.4);
}
.bet-odd-box.selected .lbl, .bet-odd-box.selected .val { color: #fff; }
.bet-odd-box.disabled { cursor: default; opacity: 0.6; }
.bet-odd-box.disabled:hover { transform: none; box-shadow: none; background: var(--bg-3); border-color: transparent; }
.bet-odd-box.win {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  opacity: 1;
}
.bet-odd-box.win .val { color: #059669; }
.bet-odd-box.win .lbl::after { content: ' ✓'; color: #10b981; }
.bet-odd-box.placeholder { opacity: 0.3; cursor: default; }
.match-team-h {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
.match-team-h.fora { justify-content: flex-end; }
.match-team-h .nome {
  font-weight: 700; font-size: 17px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 0 1 auto; min-width: 0;
  letter-spacing: -0.3px;
}
/* Nome curto/longo: por padrão mostra full, no mobile mostra curto */
.match-team-h .nome-curto { display: none; }
@media (max-width: 900px) {
  .match-team-h .nome-full { display: none; }
  .match-team-h .nome-curto { display: inline; }
}
.match-team-h .team-logo, .match-team-h .team-avatar {
  width: 60px !important; height: 60px !important;
  max-width: 60px !important; max-height: 60px !important;
}
.match-team-h .team-logo img { width: 60px; height: 60px; }
.match-team-h.fora .nome { text-align: right; }
/* removidas — agora odds vão no .odds-cluster centralizado */
.bet-odd {
  background: var(--bg-3);
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px; font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all 130ms ease;
  min-width: 64px;
}
.bet-odd:hover {
  background: var(--bg-2);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.18);
}
.bet-odd.selected {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #fff;
  border-color: transparent;
}
.bet-odd.disabled {
  cursor: default; opacity: 0.6;
}
.bet-odd.disabled:hover { transform: none; box-shadow: none; }
.bet-odd.win {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border-color: #10b981;
  opacity: 1;
}
.bet-odd.win::after { content: ' ✓'; }
.odd-placeholder { width: 64px; }

.match-actions-h {
  display: flex; align-items: center; gap: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.placar-mini-h {
  font-weight: 800; font-size: 18px; color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: 8px;
  margin-left: auto;
}
.match-liga {
  font-size: 11px; color: var(--text-dim); margin-top: 8px; padding-left: 70px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.match-more-bets {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 0;
  transition: color 150ms ease;
  white-space: nowrap;
  margin-right: 14px;
  letter-spacing: 0.2px;
}
.match-more-bets .num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 18px; padding: 0 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 800; font-size: 11px;
  border-radius: 9px;
  letter-spacing: 0;
}
.match-more-bets .arrow {
  font-size: 14px; line-height: 1;
  color: var(--accent);
  transition: transform 180ms ease;
}
.match-more-bets:hover { color: var(--accent); }
.match-more-bets:hover .arrow { transform: translateX(3px); }

@media (max-width: 900px) {
  .match-row-h {
    grid-template-columns: 56px 1fr 1fr;
    grid-template-areas:
      "time casa fora"
      "odds odds odds";
    row-gap: 12px;
    column-gap: 8px;
  }
  .match-row-h > .match-time { grid-area: time; }
  .match-team-h.casa { grid-area: casa; justify-content: flex-start; gap: 8px; min-width: 0; }
  .match-team-h.fora { grid-area: fora; justify-content: flex-end; gap: 8px; display: flex !important; min-width: 0; }
  .match-team-h .nome {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto; min-width: 0;
    line-height: 1.2;
  }
  .match-team-h .team-logo, .match-team-h .team-avatar {
    width: 36px !important; height: 36px !important;
    max-width: 36px !important; max-height: 36px !important;
    flex-shrink: 0;
  }
  .match-team-h .team-logo img { width: 36px; height: 36px; }
  .match-team-h .team-score {
    font-size: 18px;
    min-width: 18px;
    padding: 1px 5px;
    flex-shrink: 0;
  }
  .odds-cluster { grid-area: odds; }
  .match-liga { padding-left: 0; text-align: center; }
}
@media (max-width: 500px) {
  .match-team-h .nome { font-size: 11px; }
  .match-team-h .team-logo, .match-team-h .team-avatar {
    width: 28px !important; height: 28px !important;
    max-width: 28px !important; max-height: 28px !important;
  }
  .match-team-h .team-logo img { width: 28px; height: 28px; }
}
/* só mostra mobile-odds em telas REALMENTE pequenas */
@media (max-width: 700px) {
  .match-row-top { grid-template-columns: 56px 1fr auto; }
  .match-row-top .inline-odds, .match-row-top .match-actions { display: none; }
  .match-mobile-odds { display: grid !important; }
}
.match-time {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 4px;
  border-right: 1px solid var(--line);
  font-size: 10px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  min-height: 44px; justify-content: center;
}
.match-time .dia { font-weight: 600; color: var(--text); }
.match-time .hora { font-size: 13px; font-weight: 700; color: var(--text); }
.match-time .periodo { font-size: 9px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.match-time.live { color: var(--live); }
.match-time.live .ico { font-size: 14px; animation: pulse 1.4s ease-in-out infinite; }
.match-time.live .minuto {
  font-size: 15px; font-weight: 800; color: var(--live);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  font-family: 'SF Mono', 'Roboto Mono', 'Consolas', monospace;
}
.match-time.live .periodo { color: var(--live); font-size: 9px; }

/* Placar inline ao lado dos nomes dos times — fonte bonita estilo scoreboard */
.team-score {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  font-family: 'Bebas Neue', 'Oswald', 'Inter', system-ui, sans-serif;
  line-height: 1;
  min-width: 22px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(22,163,74,0.08), rgba(34,197,94,0.06));
  border: 1px solid rgba(22,163,74,0.18);
  box-shadow: 0 1px 0 rgba(22,163,74,0.05) inset;
}
.match.is-live .team-score {
  color: var(--live);
  background: linear-gradient(135deg, rgba(239,68,68,0.10), rgba(239,68,68,0.04));
  border-color: rgba(239,68,68,0.28);
  animation: scorePulse 2.4s ease-in-out infinite;
}
.match.is-finished .team-score {
  color: var(--text-dim);
  background: rgba(0,0,0,0.03);
  border-color: var(--line);
}
@keyframes scorePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(239,68,68,0); }
  50% { box-shadow: 0 0 12px rgba(239,68,68,0.25); }
}
.team-score.score-flash {
  animation: scoreFlash 1.2s ease;
}
@keyframes scoreFlash {
  0% { transform: scale(1); background: rgba(22,163,74,0.4); color: white; }
  50% { transform: scale(1.3); background: rgba(22,163,74,0.6); color: white; }
  100% { transform: scale(1); }
}

.match-info { min-width: 0; }
.match-info .team-row {
  font-size: 13px; font-weight: 600; margin-bottom: 3px; gap: 6px;
}
.match-info .team-row:last-of-type { margin-bottom: 0; }
.match-info .liga-mini {
  font-size: 10px; color: var(--text-dim); margin-top: 4px;
  display: flex; align-items: center; gap: 4px;
}

/* Inline 1X2 ao lado dos times (estilo Betano) */
.inline-odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.inline-odd {
  background: var(--bg-3);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 130ms ease;
  min-width: 0;
}
.inline-odd .lbl {
  font-size: 11px; color: var(--text-dim);
  font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase;
}
.inline-odd .val {
  font-size: 15px; font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.inline-odd:hover {
  background: var(--bg-2);
  border-color: var(--accent);
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.15);
}
.inline-odd.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.inline-odd .lbl { color: var(--text-dim); font-weight: 500; }
.inline-odd.selected .lbl { color: #fff; opacity: 0.85; }
.inline-odd.selected { background: linear-gradient(135deg, var(--accent-3), var(--accent)); border-color: transparent; color: #fff; }
.inline-odd.selected .val { color: #fff; }

/* Action icons à direita (mais mercados, favorito) */
.match-actions {
  display: flex; flex-direction: column; gap: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.match-action {
  background: none;
  color: var(--text-dim);
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all 120ms ease;
  font-size: 13px;
}
.match-action:hover { background: var(--bg-3); color: var(--accent); }

.match-score {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 14px; font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 0 6px;
  min-width: 24px;
}

.match { position: relative; }

/* Live state highlight */
.match.is-live { border-color: var(--live); }
.match.is-live::before {
  content: 'AO VIVO';
  position: absolute;
  top: 0; right: 0;
  background: var(--live);
  color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 3px 10px;
  border-radius: 0 10px 0 10px;
  letter-spacing: 0.5px;
}

/* Game card */
.match-list { display: flex; flex-direction: column; gap: 8px; }
.match {
  background: linear-gradient(180deg, #1f1f1f 0%, #161616 100%);
  border: 1px solid #2e2e2e;
  border-top-color: #3a3a3a;
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 200ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 4px 12px rgba(0,0,0,0.3),
    0 1px 3px rgba(0,0,0,0.2);
}
.match:hover {
  border-color: rgba(22,163,74,0.5);
  border-top-color: rgba(34,197,94,0.6);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(34,197,94,0.15),
    0 0 24px rgba(22, 163, 74, 0.18),
    0 8px 20px rgba(0,0,0,0.4);
}
.match-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.match-head .liga { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.match-head .live { color: var(--live); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.match-head .live::before {
  content: ''; width: 6px; height: 6px; background: var(--live);
  border-radius: 50%; animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.match-teams {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}
.match-teams .nomes {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 14px; font-weight: 600;
  flex: 1; min-width: 0;
}
.match-teams .nomes a { display: block; color: var(--text); }
.match-teams .nomes a:hover { color: var(--accent); }
.match-teams .placar {
  font-size: 18px; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.market-row { margin-bottom: 6px; }
.market-row:last-child { margin-bottom: 0; }
.market-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 600;
}
.odds-grid {
  display: grid; gap: 4px;
}
.odds-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.odds-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.odd-btn {
  background: var(--bet-bg);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: var(--text);
  transition: all 150ms cubic-bezier(.2,.8,.2,1);
  border: 1px solid transparent;
}
.odd-btn:hover {
  background: var(--bg-2);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.20);
  transform: translateY(-1px);
}
.odd-btn.selected {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}
.odd-btn .nome {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 11px;
}
.odd-btn.selected .nome { color: rgba(255,255,255,0.9); }
.odd-btn .valor {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-size: 13px;
}
.odd-btn:hover .valor { color: var(--accent); }
.odd-btn.selected .valor { color: #fff; }

.match-foot {
  display: flex; justify-content: flex-end; margin-top: 8px;
}
.more-markets {
  font-size: 11px;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-3);
  transition: color 120ms ease, background 120ms ease;
}
.more-markets:hover { color: var(--accent); background: var(--bet-bg-h); }

/* Cupom — Drawer lateral animado (estilo bilhete) */
/* overlay desabilitado — cupom não bloqueia mais a página */
.cupom-overlay { display: none; }

/* empurra conteúdo pra esquerda quando cupom abre, evitando sobreposição */
body { transition: padding-right 280ms cubic-bezier(.2,.8,.2,1); }
body.cupom-open { padding-right: 352px; }
@media (max-width: 1100px) {
  body.cupom-open { padding-right: 0; }
}

.cupom-drawer {
  position: fixed;
  top: auto; right: 16px; bottom: 16px;
  width: 320px;
  max-width: 92vw;
  max-height: 80vh;
  background: var(--bg-2);
  z-index: 100;
  display: flex; flex-direction: column;
  transform: translate(120%, 0);
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 20px 50px rgba(21, 128, 61, 0.25), 0 8px 20px rgba(15, 23, 42, 0.1);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.cupom-drawer.open { transform: translate(0, 0); }
.cupom-drawer-head { flex-shrink: 0; }
.cupom-actions { flex-shrink: 0; }
.cupom-tabs { flex-shrink: 0; }
.cupom-collapsible {
  display: flex; flex-direction: column;
  min-height: 0;
}
.cupom-drawer-body { overflow-y: auto; max-height: 50vh; }
.cupom-footer { flex-shrink: 0; }
@media (max-width: 700px) {
  /* Mobile: cupom vira "bottom sheet" full-width que sobe de baixo */
  .cupom-drawer {
    right: 0; left: 0; bottom: 0;
    width: 100%; max-width: 100%;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
    transition: transform 320ms cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 -10px 40px rgba(21, 128, 61, 0.2);
  }
  .cupom-drawer.open { transform: translateY(0); }
  .cupom-drawer-head { padding: 12px 16px; }
  .cupom-drawer-head::before {
    content: '';
    position: absolute; top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 56px; height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    transition: background 200ms ease;
  }
  .cupom-drawer-head:active::before { background: rgba(255, 255, 255, 0.8); }
  .cupom-drawer-head {
    position: relative; padding-top: 22px;
    cursor: grab;
    touch-action: none; /* impede o browser de fazer scroll vertical na área */
  }
  .cupom-drawer-head:active { cursor: grabbing; }
  .cupom-drawer-body { padding: 10px; max-height: none; flex: 1 1 auto; min-height: 0; }
  .cupom-collapsible { flex: 1 1 auto; min-height: 0; }

  /* Compacta cards de múltipla no mobile */
  .cupom-card { padding: 10px; margin-bottom: 8px; }
  .cupom-card-head { margin-bottom: 6px; }
  .cupom-card-head .titulo { font-size: 12px; }
  .cupom-card-head .odd-total { padding: 3px 9px; font-size: 12px; }
  .cupom-grupo { margin: 8px 0; padding-bottom: 6px; }
  .cupom-grupo-jogo { font-size: 11px; margin-bottom: 5px; }
  .cupom-grupo-item { margin: 4px 0; gap: 8px; }
  .cupom-grupo-item .info { font-size: 11px; }
  .cupom-grupo-item .nome { gap: 5px; }
  .cupom-grupo-item .mercado { font-size: 10px; }
  .cupom-grupo-item .bullet { width: 9px; height: 9px; }
  .cupom-valores { gap: 4px; margin-top: 8px; }
  .cupom-valores input { padding: 10px 12px; font-size: 15px; }
  .cupom-valores .quick { padding: 8px 6px; font-size: 11px; }
  .cupom-card-footer { margin-top: 6px; padding-top: 6px; font-size: 12px; }
  .cupom-footer { padding: 10px 14px; }
  .cupom-footer-row { font-size: 12px; padding: 3px 0; }
  .btn-apostar { padding: 11px; font-size: 13px; }
  .cupom-saldo-info { font-size: 11px; margin-top: 6px; }

  .cupom-fab {
    bottom: 92px; right: 14px;
    padding: 12px 18px;
    font-size: 14px;
  }
}

.cupom-drawer-head {
  background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent) 60%, var(--accent-2) 100%);
  color: #fff;
  padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.25);
}
.cupom-drawer-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px;
}
.cupom-drawer-title .badge {
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 800;
  min-width: 18px;
  text-align: center;
}
.cupom-head-actions { display: flex; gap: 6px; }
.cupom-mini-btn {
  background: rgba(255,255,255,0.2);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: background 120ms ease;
}
.cupom-mini-btn:hover { background: rgba(255,255,255,0.35); }

/* Estado minimizado: só o cabeçalho aparece, e o cabeçalho fica clicável pra reabrir */
.cupom-drawer.minimized .cupom-collapsible { display: none; }
.cupom-drawer.minimized {
  bottom: auto;
  height: auto;
  border-radius: 10px 0 0 10px;
}
.cupom-drawer.minimized #cupom-toggle-area { cursor: pointer; }
.cupom-drawer.minimized #cupom-minimize { transform: rotate(180deg); }
.cupom-drawer #cupom-minimize { transition: transform 200ms ease; }

.cupom-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: var(--bg);
}

/* Action bar (clear/save/share) */
.cupom-actions {
  display: flex; gap: 6px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.cupom-action-btn {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text);
  display: flex; align-items: center; gap: 5px;
  transition: background 120ms ease;
}
.cupom-action-btn:hover { background: var(--bet-bg-h); }

/* Tabs (Simples / Múltiplas) */
.cupom-tabs {
  display: flex;
  background: var(--bg-2);
  padding: 8px 14px 0;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.cupom-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  border-bottom: 3px solid transparent;
  transition: all 150ms ease;
  margin-bottom: -1px;
}
.cupom-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.cupom-tab:hover:not(.active):not(.disabled) { color: var(--text); }
.cupom-tab.disabled { opacity: 0.4; cursor: not-allowed; }

/* Card de aposta dentro do cupom */
.cupom-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  animation: slipIn 350ms cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.08);
  position: relative;
  overflow: hidden;
}
.cupom-card::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent-3), var(--accent));
}
.cupom-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.cupom-card-head .titulo {
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex; align-items: center; gap: 6px;
}
.cupom-card-head .odd-total {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #fff;
  border-radius: 8px;
  padding: 4px 12px;
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}
.cupom-card-head .lixo {
  background: none; padding: 4px 6px;
  color: var(--text-dim);
  font-size: 14px;
  border-radius: 6px;
}
.cupom-card-head .lixo:hover { color: var(--live); background: rgba(239, 68, 68, 0.08); }

/* Múltipla agrupada por jogo (estilo Criar Aposta Betano) */
.cupom-card-multi {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
}
.cupom-grupo {
  margin: 12px 0;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.cupom-grupo:last-of-type { border-bottom: none; padding-bottom: 0; }
.cupom-grupo-jogo {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.cupom-grupo-list {
  list-style: none; padding: 0; margin: 0;
  position: relative;
}
.cupom-grupo-list::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--accent);
  opacity: 0.5;
}
.cupom-grupo-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 6px 0;
  position: relative;
}
.cupom-grupo-item .bullet {
  width: 11px; height: 11px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-2);
  flex-shrink: 0;
  margin-top: 2px;
  z-index: 1;
}
.cupom-grupo-item .info { flex: 1; min-width: 0; font-size: 12px; }
.cupom-grupo-item .nome {
  font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.cupom-grupo-item .nome .odd {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.cupom-grupo-item .mercado {
  color: var(--text-dim);
  font-size: 11px;
  margin-top: 1px;
}
.cupom-grupo-item .lixo-mini {
  background: none;
  color: var(--text-dim);
  margin-left: auto;
  font-size: 11px;
  padding: 2px 5px;
}
.cupom-grupo-item .lixo-mini:hover { color: var(--live); }

.cupom-sel {
  background: var(--bg-3);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0;
  font-size: 12px;
}
.cupom-sel .nome { font-weight: 700; color: var(--text); display: flex; justify-content: space-between; }
.cupom-sel .nome .preco { color: var(--accent); font-variant-numeric: tabular-nums; }
.cupom-sel .mercado { color: var(--text-dim); font-size: 11px; margin-top: 4px; }
.cupom-sel .jogo { color: var(--text-dim); font-size: 11px; margin-bottom: 6px; font-weight: 600; }

.cupom-valores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "input input input input"
    "q1 q2 q3 q4";
  gap: 6px;
  margin-top: 12px;
}
.cupom-valores input { grid-area: input; }
.cupom-valores button:nth-of-type(1) { grid-area: q1; }
.cupom-valores button:nth-of-type(2) { grid-area: q2; }
.cupom-valores button:nth-of-type(3) { grid-area: q3; }
.cupom-valores button:nth-of-type(4) { grid-area: q4; }
@media (max-width: 700px) {
  .cupom-valores {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-template-areas:
      "input input input input"
      "q1 q2 q3 q4" !important;
    gap: 6px !important;
  }
  .cupom-valores input { grid-area: input !important; min-width: 0; }
  .cupom-valores button:nth-of-type(1) { grid-area: q1 !important; }
  .cupom-valores button:nth-of-type(2) { grid-area: q2 !important; }
  .cupom-valores button:nth-of-type(3) { grid-area: q3 !important; }
  .cupom-valores button:nth-of-type(4) { grid-area: q4 !important; }
}
.cupom-valores input {
  background: #1a1a1a;
  border: 1.5px solid #2e2e2e;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 800;
  color: #f0f4f8 !important;
  -webkit-text-fill-color: #f0f4f8;
  font-family: inherit;
  width: 100%;
  font-variant-numeric: tabular-nums;
  transition: border-color 120ms ease;
  text-align: left;
  appearance: textfield;
  -moz-appearance: textfield;
}
.cupom-valores input::placeholder { color: #64748b; }
/* Remove spinner do input number (que tava aparecendo e tampando o valor no mobile) */
.cupom-valores input[type="number"]::-webkit-outer-spin-button,
.cupom-valores input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cupom-valores input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.cupom-valores .quick {
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  transition: all 120ms ease;
  white-space: nowrap;
}
.cupom-valores .quick:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.cupom-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--text-dim);
}
.cupom-card-footer .ganho {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}

/* Footer fixo */
.cupom-footer {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border-top: 1px solid var(--line);
  padding: 14px 16px;
}
.cupom-footer-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-weight: 500;
}
.cupom-footer-row:last-of-type { margin-bottom: 12px; }
.cupom-footer-row strong { color: var(--text); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; }
.cupom-footer-row strong.ganhos {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 18px;
  font-weight: 900;
}
.cupom-footer .btn-apostar { margin-top: 4px; }
.cupom-footer .btn-apostar:disabled { opacity: 0.5; }
.cupom-footer .btn-apostar.confirmando {
  background: linear-gradient(135deg, #10b981, #059669);
  animation: pulse-confirm 1s ease-in-out infinite;
  font-size: 12px;
  letter-spacing: 0.3px;
}
@keyframes pulse-confirm {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
.cupom-saldo-info {
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 8px;
  font-weight: 500;
}
.cupom-saldo-info strong {
  color: var(--accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.cupom-empty {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  padding: 60px 20px;
}
.cupom-empty .icon { font-size: 42px; opacity: 0.4; margin-bottom: 12px; }

.cupom {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.cupom-header {
  background: var(--bg-3);
  padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600;
}
.cupom-header .badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}
.cupom-body { padding: 14px; }
.cupom-empty {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  padding: 20px 10px;
}
.cupom-empty .icon { font-size: 32px; opacity: 0.4; margin-bottom: 8px; }
.cupom-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 12px;
  animation: slipIn 350ms cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 1px 3px rgba(15,23,42,0.06);
}
@keyframes slipIn {
  0% { opacity: 0; transform: translateY(-12px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
.cupom-drawer.bump { animation: bumpDrawer 200ms ease; }
@keyframes bumpDrawer {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}
.cupom-item .desc { color: var(--text); flex: 1; line-height: 1.35; }
.cupom-item .valor { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.cupom-item .x {
  color: var(--text-dim); cursor: pointer;
  background: none; padding: 0 4px; font-size: 14px;
}
.cupom-item .x:hover { color: var(--live); }

.cupom-fab {
  position: fixed;
  bottom: 100px; right: 18px; /* acima da bottom nav (88px + folga) */
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 60%, #15803d 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.4);
  border-radius: 30px;
  padding: 13px 20px;
  font-size: 15px; font-weight: 800;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 0 24px rgba(34,197,94,0.5),
    0 8px 20px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 8px;
  z-index: 95; /* acima da bottom-nav (90) */
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.cupom-fab:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 0 32px rgba(34,197,94,0.7),
    0 12px 28px rgba(0,0,0,0.5);
}
.cupom-fab.bounce { animation: fabBounce 400ms ease; }
@keyframes fabBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Botão Múltipla no header */
.btn-multipla-header {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
  transition: transform 150ms ease, box-shadow 150ms ease;
  white-space: nowrap;
}
.btn-multipla-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.45);
}
.btn-multipla-header:active { transform: translateY(0); }

/* Botão flutuante esquerdo: Modo Múltipla */
.multipla-fab {
  position: fixed;
  bottom: 24px; left: 24px;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 14px 22px;
  font-size: 15px; font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.45);
  display: flex; align-items: center; gap: 8px;
  z-index: 80;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.multipla-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.55);
}
.multipla-fab:active { transform: translateY(0) scale(0.98); }
@media (max-width: 760px) {
  .multipla-fab { bottom: 14px; left: 14px; padding: 12px 16px; font-size: 13px; }
}

.cupom-form { padding: 14px; border-top: 1px solid var(--line); background: var(--bg-2); }
.cupom-form label { font-size: 11px; color: var(--text-dim); display: block; margin-bottom: 4px; font-weight: 500; }
.cupom-form select, .cupom-form input {
  width: 100%;
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 10px;
}
.cupom-form select:focus, .cupom-form input:focus { outline: none; border-color: var(--accent); }
.cupom-summary {
  background: var(--bg-3);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.cupom-summary .label { color: var(--text-dim); }
.cupom-summary .val { color: var(--accent); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.btn-apostar {
  width: 100%;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 50%, #15803d 100%);
  color: #fff;
  font-weight: 800;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.4);
  border-bottom-color: rgba(0,0,0,0.3);
  border-radius: 10px;
  font-size: 13px;
  letter-spacing: 0.8px;
  transition: all 150ms ease;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -2px 6px rgba(0,0,0,0.25),
    0 0 20px rgba(34, 197, 94, 0.35),
    0 6px 16px rgba(0,0,0,0.4);
}
.btn-apostar:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 6px rgba(0,0,0,0.25),
    0 0 28px rgba(34, 197, 94, 0.55),
    0 10px 24px rgba(0,0,0,0.5);
}
.btn-apostar:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 3px 8px rgba(0,0,0,0.4),
    0 1px 3px rgba(0,0,0,0.4);
}
.btn-apostar:disabled {
  background: linear-gradient(180deg, #2a2a2a, #1a1a1a);
  color: var(--text-dim);
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transform: none;
  text-shadow: none;
  border-color: var(--line);
}
.cupom-msg { font-size: 12px; margin-top: 8px; text-align: center; }
.cupom-msg.ok { color: var(--accent); }
.cupom-msg.err { color: var(--live); }

/* Detail page */
/* Detail page hero — visual rico estilo Betano */
.match-hero {
  background: linear-gradient(135deg, #000000 0%, #0f3a1c 60%, #15803d 100%);
  color: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(21, 128, 61, 0.25);
  position: relative;
  overflow: hidden;
}
.match-hero::before {
  content: '';
  position: absolute; top: -40px; right: -40px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.3), transparent 70%);
  pointer-events: none;
}
.match-hero-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; opacity: 0.9;
  margin-bottom: 18px;
  position: relative; z-index: 2;
}
.match-hero-top .liga { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.match-hero-top .horario { font-weight: 600; }
.match-hero-top .live-badge {
  background: var(--live);
  color: #fff;
  padding: 4px 10px;
  font-size: 10px; font-weight: 800;
  border-radius: 12px;
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 5px;
}
.match-hero-top .live-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--bg-2); border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}
.match-hero-teams {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative; z-index: 2;
}
.match-hero-teams .match-hero-team { flex: 1 1 0; min-width: 0; }
.match-hero-teams .match-hero-center { flex: 0 0 auto; }
.match-hero-team {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.match-hero-team .escudo {
  width: 72px; height: 72px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.match-hero-team .escudo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.match-hero-team .escudo .team-avatar { width: 52px !important; height: 52px !important; font-size: 18px !important; }
.match-hero-team {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  min-width: 0;
  overflow: visible;
}
.match-hero-team .nome {
  font-size: 16px; font-weight: 700;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-align: center;
  width: 100%;
  max-width: 100%;
  hyphens: auto;
  overflow: visible;
}
.match-hero-team .casa-fora { font-size: 10px; opacity: 0.65; text-transform: uppercase; letter-spacing: 1px; }
.match-hero-center { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.match-hero-center .placar {
  font-size: 38px; font-weight: 800; font-variant-numeric: tabular-nums;
  letter-spacing: -1.5px; line-height: 1;
}
.match-hero-center .vs { font-size: 22px; opacity: 0.5; font-weight: 800; line-height: 1; }
.match-hero-center .periodo {
  font-size: 11px; opacity: 0.85;
  text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}

/* Campo ao vivo (SVG) */
.live-pitch {
  background: linear-gradient(135deg, #064e3b, #047857);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.live-pitch::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,0.04) 40px 80px);
  pointer-events: none;
}
.live-pitch-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; color: #fff;
  position: relative; z-index: 2;
}
.live-pitch-head .placar-grande {
  display: flex; align-items: center; gap: 14px;
  font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.live-pitch-head .time-info {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
}
.live-pitch-head .time-info img,
.live-pitch-head .time-info .team-avatar { width: 28px; height: 28px; max-width: 28px; max-height: 28px; }
.live-pitch-head .time-info.right { flex-direction: row-reverse; }
.live-pitch-head .periodo-tag {
  background: var(--live);
  color: #fff;
  padding: 4px 10px;
  font-size: 11px; font-weight: 700;
  border-radius: 12px;
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 6px;
}
.live-pitch-head .periodo-tag::before {
  content: ''; width: 6px; height: 6px;
  background: var(--bg-2); border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}
.pitch-svg { width: 100%; height: 180px; position: relative; z-index: 1; }
.live-pitch-foot {
  display: flex; justify-content: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,0.85);
  margin-top: 10px; position: relative; z-index: 2;
  flex-wrap: wrap;
}
.live-pitch-foot .stat {
  background: rgba(0,0,0,0.25);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.live-pitch-foot .stat strong { color: #fff; }
@media (max-width: 700px) {
  .live-pitch-foot {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    font-size: 11px;
  }
  .live-pitch-foot .stat {
    padding: 5px 8px;
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 380px) {
  .live-pitch-foot { font-size: 10px; }
}
.stats-aviso {
  text-align: center;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  font-style: italic;
}

/* Timeline de eventos do jogo (gols, cartões, substituições) */
.ev-timeline {
  margin: 18px 0 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.ev-timeline-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(22,163,74,0.04), rgba(34,197,94,0.03));
}
.ev-timeline-head h3 {
  margin: 0; font-size: 14px; font-weight: 800;
  color: var(--text); letter-spacing: -0.2px;
}
.ev-count {
  font-size: 11px; font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-2);
  padding: 3px 10px; border-radius: 10px;
}
.ev-timeline-list {
  max-height: 360px;
  overflow-y: auto;
}
.ev-row {
  display: grid;
  grid-template-columns: 50px 32px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 120ms ease;
}
.ev-row:last-child { border-bottom: none; }
.ev-row:hover { background: rgba(22,163,74,0.03); }
.ev-row.gol {
  background: linear-gradient(90deg, rgba(16,185,129,0.06), transparent);
  border-left: 3px solid #10b981;
}
.ev-row.casa { /* opcional: estilo extra */ }
.ev-row.fora { /* opcional: estilo extra */ }
.ev-min {
  font-size: 13px; font-weight: 800;
  color: var(--accent);
  font-feature-settings: 'tnum';
  text-align: center;
  background: rgba(22,163,74,0.08);
  padding: 4px 8px; border-radius: 8px;
}
.ev-row.gol .ev-min { background: rgba(16,185,129,0.12); color: #059669; }
.ev-ico {
  font-size: 20px;
  text-align: center;
  line-height: 1;
}
.ev-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-label {
  font-size: 11px; font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.ev-row.gol .ev-label { color: #059669; }
.ev-player {
  font-size: 13px; font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.ev-player .assist {
  font-size: 11px; font-weight: 500;
  color: var(--text-dim);
}
.ev-time-tag {
  font-size: 14px;
  opacity: 0.6;
}
.ev-team-logo {
  position: relative;
  width: 28px; height: 28px;
  flex-shrink: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: inline-block;
}
.ev-team-logo img {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px); height: calc(100% - 6px);
  object-fit: contain;
  z-index: 2;
  background: var(--bg-2);
}
.ev-team-fbk {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 12px; font-weight: 800;
  z-index: 1;
}
.match-hero .meta { font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.market-block {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 10px; overflow: hidden;
  position: relative;
  transition: box-shadow 150ms ease;
}
.market-block:hover { box-shadow: var(--shadow-md); }
.market-block .market-header {
  padding: 14px 18px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background 120ms ease;
}
.market-block .market-header:hover { background: var(--bg-3); }
.market-block .market-header h3 {
  font-size: 14px; margin: 0; font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.market-block .market-header h3::before {
  content: '';
  width: 4px; height: 16px;
  background: linear-gradient(180deg, var(--accent-3), var(--accent));
  border-radius: 2px;
}
.market-block .market-header .chevron {
  color: var(--text-dim); font-size: 14px;
  transition: transform 200ms ease;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.market-block .market-header:hover .chevron { background: var(--bg-3); color: var(--accent); }
.market-block.collapsed .chevron { transform: rotate(-90deg); }
.market-block.collapsed .market-content { display: none; }
.market-block .market-content {
  padding: 10px;
  display: grid;
  gap: 6px;
}
.market-block .market-content.cols-1 { grid-template-columns: 1fr; }
.market-block .market-content.cols-2 { grid-template-columns: repeat(2, 1fr); }
.market-block .market-content.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) {
  .market-block .market-content.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
.market-block .odd-line {
  background: var(--bg-3);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: all 150ms cubic-bezier(.2,.8,.2,1);
  border: 1.5px solid transparent;
}
.market-block .odd-line:hover {
  background: var(--bg-2);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}
.market-block .odd-line.selected {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}
.market-block .odd-line .nome { font-weight: 600; }
.market-block .odd-line .valor {
  font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-size: 15px;
}
.market-block .odd-line:hover .valor { color: var(--accent-2); }
.market-block .odd-line.selected .valor { color: #fff; }
.market-block .odd-line.selected .nome { color: #fff; }

.market-cashback {
  position: absolute; top: 0; right: 0;
  background: #ff6b35;
  color: #fff;
  font-size: 9px;
  padding: 2px 8px;
  font-weight: 700;
  border-bottom-left-radius: 6px;
  letter-spacing: 0.5px;
}

/* Tabs de categoria de mercado dentro da página de jogo */
.market-tabs {
  display: flex; gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.market-tab {
  padding: 8px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 12px; font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  cursor: pointer;
  transition: all 120ms ease;
}
.market-tab:hover { color: var(--text); }
.market-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Página de detalhe do jogo — ajustes mobile */
@media (max-width: 700px) {
  /* Reduz padding lateral pra dar mais espaço pras odds */
  .layout, .layout.layout-no-cupom { padding: 10px 10px; }
  .layout > main, .layout > main > * { min-width: 0; max-width: 100%; }
  .market-block, .market-block .market-content { min-width: 0; max-width: 100%; }

  .match-hero {
    padding: 16px 12px;
    border-radius: 12px;
  }
  .match-hero-top { font-size: 11px; margin-bottom: 12px; flex-wrap: wrap; gap: 6px; }
  .match-hero-teams { gap: 8px; grid-template-columns: 1fr auto 1fr; }
  .match-hero-team {
    min-width: 0;
  }
  .match-hero-team .escudo {
    width: 52px; height: 52px;
    border-radius: 12px;
    padding: 5px;
  }
  .match-hero-team .escudo img,
  .match-hero-team .escudo .team-avatar { width: 42px !important; height: 42px !important; max-width: 42px !important; max-height: 42px !important; font-size: 14px !important; }
  .match-hero .match-hero-teams {
    overflow: visible !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: start !important;
  }
  .match-hero .match-hero-team {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  .match-hero .match-hero-team .nome {
    font-size: 12px !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
    hyphens: auto;
  }
  .match-hero-teams { align-items: start; }
  .match-hero-team .casa-fora { font-size: 9px; }
  .match-hero-center .placar { font-size: 26px; }
  .match-hero-center .vs { font-size: 16px; }
  .match-hero-center .periodo { font-size: 9px; }

  .market-tabs { gap: 4px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .market-tab { padding: 7px 12px; font-size: 11px; }

  .market-block .market-header { padding: 10px 12px; }
  .market-block .market-header h3 { font-size: 13px; }
  .market-block .market-content { padding: 8px; gap: 6px; }
  .market-block .market-content.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .market-block .odd-line {
    padding: 10px 8px;
    font-size: 12px;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    min-width: 0;
  }
  .market-block .odd-line .nome { font-size: 11px; opacity: 0.8; }
  .market-block .odd-line .valor { font-size: 14px; font-weight: 800; }

  /* Hero do jogo: nomes maiores espaço, sem cortar */
  .match-hero-team .nome {
    word-break: break-word;
    line-height: 1.15;
    white-space: normal;
    overflow: visible;
  }

  /* Padding inferior pro FAB não tampar o último mercado */
  body { padding-bottom: 80px; }
}

/* Evita scroll horizontal no body */
html, body { overflow-x: hidden; max-width: 100%; }

/* ================== Bottom Navigation Bar ================== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, rgba(13,13,13,0.96) 0%, rgba(8,8,8,0.99) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid rgba(34,197,94,0.18);
  box-shadow:
    0 -8px 24px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.bottom-nav .bn-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  text-decoration: none;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: 12px;
  position: relative;
  transition: color 200ms ease, background 200ms ease, transform 150ms ease;
  cursor: pointer;
  min-height: 56px;
}
.bottom-nav .bn-item svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  transition: transform 200ms cubic-bezier(.34,1.56,.64,1);
}
.bottom-nav .bn-item:hover {
  color: #cbd5e1;
  background: rgba(255,255,255,0.03);
}
.bottom-nav .bn-item:active { transform: scale(0.95); }
.bottom-nav .bn-item.active {
  color: #22c55e;
  background: linear-gradient(180deg, rgba(34,197,94,0.18) 0%, rgba(22,163,74,0.08) 100%);
  border: 1px solid rgba(34,197,94,0.25);
  box-shadow:
    inset 0 1px 0 rgba(34,197,94,0.25),
    0 0 16px rgba(34,197,94,0.25);
}
.bottom-nav .bn-item.active svg {
  filter: drop-shadow(0 0 8px rgba(34,197,94,0.6));
  transform: translateY(-1px);
}

/* Pulse vermelho no "Ao Vivo" */
.bottom-nav .bn-pulse {
  position: absolute;
  top: 8px; right: calc(50% - 18px);
  width: 7px; height: 7px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.7);
  animation: bnPulse 2s infinite;
}
@keyframes bnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

/* Espaço extra no body pro conteúdo não ficar atrás da nav */
body { padding-bottom: 88px !important; }
@media (max-width: 700px) { body { padding-bottom: 78px !important; } }

/* Esconde a barra quando o cupom drawer está aberto SÓ NO MOBILE (cupom vira bottom sheet full-screen).
   No desktop o cupom é drawer lateral, então a nav continua visível. */
@media (max-width: 700px) {
  body.cupom-open .bottom-nav { display: none; }
}
  .market-block .market-content.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .market-block .odd-line {
    padding: 10px 12px;
    font-size: 12px;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
  }
  .market-block .odd-line .nome { font-size: 11px; }
  .market-block .odd-line .valor { font-size: 14px; }

  /* live pitch menor no mobile */
  .live-pitch { padding: 10px; }
  .live-pitch-head .placar-grande { font-size: 22px; }
  .live-pitch-head .time-info { font-size: 11px; gap: 6px; }
  .live-pitch-head .time-info img,
  .live-pitch-head .time-info .team-avatar { width: 22px !important; height: 22px !important; max-width: 22px !important; max-height: 22px !important; }
  .pitch-svg { height: 130px; }
}

/* Apostas list */
.bet-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; margin-bottom: 12px;
  position: relative; overflow: hidden;
}
.bet-card::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: var(--text-dim);
}
.bet-card.pendente::before { background: var(--warn); }
.bet-card.ganha::before, .bet-card.ganha-iminente::before { background: var(--accent); }
.bet-card.perdida::before { background: var(--live); }
.bet-card.ganha-iminente { background: linear-gradient(90deg, var(--accent-soft), var(--bg-2)); }
.bet-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font-size: 12px; color: var(--text-dim);
}
.bet-status { padding: 4px 12px; border-radius: 10px; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; }
.bet-status.pendente { background: rgba(217, 119, 6, 0.12); color: var(--warn); }
.bet-status.ganha { background: rgba(16, 185, 129, 0.15); color: #059669; }
.bet-status.ganha-iminente { background: rgba(16, 185, 129, 0.15); color: #059669; animation: pulse 1.6s ease-in-out infinite; }
.bet-status.perdida { background: rgba(239, 68, 68, 0.12); color: var(--live); }
.bet-progress {
  font-size: 11px; color: var(--text-dim); font-weight: 600;
  margin-bottom: 10px; padding: 6px 10px;
  background: var(--bg-3); border-radius: 6px;
  display: inline-block;
}
.bet-sel {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13px; margin: 6px 0;
  padding: 10px 12px;
  background: var(--bg-3);
  border-radius: 8px;
  border-left: 3px solid var(--text-dim);
}
.bet-sel.estado-ganha { border-left-color: var(--accent); background: var(--accent-soft); }
.bet-sel.estado-perdida { border-left-color: var(--live); background: rgba(239, 68, 68, 0.08); opacity: 0.8; text-decoration: line-through; }
.bet-sel.estado-parcial_ganhando { border-left-color: var(--accent); }
.bet-sel.estado-parcial_perdendo { border-left-color: var(--warn); }
.bet-sel-icon { font-size: 18px; font-weight: 800; line-height: 1.1; min-width: 18px; }
.bet-sel-body { flex: 1; min-width: 0; }
.bet-sel-desc { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.bet-sel-desc .v { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.bet-sel-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; margin-top: 4px; color: var(--text-dim); }
.bet-sel-placar { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.bet-sel-estado { font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.bet-foot {
  display: flex; justify-content: space-between;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 12px;
}
.bet-foot .label { color: var(--text-dim); }
.bet-foot strong { color: var(--text); font-variant-numeric: tabular-nums; }
.bet-foot strong.win { color: var(--accent); font-size: 14px; }

/* ============ Lista compacta de apostas (redesign profissional) ============ */
.bet-list-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px 16px 22px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 180ms ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15,23,42,0.04);
}
.bet-list-item:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.12);
  transform: translateY(-2px);
}
.bet-list-item::before {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 5px;
  background: var(--text-dim);
}
.bet-list-item.pendente::before { background: linear-gradient(180deg, #f59e0b, #d97706); }
.bet-list-item.ganha::before, .bet-list-item.ganha-iminente::before { background: linear-gradient(180deg, #10b981, #059669); }
.bet-list-item.perdida::before { background: linear-gradient(180deg, #ef4444, #b91c1c); }

.bet-list-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.bet-list-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}
.bet-list-tipo {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-weight: 800; font-size: 14px; color: var(--text);
}
.bet-tipo-ico { font-size: 16px; }
.bet-tipo-nome { font-size: 14px; font-weight: 800; }
.bet-tipo-count {
  font-size: 11px; font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-2);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 2px;
}
.bet-status-pill {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.4px;
  padding: 5px 12px;
  border-radius: 14px;
  text-transform: uppercase;
}
.bet-status-pill.pendente {
  background: rgba(245,158,11,0.12);
  color: #d97706;
  border: 1px solid rgba(245,158,11,0.3);
}
.bet-status-pill.ganha, .bet-status-pill.ganha-iminente {
  background: rgba(16,185,129,0.12);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.3);
}
.bet-status-pill.perdida {
  background: rgba(239,68,68,0.12);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.3);
}

.bet-list-jogo {
  font-size: 13px; color: var(--text); font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.bet-mini-logo {
  position: relative;
  width: 24px; height: 24px;
  flex-shrink: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: inline-block;
}
.bet-mini-logo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  z-index: 2;
  background: var(--bg-2);
}
.bet-mini-fbk {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  color: var(--text-dim);
  font-size: 11px; font-weight: 800;
  z-index: 1;
}
.bet-time-nome { font-weight: 700; }
.bet-vs-mini {
  color: var(--text-dim); font-size: 10px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.4px;
}
.bet-extra-jogos {
  background: linear-gradient(135deg, rgba(22,163,74,0.12), rgba(34,197,94,0.10));
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(22,163,74,0.25);
}

.bet-list-pick {
  display: flex; align-items: baseline; gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  background: linear-gradient(135deg, rgba(22,163,74,0.06), rgba(34,197,94,0.04));
  border: 1px solid rgba(22,163,74,0.15);
  border-radius: 10px;
  padding: 8px 12px;
}
.bet-pick-label {
  font-size: 10px; font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bet-pick-mercado {
  font-size: 11px; font-weight: 600;
  color: var(--text-dim);
}
.bet-pick-sel {
  font-weight: 800; color: var(--text);
}
.bet-pick-odd {
  font-weight: 800;
  color: var(--accent);
  background: rgba(22,163,74,0.10);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-feature-settings: 'tnum';
}
.bet-pick-mais {
  margin-left: auto;
  font-size: 11px; font-weight: 700;
  color: var(--accent);
  background: rgba(22,163,74,0.10);
  padding: 3px 10px;
  border-radius: 10px;
}

.bet-list-footer {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
}
.bet-list-data { color: var(--text-dim); font-weight: 600; }
.bet-list-money-inline {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-dim);
  font-weight: 600;
}
.bet-list-money-inline strong {
  color: var(--text);
  font-feature-settings: 'tnum';
  font-weight: 800;
  margin-left: 4px;
}
.bet-list-money-inline strong.win {
  color: var(--accent);
  font-size: 13px;
}
.bet-list-money-inline .m-arrow { color: var(--text-dim); font-weight: 800; }

/* Tabs Em andamento / Histórico */
.apostas-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.apostas-header h2 { font-size: 18px; font-weight: 800; margin: 0; color: var(--text); }
.apostas-tabs {
  display: flex; gap: 6px;
  background: var(--bg-3);
  padding: 4px;
  border-radius: 12px;
}
.apostas-tab {
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-size: 12px; font-weight: 700;
  color: var(--text-dim);
  border-radius: 8px;
  cursor: pointer;
  transition: all 150ms ease;
}
.apostas-tab.active {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}
.apostas-tab:hover:not(.active) { color: var(--text); }
.bet-list-progresso { font-size: 11px; color: var(--text-dim); font-weight: 600; margin-top: 4px; }
.bet-list-progresso.verde { color: #10b981; font-weight: 800; }
.bet-list-progresso.vermelha { color: var(--live); font-weight: 800; }
.bet-list-money { display: flex; flex-direction: column; align-items: flex-end; min-width: 90px; }
.bet-list-money .lbl { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.bet-list-money strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.bet-list-money strong.win { color: var(--accent); }
.bet-list-arrow {
  font-size: 28px; color: var(--text-dim); font-weight: 300;
  flex-shrink: 0;
  transition: transform 150ms ease, color 150ms ease;
}
.bet-list-item:hover .bet-list-arrow {
  color: var(--accent);
  transform: translateX(4px);
}
@media (max-width: 700px) {
  .bet-list-item { padding: 14px 14px 14px 18px; gap: 8px; }
  .bet-list-money-inline { margin-left: 0; flex-wrap: wrap; gap: 6px; }
  .bet-pick-mais { margin-left: 0; }
}

/* ============ Modal de detalhe (futurista — fundo branco com glow) ============ */
.aposta-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(22, 163, 74, 0.15);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 250ms ease;
}
.aposta-modal-overlay.open { opacity: 1; }
.aposta-modal {
  background: var(--bg-2);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(22, 163, 74, 0.2),
    0 30px 80px rgba(22, 163, 74, 0.35),
    0 10px 30px rgba(34, 197, 94, 0.15);
  transform: translateY(30px) scale(0.96);
  opacity: 0;
  transition: transform 280ms cubic-bezier(.2,.8,.2,1), opacity 200ms ease;
  overflow: hidden;
  position: relative;
}
.aposta-modal-overlay.open .aposta-modal { transform: translateY(0) scale(1); opacity: 1; }
.aposta-modal::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent), var(--accent-2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
}

.aposta-modal-head {
  position: relative;
  padding: 22px 24px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent) 100%);
  color: #fff;
}
.modal-head-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.25), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15), transparent 50%);
  pointer-events: none;
}
.modal-head-content {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
}
.aposta-modal-head.ganha, .aposta-modal-head.ganha-iminente {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}
.aposta-modal-head.perdida {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}
.aposta-modal-head.pendente {
  background: linear-gradient(135deg, var(--accent-3) 0%, var(--accent) 100%);
}

.modal-titulo {
  font-size: 17px; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
  letter-spacing: -0.3px;
}
.modal-sub { font-size: 12px; opacity: 0.9; margin-top: 4px; font-weight: 500; }
.modal-status {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.modal-head-actions { display: flex; gap: 6px; }
.modal-share, .modal-close {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 150ms ease;
  backdrop-filter: blur(8px);
}
.modal-share:hover, .modal-close:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-1px);
}

.aposta-modal-body {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(22, 163, 74, 0.04), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.04), transparent 50%),
    #fafbff;
}

.modal-foot-row strong.odd-glow {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

/* Toast pra feedback de compartilhar */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translate(-50%, 30px);
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.4);
  z-index: 300;
  opacity: 0;
  transition: all 280ms cubic-bezier(.2,.8,.2,1);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.modal-sel {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-left-width: 4px;
  border-left-style: solid;
  border-left-color: var(--text-dim);
  transition: all 150ms ease;
}
.modal-sel.estado-ganha { border-left-color: #10b981; background: rgba(16, 185, 129, 0.08); }
.modal-sel.estado-perdida { border-left-color: var(--live); opacity: 0.75; }
.modal-sel.estado-perdida .modal-sel-pick { text-decoration: line-through; }
.modal-sel.estado-parcial_ganhando { border-left-color: #10b981; background: rgba(16, 185, 129, 0.04); }
.modal-sel.estado-parcial_perdendo { border-left-color: var(--warn); }
.modal-sel-icon { font-size: 22px; font-weight: 800; line-height: 1; text-align: center; }
.modal-sel-body { min-width: 0; }
.modal-sel-jogo { font-size: 11px; color: var(--text-dim); font-weight: 600; margin-bottom: 2px; }
.modal-sel-pick { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: baseline; gap: 6px; }
.modal-sel-pick .odd { color: var(--accent); font-size: 13px; font-variant-numeric: tabular-nums; }
.modal-sel-mercado { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.modal-sel-status { font-size: 10px; font-weight: 800; letter-spacing: 0.5px; margin-top: 6px; }
.modal-sel-placar {
  background: var(--bg-3);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
}

.aposta-modal-footer {
  background: var(--bg-2);
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.modal-foot-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; color: var(--text-dim); }
.modal-foot-row strong { color: var(--text); font-variant-numeric: tabular-nums; font-size: 14px; }
.modal-foot-row.destaque { padding-top: 12px; border-top: 1px dashed var(--line); margin-top: 6px; }
.modal-foot-row.destaque strong.win {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 18px; font-weight: 900;
}
.modal-aviso {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}
.modal-aviso.ok { background: var(--accent-soft); color: var(--accent); }
.modal-aviso.erro { background: rgba(239, 68, 68, 0.1); color: var(--live); }

/* Extrato */
.extrato-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  gap: 12px;
  transition: all 150ms ease;
}
.extrato-item.clickable { cursor: pointer; }
.extrato-item.clickable:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
  transform: translateY(-1px);
}
.extrato-tipo { font-weight: 700; font-size: 13px; color: var(--text); }
.extrato-desc { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.extrato-data { font-size: 10px; color: var(--text-dim); margin-top: 4px; }
.extrato-valor { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* === AUTH PAGES (cadastro, verificar, reset) === */
.auth-page { background: var(--bg-1); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; max-width: 420px; width: 100%; position: relative; }
.auth-card h1 { font-size: 24px; margin: 12px 0 8px; color: var(--text); }
.auth-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }
.auth-logo { display: inline-flex; align-items: center; justify-content: center; }
.auth-logo img { display: block; }
.auth-back { color: var(--text-dim); font-size: 13px; text-decoration: none; display: inline-block; margin-bottom: 12px; }
.auth-back:hover { color: var(--text); }
.auth-card label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.auth-card input { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 12px 14px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 15px; font-family: inherit; }
.auth-card input:focus { outline: none; border-color: #16a34a; }
.auth-card .hint { color: var(--text-dim); font-size: 11px; }
.auth-card .btn-primary { width: 100%; margin-top: 8px; padding: 14px; background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; }
.auth-card .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-erro { background: rgba(239,68,68,0.1); color: #dc2626; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-top: 12px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-dim); }
.auth-foot a { color: #16a34a; text-decoration: none; }
.otp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 20px 0; }
.otp-grid input { padding: 14px 0; text-align: center; font-size: 22px; font-weight: 800; }

/* Modal "Pra apostar precisa entrar" */
.auth-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 2000; padding: 20px; }
.auth-modal { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 32px 24px; max-width: 360px; width: 100%; text-align: center; position: relative; }
.auth-modal h2 { margin: 0 0 8px; font-size: 20px; color: var(--text); }
.auth-modal p { color: var(--text-dim); font-size: 14px; margin: 0 0 20px; }
.auth-modal-close { position: absolute; top: 12px; right: 12px; background: none; border: none; color: var(--text-dim); font-size: 18px; cursor: pointer; }
.auth-modal .btn-primary, .auth-modal .btn-secondary { display: block; width: 100%; padding: 14px; border-radius: 10px; text-decoration: none; font-weight: 700; margin-top: 8px; box-sizing: border-box; }
.auth-modal .btn-primary { background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; }
.auth-modal .btn-secondary { background: var(--bg-1); color: var(--text); border: 1px solid var(--line); }

/* === Modal +18 (age gate) === */
.age-gate-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.92); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 20px; animation: fadeInAge 200ms ease; }
@keyframes fadeInAge { from { opacity: 0; } to { opacity: 1; } }
.age-gate-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 40px 32px 32px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,0.6); animation: slideUpAge 350ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes slideUpAge { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.age-gate-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; }
.age-gate-logo img { width: 48px; height: 48px; }
.age-gate-logo span { font-size: 22px; font-weight: 900; color: var(--text); letter-spacing: -0.5px; }
.age-gate-card h2 { font-size: 22px; font-weight: 800; margin: 0 0 8px; color: var(--text); line-height: 1.3; }
.age-gate-sub { font-size: 13px; color: var(--text-dim); margin: 0 0 28px; }
.age-gate-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.age-no, .age-yes { padding: 14px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; transition: transform 100ms; }
.age-no { background: #f5f5f5; color: #1a1a1a; border: 1px solid #d4d4d4; }
.age-no:hover { transform: translateY(-1px); }
.age-yes { background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 4px 16px rgba(34,197,94,0.3); }
.age-yes:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(34,197,94,0.45); }

/* Badges nos mercados (Resultado Final / SuperOdds) */
.market-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  vertical-align: middle;
  white-space: nowrap;
}
.market-badge.antecipado {
  background: rgba(22,163,74,0.15);
  color: #16a34a;
  border: 1px solid rgba(22,163,74,0.3);
}
.market-badge.superodds {
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  border: 1px solid rgba(245,158,11,0.3);
}
.market-info {
  margin: 0 0 10px;
  padding: 8px 12px;
  background: rgba(22,163,74,0.06);
  border-left: 3px solid #16a34a;
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}
.market-info.superodds {
  background: rgba(245,158,11,0.06);
  border-left-color: #f59e0b;
}
.market-info strong { color: var(--text); }

/* Aviso "Ganhou devido ao pagamento antecipado" no bilhete */
.bil-row-aviso-antecipado {
  margin-top: 6px;
  font-size: 12px;
  color: #16a34a;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.4;
}

/* Match em INTERVALO — visual diferente do AO VIVO comum (azul ao invés de vermelho) */
.match-time.live.is-intervalo .periodo {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 10px;
}
