/* ============================================================
   BOLÃO COPA DO MUNDO 2026 — Global CSS 
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Nunito:wght@400;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ── Variáveis padrão (sobrescritas por empresa_css()) ──────── */
:root {
  --cor-primaria: #e65f82;
  --cor-secundaria: #55bedc;
  --cor-texto-btn: #ffffff;
  --cor-texto: #4f4f4f;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Nunito", sans-serif;

  --radius: 0.75rem;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --transition: 0.2s ease;
}

/* ── Reset / Base ────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: #f5f6fa;
  color: #2d2d3a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
.display-font {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

/* ── Classes utilitárias de cor da empresa ───────────────────── */
.bg-primaria {
  background-color: var(--cor-primaria) !important;
}

.bg-secundaria {
  background-color: var(--cor-secundaria) !important;
}

.bg-primaria-soft {
  background-color: color-mix(in srgb, var(--cor-primaria) 12%, white);
}

.bg-secundaria-soft {
  background-color: color-mix(in srgb, var(--cor-secundaria) 12%, white);
}

.text-primaria {
  color: var(--cor-primaria) !important;
}

.text-secundaria {
  color: var(--cor-secundaria) !important;
}

.border-primaria {
  border-color: var(--cor-primaria) !important;
}

.btn-primaria {
  background-color: var(--cor-primaria);
  color: var(--cor-texto-btn);
  border: none;
}

.btn-primaria:hover {
  background-color: color-mix(in srgb, var(--cor-primaria) 85%, black);
  color: var(--cor-texto-btn);
}

.btn-outline-primaria {
  border: 2px solid var(--cor-primaria);
  color: var(--cor-primaria);
  background: transparent;
}

.btn-outline-primaria:hover {
  background-color: var(--cor-primaria);
  color: var(--cor-texto-btn);
}

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar.bg-primaria .navbar-brand,
.navbar.bg-primaria .nav-link {
  color: rgba(255, 255, 255, 0.95);
}

.navbar.bg-primaria .nav-link:hover,
.navbar.bg-primaria .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
}

/* ── Layout-user ─────────────────────────────────────────────────── */

.topbar {
  background: var(--cor-primaria);
  padding: 0;
  position: sticky;
  top: var(--dev-banner-h, 0px);
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}
.topbar .navbar-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--cor-secundaria) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.topbar .navbar-brand img {
  max-height: 32px;
  object-fit: contain;
}
.topbar .nav-link {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem 1rem !important;
  border-bottom: 3px solid transparent;
  transition: 0.15s;
}
.topbar .nav-link:hover {
  color: #fff !important;
}
.topbar .nav-link.active {
  color: #fff !important;
  border-bottom-color: var(--cor-secundaria);
}
.topbar .live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #dc3545;
  border-radius: 50%;
  animation: pulse-dot 1.2s ease-in-out infinite;
  margin-right: 4px;
  vertical-align: middle;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.4);
  }
}

/* ── Avatar no navbar ── */
.nav-avatar-wrap {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.nav-avatar-wrap .avatar-wrap {
  /* garante que o avatar SVG ocupa exato o espaço */
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
}
.nav-avatar-wrap .avatar-wrap svg {
  width: 30px !important;
  height: 30px !important;
}

/* ── Cards de jogo ── */
.jogo-card {
  background: #fff;
  border-radius: 0.875rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  overflow: hidden;
}
.jogo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.jogo-card .jogo-header {
  background: linear-gradient(135deg, var(--cor-secundaria) 10%, #4f4f4f 100%);
  padding: 0.7rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.jogo-card .jogo-header .fase {
  font-size: 0.65rem;
  color: rgba(255, 255, 255);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.jogo-card .jogo-header .hora {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}
.jogo-card .jogo-body {
  padding: 0.8rem 0 0 0;
}
.jogo-card .time-nome {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2d2d3a;
  text-align: center;
  line-height: 1.2;
}
.jogo-card .bandeira {
  width: 38px;
  height: 26px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #eee;
}
.jogo-card .bandeira-placeholder {
  width: 38px;
  height: 26px;
  border-radius: 3px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #aaa;
  font-weight: 700;
}
.jogo-card .placar-resultado {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cor-primaria);
  line-height: 1;
  text-align: center;
}
.jogo-card .vs-sep {
  font-size: 0.75rem;
  color: #ccc;
  font-weight: 700;
}

/* ── Palpite inline ── */

.palpite-input {
  width: 52px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 0.15rem 0.25rem;
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  -moz-appearance: textfield;
}
.palpite-input::-webkit-inner-spin-button,
.palpite-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.palpite-input:focus {
  border-color: var(--cor-primaria);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor-primaria) 18%, transparent);
  outline: none;
}
.palpite-input:disabled {
  background: #f0f0f0;
  color: #aaa;
  cursor: not-allowed;
}
.palpite-input.salvo {
  border-color: #1e7f3c;
}
.btn-palpite {
  background: var(--cor-primaria);
  color: var(--cor-texto-btn);
  border: none;
  border-radius: 0.4rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-palpite:hover {
  opacity: 0.85;
}
.btn-palpite:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Status badges */
.badge-ao-vivo {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
  font-size: 0.68rem;
  font-weight: 700;
}
.badge-encerrado {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  font-size: 0.68rem;
}
.badge-agendado {
  background: rgba(42, 109, 181, 0.1);
  color: #2a6db5;
  font-size: 0.68rem;
}

/* ── Ranking ── */
.rank-row {
  border-left: 4px solid transparent;
  transition: 0.15s;
}
.rank-row:hover {
  background: #fafbff;
}
.rank-row.top-1 {
  border-left-color: #ffd700;
}
.rank-row.top-2 {
  border-left-color: #c0c0c0;
}
.rank-row.top-3 {
  border-left-color: #cd7f32;
}
.pos-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}
.pos-badge.p1 {
  background: #ffd700;
  color: #555;
}
.pos-badge.p2 {
  background: #e8e8e8;
  color: #555;
}
.pos-badge.p3 {
  background: #e8d5c4;
  color: #555;
}
.pos-badge.pn {
  background: #f0f0f0;
  color: #999;
}

/* ── Ao Vivo ── */
.bandeira {
  width:52px;
  height:35px;
  object-fit:cover;
  border-radius:4px;
  border:1px solid rgba(255,255,255,.2);
  background:#fff;
}

.evento-item {
  border-left: 4px solid var(--cor-primaria);
  margin-bottom: 0.75rem;
  animation: slide-in 0.3s ease;
  background: #fff;
  border-radius: 7px;
  padding: 12px;
}

.ev-icon{
  max-width: 25px;
  width: 25px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.box-ao-vivo{
  background:var(--cor-primaria);
  border-radius:1rem 1rem 0 0;
  padding:1.5rem;
  color:#fff;
  box-shadow:0 8px 32px rgba(0,0,0,.2);
  position:relative;
  overflow:hidden;
}

.circle-1{
  position:absolute;
  top:-20px;
  right:-20px;
  width:120px;
  height:120px;
  border-radius:50%;background:rgba(255,255,255,.05)
}

.circle-2{
  position:absolute;
  bottom:-30px;
  left:-10px;
  width:80px;
  height:80px;
  border-radius:50%;background:rgba(255,255,255,.04)
}

.av-local{
  font-size:.7rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(255,255,255,.7)
}

.partidas div:last-child, .partidas div:first-child {
    min-width: 90px;
}


/* ── Seção grupo ── */
.grupo-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--cor-primaria);
  border-bottom: 2px solid var(--cor-secundaria);
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

/* ── Correção dropdown usuário no mobile ── */
@media (max-width: 991.98px) {
  /* Container do dropdown ocupa largura total dentro do collapse */
  .topbar .navbar-collapse .dropdown {
    width: 100%;
  }
  /* Botão do avatar/usuário em largura total, alinhado à esquerda */
  .topbar .navbar-collapse .dropdown > .btn {
    width: 100%;
    justify-content: flex-start !important;
    padding: 0.5rem 0.75rem;
  }
  /* Menu dropdown sai do "absolute" e fica no fluxo, ocupando largura total */
  .topbar .navbar-collapse .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    min-width: 0 !important;
    margin-top: 0.25rem;
    transform: none !important;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }
  /* Botão Admin (quando existe) também em largura total para consistência */
  .topbar .navbar-collapse > .d-flex {
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }
  .topbar .navbar-collapse > .d-flex > a.btn {
    width: 100%;
    text-align: center;
  }
  /* Mostra o nome do usuário no mobile (estava d-none d-md-inline) */
  .topbar .navbar-collapse .dropdown > .btn .small.fw-bold {
    display: inline !important;
  }
}

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.card-header {
  background: linear-gradient(
    135deg,
    var(--cor-primaria),
    var(--cor-secundaria)
  );
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 1.1rem;
}

/* ── Jogo Card ───────────────────────────────────────────────── */
.jogo-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
}

.jogo-card:hover {
  transform: translateY(-2px);
}

.jogo-card .bandeira {
  width: 36px;
  height: 24px;
  object-fit: cover;
  border-radius: 3px;
}

.jogo-card .placar {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--cor-primaria);
}

.jogo-card .vs {
  font-size: 0.75rem;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 0.1em;
}

/* ── Ranking ─────────────────────────────────────────────────── */
.ranking-row {
  border-left: 4px solid transparent;
  transition: var(--transition);
}

.ranking-row:hover {
  background: #fafbff;
}

.ranking-row.top-1 {
  border-left-color: #ffd700;
}

.ranking-row.top-2 {
  border-left-color: #c0c0c0;
}

.ranking-row.top-3 {
  border-left-color: #cd7f32;
}

.posicao-badge {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
}

.posicao-badge.top-1 {
  background: #ffd700;
  color: #555;
}

.posicao-badge.top-2 {
  background: #e8e8e8;
  color: #555;
}

.posicao-badge.top-3 {
  background: #e8d5c4;
  color: #555;
}

.posicao-badge.other {
  background: #f0f0f0;
  color: #888;
}

/* ── Ao Vivo ─────────────────────────────────────────────────── */
.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #dc3545;
  border-radius: 50%;
  animation: pulse-dot 1.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.4);
  }
}


@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.evento-gol .evento-icon {
  color: #28a745;
}

.evento-cartao-amarelo .evento-icon {
  color: #ffc107;
}

.evento-cartao-vermelho .evento-icon {
  color: #dc3545;
}

.box-av-palpite{
  border-top:1px solid rgba(255,255,255,.1);
  padding-top:.5rem;
  margin-bottom:-15px;
}

.box-av-eventos{
  background: #ebebeb;
  border-radius: 0 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  margin-top: -4px;
  padding: 1rem .5rem 1rem 0.02rem;
  max-height: 300px;
  overflow-y: auto;
  }

/* ── Login ───────────────────────────────────────────────────── */
body.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  background: url(../../images/bg-copa.webp) no-repeat
    center center / cover;
  position: relative;
  overflow: hidden;
}

body.login::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0.15;
  z-index: 0;
}

.wm-ecco {
  color: #e65f82;
} /* reusa --primary do global */
.wm-play {
  color: #55bedc;
}

.ep-brand {
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: 2.3rem;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.ep-subt {
  font-family: "Nunito";
  color: #969696;
  font-size: 0.7rem;
  display: block;
  margin-top: 5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.login-wrapper {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--cor-primaria) 0%,
    var(--cor-secundaria) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.auth-wrap {
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════════════════════════
   ADMIN LAYOUT
   Depende de variáveis PHP definidas em admin/layout.php:
   --sidebar-w, --sidebar-bg, --sidebar-txt, --sidebar-accent,
   --sidebar-txt-muted, --sidebar-nav-link-color, --sidebar-accent-txt,
   --topbar-h, --imp-banner-h
   ════════════════════════════════════════════════════════════ */

.admin-body { background: #f0f2f7; }

/* ── Banner Ambiente Desenvolvimento ── */
.dev-banner {
  position: fixed; top: 0; left: 0; right: 0;
  height: 36px;
  background: #c0392b;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .76rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase;
  z-index: 9999;
  border-bottom: 2px solid #922b21;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  gap: .5rem;
}
.dev-banner i { font-size: .95rem; }

/* ── Banner de impersonação ── */
.imp-banner {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--imp-banner-h, 0px);
  background: repeating-linear-gradient(
    45deg, #FFC107, #FFC107 12px, #E0A800 12px, #E0A800 24px
  );
  color: #1A1A2E;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; gap: .75rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  border-bottom: 2px solid #1A1A2E;
}
.imp-banner .imp-msg {
  display: flex; align-items: center; gap: .5rem;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.imp-banner .imp-msg i      { font-size: 1rem; }
.imp-banner .imp-msg strong { font-weight: 800; }
.imp-banner .imp-encerrar {
  background: #1A1A2E; color: #FFC107;
  border: none; border-radius: .4rem;
  padding: .25rem .75rem; font-weight: 700;
  font-size: .72rem; letter-spacing: .04em;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .35rem;
  transition: opacity .15s;
}
.imp-banner .imp-encerrar:hover { opacity: .85; color: #FFC107; }

/* ── Sidebar ── */
.sidebar {
  position: fixed; top: calc(var(--imp-banner-h, 0px) + var(--dev-banner-h, 0px)); left: 0; bottom: 0;
  width: var(--sidebar-w, 230px);
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  z-index: 100; overflow-y: auto;
}
.sidebar-brand {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.sidebar-brand img { max-height: 44px; max-width: 140px; object-fit: contain; }
.sidebar-brand .brand-nome {
  font-family: var(--font-display);
  font-size: 1.2rem; letter-spacing: .05em; line-height: 1.1;
  color: var(--sidebar-txt);
}
.sidebar-brand .brand-sub {
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sidebar-txt-muted, rgba(255,255,255,.45));
}
.sidebar nav { padding: .75rem; flex: 1; }
.sidebar .nav-label {
  font-size: .62rem;
  color: var(--sidebar-txt-muted, rgba(255,255,255,.35));
  text-transform: uppercase; letter-spacing: .12em;
  padding: .5rem .5rem .25rem; margin-top: .25rem;
}
.sidebar .nav-link {
  display: flex; align-items: center; gap: .65rem;
  color: var(--sidebar-nav-link-color, rgba(255,255,255,.72));
  border-radius: .5rem; padding: .55rem .75rem;
  font-size: .88rem; font-weight: 600;
  transition: background .15s, color .15s;
  margin-bottom: .15rem;
}
.sidebar .nav-link i { font-size: 1rem; flex-shrink: 0; }
.sidebar .nav-link:hover {
  background: rgba(255,255,255,.12);
  color: var(--sidebar-txt);
}
.sidebar .nav-link.active {
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-txt, #fff);
}
.sidebar-footer {
  padding: .75rem 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.sidebar-footer .user-name { font-size: .82rem; font-weight: 700; color: var(--sidebar-txt); }
.sidebar-footer .user-role {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--sidebar-txt-muted, rgba(255,255,255,.4));
}
.sidebar-footer .btn-sair {
  color: var(--sidebar-txt-muted, rgba(255,255,255,.4));
  font-size: 1.1rem;
}
.sidebar-footer .btn-sair:hover { color: var(--sidebar-txt); }

/* Avatar de iniciais na sidebar */
.sidebar-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sidebar-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800;
  color: var(--sidebar-accent-txt, #fff);
  flex-shrink: 0;
}

/* ── Wrapper principal ── */
.main-wrapper {
  margin-left: var(--sidebar-w, 230px);
  min-height: 100vh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--imp-banner-h, 0px) + var(--dev-banner-h, 0px));
}
.admin-body .topbar {
  height: var(--topbar-h, 56px); background: #fff;
  border-bottom: 1px solid #e8eaf0;
  display: flex; align-items: center; padding: 0 1.5rem; gap: 1rem;
  position: sticky; top: calc(var(--imp-banner-h, 0px) + var(--dev-banner-h, 0px)); z-index: 50;
  box-shadow: none;
}
.admin-body .topbar .page-title {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--cor-primaria); letter-spacing: .04em; flex: 1;
}
.main-content { padding: 1.5rem; flex: 1; }

/* ── Cards admin ── */
.stat-card {
  background: #fff; border-radius: .875rem;
  padding: 1.25rem 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.stat-card .stat-icon {
  width: 44px; height: 44px; border-radius: .6rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.stat-card .stat-value {
  font-family: var(--font-display); font-size: 2rem; line-height: 1.1; color: #1A1A2E;
}
.stat-card .stat-label {
  font-size: .78rem; color: #888; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}
.table-card {
  background: #fff; border-radius: .875rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); overflow: hidden;
}
.table-card .table { margin: 0; }
.table-card .table th {
  background: #f8f9fc; font-size: .75rem; text-transform: uppercase;
  letter-spacing: .07em; color: #888; font-weight: 700;
  border-bottom: 1px solid #eee; padding: .85rem 1rem;
}
.table-card .table td {
  padding: .85rem 1rem; vertical-align: middle; font-size: .9rem;
  border-bottom: 1px solid #f4f4f4;
}
.table-card .table tr:last-child td { border-bottom: none; }
.table-card .table tbody tr:hover  { background: #fafbff; }
.form-card {
  background: #fff; border-radius: .875rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 1.75rem;
}
.section-title {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  color: #aaa; font-weight: 700; margin-bottom: .75rem;
  padding-bottom: .5rem; border-bottom: 1px solid #f0f0f0;
}

/* ── Formulários e botões admin ── */
.admin-body .form-control:focus,
.admin-body .form-select:focus {
  border-color: var(--cor-secundaria);
  box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--cor-secundaria) 20%, transparent);
}
.btn-empresa {
  background: var(--cor-primaria); color: var(--cor-texto-btn);
  border: none; font-weight: 700; letter-spacing: .04em; transition: opacity .2s;
}
.btn-empresa:hover { opacity: .88; background: var(--cor-primaria); color: var(--cor-texto-btn); }
.btn-empresa-outline {
  border: 2px solid var(--cor-primaria); color: var(--cor-primaria);
  background: transparent; font-weight: 700;
}
.btn-empresa-outline:hover { background: var(--cor-primaria); color: var(--cor-texto-btn); }

/* ── Mobile admin ── */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.4); z-index: 99;
  }
  .sidebar-overlay.open { display: block; }
  .imp-banner { font-size: .7rem; padding: 0 .6rem; }
  .imp-banner .imp-msg span.imp-detalhe { display: none; }
}

/* ── Utilitários admin ── */

/* Variantes de cor para stat-icon */
.stat-icon-blue    { background: #2A6DB518; color: #2A6DB5; }
.stat-icon-green   { background: #1E7F3C18; color: #1E7F3C; }
.stat-icon-gold    { background: #C9A84C18; color: #C9A84C; }
.stat-icon-red     { background: #E8232A18; color: #E8232A; }
.stat-icon-indigo  { background: #EEF2FF;   color: #4F46E5; }
.stat-icon-orange  { background: #FFF7ED;   color: #EA580C; }
.stat-icon-emerald { background: #F0FDF4;   color: #16A34A; }
.stat-icon-amber   { background: #FEF9C3;   color: #CA8A04; }

/* Badges soft (fundo translúcido) */
.badge-success-soft   { background: rgba(30,127,60,.1);   color: #1E7F3C; }
.badge-danger-soft    { background: rgba(220,53,69,.1);   color: #dc3545; }
.badge-secondary-soft { background: rgba(108,117,125,.1); color: #6c757d; }
.badge-primary-soft   { background: rgba(42,109,181,.12); color: #2A6DB5; }
.badge-warning-soft   { background: rgba(234,88,12,.1);   color: #c2410c; }
.badge-amber-soft     { background: #c9a84c18; color: #C9A84C; }
.badge-locked         { background: #fef3c7;   color: #92400e; }
.badge-primaria-soft  { background: var(--cor-primaria)18; color: var(--cor-primaria); }
.badge-xs             { font-size: .6rem; }

/* Alertas com estilo suave (sem Bootstrap .alert-*) */
.alert-warning-soft {
  background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; border-radius: 10px;
}
.alert-danger-soft {
  background: #ef444415; border: 1px solid #ef444440; color: #ef4444; border-radius: 10px;
}
.alert-amber-soft {
  background: #c9a84c15; border: 1px solid #c9a84c40; color: #a07c1e; border-radius: 10px;
}
.alert-success-soft { background: #d1fae5; color: #065f46; }
.alert-blocked      { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info-blue    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-info-form    { background: #f0f4ff; color: #2A6DB5; border: 1px solid #d0d8f0; }

/* Avatares de iniciais (usuários) */
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--cor-primaria); color: var(--cor-texto-btn);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; flex-shrink: 0;
}
.user-avatar-sm {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cor-primaria); color: var(--cor-texto-btn);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 800; flex-shrink: 0;
}

/* Valores de pontuação com fonte display */
.display-pts-sm { font-family: var(--font-display); font-size: 1.1rem; color: var(--cor-primaria); }
.display-pts-md { font-family: var(--font-display); font-size: 1.5rem; color: var(--cor-primaria); }
.display-pts-lg { font-family: var(--font-display); font-size: 1.8rem; color: var(--cor-primaria); }

/* Texto extra pequeno */
.text-xs { font-size: .72rem !important; }

/* Fundo de painéis internos */
.bg-panel { background: #f8f9fc; }

/* Card de aviso amarelo (info) */
.info-card-yellow { background: #fffbe6; border: 1px solid #ffe58f; }

/* Código de senha temporária */
.senha-temp-code { background: #1A1A2E; color: #C9A84C; letter-spacing: .1em; }

/* Container de gráfico */
.chart-container { position: relative; height: 220px; }

/* Label estilo capslock para filtros/formulários */
.form-label-caps {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
}

.auth-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 1.5rem;
  padding: 2.5rem 2.25rem;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--cor-primaria);
}

.copa-badge {
  font-family: var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--cor-primaria);
  font-size: 2.3rem;
  font-weight: 400;
  text-transform: uppercase;
}

.copa-badge.recupera {
  font-size: 1.5rem;
}

.form-control:focus {
  border-color: var(--cor-secundaria);
  box-shadow: 0 0 0 0.2rem rgba(201, 168, 76, 0.25);
}

.input-group-text {
  background: #f4f4f4;
  border-right: none;
  color: #999;
}

.input-group .form-control {
  border-left: none;
}

.btn-auth {
  background: linear-gradient(135deg, var(--cor-secundaria) 30%, var(--cor-primaria) 100%);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem;
  letter-spacing: 0.04em;
  border-radius: 0.6rem;
  transition:
    opacity 0.2s,
    transform 0.15s;
}

.btn-auth:hover {
  opacity: 0.9;
  color: #fff;
  transform: translateY(-1px);
}

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

.toggle-senha {
  background: #f4f4f4;
  border: 1px solid #dee2e6;
  border-left: none;
  cursor: pointer;
  color: #aaa;
  padding: 0 0.75rem;
  border-radius: 0 0.375rem 0.375rem 0;
  transition: color 0.15s;
}

.toggle-senha:hover {
  color: var(--cor-secundaria);
}

.usuario-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0f4ff;
  border: 1px solid #d0d8f0;
  border-radius: 99px;
  padding: 0.35rem 0.85rem 0.35rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d3a6e;
}

.usuario-chip .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cor-primaria);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.etapa-box {
  animation: fadeSlide 0.25s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.voltar-link {
  background: none;
  border: none;
  color: #888;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.voltar-link:hover {
  color: var(--cor-primaria);
}

.footer-ext {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  text-align: center;
  margin-top: 0.9rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #bbb;
  font-size: 0.8rem;
  margin: 1.1rem 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #e9ecef;
}

/* ── Registro ───────────────────────────────────────────────────── */
.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0f4ff;
  border: 1px solid #d0d8f0;
  border-radius: 99px;
  padding: 0.35rem 0.85rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: #2d3a6e;
}

.strength-bar {
  height: 4px;
  border-radius: 99px;
  transition:
    width 0.3s,
    background 0.3s;
}

.footer-ext {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  text-align: center;
  margin-top: 0.9rem;
}

/* ── Troca Senha ───────────────────────────────────────────────────── */

.footer-ext {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  text-align: center;
  margin-top: 0.9rem;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e9f7ef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

/* ── Palpite Input ───────────────────────────────────────────── */
.palpite-input {
  width: 64px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 0.25rem;
  transition: border-color var(--transition);
}

.palpite-input:focus {
  border-color: var(--cor-primaria);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor-primaria) 20%, transparent);
}

.palpite-input:disabled {
  background: #f8f8f8;
  cursor: not-allowed;
}

/* ── Palpite — estados visuais ───────────────────────────────── */

/* Input com palpite já salvo */
.palpite-input.salvo {
  border-color: #1e7f3c;
  background: #f0faf4;
  color: #1e7f3c;
  font-weight: 700;
}

.palpite-input.salvo:focus {
  border-color: #1e7f3c;
  box-shadow: 0 0 0 3px rgba(30, 127, 60, 0.18);
}

/* Botão salvar/alterar palpite */
.btn-palpite {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 0.45rem;
  border: none;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition);
  white-space: nowrap;
  background: var(--cor-primaria);
  color: var(--cor-texto-btn);
}

.btn-palpite:hover:not(:disabled) {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

.btn-palpite:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Botão no estado "Alterar" (palpite já existe) */
.btn-palpite.alterar {
  background: transparent;
  color: #1e7f3c;
  border: 1.5px solid #1e7f3c;
}

.btn-palpite.alterar:hover:not(:disabled) {
  background: #1e7f3c;
  color: #fff;
  filter: none;
}

/* Card com palpite salvo — borda lateral verde */
.jogo-card.tem-palpite {
  border-left: 4px solid #5cc57c;
}

/* Área de palpite com palpite salvo */
.palpite-wrap {
  margin-top: 1.5rem;
  padding: 0.75rem;
  border-top: 1px solid #f0f0f0;
  background: #f6f6f6;
}

.palpite-wrap.com-palpite {
  background: #f6fcf8;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0.65rem 1.25rem 0.85rem;
  border-top: 1px solid #d4edda;
}

/* Indicador de palpite salvo (ícone check animado) */
.status-palpite {
  font-size: 0.85rem;
  animation: pop-in 0.25s ease;
}

@keyframes pop-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Badge ao vivo na tabela */
.badge-ao-vivo {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
}

/* Placeholder para seleções sem bandeira */
.bandeira-placeholder {
  width: 36px;
  height: 24px;
  border-radius: 3px;
  background: var(--cor-primaria);
  color: var(--cor-texto-btn);
  font-size: 0.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
}

.jogo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.jogo-header .fase {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
}

.jogo-header .hora {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cor-primaria);
}

.jogo-body {
  padding: 0.25rem 0;
}

.time-nome {
  font-weight: 800;
  font-size: 0.82rem;
  line-height: 1.2;
}

.placar-resultado {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--cor-primaria);
}

.vs-sep {
  color: #ccc;
  font-weight: 700;
}

.grupo-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--cor-primaria);
  border-bottom: 2px solid var(--cor-primaria);
  padding-bottom: 0.3rem;
  margin-bottom: 1rem;
}

/* ── Admin Sidebar ───────────────────────────────────────────── */
.admin-sidebar {
  min-height: calc(100vh - 60px);
  background: #fff;
  border-right: 1px solid #eee;
}

.admin-sidebar .nav-link {
  color: #555;
  border-radius: 0.5rem;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
  background: var(--bg-primaria-soft, #fdeef3);
  color: var(--cor-primaria);
}

.admin-sidebar .nav-link i {
  width: 20px;
}

/* ── Utilitários ─────────────────────────────────────────────── */
.shadow-card {
  box-shadow: var(--shadow-card);
}

.rounded-lg {
  border-radius: var(--radius);
}

.fw-800 {
  font-weight: 800;
}

.cursor-pointer {
  cursor: pointer;
}

/* ── Avatar Editor ───────────────────────────────────────────── */
/* Usado em registro.php e meu-perfil.php                        */

.av-editor-wrap {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.av-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.av-preview-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--cor-primaria);
  background: #f0f2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.av-preview-circle:hover {
  transform: scale(1.04);
}

.av-preview-circle img {
  width: 120px;
  height: 120px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.av-preview-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #eee;
  border-top-color: var(--cor-primaria);
  border-radius: 50%;
  animation: av-spin 0.7s linear infinite;
}

@keyframes av-spin {
  to {
    transform: rotate(360deg);
  }
}

.av-options-col {
  flex: 1;
  min-width: 260px;
}

.av-group {
  margin-bottom: 0.875rem;
}

.av-group-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888 !important;
  margin-bottom: 0.4rem;
}

/* Swatches de cor */
.av-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.av-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}

.av-swatch:hover {
  transform: scale(1.2);
}

.av-swatch.sel {
  border-color: var(--cor-primaria);
  transform: scale(1.15);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cor-primaria) 25%, transparent);
}

/* Pills de opção */
.av-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.av-pill {
  padding: 0.22rem 0.6rem;
  border-radius: 2rem;
  border: 1.5px solid #ddd;
  background: #f8f9fc;
  color: #555;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.av-pill:hover {
  border-color: var(--cor-primaria);
  color: var(--cor-primaria);
  background: color-mix(in srgb, var(--cor-primaria) 6%, white);
}

.av-pill.sel {
  background: var(--cor-primaria);
  border-color: var(--cor-primaria);
  color: var(--cor-texto-btn, #fff);
}

/* Link pular/remover avatar */
.av-skip {
  font-size: 0.72rem;
  color: #aaa;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
  display: inline-block;
}

.av-skip:hover {
  color: #666;
}

/* Aviso de API indisponível */
.av-api-err {
  font-size: 0.72rem;
  color: #856404;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 0.4rem;
  padding: 0.4rem 0.7rem;
  margin-top: 0.5rem;
  display: none;
}

/* ── Avatar Editor — contexto escuro (registro) ──────────────── */
/* Sobrescreve cores quando o editor está dentro de .av-dark      */

.av-dark .av-group-label {
  color: rgba(255, 255, 255, 0.5);
}

.av-dark .av-swatch.sel {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.av-dark .av-pill {
  background: rgba(255, 255, 255, 0.2);
  border-color: #d5d5d5;
  color: #999999;
}

.av-dark .av-pill:hover {
  background: rgba(0,0,0, 0.1);
  border-color: rgba(0,0,0, 0.1);
  color: #999999;
}

.av-dark .av-pill.sel {
  background: var(--cor-secundaria, #c9a84c);
  border-color: var(--cor-secundaria, #c9a84c);
  color: #1a1a2e;
}

.av-dark .av-skip {
  color: rgba(255, 255, 255, 0.35);
}

.av-dark .av-skip:hover {
  color: rgba(255, 255, 255, 0.7);
}

.av-dark .av-api-err {
  background: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.3);
  color: #ff8a8a;
}

/* ── Seção avatar no registro (wrapper escuro) ───────────────── */
.av-section-registro {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.7rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: #fff;
}

.av-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cor-texto);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.av-section-title span {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.25);
}

/* ── Utilitários de autenticação ─────────────────────────────── */
.logo-img {
  max-height: 64px;
  max-width: 180px;
  object-fit: contain;
}

.lock-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff3cd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* ── Ícones de seção (perfil) ────────────────────────────────── */
.icon-primaria {
  background: color-mix(in srgb, var(--cor-primaria) 10%, white);
  color: var(--cor-primaria);
}

.icon-secundaria {
  background: color-mix(in srgb, var(--cor-secundaria) 15%, white);
  color: color-mix(in srgb, var(--cor-secundaria) 70%, #000);
}

.icon-danger {
  background: rgba(220, 53, 69, .08);
  color: #dc3545;
}

/* ── Barra de força de senha ─────────────────────────────────── */
.strength-track {
  height: 4px;
  background: #eee;
  border-radius: 2px;
}

.strength-label {
  min-height: 1.1em;
  font-size: .75rem;
}

/* ── Badges de pontuação (tabela de jogos) ───────────────────── */
.badge-pts-exato    { background: rgba(30, 127, 60, .1);   color: #1E7F3C; }
.badge-pts-vencedor { background: rgba(42, 109, 181, .1);  color: #2A6DB5; }
.badge-pts-solo     { background: rgba(201, 168, 76, .1);  color: #9a7d30; }
.badge-pts-empate   { background: rgba(108, 117, 125, .1); color: #6c757d; }

/* ── Classificação ───────────────────────────────────────────── */
.class-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e8eaf0;
  margin-bottom: 1.75rem;
}

.class-tab {
  background: none;
  border: none;
  padding: .65rem 1.5rem;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  color: #aaa;
  cursor: pointer;
  transition: all .18s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.class-tab:hover  { color: var(--cor-primaria); }
.class-tab.active { color: var(--cor-primaria); border-bottom-color: var(--cor-primaria); }

.grupo-card {
  background: #fff;
  border-radius: .875rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.grupo-header {
  background: var(--cor-primaria);
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.grupo-header .grupo-letra {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cor-secundaria);
  line-height: 1;
}

.grupo-header .grupo-titulo {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.grupo-table { width: 100%; border-collapse: collapse; }

.grupo-table thead th {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #aaa;
  font-weight: 700;
  padding: .5rem .75rem;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.grupo-table thead th:first-child { text-align: left; }

.grupo-table tbody td {
  padding: .6rem;
  font-size: .82rem;
  border-bottom: 1px solid #f8f8f8;
  text-align: center;
  vertical-align: middle;
}

.grupo-table tbody td:first-child { text-align: left; }
.grupo-table tbody tr:last-child td { border-bottom: none; }
.grupo-table tbody tr:hover { background: #fafbff; }

.grupo-table tbody tr td:first-child { border-left: 3px solid transparent; }
.grupo-table tbody tr.classifica-1 td:first-child,
.grupo-table tbody tr.classifica-2 td:first-child { border-left-color: #1E7F3C; }
.grupo-table tbody tr.classifica-3o td:first-child { border-left-color: #C9A84C; }

.pos-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 800;
  background: #f0f0f0;
  color: #888;
  flex-shrink: 0;
}

.pos-num.p1 { background: #1E7F3C; color: #fff; }
.pos-num.p2 { background: #2A6DB5; color: #fff; }
.pts-destaque { font-weight: 800; color: var(--cor-primaria); }

.sel-bandeira {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.sel-bandeira-ph {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  background: #eee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .55rem;
  color: #aaa;
  font-weight: 700;
}

.legenda-class {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .75rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.legenda-item { display: flex; align-items: center; gap: .4rem; }

.legenda-cor {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Bracket eliminatório */
.bracket-wrap {
  overflow-x: auto;
  overflow-y: visible;
  padding: 1rem 0 2rem;
  background: #fff;
  border-radius: .875rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.bracket {
  display: flex;
  align-items: stretch;
  min-width: max-content;
  padding: 0 1.5rem;
  gap: 0;
}

.bracket-fase {
  display: flex;
  flex-direction: column;
  min-width: 210px;
}

.bracket-fase-titulo {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #bbb;
  text-align: center;
  padding: .75rem .5rem .5rem;
  white-space: nowrap;
}

.bracket-jogos {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bracket-slot {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
  padding: 6px 0;
}

.bracket-card {
  background: #fff;
  border-radius: .6rem;
  border: 1.5px solid #e8eaf0;
  overflow: hidden;
  width: 195px;
  flex-shrink: 0;
  box-shadow: 0 1px 5px rgba(0,0,0,.05);
  transition: border-color .15s, box-shadow .15s;
  position: relative;
  z-index: 1;
}

.bracket-card:hover {
  border-color: var(--cor-primaria);
  box-shadow: 0 3px 12px rgba(0,0,0,.1);
}

.bracket-time {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .6rem;
  font-size: .78rem;
  font-weight: 700;
  border-bottom: 1px solid #f4f4f4;
}

.bracket-time:last-child { border-bottom: none; }

.bracket-time .bt-nome {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2d2d3a;
}

.bracket-time .bt-placar {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #aaa;
  min-width: 16px;
  text-align: right;
}

.bracket-time.vencedor { background: rgba(30,127,60,.07); }
.bracket-time.vencedor .bt-nome   { color: #1E7F3C; }
.bracket-time.vencedor .bt-placar { color: #1E7F3C; font-weight: 900; }

.bracket-time img {
  width: 20px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.bracket-time .bt-ph {
  width: 20px;
  height: 13px;
  background: #eee;
  border-radius: 2px;
  flex-shrink: 0;
}

.bracket-data {
  font-size: .6rem;
  color: #ccc;
  font-weight: 700;
  text-align: center;
  padding: .2rem .5rem 0;
}

.bracket-conn {
  display: flex;
  flex-direction: column;
  width: 28px;
  flex-shrink: 0;
  position: relative;
}

.bracket-conn-par {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.bracket-conn-par::before {
  content: '';
  position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 2px;
  background: #e0e3ef;
}

.bracket-conn-par::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 14px; height: 2px;
  background: #e0e3ef;
  transform: translateY(-50%);
}

.sem-dados-elim {
  text-align: center;
  padding: 3rem 1rem;
  color: #bbb;
}

/* ── Perfil do Usuário ───────────────────────────────────────── */
.perfil-wrap { max-width: 780px; margin: 0 auto; }

.perfil-hero {
  background: linear-gradient(135deg, var(--cor-primaria) 0%, color-mix(in srgb, var(--cor-primaria) 60%, #000) 100%);
  border-radius: 1.25rem;
  padding: 2rem 2rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.perfil-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,rgba(255,255,255,.03) 0px,rgba(255,255,255,.03) 1px,transparent 1px,transparent 24px),
    repeating-linear-gradient(-45deg,rgba(255,255,255,.03) 0px,rgba(255,255,255,.03) 1px,transparent 1px,transparent 24px);
  pointer-events: none;
}

.perfil-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.perfil-avatar-grande {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.25);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

.perfil-avatar-grande .avatar-wrap { width: 96px !important; height: 96px !important; }

.perfil-nome  { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: .04em; color: #fff; line-height: 1.1; margin-bottom: .2rem; }
.perfil-email { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: .6rem; }

.perfil-badge-empresa {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 2rem;
  padding: .2rem .75rem;
  font-size: .72rem;
  color: rgba(255,255,255,.8);
  font-weight: 700;
}

.perfil-stats-row {
  display: flex;
  gap: 1rem;
  margin-top: -1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.stat-card {
  flex: 1;
  min-width: 120px;
  min-height: 100px;
  background: #fff;
  border-radius: .875rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  text-align: center;
}

.stat-valor { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--cor-primaria); display: block; }
.stat-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #999; margin-top: .2rem; display: block; }

.perfil-section {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.perfil-section-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f0f2f7;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.perfil-section-header .icon {
  width: 32px;
  height: 32px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

.perfil-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .04em;
  margin: 0;
  color: var(--cor-primaria);
}

.perfil-section-body { padding: 1.5rem; }

.dado-row { display: flex; align-items: center; padding: .75rem 0; border-bottom: 1px solid #f5f5f5; gap: 1rem; }
.dado-row:last-child { border-bottom: none; }

.dado-icone {
  width: 36px;
  height: 36px;
  border-radius: .5rem;
  background: #f0f2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cor-primaria);
  flex-shrink: 0;
  font-size: .95rem;
}

.dado-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #aaa; line-height: 1; margin-bottom: .15rem; }
.dado-valor { font-size: .9rem; font-weight: 700; color: #2d2d3a; }

.alerta-perfil { display: flex; align-items: center; gap: .6rem; padding: .65rem 1rem; border-radius: .6rem; font-size: .82rem; font-weight: 600; margin-bottom: 1rem; }
.alerta-ok  { background: rgba(30,127,60,.08);  color: #1E7F3C; border: 1px solid rgba(30,127,60,.2); }
.alerta-err { background: rgba(220,53,69,.08);  color: #dc3545; border: 1px solid rgba(220,53,69,.2); }

/* ── Agenda / Tabela de Jogos ────────────────────────────────── */
.agenda-filtros {
  background: #fff;
  border-radius: .875rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.filtro-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #aaa;
  display: block;
  margin-bottom: .4rem;
}

.filtro-btn {
  background: transparent;
  border: 1.5px solid #e0e3ef;
  border-radius: .4rem;
  padding: .25rem .7rem;
  font-size: .78rem;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.filtro-btn:hover { border-color: var(--cor-primaria); color: var(--cor-primaria); }

.filtro-btn.active {
  background: var(--cor-primaria);
  border-color: var(--cor-primaria);
  color: var(--cor-texto-btn, #fff);
}

.fase-bloco { transition: opacity .2s; }
.jogo-item  { transition: opacity .2s, transform .2s; }
.jogo-item.oculto { display: none !important; }

/* ── Ranking ─────────────────────────────────────────────────────── */
.ranking-th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #888;
  font-weight: 700;
}

.badge-primaria {
  background: var(--cor-primaria);
  color: var(--cor-texto-btn);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.badge-primaria-sm {
  background: var(--cor-primaria);
  color: var(--cor-texto-btn);
}

.divisor-ranking {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #bbb;
  font-size: .72rem;
}

.divisor-ranking::before,
.divisor-ranking::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e8ee;
}

/* ── Jogos Patrocinados ──────────────────────────────────────── */
.jogo-card.patrocinado {
  box-shadow: 0 2px 10px rgba(0,0,0,.06), 4px 4px 5px 1px rgba(201,168,76,.5);
}

.patrocinio-info {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-top: 1.5rem;
  margin-bottom: -24px;
  padding: .5rem .75rem;
  background: rgb(237,204,115,0.8);
  border-top: 1px solid rgba(201, 168, 76, .3);
  border-bottom: 1px solid rgba(201, 168, 76, .3);
  font-size: .75rem;
  line-height: 1.4;
}

.patrocinio-info .pi-icon {
  color: #C9A84C;
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: .05rem;
}

.patrocinio-info .pi-label {
  font-weight: 700;
  color: #8a6d10;
  display: block;
}

.patrocinio-info .pi-detalhe {
  color: #8a6d10;
  opacity: .85;
}

.pat-live-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: rgba(201,168,76,.95);
  color: #4a3500;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: .3rem .5rem;
  border-radius: 2rem;
  white-space: nowrap;
  position: absolute; 
  top: -10px;
  inset-inline: 0; 
  margin-inline: auto; 
  width: max-content;
  left: 0;
  right: 0;
  z-index: 2;
}

/* Seção de patrocinados no ranking */
.ranking-patrocinados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .75rem;
}

.pat-card {
  background: #fff;
  border-radius: .875rem;
  border: 1px solid rgba(201,168,76,.3);
  box-shadow: 0 2px 10px rgba(0,0,0,.06), 0 0 0 2px rgba(201,168,76,.25);
  overflow: hidden;
}

.pat-card-header {
  background: rgba(201,168,76,.1);
  border-bottom: 1px solid rgba(201,168,76,.25);
  padding: .5rem .875rem;
  font-size: .72rem;
  font-weight: 800;
  color: #8a6d10;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.pat-card-body {
  padding: .75rem .875rem;
}

.pat-confronto {
  font-size: .82rem;
  font-weight: 700;
  color: #2d2d3a;
  margin-bottom: .25rem;
}

.pat-premio {
  font-size: .75rem;
  color: #8a6d10;
  margin-bottom: .5rem;
}

.pat-acertadores {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .75rem;
}

.pat-acertadores li {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem 0;
  border-top: 1px solid #f0f2f7;
  color: #555;
}

.pat-acertadores li:first-child { border-top: none; }

.pat-acertadores .vencedor-badge {
  font-size: .6rem;
  font-weight: 800;
  background: #C9A84C;
  color: #fff;
  border-radius: 2rem;
  padding: .1rem .4rem;
  white-space: nowrap;
}

.pat-sem-acertadores {
  font-size: .75rem;
  color: #aaa;
  text-align: center;
  padding: .25rem 0;
}

.tit-meus-palpites{
  font-family:var(--font-display);
  letter-spacing:.04em;
  font-size:1.5rem;
  color:var(--cor-primaria);
}
