/* ============================================================
   bolao.css — Bolão SportsBR1 v10
   Design: Light Clean · Mobile-First · Professional
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; height: auto; display: block; }

/* ══════════════════════════════════════════════════════════
   TOKENS ESPECÍFICOS DO BOLÃO (sobreposição light)
   ══════════════════════════════════════════════════════════ */
:root {
  --bl-white:      #ffffff;
  --bl-bg:         #f4f6fa;
  --bl-card:       #ffffff;
  --bl-card2:      #f8fafc;
  --bl-border:     #e2e8f0;
  --bl-border2:    #cbd5e1;
  --bl-shadow-sm:  0 1px 4px rgba(0,0,0,.06), 0 2px 12px rgba(0,0,0,.04);
  --bl-shadow:     0 2px 8px rgba(0,0,0,.07), 0 6px 24px rgba(0,0,0,.05);
  --bl-shadow-lg:  0 8px 32px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
  --bl-primary:    #16a34a;
  --bl-primary-dk: #15803d;
  --bl-green-bg:   #f0fdf4;
  --bl-green-lt:   #dcfce7;
  --bl-text:       #111827;
  --bl-text-sub:   #6b7280;
  --bl-text-muted: #9ca3af;
  --bl-gold:       #d97706;
  --bl-red:        #dc2626;
  --bl-blue:       #2563eb;
  --bl-radius:     12px;
  --bl-radius-lg:  16px;
  --bl-radius-xl:  20px;
}

/* ══════════════════════════════════════════════════════════
   LAYOUT CONTAINERS
   ══════════════════════════════════════════════════════════ */
.bl-page {
  background: var(--bl-bg);
  min-height: 100vh;
  padding-bottom: 2rem;
}

.bl-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.bl-container-sm { max-width: 600px; }
.bl-container-md { max-width: 800px; }

/* ══════════════════════════════════════════════════════════
   AVATAR — header
   ══════════════════════════════════════════════════════════ */
.bolao-avatar-btn {
  display: flex; align-items: center; gap: .45rem;
  text-decoration: none; color: var(--text-main);
}
.bolao-avatar-sm {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.bolao-avatar-photo {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.bolao-user-name {
  font-size: .8rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px;
}

/* ══════════════════════════════════════════════════════════
   BOTÕES
   ══════════════════════════════════════════════════════════ */
.bolao-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .6rem 1.25rem; border-radius: 10px;
  font-weight: 700; font-size: .875rem; cursor: pointer;
  text-decoration: none; transition: all .18s ease; border: none;
  line-height: 1.25; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.bolao-btn:active { transform: scale(.97); }

.bolao-btn-primary {
  background: var(--bl-primary); color: #fff;
  box-shadow: 0 2px 8px rgba(22,163,74,.3);
}
.bolao-btn-primary:hover {
  background: var(--bl-primary-dk);
  box-shadow: 0 4px 16px rgba(22,163,74,.4);
  transform: translateY(-1px);
}

.bolao-btn-outline {
  background: var(--bl-white); color: var(--bl-primary);
  border: 1.5px solid var(--bl-primary);
}
.bolao-btn-outline:hover {
  background: var(--bl-green-bg); transform: translateY(-1px);
}

.bolao-btn-ghost {
  background: var(--bl-card2); color: var(--bl-text-sub);
  border: 1px solid var(--bl-border);
}
.bolao-btn-ghost:hover { background: var(--bl-border); color: var(--bl-text); }

.bolao-btn-danger {
  background: #fee2e2; color: var(--bl-red);
  border: 1px solid #fecaca;
}
.bolao-btn-danger:hover { background: var(--bl-red); color: #fff; }

.bolao-btn-sm { padding: .4rem .85rem; font-size: .8rem; border-radius: 8px; }
.bolao-btn-lg { padding: .75rem 1.75rem; font-size: .95rem; border-radius: 12px; }
.btn-full { width: 100%; margin-top: .75rem; }

/* ══════════════════════════════════════════════════════════
   ALERTAS
   ══════════════════════════════════════════════════════════ */
.bolao-alert {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .9rem 1.1rem; border-radius: var(--bl-radius); font-size: .875rem;
  margin-bottom: 1rem; border: 1px solid transparent;
}
.bolao-alert-ok  {
  background: #f0fdf4; border-color: #86efac; color: #166534;
}
.bolao-alert-err {
  background: #fef2f2; border-color: #fca5a5; color: #991b1b;
}
.bolao-alert-info {
  background: #eff6ff; border-color: #93c5fd; color: #1e40af;
}
.bolao-alert-warn {
  background: #fffbeb; border-color: #fcd34d; color: #92400e;
}

/* ══════════════════════════════════════════════════════════
   TIPOGRAFIA / TÍTULOS
   ══════════════════════════════════════════════════════════ */
.bolao-page-title {
  font-size: 1.5rem; font-weight: 900; letter-spacing: -.025em;
  color: var(--bl-text); margin: 0; line-height: 1.2;
}
.bolao-section-title {
  font-size: 1.05rem; font-weight: 800; margin: 0 0 1rem;
  color: var(--bl-text); display: flex; align-items: center; gap: .5rem;
}
.bolao-section-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem;
}
.bolao-link {
  font-size: .85rem; color: var(--bl-primary); text-decoration: none;
  font-weight: 600; transition: color .15s;
}
.bolao-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   CARDS — base
   ══════════════════════════════════════════════════════════ */
.bl-card {
  background: var(--bl-card); border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius-lg); box-shadow: var(--bl-shadow-sm);
  overflow: hidden;
}
.bl-card-header {
  padding: .85rem 1.1rem; background: var(--bl-green-bg);
  border-bottom: 1px solid var(--bl-border);
  display: flex; align-items: center; justify-content: space-between;
}
.bl-card-body { padding: 1.1rem; }

/* ══════════════════════════════════════════════════════════
   HERO — página inicial do bolão
   ══════════════════════════════════════════════════════════ */
.bolao-hero {
  background: linear-gradient(135deg, #14532d 0%, #166534 40%, #15803d 100%);
  border-radius: var(--bl-radius-xl); padding: 2.5rem 2rem;
  display: flex; align-items: center; gap: 2rem;
  margin-bottom: 2rem; overflow: hidden; position: relative;
  box-shadow: 0 8px 32px rgba(22,163,74,.25);
}
.bolao-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 75% 50%, rgba(255,255,255,.08) 0%, transparent 65%);
}
.bolao-hero-content { flex: 1; z-index: 1; min-width: 0; }
.bolao-hero-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(4px);
  font-size: .7rem; font-weight: 800; letter-spacing: .08em;
  padding: .3rem .75rem; border-radius: 20px; margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,.25);
}
.bolao-hero-title {
  font-size: 1.9rem; font-weight: 900; color: #fff; line-height: 1.15;
  margin: 0 0 .65rem; letter-spacing: -.03em;
}
.bolao-hero-desc {
  font-size: .875rem; color: rgba(255,255,255,.8); line-height: 1.6;
  margin-bottom: 1.4rem; max-width: 480px;
}
.bolao-hero-stats {
  display: flex; gap: 1.75rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.bolao-hero-stat { text-align: center; }
.stat-n {
  display: block; font-size: 1.6rem; font-weight: 900; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.stat-l {
  font-size: .68rem; color: rgba(255,255,255,.65);
  text-transform: uppercase; letter-spacing: .06em; margin-top: .1rem;
}
.bolao-hero-ctas { display: flex; gap: .6rem; flex-wrap: wrap; }
.bolao-hero-img {
  font-size: 7rem; line-height: 1; opacity: .15; flex-shrink: 0;
  z-index: 1; user-select: none; animation: heroFloat 5s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-10px) rotate(3deg); }
}

/* ══════════════════════════════════════════════════════════
   COMO FUNCIONA — grid de cards
   ══════════════════════════════════════════════════════════ */
.bolao-how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.bolao-how-card {
  background: var(--bl-card); border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius-lg); padding: 1.35rem 1.1rem;
  text-align: center; transition: all .2s ease;
  box-shadow: var(--bl-shadow-sm);
}
.bolao-how-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bl-shadow-lg);
  border-color: #86efac;
}
.how-icon { font-size: 2.2rem; margin-bottom: .65rem; }
.bolao-how-card h3 {
  font-size: .9rem; font-weight: 800; color: var(--bl-text);
  margin: 0 0 .4rem;
}
.bolao-how-card p {
  font-size: .8rem; color: var(--bl-text-sub); line-height: 1.55; margin: 0;
}

/* ══════════════════════════════════════════════════════════
   TABS DE COMPETIÇÃO
   ══════════════════════════════════════════════════════════ */
.bolao-comp-tabs {
  display: flex; gap: .4rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 2px; margin-bottom: 1.25rem;
}
.bolao-comp-tabs::-webkit-scrollbar { display: none; }
.bolao-comp-tab {
  padding: .45rem 1rem; border-radius: 20px; font-size: .8rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  color: var(--bl-text-sub); background: var(--bl-card);
  border: 1.5px solid var(--bl-border); transition: all .15s;
}
.bolao-comp-tab:hover { border-color: var(--bl-primary); color: var(--bl-primary); }
.bolao-comp-tab.active {
  background: var(--bl-primary); color: #fff;
  border-color: var(--bl-primary);
  box-shadow: 0 2px 8px rgba(22,163,74,.3);
}

/* ══════════════════════════════════════════════════════════
   MATCH CARDS — PALPITAR (o mais importante!)
   ══════════════════════════════════════════════════════════ */
.bolao-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1rem; width: 100%;
}

.bolao-match-card {
  background: var(--bl-card); border: 1.5px solid var(--bl-border);
  border-radius: var(--bl-radius-lg); padding: 1.1rem;
  transition: all .2s ease; box-shadow: var(--bl-shadow-sm);
  display: flex; flex-direction: column; gap: .65rem;
  min-width: 0; width: 100%;
}
.bolao-match-card:hover {
  border-color: #86efac;
  box-shadow: 0 4px 20px rgba(22,163,74,.15);
  transform: translateY(-2px);
}
.bolao-match-card.bl-live {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,.2), var(--bl-shadow);
}
.bolao-match-card.bl-end {
  background: var(--bl-card2); opacity: .85;
}

/* Status row */
.bm-status-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .72rem;
}
.bolao-live-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #f0fdf4; color: var(--bl-primary);
  font-size: .7rem; font-weight: 800; padding: .2rem .6rem;
  border-radius: 20px; letter-spacing: .04em;
  border: 1px solid #86efac;
}
.bolao-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bl-primary); animation: pulseDot 1.2s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.6)} }
.bolao-status {
  font-size: .72rem; color: var(--bl-text-sub); font-weight: 600;
}
.bm-comp { font-size: .68rem; color: var(--bl-text-muted); font-weight: 600; }

/* Teams row */
.bm-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: .5rem;
}
.bm-team {
  display: flex; flex-direction: column; align-items: center;
  gap: .35rem; text-align: center; min-width: 0;
}
.bm-team-r { align-items: center; }
.bm-logo-wrap {
  width: 44px; height: 44px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.bm-logo {
  width: 40px; height: 40px; object-fit: contain;
  border-radius: 6px;
}
.bm-logo-placeholder {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bl-green-bg); border: 2px solid var(--bl-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.bm-name {
  font-size: .78rem; font-weight: 700; color: var(--bl-text);
  line-height: 1.3; word-break: break-word;
}
.bm-vs-col {
  display: flex; flex-direction: column; align-items: center;
  gap: .25rem; flex-shrink: 0;
}
.bm-score {
  font-size: 1.2rem; font-weight: 900; color: var(--bl-text);
  letter-spacing: .05em; line-height: 1;
}
.bm-score span { color: var(--bl-text-muted); }
.bm-vs {
  font-size: .68rem; font-weight: 800; color: var(--bl-text-muted);
  text-transform: uppercase; letter-spacing: .05em;
  background: var(--bl-card2); border: 1px solid var(--bl-border);
  padding: .2rem .5rem; border-radius: 20px;
}

/* Prediction row */
.bm-pred {
  border-top: 1px solid var(--bl-border);
  padding-top: .65rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  flex-wrap: wrap; min-height: 38px;
}
.pred-made {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  justify-content: center;
}
.pred-score-lbl { font-size: .7rem; color: var(--bl-text-sub); font-weight: 600; }
.pred-val {
  font-size: .95rem; font-weight: 900; color: var(--bl-text);
  background: var(--bl-green-bg); padding: .15rem .55rem;
  border-radius: 6px; border: 1px solid #86efac;
}
.pred-locked { opacity: .7; cursor: not-allowed; }
.pred-edit-btn {
  background: none; border: none; cursor: pointer;
  font-size: .9rem; padding: .15rem .35rem; opacity: .6;
  transition: opacity .15s; border-radius: 4px;
}
.pred-edit-btn:hover { opacity: 1; background: var(--bl-card2); }
.pred-open-btn {
  background: var(--bl-primary); color: #fff; border: none;
  padding: .4rem 1rem; border-radius: 8px; font-size: .8rem;
  font-weight: 700; cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: .3rem;
}
.pred-open-btn:hover { background: var(--bl-primary-dk); transform: scale(1.02); }
.pred-open-btn:active { transform: scale(.98); }

/* Pontos badge */
.pts-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .55rem; border-radius: 20px;
  font-size: .72rem; font-weight: 800; letter-spacing: .02em;
}
.pts-10 { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.pts-5  { background: #fef9c3; color: #713f12; border: 1px solid #fde68a; }
.pts-0  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ══════════════════════════════════════════════════════════
   MODAL DE PALPITE
   ══════════════════════════════════════════════════════════ */
.pred-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
@media (min-width: 540px) {
  .pred-modal-overlay { align-items: center; padding: 1rem; }
}
.pred-modal {
  background: var(--bl-card); width: 100%; max-width: 420px;
  border-radius: var(--bl-radius-xl) var(--bl-radius-xl) 0 0;
  padding: 1.5rem 1.25rem 2rem;
  box-shadow: 0 -8px 32px rgba(0,0,0,.12);
  animation: modalUp .3s cubic-bezier(.34,1.4,.64,1) both;
  position: relative;
}
@media (min-width: 540px) {
  .pred-modal {
    border-radius: var(--bl-radius-xl);
    padding: 2rem 1.75rem;
    animation: modalIn .25s cubic-bezier(.34,1.4,.64,1) both;
  }
}
@keyframes modalUp {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
/* drag handle */
.pred-modal::before {
  content: '';
  display: block; width: 40px; height: 4px;
  background: var(--bl-border2); border-radius: 2px;
  margin: 0 auto .75rem;
}
@media (min-width: 540px) { .pred-modal::before { display: none; } }
.pred-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--bl-card2); border: 1px solid var(--bl-border);
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.1rem; color: var(--bl-text-sub); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.pred-modal-close:hover { background: var(--bl-border); color: var(--bl-text); }

.pred-modal-title {
  font-size: .9rem; font-weight: 800; color: var(--bl-text);
  text-align: center; margin-bottom: 1.25rem;
}
.pred-teams {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; margin-bottom: 1.5rem;
}
.pred-team {
  display: flex; flex-direction: column; align-items: center;
  gap: .4rem; flex: 1; text-align: center; min-width: 0;
}
.pred-team-logo {
  width: 48px; height: 48px; object-fit: contain; border-radius: 8px;
}
.pred-team-name {
  font-size: .78rem; font-weight: 700; color: var(--bl-text);
  line-height: 1.3; word-break: break-word;
}
.pred-inputs {
  display: flex; align-items: center; gap: .6rem; flex-shrink: 0;
}
.pred-score-input {
  width: 58px; text-align: center; font-size: 1.5rem; font-weight: 900;
  background: var(--bl-bg); border: 2px solid var(--bl-border2);
  border-radius: 10px; color: var(--bl-text); padding: .4rem;
  -moz-appearance: textfield; transition: all .15s;
}
.pred-score-input::-webkit-outer-spin-button,
.pred-score-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pred-score-input:focus {
  border-color: var(--bl-primary); outline: none;
  box-shadow: 0 0 0 3px rgba(22,163,74,.15); transform: scale(1.05);
}
.pred-x { font-size: 1.2rem; font-weight: 900; color: var(--bl-text-muted); }
.pred-modal-hint {
  font-size: .75rem; color: var(--bl-text-sub); text-align: center;
  margin-bottom: 1.1rem; line-height: 1.5;
}
.pred-modal-submit {
  width: 100%; padding: .85rem; border-radius: 12px; border: none;
  background: var(--bl-primary); color: #fff;
  font-size: 1rem; font-weight: 800; cursor: pointer;
  transition: all .2s; box-shadow: 0 4px 16px rgba(22,163,74,.3);
}
.pred-modal-submit:hover { background: var(--bl-primary-dk); transform: translateY(-1px); }
.pred-modal-submit:active { transform: scale(.98); }

/* ══════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════ */
.pred-toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  padding: .75rem 1.5rem; border-radius: 24px; font-size: .875rem; font-weight: 700;
  z-index: 99999; white-space: nowrap;
  animation: toastIn .3s cubic-bezier(.34,1.4,.64,1) both;
}
.pred-toast-ok  {
  background: #166534; color: #fff;
  box-shadow: 0 4px 20px rgba(22,163,74,.4);
}
.pred-toast-err {
  background: #991b1b; color: #fff;
  box-shadow: 0 4px 20px rgba(220,38,38,.4);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(.9); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD — stats row
   ══════════════════════════════════════════════════════════ */
.bolao-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem; margin-bottom: 1.75rem;
}
@media (min-width: 600px) {
  .bolao-stats-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.bolao-stat-card {
  background: var(--bl-card); border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius); padding: 1rem .75rem;
  text-align: center; box-shadow: var(--bl-shadow-sm);
  transition: all .18s;
}
.bolao-stat-card:hover {
  transform: translateY(-2px); box-shadow: var(--bl-shadow);
  border-color: #86efac;
}
.bolao-stat-card .stat-icon { font-size: 1.5rem; margin-bottom: .3rem; }
.bolao-stat-card .stat-val {
  font-size: 1.45rem; font-weight: 900; color: var(--bl-primary);
  line-height: 1;
}
.bolao-stat-card .stat-label {
  font-size: .68rem; color: var(--bl-text-sub); margin-top: .25rem;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   RANKING TABLE
   ══════════════════════════════════════════════════════════ */
.bolao-rank-table {
  background: var(--bl-card); border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius-lg); overflow: hidden;
  box-shadow: var(--bl-shadow-sm);
}
.rank-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1rem; border-bottom: 1px solid var(--bl-border);
  transition: background .15s;
}
.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: var(--bl-green-bg); }
.rank-row.rank-top { }
.rank-row.rank-top:nth-child(1) { background: linear-gradient(90deg, #fffbeb, var(--bl-card)); }
.rank-row.rank-top:nth-child(2) { background: linear-gradient(90deg, #f8fafc, var(--bl-card)); }
.rank-row.rank-top:nth-child(3) { background: linear-gradient(90deg, #fff7ed, var(--bl-card)); }
.rank-pos {
  width: 30px; font-size: .95rem; text-align: center;
  flex-shrink: 0; font-weight: 800;
}
.rank-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: .9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.rank-info { flex: 1; min-width: 0; }
.rank-info strong {
  display: block; font-size: .875rem; color: var(--bl-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-team { font-size: .72rem; color: var(--bl-text-sub); }
.rank-right { text-align: right; flex-shrink: 0; min-width: 56px; }
.rank-pts { font-size: 1.05rem; font-weight: 900; color: var(--bl-primary); }
.rank-pts-lbl { font-size: .68rem; color: var(--bl-text-muted); }
.rank-pred { font-size: .7rem; color: var(--bl-text-muted); margin-top: .1rem; }

/* ══════════════════════════════════════════════════════════
   LIGAS GRID
   ══════════════════════════════════════════════════════════ */
.bolao-leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
}
.bolao-league-card {
  background: var(--bl-card); border: 1.5px solid var(--bl-border);
  border-radius: var(--bl-radius-lg); padding: 1.15rem;
  text-decoration: none; color: inherit; display: block;
  transition: all .2s ease; box-shadow: var(--bl-shadow-sm);
}
.bolao-league-card:hover {
  border-color: var(--bl-primary); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(22,163,74,.15);
}
.blc-name {
  font-size: .95rem; font-weight: 800; color: var(--bl-text);
  margin-bottom: .3rem; line-height: 1.3;
}
.blc-code {
  font-size: .7rem; font-family: 'Courier New', monospace; color: var(--bl-primary);
  background: var(--bl-green-bg); padding: .15rem .45rem;
  border-radius: 4px; display: inline-block; margin-bottom: .5rem;
  border: 1px solid #86efac; letter-spacing: .1em;
}
.blc-meta { font-size: .78rem; color: var(--bl-text-sub); line-height: 1.5; }
.blc-pts { font-size: 1.1rem; font-weight: 900; color: var(--bl-primary); }

/* ══════════════════════════════════════════════════════════
   FORMULÁRIOS
   ══════════════════════════════════════════════════════════ */
.bolao-form-wrap {
  max-width: 480px; margin: 0 auto;
  background: var(--bl-card); border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius-xl); padding: 2rem 1.75rem;
  box-shadow: var(--bl-shadow);
}
.bolao-form-title {
  font-size: 1.25rem; font-weight: 900; color: var(--bl-text);
  text-align: center; margin: 0 0 1.5rem;
}
.bolao-form-group { margin-bottom: 1rem; }
.bolao-form-group label {
  display: block; font-size: .8rem; font-weight: 700;
  color: var(--bl-text-sub); margin-bottom: .4rem;
}
.bolao-input, .bolao-select {
  width: 100%; padding: .7rem .9rem; border-radius: 10px;
  background: var(--bl-bg); border: 1.5px solid var(--bl-border);
  color: var(--bl-text); font-size: .9rem; font-family: inherit;
  transition: all .15s; box-sizing: border-box;
  -webkit-appearance: none; appearance: none;
}
.bolao-input:focus, .bolao-select:focus {
  border-color: var(--bl-primary); outline: none;
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
  background: var(--bl-white);
}
.bolao-input-hint { font-size: .74rem; color: var(--bl-text-muted); margin-top: .3rem; }
.bolao-form-divider {
  text-align: center; font-size: .8rem; color: var(--bl-text-muted);
  margin: 1.1rem 0; position: relative;
}
.bolao-form-divider::before, .bolao-form-divider::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 20px); height: 1px; background: var(--bl-border);
}
.bolao-form-divider::before { left: 0; }
.bolao-form-divider::after { right: 0; }

/* ══════════════════════════════════════════════════════════
   AUTH PAGES
   ══════════════════════════════════════════════════════════ */
.bolao-auth-page {
  min-height: 100vh; background: var(--bl-bg);
  display: flex; flex-direction: column; overflow-x: hidden;
}
.auth-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem 1rem 3rem; min-height: 100vh;
}
.auth-card {
  background: var(--bl-card); border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius-xl); padding: 2.25rem 2rem;
  width: 100%; max-width: 440px; box-shadow: var(--bl-shadow-lg);
}
.auth-logo {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  text-decoration: none; color: var(--bl-primary);
  font-size: 1rem; font-weight: 900; letter-spacing: .02em;
  margin-bottom: 1.75rem;
}
.auth-logo-icon { font-size: 1.8rem; }
.auth-title {
  font-size: 1.5rem; font-weight: 900; color: var(--bl-text);
  text-align: center; margin: 0 0 .35rem;
}
.auth-sub {
  text-align: center; font-size: .85rem; color: var(--bl-text-sub);
  margin: 0 0 1.5rem;
}
.auth-form { display: flex; flex-direction: column; gap: .9rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label {
  font-size: .78rem; font-weight: 700; color: var(--bl-text-sub);
  display: flex; align-items: center; gap: .35rem;
}
.form-group input,
.form-group select {
  width: 100%; padding: .7rem .9rem; border-radius: 10px;
  border: 1.5px solid var(--bl-border); background: var(--bl-bg);
  color: var(--bl-text); font-size: .9rem; font-family: inherit;
  transition: all .2s; box-sizing: border-box;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--bl-primary);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12); background: var(--bl-white);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center;
  padding-right: 2.25rem;
}
.auth-switch {
  text-align: center; font-size: .84rem; color: var(--bl-text-sub);
  margin: 1rem 0 0;
}
.auth-switch a {
  color: var(--bl-primary); font-weight: 700; text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

/* Team preview */
.team-preview {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .8rem; background: var(--bl-green-bg);
  border: 1px solid #86efac; border-radius: 8px; margin-top: .4rem;
  font-size: .8rem; color: var(--bl-text-sub); min-height: 40px;
}
.team-crest { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.team-crest-placeholder {
  width: 28px; height: 28px; background: var(--bl-border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.flag-img {
  width: 28px; height: 20px; object-fit: cover;
  border-radius: 3px; border: 1px solid var(--bl-border); flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   PERFIL — hero
   ══════════════════════════════════════════════════════════ */
.bolao-profile-hero {
  background: linear-gradient(135deg, #14532d, #15803d);
  border-radius: var(--bl-radius-xl); padding: 2rem 1.75rem;
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 1.75rem; box-shadow: 0 8px 28px rgba(22,163,74,.2);
}
.bolao-avatar-lg {
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 900; color: #fff; overflow: hidden;
  border: 3px solid rgba(255,255,255,.3);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.bolao-profile-info .pf-name { font-size: 1.4rem; font-weight: 900; color: #fff; }
.bolao-profile-info .pf-sub {
  font-size: .82rem; color: rgba(255,255,255,.65); margin-top: .2rem;
}
.bolao-profile-info .pf-pts {
  font-size: 1.05rem; font-weight: 800; color: #86efac; margin-top: .5rem;
}

/* ══════════════════════════════════════════════════════════
   LIGA HEADER
   ══════════════════════════════════════════════════════════ */
.bolao-liga-header {
  background: linear-gradient(135deg, #14532d, #166534, #15803d);
  border-radius: var(--bl-radius-xl); padding: 1.75rem;
  margin-bottom: 1.75rem; box-shadow: 0 8px 28px rgba(22,163,74,.2);
}
.bolao-liga-name { font-size: 1.45rem; font-weight: 900; color: #fff; margin: 0 0 .3rem; }
.bolao-liga-meta { font-size: .8rem; color: rgba(255,255,255,.7); }
.bolao-liga-code-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.15); color: #fff;
  font-family: 'Courier New', monospace; font-size: .85rem;
  padding: .3rem .8rem; border-radius: 8px; margin-top: .65rem;
  letter-spacing: .05em; border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
}
.liga-prize-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff; font-size: .75rem; font-weight: 800;
  padding: .3rem .8rem; border-radius: 20px; margin-top: .5rem;
  box-shadow: 0 2px 8px rgba(217,119,6,.3);
}

/* ══════════════════════════════════════════════════════════
   LIGA CODE DISPLAY (criar-liga)
   ══════════════════════════════════════════════════════════ */
.liga-code-display {
  background: var(--bl-green-bg); border: 2px dashed var(--bl-primary);
  border-radius: var(--bl-radius); padding: 1.5rem; text-align: center;
  margin: 1.25rem 0;
}
.liga-code-display .code-val {
  font-size: 2.25rem; font-weight: 900;
  font-family: 'Courier New', monospace; color: var(--bl-primary);
  letter-spacing: .25em;
}
.liga-code-display p { font-size: .8rem; color: var(--bl-text-sub); margin: .4rem 0 0; }

/* ══════════════════════════════════════════════════════════
   PALPITES HISTORY
   ══════════════════════════════════════════════════════════ */
.bolao-preds-list {
  background: var(--bl-card); border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius-lg); overflow: hidden;
  box-shadow: var(--bl-shadow-sm);
}
.bpl-row {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem .9rem; border-bottom: 1px solid var(--bl-border);
  min-width: 0; transition: background .12s;
}
.bpl-row:last-child { border-bottom: none; }
.bpl-row:hover { background: var(--bl-green-bg); }
.bpl-teams { flex: 1; font-size: .83rem; color: var(--bl-text); min-width: 0; }
.bpl-pred  { font-size: .85rem; font-weight: 800; color: var(--bl-text-sub); min-width: 44px; text-align: center; flex-shrink: 0; }
.bpl-actual{ font-size: .82rem; color: var(--bl-text-muted); min-width: 44px; text-align: center; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center; padding: 3rem 1.5rem; color: var(--bl-text-muted);
}
.empty-state .icon { font-size: 3rem; margin-bottom: .75rem; opacity: .6; }
.empty-state p { font-size: .9rem; margin-top: .5rem; }

/* ══════════════════════════════════════════════════════════
   SPINNER
   ══════════════════════════════════════════════════════════ */
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--bl-border);
  border-top-color: var(--bl-primary);
  animation: spin .8s linear infinite; margin: 2.5rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   CHAT — layout completo
   ══════════════════════════════════════════════════════════ */
.chat-wrap {
  display: flex; flex-direction: column;
  height: calc(100vh - 62px); max-height: 100vh;
  background: var(--bl-bg);
}
.chat-header {
  background: var(--bl-card); border-bottom: 1px solid var(--bl-border);
  padding: .9rem 1rem; display: flex; align-items: center; gap: .75rem;
  flex-shrink: 0; box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.chat-header-icon { font-size: 1.4rem; }
.chat-header-title { font-size: 1rem; font-weight: 800; color: var(--bl-text); }
.chat-header-sub { font-size: .75rem; color: var(--bl-text-sub); }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: .6rem;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.chat-msg {
  display: flex; align-items: flex-end; gap: .5rem; max-width: 85%;
}
.chat-msg.own { flex-direction: row-reverse; align-self: flex-end; }
.chat-msg.other { align-self: flex-start; }
.chat-msg-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; color: #fff;
}
.chat-msg-body { min-width: 0; }
.chat-msg-header {
  font-size: .68rem; color: var(--bl-text-sub);
  margin-bottom: .2rem; display: flex; align-items: center; gap: .4rem;
}
.chat-msg.own .chat-msg-header { flex-direction: row-reverse; }
.chat-msg-name { font-weight: 700; color: var(--bl-text); }
.chat-msg-time { color: var(--bl-text-muted); }
.chat-bubble {
  padding: .6rem .9rem; border-radius: 14px;
  font-size: .875rem; line-height: 1.5; word-break: break-word;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.chat-msg.other .chat-bubble {
  background: var(--bl-card); border: 1px solid var(--bl-border);
  color: var(--bl-text); border-bottom-left-radius: 4px;
}
.chat-msg.own .chat-bubble {
  background: var(--bl-primary); color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg-badge {
  font-size: .62rem; font-weight: 800; padding: .1rem .35rem;
  border-radius: 4px; letter-spacing: .04em;
}
.badge-adm { background: #fef3c7; color: #92400e; }
.chat-delete-btn {
  background: none; border: none; opacity: 0; cursor: pointer;
  font-size: .8rem; padding: .1rem .25rem; color: var(--bl-text-muted);
  transition: opacity .15s; flex-shrink: 0;
}
.chat-msg:hover .chat-delete-btn { opacity: .7; }
.chat-delete-btn:hover { opacity: 1 !important; color: var(--bl-red); }
.chat-input-bar {
  background: var(--bl-card); border-top: 1px solid var(--bl-border);
  padding: .75rem 1rem; display: flex; gap: .6rem; align-items: flex-end;
  flex-shrink: 0; box-shadow: 0 -1px 8px rgba(0,0,0,.04);
}
.chat-textarea {
  flex: 1; border: 1.5px solid var(--bl-border); border-radius: 10px;
  padding: .6rem .85rem; font-size: .875rem; font-family: inherit;
  resize: none; min-height: 42px; max-height: 100px;
  color: var(--bl-text); background: var(--bl-bg);
  transition: border-color .15s; line-height: 1.4;
}
.chat-textarea:focus {
  outline: none; border-color: var(--bl-primary);
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}
.chat-send-btn {
  width: 44px; height: 44px; border-radius: 10px; border: none;
  background: var(--bl-primary); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .15s;
  box-shadow: 0 2px 8px rgba(22,163,74,.3);
}
.chat-send-btn:hover { background: var(--bl-primary-dk); transform: scale(1.05); }
.chat-send-btn:active { transform: scale(.95); }
.chat-send-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.chat-ranking-bar {
  background: var(--bl-card); border-bottom: 1px solid var(--bl-border);
  overflow-x: auto; -webkit-overflow-scrolling: touch; flex-shrink: 0;
}
.chat-rank-inner {
  display: flex; gap: .85rem; padding: .6rem 1rem;
  min-width: max-content;
}
.chat-rank-item {
  display: flex; align-items: center; gap: .35rem; flex-shrink: 0;
}
.chat-rank-pos { font-size: .8rem; }
.chat-rank-av {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.chat-rank-name { font-size: .75rem; font-weight: 700; color: var(--bl-text); }
.chat-rank-pts { font-size: .7rem; color: var(--bl-primary); font-weight: 700; }

/* ══════════════════════════════════════════════════════════
   LEGENDA
   ══════════════════════════════════════════════════════════ */
.bolao-legend {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  padding: .75rem; background: var(--bl-card);
  border: 1px solid var(--bl-border); border-radius: var(--bl-radius);
  margin-top: 1rem;
}
.legend-item {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: var(--bl-text-sub);
}

/* ══════════════════════════════════════════════════════════
   ANIMAÇÕES — entrada de cards
   ══════════════════════════════════════════════════════════ */
.bolao-match-card,
.bolao-how-card,
.bolao-league-card,
.bolao-stat-card {
  animation: blFadeUp .35s ease both;
}
@keyframes blFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bolao-matches-grid > *:nth-child(1) { animation-delay: .03s; }
.bolao-matches-grid > *:nth-child(2) { animation-delay: .06s; }
.bolao-matches-grid > *:nth-child(3) { animation-delay: .09s; }
.bolao-matches-grid > *:nth-child(4) { animation-delay: .12s; }
.bolao-matches-grid > *:nth-child(5) { animation-delay: .15s; }
.bolao-matches-grid > *:nth-child(6) { animation-delay: .18s; }

/* Live card pulse */
.bolao-match-card.bl-live {
  animation: blFadeUp .35s ease both, livePulse 2.5s ease-in-out infinite .35s;
}
@keyframes livePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.1), var(--bl-shadow-sm); }
  50%     { box-shadow: 0 0 0 4px rgba(34,197,94,.15), var(--bl-shadow); }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVIDADE — MOBILE FIRST
   ══════════════════════════════════════════════════════════ */

/* Telas pequenas (< 480px) */
@media (max-width: 480px) {
  .bolao-page-title { font-size: 1.2rem; }
  .bolao-hero { padding: 1.5rem 1.1rem; }
  .bolao-hero-title { font-size: 1.45rem; }
  .bolao-hero-img { display: none; }
  .bolao-hero-stats { gap: 1rem; }
  .bolao-how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bolao-matches-grid { grid-template-columns: minmax(0, 1fr); }
  .bolao-leagues-grid { grid-template-columns: minmax(0, 1fr); }
  .bolao-form-wrap { padding: 1.5rem 1.1rem; }
  .bolao-profile-hero { flex-direction: column; text-align: center; padding: 1.5rem 1.1rem; }
  .auth-card { padding: 2rem 1.25rem; }
  .pred-modal { padding: 1.35rem 1.1rem 2rem; }
  .bolao-user-name { display: none; }
  .bm-logo-wrap { width: 36px; height: 36px; }
  .bm-logo { width: 32px; height: 32px; }
  .bm-name { font-size: .72rem; }
  .bolao-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bolao-stat-card .stat-val { font-size: 1.2rem; }
  .bolao-stat-card { padding: .8rem .5rem; }
}

/* Telefones médios (480–768px) */
@media (min-width: 480px) and (max-width: 768px) {
  .bolao-hero-img { display: none; }
  .bolao-hero { padding: 1.75rem 1.4rem; }
  .bolao-how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bolao-matches-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .bolao-hero { padding: 2.5rem 2.25rem; }
  .bolao-how-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bolao-matches-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .bolao-profile-hero { padding: 2rem 2.25rem; }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .bolao-hero-title { font-size: 2.1rem; }
  .bolao-matches-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* 320px — telefones muito pequenos */
@media (max-width: 340px) {
  .bolao-how-grid { grid-template-columns: minmax(0, 1fr); }
  .bolao-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-card { padding: 1.5rem .9rem; }
  .bolao-form-wrap { padding: 1.25rem .9rem; }
  .pred-modal { padding: 1.2rem .9rem 2rem; }
}

/* 1440px+ — TV/Monitor grande */
@media (min-width: 1440px) {
  .bolao-hero-title { font-size: 2.4rem; }
  .bolao-matches-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}
