/* ── BOLÃO COPA 2026 — FRONT-END STYLES ─────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* ── PALETA BASE ───────────── */
  --bolao-primary:      #0d7f3f;
  --bolao-primary-lt:   #e8f5ee;
  --bolao-secondary:    #1a4fa0;
  --bolao-secondary-lt: #e8eef8;
  --bolao-accent:       #0268d4;
  --bolao-accent-lt:    #fdf3e0;
  --bolao-red:          #dc2626;
  --bolao-gray:         #6b7280;
  --bolao-dark:         #1a2236;
  --bolao-light:        #f0f3f8;
  --bolao-border:       #dde3ec;
  --bolao-white:        #ffffff;
  --bolao-radius:       12px;
  --bolao-shadow:       0 2px 10px rgba(26,34,54,.10);
  /* ── BLOCO JOGOS ─────────────── */
  --bloco-jogos-header-bg:    #1a2236;
  --bloco-jogos-header-text:  #ffffff;
  --bloco-jogos-accent:       #0268d4;
  --bloco-jogos-btn:          #0d7f3f;
  --bloco-jogos-pending-bg:   #fdf3e0;
  /* ── BLOCO RANKING ───────────── */
  --bloco-ranking-header-bg:  #0d7f3f;
  --bloco-ranking-header-text:#ffffff;
  --bloco-ranking-highlight:  #e8f5ee;
  --bloco-ranking-pts:        #0d7f3f;
  /* ── BLOCO STATS ─────────────── */
  --bloco-stats-header-bg:    #1a4fa0;
  --bloco-stats-header-text:  #ffffff;
  --bloco-stats-exact-bg:     #e8f5ee;
  --bloco-stats-outcome-bg:   #e8eef8;
  --bloco-stats-miss-bg:      #fef2f2;
  /* ── BLOCO EVOLUÇÃO ──────────── */
  --bloco-evolucao-bg:        #ffffff;
  --bloco-evolucao-accent:    #0d7f3f;
  /* ── HOMEPAGE ────────────────── */
  --bh-header-bg:             #ffffff;
  --bh-page-bg:               #f0f3f8;
  --bh-nav-active-bg:         #0d7f3f22;
  --bh-nav-active-text:       #0d7f3f;
  --bh-tab-active:            #0d7f3f;
  --bh-welcome-bg:            #e8f5ee;
  --bh-welcome-text:          #0a5c2d;
  --bh-footer-bg:             #ffffff;
  --bh-footer-text:           #9ca3af;
  /* ── FASES ───────────────────── */
  --phase-upcoming-from:      #1a4fa0;
  --phase-upcoming-to:        #0d7f3f;
  --phase-past-from:          #4b5563;
  --phase-past-to:            #6b7280;
}

.bolao-wrap * { box-sizing: border-box; font-family: 'Outfit', sans-serif; }

/* ── LAYOUT ────────────────────────────────────────────── */
.bolao-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.bolao-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--bolao-dark);
  margin: 0 0 20px;
}

/* ── TABS ──────────────────────────────────────────────── */
.bolao-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: var(--bolao-light);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid var(--bolao-border);
}
.bolao-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bolao-gray);
  cursor: pointer;
  transition: all .2s;
}
.bolao-tab:hover { background: rgba(0,0,0,.04); color: var(--bolao-dark); }
.bolao-tab.active {
  background: var(--bolao-white);
  color: var(--bolao-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.bolao-badge {
  background: var(--bolao-gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}
.bolao-tab.active .bolao-badge { background: var(--bolao-green); }
.bolao-tab-content { display: none; }
.bolao-tab-content.active { display: block; }

/* ── MATCH CARD ────────────────────────────────────────── */
.bolao-card-match {
  background: var(--bolao-white);
  border: 1px solid var(--bolao-border);
  border-radius: var(--bolao-radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--bolao-shadow);
  transition: box-shadow .2s;
}
.bolao-card-match:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.bolao-card-match.is-locked { opacity: .85; }

/* Match meta bar */
.bolao-match-meta {
  background: var(--bloco-jogos-header-bg);
  color: rgba(255,255,255,.85);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  align-items: center;
}
.bolao-match-meta span { display: flex; align-items: center; gap: 4px; }
.meta-tournament {
  background: #7c3aed;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.meta-tournament {
  background: #7c3aed;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}
.meta-phase {
  background: var(--bolao-gold);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

/* Teams body */
.bolao-match-body {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
}
.bolao-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.bolao-flag {
  width: 64px;
  height: 43px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.bolao-flag-placeholder {
  font-size: 40px;
  line-height: 43px;
  display: block;
  width: 64px;
  text-align: center;
}
.bolao-team-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--bolao-dark);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.bolao-score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}
.bolao-vs {
  font-size: 22px;
  font-weight: 800;
  color: var(--bolao-border);
  letter-spacing: .1em;
}
.bolao-result {
  font-size: 28px;
  font-weight: 800;
  color: var(--bolao-dark);
  background: var(--bolao-dark);
  color: #fff;
  padding: 4px 14px;
  border-radius: 8px;
  letter-spacing: .05em;
}

/* Bet section */
.bolao-bet-section {
  border-top: 1px solid var(--bolao-border);
  padding: 14px 16px;
  background: var(--bolao-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bolao-bet-form {
  width: auto;
}
/* Stepper: − number + */
.bolao-stepper {
  display: inline-flex !important;
  align-items: center !important;
  border: 2px solid var(--bolao-border) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: var(--bolao-white) !important;
}
.bolao-step-btn {
  display: block !important;
  width: 36px !important;
  height: 40px !important;
  min-width: 36px !important;
  border: none !important;
  background: transparent !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--bolao-dark) !important;
  cursor: pointer !important;
  line-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
}
.bolao-step-btn:active { background: var(--bolao-light) !important; }
.bolao-score-input {
  display: block !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 40px !important;
  text-align: center !important;
  border: none !important;
  border-left: 2px solid var(--bolao-border) !important;
  border-right: 2px solid var(--bolao-border) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--bolao-dark) !important;
  background: var(--bolao-white) !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  -moz-appearance: textfield !important;
  box-shadow: none !important;
}
.bolao-score-input::-webkit-outer-spin-button,
.bolao-score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Save button: auto width, centered */
.bolao-btn-save {
  display: inline-block !important;
  min-width: 140px !important;
  max-width: 220px !important;
  background: var(--bolao-primary) !important; /* green = save */
  color: var(--bolao-white) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  text-align: center !important;
  box-shadow: none !important;
  transition: background .15s !important;
}
.bolao-btn-save.bolao-btn-update {
  background: var(--bolao-secondary) !important; /* blue = update */
}
.bolao-btn-save:active { opacity: .85 !important; }
.bolao-btn-save:disabled { background: #9ca3af !important; cursor: not-allowed !important; }
.bolao-lock-info {
  text-align: center;
  font-size: 11px;
  color: var(--bolao-gray);
  margin-top: 6px;
}
.bolao-feedback {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  min-height: 18px;
}
.bolao-feedback--ok  { color: var(--bolao-green); }
.bolao-feedback--err { color: var(--bolao-red); }

/* Locked state */
.bolao-locked {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  color: var(--bolao-gray);
  font-weight: 500;
}
.bolao-your-bet {
  background: var(--bolao-blue);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
}
.bolao-no-bet {
  font-style: italic;
  color: #9ca3af;
}
.bolao-result-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.badge-exact   { background: var(--bolao-primary-lt); color: var(--bolao-green); }
.badge-outcome { background: var(--bolao-secondary-lt); color: var(--bolao-blue); }
.badge-miss    { background: #fef2f2; color: var(--bolao-red); border: 1px solid #fecaca; }

/* Login button */
.bolao-btn-login {
  display: block;
  width: 100%;
  background: var(--bolao-secondary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
.bolao-btn-login:hover { background: var(--bolao-secondary); }

/* Others' bets */
.bolao-others-bets {
  border-top: 1px solid var(--bolao-border);
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  background: #fafafa;
}
.others-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--bolao-gray);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-right: 4px;
}
.bolao-other-bet {
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--bolao-border);
  border-radius: 20px;
  padding: 2px 10px;
  color: var(--bolao-dark);
}
.bolao-other-bet.mine {
  background: var(--bolao-blue);
  color: #fff;
  border-color: var(--bolao-blue);
}
.bolao-bet-count {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--bolao-gray);
  padding: 8px 12px;
  border-top: 1px solid var(--bolao-border);
  background: #fff;
}
.bolao-bet-waiting {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: var(--bloco-jogos-pending-bg, #dc2626);
  padding: 10px 16px;
  border-top: 1px solid rgba(0,0,0,.15);
}

/* ── RANKING BOX ───────────────────────────────────────── */
.bolao-ranking-box {
  background: var(--bolao-white);
  border: 1px solid var(--bolao-border);
  border-radius: var(--bolao-radius);
  overflow: hidden;
  box-shadow: var(--bolao-shadow);
  position: sticky;
  top: 24px;
}
.bolao-ranking-title,
.bolao-block-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--bolao-white);
  background: var(--bolao-dark);
  margin: 0;
  padding: 14px 20px;
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}
.bbt-sub {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  letter-spacing: 0;
  margin-left: auto;
}
.bolao-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  padding: 20px 12px 8px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}
.podium-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 10px;
  flex: 1;
  text-align: center;
  background: rgba(255,255,255,.07);
}
.podium-spot.podium-first {
  background: rgba(217,119,6,.2);
  transform: translateY(-8px);
  padding: 16px 8px;
}
.podium-medal { font-size: 24px; }
.podium-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  word-break: break-word;
}
.podium-pts {
  font-size: 13px;
  font-weight: 800;
  color: var(--bolao-gold);
}
.bolao-ranking-list { padding: 8px 0; }
.bolao-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--bolao-border);
  font-size: 14px;
}
.bolao-rank-row:last-child { border-bottom: none; }
.rank-pos {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bolao-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--bolao-gray);
  flex-shrink: 0;
}
.rank-name { flex: 1; font-weight: 600; color: var(--bolao-dark); }
.rank-pts { font-weight: 700; color: var(--bolao-gold); font-size: 13px; }

/* Standalone ranking shortcode */
.bolao-ranking-box + .bolao-ranking-box { margin-top: 24px; }

/* ── EMPTY + MISC ───────────────────────────────────────── */
.bolao-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--bolao-gray);
  font-size: 14px;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
  .bolao-wrap {
    grid-template-columns: 1fr;
  }
  .bolao-sidebar { order: -1; }
  .bolao-ranking-box { position: static; }
  .bolao-flag { width: 48px; height: 32px; }
  .bolao-team-name { font-size: 11px; }
  .bolao-result { font-size: 22px; }
  .bolao-match-meta { gap: 8px; padding: 6px 12px; font-size: 11px; }
  .bolao-match-body { padding: 12px 12px; }
  /* Bet inputs: compact but comfortable on mobile */
  .bolao-bet-section { padding: 10px 12px 12px; }
  .bolao-bet-form { max-width: 280px; }
}

/* ══════════════════════════════════════════════════════════
   [bolao_matches_lista] — same cards as bolao_matches
   ══════════════════════════════════════════════════════════ */
.bolao-lista-wrap { max-width: 760px; margin: 0 auto; font-family: 'Outfit', sans-serif; }

.bolao-lista-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--bolao-gray);
  margin-bottom: 10px;
  padding: 0 2px;
}

/* "Next game" highlight wrapper */
.bolao-next-wrapper { position: relative; margin-bottom: 12px; }
.bolao-next-wrapper .bolao-card-match {
  border: 2px solid var(--bolao-gold) !important;
  box-shadow: 0 0 0 3px rgba(217,119,6,.15) !important;
  margin-bottom: 0;
}
.bolao-next-badge-top {
  background: var(--bolao-gold);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-align: center;
  padding: 5px 0;
  border-radius: var(--bolao-radius) var(--bolao-radius) 0 0;
}
.bolao-next-wrapper .bolao-card-match {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}


/* ── HELLO ELEMENTOR SCROLL FIX ────────────────────────────
   Hello Elementor sets overflow-x:hidden on these containers
   which blocks inner horizontal scroll on mobile.
   We restore overflow:visible so our tables can scroll.        */
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-column-wrap,
.elementor-widget-wrap,
.elementor-widget-shortcode,
.site-main,
.site-content {
  overflow-x: visible !important;
}
/* Keep the scroll ONLY on our explicit containers */
.bolao-stats-scroll,
.bolao-class-table-wrap {
  overflow-x: scroll !important;
}
/* Ensure block containers clip title radius */
.bolao-class-wrap,
.bolao-ranking-box,
.bolao-stats-wrap,
.bolao-evolucao-wrap {
  overflow: hidden;
}
/* Block title always flush (no inherited radius) */
.bolao-block-title { border-radius: 0 !important; }
/* ══════════════════════════════════════════════════════════
   [bolao_classificacao] — Full standings table
   ══════════════════════════════════════════════════════════ */
.bolao-class-wrap {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  overflow: hidden;
}
/* .bolao-class-title replaced by unified .bolao-block-title */
.bolao-class-wrap { border-radius: 10px; overflow: hidden; border: 1.5px solid var(--bolao-border); }
.bolao-class-info {
  font-size: 12px;
  color: var(--bolao-gray);
  background: var(--bolao-light);
  border: 1px solid var(--bolao-border);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
}
.bolao-class-table-wrap {
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
.bolao-class-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bolao-class-table thead th {
  background: #263247;
  color: rgba(255,255,255,.9);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,.12);
}
.bolao-class-table tbody tr {
  border-bottom: 1px solid var(--bolao-border);
  transition: background .15s;
}
.bolao-class-table tbody tr:hover { background: var(--bolao-light); }
.bolao-class-table tbody tr.my-row {
  background: var(--bolao-secondary-lt);
  border-left: 3px solid var(--bolao-blue);
}
.bolao-class-table td {
  padding: 12px 16px;
  vertical-align: middle;
}
.bolao-class-table .col-pos        { width: 48px; text-align: center; font-size: 18px; }
.bolao-class-table .col-pts        { font-size: 18px; color: var(--bolao-gold); text-align: center; font-weight: 800; }
.bolao-class-table .col-exact      { text-align: center; color: var(--bolao-green); font-weight: 700; }
.bolao-class-table .col-final      { text-align: center; font-weight: 700; }
.bolao-class-table .col-firstexact { text-align: center; font-size: 12px; white-space: nowrap; }
.bolao-class-table .col-one        { text-align: center; color: var(--bolao-blue); font-weight: 600; }
.bolao-class-table .col-miss       { text-align: center; color: #9ca3af; font-weight: 500; }
.you-badge {
  background: var(--bolao-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}
.bolao-rank-row.is-me { background: var(--bolao-secondary-lt); font-weight: 700; }

/* ══════════════════════════════════════════════════════════
   [bolao_stats] — Statistics table
   ══════════════════════════════════════════════════════════ */
.bolao-stats-wrap {
  font-family: 'Outfit', sans-serif;
  width: 100%;
  overflow: hidden;
  border: 1.5px solid var(--bolao-border);
  border-radius: 10px;
  background: var(--bolao-white);
  box-shadow: var(--bolao-shadow);
}
.bolao-stats-wrap .bolao-block-title { border-radius: 0; }
/* .bolao-stats-title replaced by unified .bolao-block-title */
.bolao-stats-scroll {
  overflow-x: scroll;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
.bolao-stats-table {
  border-collapse: collapse;
  font-size: 12px;
  min-width: 600px;
}
.bolao-stats-table thead th {
  background: #263247;
  color: rgba(255,255,255,.9);
  padding: 8px 10px;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,.12);
}
.bolao-stats-table .stats-name-col {
  text-align: left;
  min-width: 130px;
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--bolao-dark);
}
.bolao-stats-table tbody .stats-name-col {
  background: var(--bolao-light);
  z-index: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--bolao-dark);
  border-right: 2px solid var(--bolao-border);
}
.bolao-stats-table .stats-total-col {
  position: sticky;
  right: 0;
  background: var(--bolao-dark);
  color: var(--bolao-gold);
  z-index: 2;
  min-width: 60px;
  text-align: center;
}
.bolao-stats-table tbody .stats-total-col {
  background: #1e293b;
  color: var(--bolao-gold);
  font-size: 15px;
  font-weight: 800;
  z-index: 1;
}
.stats-match-header { display: flex; flex-direction: column; gap: 3px; align-items: center; max-width: 90px; }
.stats-teams { font-size: 10px; font-weight: 600; white-space: normal; text-align: center; line-height: 1.3; }
.stats-final { font-size: 13px; font-weight: 800; color: var(--bolao-gold); }

/* Cells */
.bolao-stats-table tbody td {
  padding: 7px 10px;
  text-align: center;
  border-bottom: 1px solid var(--bolao-border);
  border-right: 1px solid var(--bolao-border);
  vertical-align: middle;
}
/* even rows: only affect name col, not colored data cells */
.bolao-stats-table tbody tr:nth-child(even) .stats-name-col { background: #e9eef5; }
.bolao-stats-table tbody tr:hover td.stats-name-col { filter: brightness(.97); }

/* Cell types */
td.stats-cell { text-align: center; vertical-align: middle; }
.bolao-stats-table td { position: relative; }
.cell-inner { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 2px;
}
.cell-bet { font-size: 13px; font-weight: 800; line-height: 1.2; }
.cell-pts { font-size: 10px; color: var(--bolao-gray); line-height: 1; }

.bolao-stats-table tbody td.type-exact   { background-color: var(--bolao-primary-lt) !important; }
.bolao-stats-table tbody td.type-outcome { background-color: var(--bolao-accent-lt) !important; }
.bolao-stats-table tbody td.type-miss    { background-color: var(--bolao-red) !important; }
.bolao-stats-table tbody td.type-none    { background-color: var(--bolao-light) !important; }

.bolao-stats-table tbody td.type-exact   .cell-bet { color: var(--bolao-primary) !important; }
.bolao-stats-table tbody td.type-outcome .cell-bet { color: var(--bolao-accent) !important; }
.bolao-stats-table tbody td.type-miss    .cell-bet { color: var(--bolao-red) !important; }
.bolao-stats-table tbody td.type-none    .cell-bet { color: #9ca3af !important; }

/* Legend */
.bolao-stats-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 12px;
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.legend-dot.exact   { background: var(--bolao-primary-lt); border: 1px solid var(--bolao-primary-lt); }
.legend-dot.outcome { background: var(--bolao-accent-lt); border: 1px solid #fde047; }
.legend-dot.miss    { background: var(--bolao-red); border: 1px solid #fca5a5; }

/* ══════════════════════════════════════════════════════════
   LOGIN MODAL
   ══════════════════════════════════════════════════════════ */
.bolao-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.bolao-modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.bolao-modal-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  width: 100%;
  max-width: 480px;
  padding: 36px 36px 28px;
  position: relative;
  transform: translateY(16px) scale(.97);
  transition: transform .22s ease;
  font-family: 'Outfit', sans-serif;
}
.bolao-modal-overlay.is-open .bolao-modal-box {
  transform: translateY(0) scale(1);
}
.bolao-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.bolao-modal-close:hover { color: #374151; }

/* Header */
.bolao-modal-header { text-align: center; margin-bottom: 24px; }
.bolao-modal-icon { font-size: 36px; margin-bottom: 8px; }
.bolao-modal-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--bolao-dark);
  margin: 0 0 4px;
}
.bolao-modal-header p {
  font-size: 13px;
  color: var(--bolao-gray);
  margin: 0;
}

/* Form fields */
.bolao-modal-form { display: flex; flex-direction: column; gap: 14px; }
.bolao-modal-field { display: flex; flex-direction: column; gap: 5px; }
.bolao-modal-field label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.bolao-modal-field input {
  height: 42px !important;
  border: 1.5px solid var(--bolao-border) !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  color: var(--bolao-dark) !important;
  background: #fff !important;
  outline: none !important;
  box-shadow: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color .15s !important;
}
.bolao-modal-field input:focus {
  border-color: var(--bolao-secondary) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
}
.bolao-pass-wrap { position: relative; }
.bolao-pass-wrap input { padding-right: 40px !important; }
.bolao-toggle-pass {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  color: #9ca3af;
}
.bolao-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
}
.bolao-remember input { width: auto !important; height: auto !important; }

/* Error */
.bolao-modal-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #991b1b;
  font-weight: 600;
}

/* Submit */
.bolao-modal-submit {
  height: 44px !important;
  background: var(--bolao-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background .15s, opacity .15s !important;
  width: 100% !important;
}
.bolao-modal-submit:hover  { background: var(--bolao-primary) !important; }
.bolao-modal-submit:disabled { opacity: .6 !important; cursor: not-allowed !important; }

/* Footer */
.bolao-modal-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
}
.bolao-modal-footer a { color: var(--bolao-gray); text-decoration: underline; }

/* Login button on card */
.bolao-btn-login {
  display: block;
  width: 100%;
  background: var(--bolao-secondary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
.bolao-btn-login:hover { background: var(--bolao-secondary) !important; }

/* ══════════════════════════════════════════════════════════
   [bolao_login] WIDGET
   ══════════════════════════════════════════════════════════ */
.bolao-login-widget {
  text-align: center;
  padding: 20px;
  font-family: 'Outfit', sans-serif;
}
.bolao-login-prompt {
  font-size: 15px;
  color: #4b5563;
  margin: 0 0 14px;
}
.bolao-login-btn {
  display: inline-block;
  background: var(--bolao-secondary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 28px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background .15s !important;
}
.bolao-login-btn:hover { background: var(--bolao-secondary) !important; }
.bolao-login-greeting {
  font-size: 16px;
  color: var(--bolao-dark);
  margin: 0 0 14px;
}
.bolao-logout-btn {
  display: inline-block;
  background: var(--bolao-light);
  color: #374151;
  border: 1px solid var(--bolao-border);
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.bolao-logout-btn:hover { background: var(--bolao-border); color: var(--bolao-dark); text-decoration: none; }

/* ══════════════════════════════════════════════════════════
   PHASE HEADERS (bolao_matches_lista)
   ══════════════════════════════════════════════════════════ */
.bolao-phase-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 10px;
}
.bolao-phase-header::before,
.bolao-phase-header::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bolao-primary) 40%, transparent);
  border-radius: 2px;
}
.bolao-phase-header--past::before,
.bolao-phase-header--past::after {
  background: linear-gradient(90deg, transparent, #9ca3af 40%, transparent);
}
.bolao-phase-header-title {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bolao-primary);
  background: var(--bolao-primary-lt);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--bolao-primary-lt);
}
.bolao-phase-header--past .bolao-phase-header-title {
  color: var(--bolao-gray);
  background: var(--bolao-light);
  border-color: var(--bolao-border);
}

/* ══════════════════════════════════════════════════════════
   FILTER BAR — bolao_matches_lista
   ══════════════════════════════════════════════════════════ */
.blf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--bolao-border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.blf-bar-left {
  flex-shrink: 0;
}
.blf-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--bolao-dark);
  white-space: nowrap;
}
.blf-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Selects */
.blf-select {
  height: 34px !important;
  border: 1.5px solid var(--bolao-border) !important;
  border-radius: 8px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  background: var(--bolao-light) !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
  max-width: 150px;
}
.blf-select:focus {
  border-color: var(--bolao-secondary) !important;
  background: #fff !important;
}
.blf-select.is-active {
  border-color: var(--bolao-primary) !important;
  background: var(--bolao-primary-lt) !important;
  color: var(--bolao-primary) !important;
}

/* Search input */
.blf-control--search .blf-input {
  height: 34px !important;
  border: 1.5px solid var(--bolao-border) !important;
  border-radius: 8px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  color: #374151 !important;
  background: var(--bolao-light) !important;
  outline: none !important;
  box-shadow: none !important;
  width: 120px;
  transition: width .2s, border-color .15s;
}
.blf-control--search .blf-input:focus {
  width: 160px;
  border-color: var(--bolao-secondary) !important;
  background: #fff !important;
}
.blf-control--search .blf-input.is-active {
  border-color: var(--bolao-primary) !important;
  background: var(--bolao-primary-lt) !important;
}

/* Buttons */
.blf-btn-pending {
  height: 34px;
  border: 1.5px solid #fbbf24;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--bolao-accent);
  background: #fffbeb;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.blf-btn-pending:hover,
.blf-btn-pending.is-active {
  background: var(--bolao-accent-lt);
  border-color: var(--bolao-accent);
}
.blf-btn-pending.is-active {
  background: #fde68a;
}
.blf-btn-clear {
  height: 34px;
  width: 34px;
  border: 1.5px solid var(--bolao-border);
  border-radius: 8px;
  font-size: 14px;
  color: #9ca3af;
  background: #fff;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.blf-btn-clear:hover { background: var(--bolao-red); color: var(--bolao-red); border-color: #fca5a5; }

/* No results message */
.blf-no-results {
  text-align: center;
  padding: 32px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
  border: 2px dashed var(--bolao-border);
  border-radius: 12px;
  margin-bottom: 16px;
}

/* Hidden section labels when empty */
.blf-section.blf-hidden { display: none !important; }
.bolao-phase-header.blf-hidden { display: none !important; }

/* ── MOBILE ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .blf-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .blf-bar-left { text-align: center; }
  .blf-bar-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .blf-bar-right .blf-control { width: 100%; }
  .blf-select { max-width: 100% !important; width: 100%; font-size: 11px !important; }
  .blf-control--search { grid-column: 1 / -1; }
  .blf-control--search .blf-input { width: 100%; }
  .blf-control--search .blf-input:focus { width: 100%; }
  .blf-btn-pending { grid-column: 1 / -1; width: 100%; font-size: 12px; padding: 0 10px; }
  .blf-btn-clear { grid-column: 1 / -1; width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   SECTION TITLES (Próximos Jogos / Jogos Encerrados)
   ══════════════════════════════════════════════════════════ */
.bolao-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--phase-upcoming-from) 0%, var(--phase-upcoming-to) 100%);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.bolao-section-title--past {
  background: linear-gradient(135deg, var(--phase-past-from) 0%, var(--phase-past-to) 100%);
  box-shadow: 0 4px 14px rgba(75,85,99,.2);
  margin-top: 32px;
}
.bolao-section-title-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.bolao-section-title-text {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bolao-section-title.blf-hidden { display: none !important; }

/* Hide old flat label if still rendered anywhere */
.bolao-lista-section-label { display: none !important; }

/* ══════════════════════════════════════════════════════════
   DARK MODE
   ══════════════════════════════════════════════════════════ */
body.bolao-dark .bolao-card-match {
  background: #1a2a3f !important;
  border-color: #2d3748 !important;
  color: var(--bolao-border) !important;
}
body.bolao-dark .bolao-match-meta { background: var(--bolao-dark) !important; }
body.bolao-dark .bolao-team-name  { color: var(--bolao-light) !important; }
body.bolao-dark .bolao-vs         { color: #4b5563 !important; }
body.bolao-dark .bolao-result     { color: #34d399 !important; }
body.bolao-dark .bolao-bet-section { background: #1a2035 !important; border-color: #2d3748 !important; }
body.bolao-dark .bolao-stepper    { background: #252d3d !important; border-color: #374151 !important; }
body.bolao-dark .bolao-step-btn   { background: #374151 !important; color: var(--bolao-border) !important; }
body.bolao-dark .bolao-score-input { background: #1a2a3f !important; color: var(--bolao-light) !important; }
body.bolao-dark .bolao-lista-wrap  { background: transparent; }
body.bolao-dark .blf-bar          { background: #1a2a3f !important; border-color: #2d3748 !important; }
body.bolao-dark .blf-title        { color: var(--bolao-light) !important; }
body.bolao-dark .blf-select,
body.bolao-dark .blf-input        { background: #252d3d !important; border-color: #374151 !important; color: var(--bolao-border) !important; }
body.bolao-dark .bolao-section-title { filter: brightness(0.85); }
body.bolao-dark .bolao-phase-header-title { background: #1a2a3f !important; border-color: #374151 !important; }
body.bolao-dark .bolao-modal-box  { background: #1a2a3f !important; }
body.bolao-dark .bolao-modal-field input { background: var(--bolao-dark) !important; border-color: #374151 !important; color: var(--bolao-light) !important; }
body.bolao-dark .bolao-locked     { color: #9ca3af !important; }
body.bolao-dark .bolao-others-bets { background: var(--bolao-dark) !important; border-color: #1a2a3f !important; }
body.bolao-dark .bolao-other-bet  { background: #1a2a3f !important; color: var(--bolao-border) !important; }
body.bolao-dark .bolao-evolucao-wrap { background: #1a2a3f !important; border-color: #2d3748 !important; }

/* Dark toggle button */
.bolao-dark-toggle {
  background: none;
  border: 1.5px solid var(--bolao-border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.bolao-dark-toggle:hover { background: var(--bolao-light); }
body.bolao-dark .bolao-dark-toggle { border-color: #374151; background: #252d3d; }

/* ══════════════════════════════════════════════════════════
   EVOLUÇÃO — chart wrapper
   ══════════════════════════════════════════════════════════ */
.bolao-evolucao-wrap {
  background: var(--bloco-evolucao-bg);
  border: 1.5px solid var(--bolao-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}
.bolao-evolucao-wrap .bolao-evolucao-chart-wrap { padding: 20px 20px 0; }
.bolao-evolucao-wrap .bolao-evolucao-legend     { padding: 0 20px 20px; }
.bolao-evolucao-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
/* .bolao-evolucao-title replaced by unified .bolao-block-title */
.bolao-evolucao-sub {
  font-size: 12px;
  color: #9ca3af;
}
.bolao-evolucao-chart-wrap {
  position: relative;
  height: 320px;
  width: 100%;
}
.bolao-evolucao-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.bev-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: var(--bolao-light);
  border: 1px solid var(--bolao-border);
  border-radius: 20px;
  padding: 4px 10px;
}
.bev-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bev-leg-item small { color: var(--bolao-gray); }

/* Login widget actions row */
.bolao-login-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════
   PAGE TEMPLATE — layout limpo sem sidebar
   ══════════════════════════════════════════════════════════ */
body.bolao-template-page {
  margin: 0;
  padding: 0;
  background: var(--bh-page-bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.bolao-page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.bolao-page-header {
  background: #fff;
  border-bottom: 1.5px solid var(--bolao-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.bolao-page-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  flex-wrap: wrap;
}
.bolao-page-brand {
  display: flex;
  align-items: center;
}
.bolao-page-logo {
  height: 36px;
  width: auto;
  display: block;
}
.bolao-page-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--bolao-dark);
}
.bolao-page-main {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px;
  box-sizing: border-box;
}
.bolao-page-footer {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  padding: 16px;
  border-top: 1px solid var(--bolao-border);
  background: #fff;
}

/* ── MENU NAV ──────────────────────────────────────────── */
.bolao-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.bolao-menu-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.bolao-menu-item:hover {
  background: var(--bolao-light);
  color: var(--bolao-dark);
  text-decoration: none;
}
.bolao-menu-active {
  background: var(--bolao-primary-lt) !important;
  color: var(--bolao-primary) !important;
}
.bolao-menu-sep {
  width: 1px;
  height: 20px;
  background: var(--bolao-border);
  margin: 0 4px;
}
.bolao-menu-user {
  font-size: 12px;
  color: var(--bolao-gray);
  padding: 0 6px;
  white-space: nowrap;
}
.bolao-menu-logout {
  color: var(--bolao-red) !important;
  font-size: 12px;
}
.bolao-menu-logout:hover { background: var(--bolao-red) !important; }
.bolao-menu-dark {
  margin-left: 4px;
}

/* Dark mode overrides for page template */
body.bolao-dark.bolao-template-page { background: var(--bolao-dark); }
body.bolao-dark .bolao-page-header  { background: #1a2a3f; border-color: #2d3748; }
body.bolao-dark .bolao-page-title   { color: var(--bolao-light); }
body.bolao-dark .bolao-menu-item    { color: var(--bolao-border); }
body.bolao-dark .bolao-menu-item:hover { background: #252d3d; color: var(--bolao-light); }
body.bolao-dark .bolao-menu-sep     { background: #374151; }
body.bolao-dark .bolao-menu-user    { color: #9ca3af; }
body.bolao-dark .bolao-page-footer  { background: #1a2a3f; border-color: #2d3748; color: var(--bolao-gray); }

@media (max-width: 600px) {
  .bolao-page-header-inner { min-height: 48px; }
  .bolao-menu-item { padding: 5px 8px; font-size: 12px; }
  .bolao-menu-user { display: none; }
}

/* ══════════════════════════════════════════════════════════
   HOMEPAGE TEMPLATE (bh-*)
   ══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body.bolao-home-page {
  margin: 0;
  padding: 0;
  background: var(--bh-page-bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--bolao-dark);
}

.bh-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER ──────────────────────────────────────────────── */
.bh-header {
  background: #fff;
  border-bottom: 1.5px solid var(--bolao-border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.bh-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bh-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.bh-logo {
  height: 52px;
  width: auto;
  display: block;
}
.bh-site-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--bolao-dark);
  letter-spacing: -.3px;
}

/* Desktop nav */
.bh-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto; /* desktop: pushes actions right */
}
.bh-nav-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.bh-nav-item:hover { background: var(--bolao-light); color: var(--bolao-dark); text-decoration: none; }
.bh-nav-active { background: var(--bh-nav-active-bg) !important; color: var(--bh-nav-active-text) !important; }

/* Header actions */
.bh-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.bh-dark-btn {
  background: none;
  border: 1.5px solid var(--bolao-border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s;
}
.bh-dark-btn:hover { background: var(--bolao-light); }

/* Mobile auth icon — visible only on mobile */
.bh-mobile-auth {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  border: 1.5px solid var(--bolao-border);
  transition: background .12s;
}
.bh-mobile-auth:hover { background: var(--bolao-light); }
.bh-mobile-logout { color: var(--bolao-red) !important; border-color: #fecaca !important; }

/* Hamburger */
.bh-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: 1.5px solid var(--bolao-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 7px 8px;
}
.bh-hamburger span {
  display: block;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.bh-hamburger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bh-hamburger-open span:nth-child(2) { opacity: 0; }
.bh-hamburger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.bh-mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--bolao-light);
  padding: 8px 0;
}
.bh-mobile-nav.bh-mobile-nav-open {
  display: flex;
  max-height: 70vh;
  overflow-y: auto;
}
.bh-mobile-nav-item {
  display: block;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .1s, border-color .1s;
}
.bh-mobile-nav-item:hover { background: var(--bolao-light); text-decoration: none; }
.bh-mobile-nav-item.bh-nav-active { border-left-color: var(--bolao-primary); color: var(--bolao-primary); background: var(--bolao-primary-lt); }
.bh-mobile-nav-user {
  padding: 10px 20px 4px;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}
.bh-mobile-nav-logout { color: var(--bolao-red) !important; }
.bh-mobile-nav-login  { color: var(--bolao-secondary) !important; }

/* ── MAIN ──────────────────────────────────────────────── */
.bh-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.bh-block {
  margin-bottom: 32px;
}

/* ── BLOCK 1: 70/30 grid ─────────────────────────────── */
.bh-grid-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.bh-col-matches { min-width: 0; }
.bh-col-sidebar {
  position: sticky;
  top: 74px; /* below header */
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bh-sidebar-ranking .bolao-class-wrap {
  margin: 0;
}
.bh-sidebar-login .bolao-login-widget {
  margin: 0;
}

/* Mobile top-3 — hidden on desktop */
.bh-top3-mobile { display: none; }

/* Mobile full ranking — hidden on desktop */
.bh-full-ranking-mobile { display: none; }

/* ── TOP-3 CARDS ──────────────────────────────────────── */
.bh-top3-mobile {
  background: #fff;
  border: 1.5px solid var(--bolao-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.bh-top3-title {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
}
.bh-top3-row {
  display: flex;
  gap: 8px;
}
.bh-top3-card {
  flex: 1;
  background: var(--bolao-light);
  border: 1.5px solid var(--bolao-border);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.bh-top3-card.bh-top3-me {
  background: var(--bolao-primary-lt);
  border-color: var(--bolao-primary-lt);
}
.bh-top3-medal { font-size: 20px; line-height: 1; }
.bh-top3-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--bolao-dark);
  text-align: center;
  word-break: break-word;
  line-height: 1.2;
}
.bh-top3-pts {
  font-size: 11px;
  color: var(--bolao-primary);
  font-weight: 600;
}

/* ── FOOTER ───────────────────────────────────────────── */
.bh-footer {
  background: #fff;
  border-top: 1.5px solid var(--bolao-border);
  padding: 16px 20px;
}
.bh-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9ca3af;
  justify-content: center;
}
.bh-footer-sep { color: var(--bolao-border); }
.bh-footer-name { font-weight: 600; color: var(--bolao-gray); }

/* ── DARK MODE ────────────────────────────────────────── */
body.bolao-dark.bolao-home-page { background: #0f1117; color: var(--bolao-border); }
body.bolao-dark .bh-header { background: #1a1f2e; border-color: #2d3748; }
body.bolao-dark .bh-site-name { color: var(--bolao-light); }
body.bolao-dark .bh-nav-item { color: var(--bolao-border); }
body.bolao-dark .bh-nav-item:hover { background: #252d3d; color: var(--bolao-light); }
body.bolao-dark .bh-dark-btn { border-color: #374151; background: #252d3d; }
body.bolao-dark .bh-dark-btn:hover { background: #2d3748; }
body.bolao-dark .bh-mobile-auth { border-color: #374151; color: var(--bolao-border); }
body.bolao-dark .bh-hamburger { border-color: #374151; }
body.bolao-dark .bh-hamburger span { background: var(--bolao-border); }
body.bolao-dark .bh-mobile-nav { background: #1a1f2e; border-color: #2d3748; }
body.bolao-dark .bh-mobile-nav-item { color: var(--bolao-border); }
body.bolao-dark .bh-mobile-nav-item:hover { background: #252d3d; }
body.bolao-dark .bh-top3-mobile { background: #1a1f2e; border-color: #2d3748; }
body.bolao-dark .bh-top3-title { color: var(--bolao-border); }
body.bolao-dark .bh-top3-card { background: #252d3d; border-color: #374151; }
body.bolao-dark .bh-top3-card.bh-top3-me { background: rgba(13,127,63,.25); border-color: var(--bolao-primary); }
body.bolao-dark .bh-top3-name { color: #e2e8f0; }
body.bolao-dark .bh-top3-pts { color: var(--bolao-primary); }
body.bolao-dark .bh-top3-card.bh-top3-me .bh-top3-name { color: #ffffff; }
body.bolao-dark .bh-top3-card.bh-top3-me .bh-top3-pts { color: #86efac; }
body.bolao-dark .bh-footer { background: #1a1f2e; border-color: #2d3748; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 860px) {
  /* Hide desktop nav and sidebar */
  .bh-nav { display: none; }
  .bh-col-sidebar { display: none; }
  /* Nav hidden on mobile — push actions to far right */
  .bh-header-actions { margin-left: auto; }

  /* Show hamburger, mobile auth, mobile drawers */
  .bh-hamburger { display: flex; }
  .bh-mobile-auth { display: inline-flex; }
  .bh-mobile-nav { display: none; }
  .bh-mobile-nav.bh-mobile-nav-open { display: flex; }

  /* Show mobile top-3 and full ranking */
  .bh-top3-mobile { display: block; }
  .bh-full-ranking-mobile { display: block; margin-top: 24px; }

  /* Single column */
  .bh-grid-main { grid-template-columns: 1fr; }
  .bh-col-matches { min-width: 0; }

  .bh-header-inner { padding: 0 14px; }
  .bh-main { padding: 16px 12px 32px; }
}

@media (max-width: 480px) {
  .bh-logo { height: 40px; }
  .bh-site-name { font-size: 15px; }
  .bh-top3-row { flex-direction: row; }
  .bh-top3-card { padding: 8px 6px; }
}


/* ── ADMIN BAR COMPENSATION ───────────────────────────── */
/* When admin bar is shown, WP adds margin-top to html/body.
   Our sticky header needs to account for this. */
.admin-bar .bh-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .bh-header { top: 46px; }
}

/* ── PAGE TEMPLATE (subpages) ─────────────────────────── */
.bh-main--page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}
.bh-page-content {
  max-width: 100%;
}
@media (max-width: 860px) {
  .bh-main--page { padding: 20px 12px 32px; }
}
/* ── WELCOME BAR ──────────────────────────────────────── */
.bh-welcome-bar {
  background: var(--bh-welcome-bg);
  border-bottom: 1px solid var(--bolao-primary-lt);
  text-align: center;
  padding: 7px 20px;
  font-size: 13px;
  color: var(--bolao-primary);
  letter-spacing: .01em;
}
.bh-welcome-bar strong { color: var(--bolao-primary); }

/* Mobile nav login button — CTA destacado */
.bh-mobile-nav-login-btn {
  display: block;
  background: var(--bolao-primary);
  border: none;
  border-top: 1px solid var(--bolao-light);
  width: calc(100% - 32px);
  margin: 10px 16px 4px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  letter-spacing: .02em;
  transition: background .15s;
}
.bh-mobile-nav-login-btn:hover { background: var(--bolao-primary-dk, #0a6630); }

/* Dark mode welcome bar */
body.bolao-dark .bh-welcome-bar {
  background: var(--bolao-primary);
  border-color: var(--bolao-primary);
  color: var(--bolao-primary-lt);
}
body.bolao-dark .bh-welcome-bar strong { color: var(--bolao-primary); }

/* ── HEADER AUTH — desktop/mobile visibility ──────────── */
.bh-desktop-only { display: flex !important; }
.bh-mobile-only  { display: none !important; }

@media (max-width: 860px) {
  .bh-desktop-only { display: none !important; }
  .bh-mobile-only  { display: inline-flex !important; }
}

.bh-header-user {
  font-size: 12px;
  color: var(--bolao-gray);
  white-space: nowrap;
  align-items: center;
}
.bh-header-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--bolao-border);
  background: #fff;
  color: #374151;
  white-space: nowrap;
  text-decoration: none;
  transition: background .12s, border-color .12s;
  font-family: inherit;
}
.bh-header-auth-btn:hover {
  background: var(--bolao-light);
  border-color: var(--bolao-border);
  text-decoration: none;
  color: var(--bolao-dark);
}

/* Mobile auth icon button */
.bh-auth-icon {
  background: none;
  border: 1.5px solid var(--bolao-border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  text-decoration: none;
  transition: background .12s;
}
.bh-auth-icon:hover { background: var(--bolao-light); text-decoration: none; }
.bh-auth-logout { color: var(--bolao-red) !important; border-color: #fecaca !important; }
.bh-auth-logout:hover { background: #fee2e2 !important; color: var(--bolao-red) !important; }
body.bolao-dark .bh-auth-logout { color: #fca5a5 !important; border-color: #7f1d1d !important; }
body.bolao-dark .bh-auth-logout:hover { background: #450a0a !important; }

/* Dark mode header auth */
body.bolao-dark .bh-header-auth-btn {
  background: #252d3d;
  border-color: #374151;
  color: var(--bolao-border);
}
body.bolao-dark .bh-header-auth-btn:hover {
  background: #2d3748;
  color: var(--bolao-light);
}
body.bolao-dark .bh-header-user { color: #9ca3af; }
body.bolao-dark .bh-auth-icon { border-color: #374151; color: var(--bolao-border); }
body.bolao-dark .bh-auth-icon:hover { background: #252d3d; }

/* ══════════════════════════════════════════════════════════
   TOURNAMENT TABS & BADGE
   ══════════════════════════════════════════════════════════ */

/* Badge no header */
.bh-tournament-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 3px 9px;
  background: var(--bolao-primary-lt);
  color: var(--bolao-primary);
  border: 1px solid var(--bolao-primary-lt);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

/* Tabs bar */
.bh-tournament-tabs {
  background: #fff;
  border-bottom: 1.5px solid var(--bolao-border);
}
.bh-tournament-tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bh-tournament-tabs-inner::-webkit-scrollbar { display: none; }

.bh-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bolao-gray);
  text-decoration: none;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  transition: color .12s, border-color .12s;
  margin-bottom: -1.5px;
}
.bh-tab:hover {
  color: var(--bolao-dark);
  text-decoration: none;
  border-bottom-color: var(--bolao-border);
}
.bh-tab-active {
  color: var(--bh-tab-active) !important;
  border-bottom-color: var(--bh-tab-active) !important;
}

/* Mobile nav separator */
.bh-mobile-nav-sep {
  padding: 10px 20px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-top: 1px solid var(--bolao-light);
  margin-top: 4px;
}

/* Dark mode */
body.bolao-dark .bh-tournament-badge {
  background: var(--bolao-primary);
  border-color: var(--bolao-primary);
  color: var(--bolao-primary);
}
body.bolao-dark .bh-tournament-tabs {
  background: #1a1f2e;
  border-color: #2d3748;
}
body.bolao-dark .bh-tab { color: var(--bolao-gray); }
body.bolao-dark .bh-tab:hover { color: var(--bolao-border); border-bottom-color: #4b5563; }
body.bolao-dark .bh-tab-active { color: var(--bolao-primary) !important; border-bottom-color: var(--bolao-primary) !important; }
body.bolao-dark .bh-mobile-nav-sep { color: #4b5563; border-color: #2d3748; }

@media (max-width: 860px) {
  .bh-tournament-badge { display: none; }
  .bh-tournament-tabs-inner { padding: 0 12px; }
  .bh-tab { padding: 9px 12px; font-size: 12px; }
}

/* ── BETS POPUP ───────────────────────────────────────────── */
.bolao-bets-trigger-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 16px 8px;
}
.bolao-bets-trigger {
  background: none;
  border: 1.5px solid var(--bolao-border);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bolao-gray);
  cursor: pointer;
  font-family: inherit;
  transition: all .12s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.bolao-bets-trigger:hover {
  background: var(--bolao-light);
  border-color: var(--bolao-secondary);
  color: var(--bolao-secondary);
}

/* Popup overlay */
.bolao-bets-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.bolao-bets-popup-overlay.is-open {
  display: flex;
}
.bolao-bets-popup {
  background: var(--bolao-white);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bolao-bets-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bolao-border);
  flex-shrink: 0;
}
.bolao-bets-popup-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--bolao-dark);
}
.bolao-bets-popup-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--bolao-gray);
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
}
.bolao-bets-popup-close:hover { background: var(--bolao-light); }
.bolao-bets-popup-body {
  overflow-y: auto;
  padding: 12px 16px;
}
.bolao-popup-bet-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: var(--bolao-light);
  border-left: 3px solid transparent;
  gap: 0 12px;
}
.bolao-popup-bet-row.mine          { outline: 1.5px solid var(--bolao-primary); outline-offset: -1px; }
.bolao-popup-bet-row.result-exact   { background: var(--bolao-primary-lt);   border-left-color: var(--bolao-primary); }
.bolao-popup-bet-row.result-outcome { background: var(--bolao-secondary-lt); border-left-color: var(--bolao-secondary); }
.bolao-popup-bet-row.result-miss    { background: var(--bolao-light);        border-left-color: var(--bolao-border); }
.bolao-popup-bet-row.result-pending { background: var(--bolao-light); }
.bolao-popup-bet-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--bolao-dark);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bolao-popup-bet-score {
  font-size: 15px;
  font-weight: 800;
  color: var(--bolao-dark);
  white-space: nowrap;
  text-align: center;
  min-width: 42px;
}
.bolao-popup-bet-pts {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
  min-width: 48px;
}
.badge-exact   { color: var(--bolao-primary); }
.badge-outcome { color: var(--bolao-secondary); }
.badge-miss    { color: var(--bolao-gray); }
.badge-pending { color: transparent; }
.bolao-bets-popup-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--bolao-border);
  font-size: 12px;
  color: var(--bolao-gray);
  text-align: center;
  flex-shrink: 0;
}

/* Dark mode popup */
body.bolao-dark .bolao-bets-popup { background: #1e2a3e; }
body.bolao-dark .bolao-bets-popup-header { border-color: #2d3748; }
body.bolao-dark .bolao-bets-popup-title { color: #f1f5f9; }
body.bolao-dark .bolao-bets-popup-close { color: #9ca3af; }
body.bolao-dark .bolao-bets-popup-close:hover { background: #252d3d; }
body.bolao-dark .bolao-popup-bet-row              { background: #252d3d; }
body.bolao-dark .bolao-popup-bet-row.result-exact   { background: #0a2e1a; }
body.bolao-dark .bolao-popup-bet-row.result-outcome { background: #0d1f3c; }
body.bolao-dark .bolao-popup-bet-row.result-miss    { background: #252d3d; }
body.bolao-dark .bolao-popup-bet-name { color: #e2e8f0; }
body.bolao-dark .bolao-popup-bet-score { color: #f1f5f9; }
body.bolao-dark .bolao-bets-popup-footer { border-color: #2d3748; }

/* ── DARK MODE — Classificação table ──────────────────── */
body.bolao-dark .bolao-class-table { color: #e2e8f0; }
body.bolao-dark .bolao-class-table tbody tr { background: #1a2236; }
body.bolao-dark .bolao-class-table tbody tr:nth-child(even) { background: #1e2a40; }
body.bolao-dark .bolao-class-table .col-name { color: #f1f5f9; }
body.bolao-dark .bolao-class-table .col-miss { color: #6b7280; }
body.bolao-dark .bolao-class-table .col-firstexact span[style*="bolao-dark"],
body.bolao-dark .bolao-class-table .col-firstexact span { color: #cbd5e1 !important; }
body.bolao-dark .bolao-class-table .my-row { background: #0d2a1a !important; }
body.bolao-dark .bolao-class-table .my-row .col-name { color: #86efac; }

/* ── DARK MODE — Welcome bar name ─────────────────────── */
body.bolao-dark .bh-welcome-bar { color: #f0fdf4; }
body.bolao-dark .bh-welcome-bar strong { color: #ffffff; }

/* ── REGRAS ───────────────────────────────────────────── */
.bolao-regras-wrap {
  background: #fff;
  border-radius: var(--bolao-radius);
  box-shadow: var(--bolao-shadow);
  overflow: hidden;
}
.bolao-regras-body {
  padding: 24px 28px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--bolao-dark);
}
.bolao-regras-body h1,.bolao-regras-body h2,.bolao-regras-body h3 {
  color: var(--bolao-dark);
  margin: 16px 0 8px;
  font-weight: 700;
}
.bolao-regras-body ul,.bolao-regras-body ol {
  padding-left: 20px;
  margin: 8px 0 16px;
}
.bolao-regras-body li { margin-bottom: 6px; }
.bolao-regras-body strong { color: var(--bolao-dark); }
.bolao-regras-body a { color: var(--bolao-secondary); }
body.bolao-dark .bolao-regras-wrap { background: #1a2236; }
body.bolao-dark .bolao-regras-body {
  color: #e2e8f0;
  background: #141c2e;
  border-top: 1px solid rgba(255,255,255,.08);
}
body.bolao-dark .bolao-regras-body h1,
body.bolao-dark .bolao-regras-body h2,
body.bolao-dark .bolao-regras-body h3 { color: #f1f5f9; }
body.bolao-dark .bolao-regras-body strong { color: #f1f5f9; }
body.bolao-dark .bolao-regras-body a { color: #93c5fd; }

/* ── NAV DROPDOWN (desktop) ───────────────────────────── */
.bh-nav-dropdown {
  position: relative;
  display: inline-flex;
}
.bh-nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s, color .12s;
}
.bh-nav-dropdown-toggle:hover { background: var(--bolao-light); color: var(--bolao-dark); }
.bh-nav-caret { font-size: 9px; margin-left: 4px; opacity: .6; }
.bh-nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1.5px solid var(--bolao-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 999;
  padding: 4px 0;
  flex-direction: column;
}
.bh-nav-dropdown:not(.bh-nav-dropdown--mobile):hover .bh-nav-submenu,
.bh-nav-dropdown.is-open .bh-nav-submenu { display: flex; }
.bh-nav-sub-item {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bolao-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: background .12s;
}
.bh-nav-sub-item:hover { background: var(--bolao-light); color: var(--bolao-primary); }

/* Mobile dropdown — accordion style */
.bh-nav-dropdown--mobile { flex-direction: column; width: 100%; }
.bh-nav-dropdown--mobile .bh-nav-dropdown-toggle {
  font-size: 14px;
  padding: 10px 16px;
  color: #374151;
  width: 100%;
  justify-content: flex-end;
  border-radius: 0;
}
.bh-nav-dropdown--mobile .bh-nav-submenu {
  display: none;
  position: static;
  border: none;
  box-shadow: none;
  background: rgba(0,0,0,.04);
  border-radius: 6px;
  margin: 0 8px 4px;
  padding: 2px 0;
  min-width: 0;
}
.bh-nav-dropdown--mobile.is-open .bh-nav-submenu { display: flex; }
.bh-nav-dropdown--mobile .bh-nav-sub-item {
  padding: 9px 16px;
  font-size: 13px;
  text-align: right;
  color: #374151;
}

/* Mobile nav — right-align all items */
.bh-mobile-nav-item,
.bh-nav-dropdown--mobile .bh-nav-dropdown-toggle { text-align: right; }

/* Dark mode dropdown */
body.bolao-dark .bh-nav-dropdown-toggle { color: var(--bolao-border); }
body.bolao-dark .bh-nav-dropdown-toggle:hover { background: #252d3d; color: var(--bolao-light); }
body.bolao-dark .bh-nav-submenu { background: #1e2a40; border-color: #2d3748; }
body.bolao-dark .bh-nav-sub-item { color: #e2e8f0; }
body.bolao-dark .bh-nav-sub-item:hover { background: #252d3d; color: var(--bolao-primary); }
body.bolao-dark .bh-nav-dropdown--mobile .bh-nav-dropdown-toggle { color: var(--bolao-border); }
body.bolao-dark .bh-nav-dropdown--mobile .bh-nav-submenu { background: rgba(255,255,255,.04); }
body.bolao-dark .bh-nav-dropdown--mobile .bh-nav-sub-item { color: #cbd5e1; }



/* ══ GRUPOS ══════════════════════════════════════════════════════════════════ */

/* Box geral */
.bolao-grupos-box {
  background: var(--bolao-white);
  border: 1px solid var(--bolao-border);
  border-radius: var(--bolao-radius);
  overflow: hidden;
  margin: 16px 0;
  box-shadow: var(--bolao-shadow);
}
/* Conteúdo após o título */
.bolao-grupos-box > *:not(.bolao-block-title) {
  padding-left: 20px;
  padding-right: 20px;
}
.bolao-grupos-box > *:last-child {
  padding-bottom: 20px;
}
.bolao-grupos-inner {
  padding: 0 20px 20px;
}

/* Lista de grupos */
.bolao-grupos-lista { display:flex; flex-direction:column; gap:12px; margin-bottom:20px; }
.bolao-grupo-card { border:1px solid var(--bolao-border); border-radius:var(--bolao-radius); padding:14px; background:var(--bolao-light); }
.bolao-grupo-card-header { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.bolao-grupo-badge-lider { display:inline-block; background:#fef3c7; color:#92400e; font-size:11px; font-weight:700; padding:2px 8px; border-radius:20px; margin-left:6px; }
.bolao-grupo-meta { display:flex; gap:10px; align-items:center; font-size:13px; color:var(--bolao-gray); flex-wrap:wrap; }
.bolao-btn-copiar-codigo { background:none; border:none; cursor:pointer; font-size:14px; padding:0 2px; }
.bolao-grupo-actions { display:flex; gap:8px; flex-wrap:wrap; }

/* Painéis de entrar/criar */
.bolao-grupos-panel { border-top:1px solid var(--bolao-border); padding-top:16px; margin-top:16px; }
.bolao-grupos-panel h4 { font-size:14px; font-weight:700; margin-bottom:10px; }
.bolao-grupos-form { display:flex; flex-direction:column; gap:10px; }
.bolao-grupos-form-row { display:flex; gap:8px; }
.bolao-grupos-form-row input,
.bolao-grupos-form-row select {
  flex:1; padding:8px 12px;
  border:1px solid var(--bolao-border);
  border-radius:8px; font-size:14px;
  font-family:inherit; background:#fff; color:inherit;
}

/* Notificações */
.bolao-grupos-notice { padding:10px 14px; border-radius:8px; font-size:14px; margin-bottom:14px; }
.bolao-grupos-notice.ok { background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; }
.bolao-grupos-notice.err { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }

/* Botões */
.bolao-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; text-decoration:none; border:none; font-family:inherit; }
.bolao-btn-primary { background:var(--bolao-primary); color:#fff; }
.bolao-btn-sm { padding:5px 12px; font-size:13px; background:var(--bolao-light); color:var(--bolao-dark); border:1px solid var(--bolao-border); }
.bolao-btn-danger { background:#fef2f2; color:#dc2626; border:1px solid #fecaca; }
.bolao-btn:disabled { opacity:.5; cursor:not-allowed; }

/* Header do grupo na página de ranking — igual ao bolao-grupos-box mas sem padding extra */

.bolao-grupo-meta-info { font-size:13px; color:var(--bolao-gray); margin-top:4px; }

/* Widget Meus Grupos na home */
.bolao-widget-grupos {
  margin-top: 12px;
  border-radius: var(--bolao-radius);
  overflow: hidden;
  border: 1px solid var(--bolao-border);
  background: var(--bolao-white);
}
.bolao-widget-grupos-title {
  font-size: 11px; font-weight:700;
  text-transform: uppercase; letter-spacing:1px;
  color: var(--bolao-gray);
  padding: 10px 14px 6px;
}
.bolao-widget-grupos-item {
  display: flex; align-items:center;
  justify-content: space-between;
  padding: 10px 14px;
  text-decoration: none; color:inherit;
  border-top: 1px solid var(--bolao-border);
  font-size: 14px; font-weight:600;
  transition: background .15s; gap:12px;
}
.bolao-widget-grupos-item:hover { background: var(--bolao-light); }
.bolao-widget-grupos-item-nome { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bolao-widget-grupos-item-count { font-size:12px; color:var(--bolao-gray); flex-shrink:0; white-space:nowrap; }
.bolao-widget-grupos-ver-todos {
  display:block; text-align:center;
  padding: 8px 14px; font-size:12px;
  color: var(--bolao-primary);
  text-decoration:none;
  border-top: 1px solid var(--bolao-border);
  font-weight:600;
}
.bolao-widget-grupos-ver-todos:hover { text-decoration:underline; }

/* Modal tabs */
.bolao-modal-tabs { display:flex; border-bottom:2px solid var(--bolao-border); margin:0 -28px 20px; padding:0 28px; }
.bolao-modal-tab { background:none; border:none; padding:8px 20px; font-size:14px; font-weight:600; color:var(--bolao-gray); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; font-family:inherit; }
.bolao-modal-tab.bolao-tab-active { color:var(--bolao-primary); border-bottom-color:var(--bolao-primary); }
.bolao-tab-panel { display:block; }

/* ── GRUPO HOME ────────────────────────────────────────────────────────────── */


/* ── GRUPO HOME BANNER ──────────────────────────────────────────────────── */
.bolao-grupo-home-banner {
  background: var(--bolao-primary, #0d7f3f);
  color: #fff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.bolao-grupo-home-banner-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bolao-grupo-home-banner-icon { font-size: 24px; }
.bolao-grupo-home-banner-nome {
  font-weight: 700;
  font-size: 15px;
}
.bolao-grupo-home-banner-sub {
  font-size: 12px;
  opacity: .85;
  margin-top: 2px;
}
.bolao-grupo-home-banner-btn {
  background: rgba(255,255,255,.2);
  color: #fff;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s;
}
.bolao-grupo-home-banner-btn:hover { background: rgba(255,255,255,.3); }

/* ── PERFIL ─────────────────────────────────────────────────────────────── */
.bolao-perfil-box {
  background: var(--bolao-white);
  border: 1px solid var(--bolao-border);
  border-radius: var(--bolao-radius);
  overflow: hidden;
  margin: 16px auto;
  box-shadow: var(--bolao-shadow);
  max-width: 560px;
}
.bolao-perfil-inner { padding: 24px; }
.bolao-perfil-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bolao-border);
}
.bolao-perfil-section:last-of-type { border-bottom: none; margin-bottom: 16px; }
.bolao-perfil-section h4 {
  font-size: 14px; font-weight: 700;
  color: var(--bolao-dark); margin: 0 0 16px;
}
.bolao-perfil-optional { font-weight: 400; color: var(--bolao-gray); font-size: 12px; }
.bolao-perfil-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.bolao-perfil-field label { font-size: 13px; font-weight: 600; color: var(--bolao-dark); }
.bolao-perfil-field input[type="text"],
.bolao-perfil-field input[type="password"],
.bolao-perfil-field input[type="email"] {
  padding: 9px 12px;
  border: 1px solid var(--bolao-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: inherit;
  width: 100%;
  box-sizing: border-box;
}
.bolao-perfil-field input:focus { outline: 2px solid var(--bolao-primary); border-color: transparent; }
.bolao-perfil-hint { font-size: 12px; color: var(--bolao-gray); }
.bolao-perfil-pendente {
  background: #fef9c3; border: 1px solid #fde047;
  border-radius: 8px; padding: 12px 16px;
  font-size: 14px; color: #713f12;
  margin-bottom: 20px;
}

/* ── BADGE PENDENTE NO CARD ─────────────────────────────────────────────── */
.bolao-badge-pendente {
  background: #fef9c3; color: #92400e;
  font-size: 11px; font-weight: 700;
  padding: 1px 6px; border-radius: 10px;
  margin-left: 4px;
}

/* ── QR CODE POPUP ──────────────────────────────────────────────────────── */
.bolao-qr-popup {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--bolao-light);
  border-radius: 10px;
  border: 1px solid var(--bolao-border);
}

/* ── JOGOS SEM APOSTA ───────────────────────────────────────────────────── */
.bolao-sem-aposta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bolao-border);
  font-size: 14px;
}
.bolao-sem-aposta-row:last-child { border-bottom: none; }
.bolao-sem-aposta-match { font-weight: 600; }
.bolao-sem-aposta-date { font-size: 12px; color: var(--bolao-gray); margin-left: 8px; font-weight: 400; }
.bolao-sem-aposta-quem { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bolao-sem-aposta-ok { font-size: 13px; color: var(--bolao-gray); }
.bolao-sem-aposta-badge {
  background: #fef2f2; color: #dc2626;
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
}

/* ── PÁGINA ENTRAR ──────────────────────────────────────────────────────── */
.bolao-entrar-box {
  background: var(--bolao-white);
  border: 1px solid var(--bolao-border);
  border-radius: var(--bolao-radius);
  overflow: hidden;
  margin: 40px auto;
  max-width: 520px;
  box-shadow: var(--bolao-shadow);
}

/* ── BANNER PAGAMENTO PENDENTE ──────────────────────────────────────────── */
.bolao-pag-banner {
  background: #fef9c3;
  border-bottom: 2px solid #fde047;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #713f12;
  font-weight: 500;
}
.bolao-pag-banner-actions { display: flex; align-items: center; gap: 12px; }
.bolao-pag-banner-btn {
  background: #ca8a04;
  color: #fff;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s;
}
.bolao-pag-banner-btn:hover { background: #a16207; }
.bolao-pag-banner-link {
  color: #92400e;
  font-size: 12px;
  text-decoration: underline;
}

/* ── BOX PAGAMENTO NO PERFIL ────────────────────────────────────────────── */
.bolao-pag-status-ok {
  display: flex; align-items: center; gap: 12px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 10px; padding: 14px 16px;
}
.bolao-pag-status-icon { font-size: 28px; }
.bolao-pag-status-pendente {
  background: #fef9c3; border: 1px solid #fde047;
  border-radius: 10px; padding: 12px 16px;
  font-size: 14px; color: #713f12; font-weight: 500;
}
.bolao-pag-status-erro {
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 10px; padding: 12px 16px;
  font-size: 14px; color: #991b1b; font-weight: 500;
}
