/* ── DESIGN TOKENS ── */
:root {
  color-scheme: dark;
  --live-h: 0px; /* sobe para 40px quando tiver jogo ao vivo */
  --bg:          #0A0E1A;
  --surface:     #111827;
  --surface2:    #141e2e;
  --surface3:    #1a2540;
  --border:      #1E2D45;
  --border2:     #253554;

  --gold:        #F5C518;
  --gold-dim:    #c9a214;
  --gold-glow:   rgba(245,197,24,.12);
  --green:       #9DEE5C;
  --green-dim:   #76d437;
  --green-glow:  rgba(157,238,92,.12);
  --blue:        #3B82F6;
  --blue-dim:    #2563EB;
  --red:         #EF4444;

  --text:        #F0F0F5;
  --text-muted:  #94a3b8;
  --text-dim:    #64748b;

  --sidebar-w:   240px;
  --topbar-h:    56px;
  --countdown-h: 0px;
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   18px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: #0A0E1A;
  min-height: 100%;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
}
.app-row {
  display: flex;
  min-width: 0;
}
a { text-decoration: none; color: inherit; cursor: pointer; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; }

/* Emoji inline (Twemoji + ícones de marca via applyEmoji/CUSTOM_EMOJI_ICONS em
   state.js) — sem isso o <img> renderiza no tamanho intrínseco do SVG, não no
   tamanho do texto ao redor. */
img.emoji { height: 1.15em; width: 1.15em; margin: 0 .02em 0 .05em; vertical-align: -0.2em; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ══════════════════════════════════
   SIDEBAR
══════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed;
  top: var(--live-h); left: 0; bottom: 0;
  z-index: 200;
  padding: 0;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 10px;
}

.snav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: background .15s, color .15s;
  user-select: none;
  white-space: nowrap;
}
.snav-item svg { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; }
.snav-item:hover { background: var(--surface2); color: var(--text); }
.snav-item.active { background: var(--gold-glow); color: var(--gold); font-weight: 600; }
.snav-divider { height: 1px; background: var(--border); margin: 8px 4px; }
.snav-group-label {
  padding: 14px 12px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.snav-group-label:first-child { padding-top: 4px; }

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 12px 10px;
}
.sidebar-points {
  margin: 0 0 10px;
  padding: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-points-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--green);
  line-height: 1;
}
.sidebar-points-lbl { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.sidebar-points-pos { font-size: 12px; color: var(--gold); font-weight: 700; }
.sidebar-cta { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; }
.sidebar-cta-primary, .sidebar-cta-secondary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s, border-color .15s;
}
.sidebar-cta-primary { background: var(--green); color: #06240f; border: none; }
.sidebar-cta-primary:hover { background: var(--green-dim); }
.sidebar-cta-secondary { background: transparent; color: var(--text-muted); border: 1px solid var(--border2); }
.sidebar-cta-secondary:hover { background: var(--surface2); color: var(--text); }
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s;
}
.sidebar-user:hover { background: var(--surface2); }
.user-avatar-wrap {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface3);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.user-avatar-wrap.profile-frame-crown { overflow: visible; }
.user-avatar-wrap svg { width: 16px; height: 16px; color: var(--text-muted); }
.user-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.user-info { display: flex; flex-direction: column; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-sub { font-size: 11px; color: var(--text-muted); }

/* ══════════════════════════════════
   MOBILE HEADER
══════════════════════════════════ */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  align-items: center;
  padding: 0 12px;
  gap: 12px;
  z-index: 300;
}
.mobile-logo {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

/* ── MARCA (bola + wordmark texto) ── */
.brand-wordmark { display: inline-flex; align-items: center; gap: 7px; line-height: 1; }
.brand-wordmark-ball { height: var(--bw-h, 28px); width: auto; display: block; flex-shrink: 0; }
.brand-wordmark-text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: calc(var(--bw-h, 28px) * 0.62);
  color: #fff;
  letter-spacing: 0;
  white-space: nowrap;
}
.brand-wordmark-accent { color: var(--gold); }
.menu-btn, .profile-btn {
  width: 36px; height: 36px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.menu-btn svg, .profile-btn svg { width: 18px; height: 18px; }

.mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 350;
}
.mobile-overlay.open { display: block; }

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 400;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .25s ease;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-nav { padding: 10px; overflow-y: auto; flex: 1; }

/* ══════════════════════════════════
   COUNTDOWN BAR
══════════════════════════════════ */
.countdown-bar {
  position: fixed;
  top: var(--live-h); left: var(--sidebar-w); right: 0;
  min-height: var(--countdown-h);
  height: var(--countdown-h);
  background: linear-gradient(90deg, #0d1f3c, #102a1a 50%, #0d1f3c);
  border-bottom: 1px solid rgba(245,197,24,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 150;
  overflow: hidden;
  padding: 0 16px;
}
.cd-label { font-size: 11px; color: var(--blue); font-weight: 600; letter-spacing: .3px; }
.cd-units { display: flex; gap: 4px; align-items: center; }
.cd-unit { text-align: center; min-width: 38px; }
.cd-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.cd-lbl { font-size: 8px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.cd-sep { font-family: 'Bebas Neue', sans-serif; font-size: 18px; color: rgba(245,197,24,.3); line-height: 1.2; }
.cd-done { font-size: 13px; color: var(--green); font-weight: 700; letter-spacing: .5px; }

/* ══════════════════════════════════
   MAIN CONTENT AREA
══════════════════════════════════ */
.page-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.main-content {
  margin-top: calc(var(--live-h) + var(--countdown-h));
  min-height: calc(100vh - var(--live-h) - var(--countdown-h));
  flex: 1;
  width: 100%;
  padding: 28px 40px 80px;
}

.page-inner {
  max-width: 860px;
}

/* ── TAB PANES ── */
.tab-pane { display: none; }
.tab-pane.active {
  display: block;
  animation: fadeUp .2s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════
   PAGE HEADER
══════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, #0d1f3c 0%, #102a1a 50%, #0d1f3c 100%);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-content { flex: 1; min-width: 0; }
.hero-jersey {
  height: 160px;
  flex-shrink: 0;
  opacity: .93;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.5)) drop-shadow(0 0 12px rgba(0,156,59,.25));
  transition: transform .3s;
}
.hero-jersey:hover { transform: scale(1.04) rotate(-2deg); }
@media (max-width: 480px) {
  .hero-jersey { height: 100px; }
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(245,197,24,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 8px;
}
.hero-sub { font-size: 14px; color: var(--text-dim); }
.hero-flags { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-flag-bar {
  height: 3px;
  width: 120px;
  background: linear-gradient(90deg, #009C3B 33%, #FFD700 33%, #FFD700 66%, #002776 66%);
  border-radius: 2px;
  margin: 12px 0;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hero-pill {
  background: rgba(0,196,114,.1);
  border: 1px solid rgba(0,196,114,.25);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.hero-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 26px;
  background: var(--green);
  color: #0A0E1A;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .3px;
  font-family: inherit;
  transition: box-shadow .2s, transform .1s;
}
.hero-cta:hover { box-shadow: 0 0 22px rgba(157,238,92,.4); transform: translateY(-1px); }

/* ── SECTION HEADING ── */
.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── STATS GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: left;
  transition: border-color .15s;
  display: flex;
  flex-direction: column;
  min-height: 96px;
}
.stat-card:hover { border-color: var(--border2); }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  color: var(--stat-color, var(--gold));
  line-height: 1;
  display: block;
}
.stat-bar { height: 3px; background: var(--border); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.stat-bar-fill { height: 100%; background: var(--stat-color, var(--green)); border-radius: 2px; }
.stat-sub { font-size: 11px; color: var(--text-dim); margin-top: 8px; }

/* ── SOCIAL PROOF BAR ── */
.social-proof-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.social-proof-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.social-proof-avatar img { width: 100%; height: 100%; object-fit: cover; }
.social-proof-text { flex: 1; min-width: 0; font-size: 13px; color: var(--text); }
.social-proof-text strong { color: var(--gold); }
.social-proof-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.social-proof-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--green);
  color: #0A0E1A;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .social-proof-btn { display: none; }
}

/* ── BRASILEIRÃO: layout 2 colunas (sidebar acompanha tudo) ── */
.br-layout { display: flex; align-items: flex-start; gap: 16px; }
.br-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.br-side { flex: 0 0 280px; display: flex; flex-direction: column; gap: 12px; }
.br-banner-link {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .15s, box-shadow .15s;
}
.br-banner-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.br-banner-img { width: 100%; height: auto; display: block; }
@media (max-width: 768px) {
  .br-layout { flex-direction: column; }
  .br-side { flex: 1 1 auto; width: 100%; }
}

/* ── TITLES ── */
.titles-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.title-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: center;
  min-width: 76px;
  transition: border-color .15s, transform .15s;
  cursor: default;
}
.title-badge:hover { border-color: rgba(245,197,24,.4); transform: translateY(-2px); }
.title-year { font-family: 'Bebas Neue', sans-serif; font-size: 18px; color: var(--gold); display: block; }
.title-host { font-size: 10px; color: var(--text-muted); }

/* ── SQUAD GRID ── */
.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.squad-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: border-color .15s;
}
.squad-card:hover { border-color: var(--green-dim); }
.squad-pos { font-size: 10px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 2px; }
.squad-name { font-size: 13px; font-weight: 600; }

/* ── SQUAD 2026 (position layout) ── */
.squad-pos-section { margin-bottom: 10px; }
.squad-pos-header {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  color: var(--text-muted); padding: 4px 0 6px; border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.squad-players-row {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.squad-player-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 7px 11px;
  min-width: 100px; flex: 1 1 100px; max-width: 160px;
  transition: border-color .15s;
}
.squad-player-card:hover { border-color: var(--border2); }
.squad-player-card.squad-star {
  border-color: var(--gold); background: rgba(245,158,11,.06);
}
.squad-player-name { font-size: 12px; font-weight: 700; line-height: 1.3; }
.squad-player-club { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── INFO BOX ── */
.info-box {
  background: rgba(59,130,246,.07);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: #93c5fd;
  line-height: 1.6;
  margin-bottom: 16px;
}
.info-box strong { color: var(--gold); }

/* ── FACT CARDS ── */
.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-dim);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}
.fact-card strong { color: var(--gold); }

/* ── NEWS CARDS ── */
.news-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 24px 0 8px;
}
.news-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: border-color .15s, transform .1s;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.news-card:hover { border-color: var(--border2); transform: translateY(-1px); }
.news-card.news-hot { border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.04); }
.news-card.news-hot .news-title { color: #fca5a5; }
.news-thumb {
  flex-shrink: 0;
  width: 96px; height: 72px;
  object-fit: cover;
  border-radius: 6px;
}
.news-text { flex: 1; min-width: 0; }
.news-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.news-source {
  font-size: 11px; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: .5px;
}
.news-date { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.news-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; line-height: 1.35; }
.news-body { font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.btn-sm-ghost {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); border-radius: 6px;
  padding: 4px 10px; font-size: 12px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-sm-ghost:hover { border-color: var(--border2); color: var(--text); }

/* ── LINEUP PITCH ── */
.lineup-pitch {
  background: linear-gradient(180deg,#2e7d32 0%,#388e3c 40%,#2e7d32 50%,#388e3c 90%,#2e7d32 100%);
  border-radius: 12px; padding: 18px 8px 12px;
  position: relative; overflow: hidden;
  border: 2px solid rgba(255,255,255,.15);
  margin-bottom: 6px;
}
.pitch-midline {
  position: absolute; left: 8%; right: 8%; top: 50%; height: 1px;
  background: rgba(255,255,255,.2); pointer-events: none;
}
.pitch-center-circle {
  position: absolute; width: 66px; height: 66px;
  border: 1.5px solid rgba(255,255,255,.18); border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none;
}
.pitch-box {
  position: absolute; left: 25%; right: 25%; height: 14%;
  border: 1.5px solid rgba(255,255,255,.15); pointer-events: none;
}
.pitch-box-top    { top: 0;   border-top: none; }
.pitch-box-bottom { bottom: 0; border-bottom: none; }
.lineup-row {
  display: flex; justify-content: center; gap: 6px;
  margin-bottom: 10px; position: relative; z-index: 1;
}
.lineup-formation-tag {
  text-align: center; font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.45); letter-spacing: 2px;
  margin-top: -4px; position: relative; z-index: 1;
}
.lp {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; width: 58px; transition: transform .15s;
}
.lp:hover { transform: translateY(-4px); }
.lp-circle {
  width: 50px; height: 50px; border-radius: 50%;
  border: 2.5px solid rgba(245,197,24,.7);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.15);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  overflow: hidden;
}
.lp:hover .lp-circle {
  border-color: #fff;
  box-shadow: 0 5px 16px rgba(0,0,0,.65), 0 0 0 3px rgba(255,255,255,.2);
}
.lp-star {
  border-color: var(--gold) !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.55), 0 0 14px rgba(245,197,24,.55) !important;
}
.lp-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.lp-num { font-size: 16px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.lp-name {
  font-size: 10px; font-weight: 700; color: #fff; text-align: center;
  text-shadow: 0 1px 5px rgba(0,0,0,.95); line-height: 1.2; max-width: 58px;
}
.lp-pos { font-size: 9px; color: rgba(255,255,255,.65); text-shadow: 0 1px 3px rgba(0,0,0,.8); }
@media (max-width: 400px) {
  .lp { width: 46px; }
  .lp-circle { width: 42px; height: 42px; }
  .lp-num { font-size: 13px; }
  .lp-name { font-size: 9px; }
}

/* ── LINEUP INTERACTIVE ── */
.lineup-toolbar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.lineup-tbtn {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 12px;
  font-size: 11px; font-weight: 600; color: var(--text-dim);
  cursor: pointer; transition: background .15s, color .15s;
  white-space: nowrap;
}
.lineup-tbtn:hover { background: var(--surface3); color: var(--text); }
.lineup-tbtn-main { background: rgba(245,197,24,.1); border-color: rgba(245,197,24,.3); color: var(--gold); }
.lineup-tbtn-main:hover { background: rgba(245,197,24,.18); }
.lineup-tbtn-save { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); color: #4ade80; }
.lineup-tbtn-save:hover { background: rgba(34,197,94,.2); }
.lineup-tbtn-post { background: rgba(96,165,250,.1); border-color: rgba(96,165,250,.3); color: #60a5fa; }
.lineup-tbtn-post:hover { background: rgba(96,165,250,.2); }
.lineup-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.lineup-edit-hint {
  text-align: center; font-size: 11px; color: var(--gold);
  margin-bottom: 8px; opacity: .85;
}
/* Formation tabs */
.formation-tabs { display: flex; gap: 5px; margin-bottom: 8px; flex-wrap: wrap; }
.formation-tab {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 10px;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  cursor: pointer; transition: all .15s;
}
.formation-tab:hover { border-color: var(--gold); color: var(--gold); }
.formation-tab-active {
  background: var(--gold); border-color: var(--gold); color: #000 !important;
}
/* Bench */
.bench-section { margin-top: 8px; }
.bench-label {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px;
}
.bench-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin;
}
.bench-player {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 46px; cursor: pointer; transition: transform .15s;
  flex-shrink: 0;
}
.bench-player:hover { transform: translateY(-3px); }
.bench-circle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.4); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.bench-name { font-size: 9px; font-weight: 700; color: var(--text-dim); text-align: center; max-width: 46px; line-height: 1.2; }
.bench-pos  { font-size: 8px; color: var(--text-muted); }
.bench-selected .bench-circle {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px var(--gold), 0 0 10px rgba(245,197,24,.4) !important;
}
/* Drag/select states */
.lp-edit { cursor: grab; }
.lp-edit:active { cursor: grabbing; }
.lp-edit:hover { transform: translateY(-3px) scale(1.06) !important; }
.lp-selected .lp-circle {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(245,197,24,.5), 0 3px 10px rgba(0,0,0,.55) !important;
}
.lp-dragging { opacity: .3 !important; transform: scale(.9) !important; }
.lp-drop-hover .lp-circle {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 3px #60a5fa, 0 0 14px rgba(96,165,250,.45), 0 3px 10px rgba(0,0,0,.55) !important;
  transform: scale(1.1);
}

/* ── PATH TO FINAL ── */
.path-wrap { overflow-x: auto; padding-bottom: 8px; }
.path-track { display: flex; min-width: 560px; align-items: flex-start; gap: 0; }
.path-stage { flex: 1; min-width: 80px; }
.path-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  padding: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.path-label.gold { color: var(--gold); }
.path-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  font-size: 10px;
  text-align: center;
  margin-bottom: 3px;
  line-height: 1.4;
  color: var(--text-dim);
}
.path-item.brazil { border-color: var(--green-dim); color: var(--green); }
.path-item.future  { border-color: rgba(0,196,114,.3); }
.path-item.final   { border-color: var(--gold); }
.path-arrow { display: flex; align-items: center; padding: 14px 2px 0; color: var(--border2); font-size: 12px; }

/* ── MATCH CARD ── */
.match-card {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 6px;
  transition: border-color .15s;
}
.match-card:hover { border-color: var(--border2); }
.match-card.brazil { border-color: rgba(0,196,114,.3); }
.match-card.tbd { opacity: .45; border-style: dashed; }
.match-card.live { border-color: rgba(239,68,68,.5); box-shadow: 0 0 0 1px rgba(239,68,68,.2); }
@keyframes livePulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.4; transform:scale(1.3); } }
.match-team {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.match-team.right { flex-direction: row-reverse; text-align: right; }
.match-flag { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.match-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-mid {
  min-width: 80px;
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  padding: 0 8px;
}
.match-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 2px;
}
.match-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── ROUND LABEL ── */
.round-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  background: var(--surface);
  border-radius: 6px;
  border-left: 3px solid var(--green-dim);
  margin: 16px 0 8px;
}
.round-label.final { border-color: var(--gold); color: var(--gold); }

/* ── GROUPS GRID ── */
.groups-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: border-color .15s;
}
.group-card:hover { border-color: var(--border2); }
.group-card.brazil { border-color: rgba(0,196,114,.35); box-shadow: 0 0 16px rgba(0,196,114,.06); }
.group-header {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.group-team {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color .1s;
}
.group-team:last-child { border-bottom: none; }
.group-team:hover { color: var(--text); }
.team-flag-icon { flex-shrink: 0; width: 26px; display: flex; align-items: center; }

/* ── BADGE ── */
.badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.badge-blue  { background: var(--blue-dim); color: #bfdbfe; }
.badge-red   { background: #7f1d1d; color: #fca5a5; }
.badge-gold  { background: rgba(245,197,24,.15); border: 1px solid rgba(245,197,24,.3); color: var(--gold); }

/* ── RANKING ── */
.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 6px;
  transition: border-color .15s;
  cursor: default;
}
.rank-row:hover { border-color: var(--border2); }
.rank-row.top3 { border-color: rgba(245,197,24,.18); }
.rank-pos {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--gold);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.rank-info { flex: 1; min-width: 0; }
.rank-name {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s;
}
.rank-name:hover { color: var(--green); }
.rank-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.rank-bar-wrap { height: 3px; background: var(--surface3); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.rank-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dim), var(--gold));
  border-radius: 2px;
  width: 0;
  animation: barGrow .7s ease forwards;
}
@keyframes barGrow { to { width: var(--tw); } }
.rank-pts {
  background: var(--green-dim);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* ── CAIXINHA ── */
.caixinha {
  background: linear-gradient(135deg, rgba(245,197,24,.06), rgba(59,130,246,.08));
  border: 1px solid rgba(245,197,24,.2);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.caixinha-pot {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--gold);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 4px;
}
.caixinha-sub { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.prize-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 6px;
}
.prize-medal { font-size: 22px; width: 28px; flex-shrink: 0; }
.prize-info { flex: 1; }
.prize-name { font-size: 14px; font-weight: 600; }
.prize-pct  { font-size: 11px; color: var(--text-muted); }
.prize-val  { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--gold); letter-spacing: 1px; flex-shrink: 0; }

/* ── AVATAR ── */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.avatar.lg { width: 56px; height: 56px; font-size: 22px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── MODAL ── */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .25s ease;
}
@media (max-width: 480px) {
  .modal-bg {
    align-items: center;
    padding: 12px;
  }
  .modal-box {
    border-radius: var(--radius-lg);
    max-height: 82vh;
    padding: 16px;
  }
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.modal-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color .15s;
}
.modal-close:hover { color: var(--text); }

/* ── MODAIS INSTITUCIONAIS ── */
.howworks-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.howworks-step { display: flex; gap: 12px; align-items: flex-start; }
.howworks-step-num {
  width: 26px; height: 26px; flex-shrink: 0;
  background: var(--green-glow); color: var(--green);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.howworks-step-text { font-size: 13px; color: var(--text-dim); line-height: 1.5; padding-top: 3px; }
.howworks-step-text strong { color: var(--text); }

.rule-cards { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.rule-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface2);
}
.rule-card.positive { border-color: rgba(157,238,92,.3); background: rgba(157,238,92,.06); }
.rule-card.neutral  { border-color: rgba(245,197,24,.3); background: rgba(245,197,24,.06); }
.rule-card.negative { border-color: rgba(239,68,68,.25);  background: rgba(239,68,68,.05); }
.rule-card-label { font-size: 12px; font-weight: 600; color: var(--text); }
.rule-card-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.rule-card-val { font-size: 15px; font-weight: 800; white-space: nowrap; }
.rule-card.positive .rule-card-val { color: var(--green); }
.rule-card.neutral  .rule-card-val { color: var(--gold); }
.rule-card.negative .rule-card-val { color: var(--red); }

.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface2); }
.feature-icon { font-size: 20px; margin-bottom: 6px; }
.feature-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.feature-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; }

.badge-green { background: rgba(157,238,92,.15); border: 1px solid rgba(157,238,92,.3); color: var(--green); }
.badge-gray  { background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted); }

.snav-logo { width: 18px; height: 18px; flex-shrink: 0; object-fit: contain; border-radius: 3px; }

.tourn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .tourn-grid { grid-template-columns: 1fr; } }
.tourn-card { padding: 16px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface2); text-align: center; cursor: pointer; transition: border-color .15s, transform .1s; }
.tourn-card:hover { border-color: var(--gold); }
.tourn-card:active { transform: scale(.98); }
.tourn-card.tourn-disabled { cursor: default; opacity: .55; }
.tourn-card.tourn-disabled:hover { border-color: var(--border); }
.tourn-logo-wrap { height: 56px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.tourn-logo { max-height: 56px; max-width: 100%; object-fit: contain; }
.tourn-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }

.livefeat-row { display: flex; gap: 12px; align-items: flex-start; }
.livefeat-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.livefeat-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.livefeat-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.faq-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.faq-a { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

.modal-cta-footer { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ── MINI ODDS ── */
.odds-mini-wrap { margin-top: 6px; padding: 6px 8px; background: rgba(0,0,0,.2); border-radius: 6px; }
.odds-locked { cursor: pointer; transition: background .15s; }
.odds-locked:hover { background: rgba(245,197,24,.08); }
.odds-track { display: flex; height: 6px; border-radius: 3px; overflow: hidden; }
.odds-seg-h { background: var(--green-dim); }
.odds-seg-d { background: #52525b; }
.odds-seg-a { background: var(--red); }
.odds-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-muted); margin-top: 3px; }

/* ── DONE SCREEN ── */
.done-screen { text-align: center; padding: 56px 16px; }
.done-icon   { font-size: 56px; margin-bottom: 14px; }
.done-title  { font-family: 'Bebas Neue', sans-serif; font-size: 34px; color: var(--gold); letter-spacing: 2px; margin-bottom: 6px; }
.done-sub    { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }

/* ── ANIMAÇÃO: BOLA NO GOL (tela de palpite registrado) ── */
.goal-anim {
  position: relative;
  width: 170px;
  height: 116px;
  margin: 0 auto 14px;
  overflow: visible;
}
.goal-frame {
  position: absolute;
  top: 0; bottom: 0; left: 10px; right: 10px;
  border: 5px solid #f0f0f5;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.goal-net {
  position: absolute;
  top: 6px; bottom: 0; left: 15px; right: 15px;
  background-image:
    repeating-linear-gradient(55deg,  rgba(240,240,245,.4) 0, rgba(240,240,245,.4) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(-55deg, rgba(240,240,245,.4) 0, rgba(240,240,245,.4) 1px, transparent 1px, transparent 10px);
  transform-origin: 70% 40%;
  animation: netBulge .5s ease-out .58s both;
}
.goal-ball {
  position: absolute;
  left: -34px;
  bottom: 10px;
  font-size: 28px;
  line-height: 1;
  animation: ballKick .75s cubic-bezier(.32,.64,.4,1) .1s both;
}
@keyframes ballKick {
  0%   { transform: translate(0,0) rotate(0deg); opacity: 1; }
  68%  { transform: translate(148px,-16px) rotate(370deg); }
  84%  { transform: translate(172px,-6px) scale(.92,1.06) rotate(440deg); }
  100% { transform: translate(164px,4px) scale(.86,.95) rotate(480deg); opacity: .94; }
}
@keyframes netBulge {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.1) translateX(4px); }
  100% { transform: scale(1); }
}

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 48px 16px; color: var(--text-muted); }
.empty-icon  { font-size: 40px; display: block; margin-bottom: 12px; opacity: .5; }

/* ── SHARE BOX ── */
.share-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

/* ── TABLE ── */
.pred-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pred-table th {
  text-align: left; padding: 6px 8px;
  color: var(--text-muted); font-size: 10px;
  text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--border); font-weight: 700;
}
.pred-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.pred-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}
.pred-tag.exact { background: rgba(0,196,114,.15); color: var(--green); }
.pred-tag.ok    { background: rgba(245,197,24,.12); color: var(--gold); }
.pred-tag.miss  { background: rgba(239,68,68,.12); color: var(--red); }
.pred-tag.wait  { background: var(--surface3); color: var(--text-muted); }

/* ── ADMIN ──
   Sticky pra não sumir quando rola o conteúdo da aba, e com scroll
   horizontal (em vez de espremer flex:1) pra caber todas as abas
   mesmo em telas estreitas — antes a última aba (Logs) ficava cortada. */
.admin-tabs {
  position: sticky;
  top: -8px;
  z-index: 5;
  display: flex;
  gap: 6px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  margin: -8px -12px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-tab-btn {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: var(--surface2);
  color: var(--text-muted);
  transition: all .15s;
  font-family: inherit;
  letter-spacing: .3px;
  white-space: nowrap;
}
.admin-tab-btn.active {
  background: var(--surface3);
  color: var(--gold);
  border: 1px solid rgba(245,197,24,.25);
}
.admin-tab-btn:hover:not(.active) {
  color: var(--text);
  background: var(--surface);
}
.admin-section {
  font-size: 11px; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin: 16px 0 8px;
}
.admin-row {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 4px;
}
.admin-label { font-size: 10px; color: var(--gold); font-weight: 700; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .5px; }
.admin-flex  { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.admin-txt {
  flex: 1; min-width: 90px; font-size: 12px;
  padding: 6px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  font-family: inherit;
}
.admin-txt:focus { outline: none; border-color: var(--green-dim); }

/* ── LOGIN MODAL ── */
#login-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 1000;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
#login-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 94vw);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
}
#login-modal.open,
#login-modal-overlay.open {
  display: block;
}
#login-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s;
}
#login-modal-close:hover { background: var(--surface3); color: var(--text); }
#login-modal-body {
  overflow-y: auto;
  max-height: 85vh;
  max-height: 85dvh;
  border-radius: 18px;
  -webkit-overflow-scrolling: touch;
}

/* ── ADMIN MODAL ── */
#admin-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1000;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
#admin-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  flex-direction: column;
  overflow: hidden;
  /* mobile: drawer from bottom */
  bottom: 0; left: 0; right: 0;
  max-height: 92dvh;
  border-radius: 18px 18px 0 0;
}
#admin-modal.open,
#admin-modal-overlay.open {
  display: flex;
}
#admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
#admin-modal-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: .3px;
}
#admin-modal-close {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
}
#admin-modal-close:hover { background: var(--surface3); color: var(--text); }
#admin-modal-body {
  overflow-y: scroll;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  max-height: calc(92dvh - 62px);
  padding: 8px 12px 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.admin-save-bar {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  padding: 12px 12px 20px;
  margin-top: auto;
  flex-shrink: 0;
}
.admin-save-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--green);
  color: #0A0E1A;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .3px;
  transition: box-shadow .2s, transform .1s;
  font-family: inherit;
}
.admin-save-btn:hover { box-shadow: 0 0 22px rgba(157,238,92,.4); transform: translateY(-1px); }
#admin-modal-body .form-card {
  margin-top: 0;
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
/* desktop: right drawer */
@media (min-width: 700px) {
  #admin-modal {
    top: 0; bottom: 0; right: 0; left: auto;
    width: min(520px, 92vw);
    max-height: 100dvh;
    border-radius: 0;
    border-left: 1px solid var(--border);
    border-top: none;
  }
}

/* ── BET SAVE BAR ── */
#bet-save-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.4);
}
#bet-save-bar-label {
  flex: 1;
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
}
#bet-save-bar-label strong { color: var(--text); }
#bet-save-bar .bar-cancel {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
#bet-save-bar .bar-cancel:hover { color: var(--text); border-color: var(--text-muted); }
#bet-save-bar .bar-save {
  background: var(--green);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity .15s;
}
#bet-save-bar .bar-save:hover { opacity: .88; }
@media (min-width: 700px) {
  #bet-save-bar {
    left: 50%;
    transform: translateX(calc(-50% + 120px)); /* center in content area: sidebar/2 = 120px */
    max-width: 720px;
    width: calc(100% - 240px - 80px); /* 240px sidebar + 40px padding each side */
    border-radius: 12px 12px 0 0;
  }
}

/* ── ADMIN FAB ── */
#admin-fab {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
#admin-fab:hover {
  background: var(--surface3);
  color: var(--gold);
  border-color: rgba(245,197,24,.35);
  transform: rotate(30deg);
}
#admin-fab.active {
  background: rgba(245,197,24,.12);
  border-color: rgba(245,197,24,.4);
  color: var(--gold);
  transform: rotate(60deg);
}
@media (min-width: 769px) {
  #admin-fab { bottom: 24px; right: 24px; }
}

/* ── CHAT FAB ── */
#chat-fab {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
/* when admin-fab is also present, shift chat-fab to the left */
body:has(#admin-fab) #chat-fab { right: 68px; }
#chat-fab:hover {
  background: var(--surface3);
  color: var(--green);
  border-color: rgba(57,224,122,.35);
  transform: scale(1.08);
}
#chat-fab.active {
  background: var(--green-glow);
  border-color: rgba(57,224,122,.4);
  color: var(--green);
}
@media (min-width: 769px) {
  #chat-fab { bottom: 24px; right: 24px; }
  body:has(#admin-fab) #chat-fab { right: 80px; }
}
#chat-fab-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 16px; height: 16px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: badgePop .2s ease;
}
@keyframes badgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ── FOOTER ── */
.app-footer {
  display: block;
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 28px 20px 0;
  /* on mobile: push above bottom nav bar */
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
}
.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--text-muted); margin-bottom: 2px;
}
.footer-link {
  font-size: .85rem; color: var(--text-dim);
  text-decoration: none; cursor: pointer; transition: color .15s;
}
.footer-link:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--text-muted);
}
.footer-age {
  background: var(--surface3); border: 1px solid var(--border2);
  color: var(--text-muted); font-size: .68rem; font-weight: 700;
  padding: 2px 7px; border-radius: 6px; letter-spacing: .05em;
}
.footer-logo-img { height: 30px; width: auto; display: block; margin-bottom: 8px; }
.footer-social { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.footer-social-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.footer-social-pill svg { width: 14px; height: 14px; flex-shrink: 0; }
.footer-social-pill:hover { background: rgba(37,211,102,.1); border-color: rgba(37,211,102,.3); color: #25D366; }

@media (min-width: 769px) {
  .app-footer {
    padding: 48px 40px 0;
    margin-top: 0;
  }
  .footer-inner {
    flex-direction: row;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 40px;
  }
  .footer-brand { flex: 1.5; }
  .footer-logo {
    font-size: 1.15rem; font-weight: 700; color: var(--green);
    letter-spacing: -.02em; margin-bottom: 10px;
  }
  .footer-logo-img { height: 36px; margin-bottom: 12px; }
  .footer-tagline {
    font-size: .85rem; color: var(--text-muted);
    line-height: 1.55; max-width: 220px; margin: 0;
  }
  .footer-nav { gap: 40px; flex: 1; }
  .footer-col { gap: 10px; }
  .footer-col-title { font-size: .7rem; margin-bottom: 4px; }
  .footer-link { font-size: .875rem; }
  .footer-bottom { max-width: 900px; margin: 0 auto; padding: 16px 0; font-size: .78rem; }
  .footer-age { font-size: .7rem; padding: 2px 8px; }
}

/* ══════════════════════════════════
   INÍCIO DASHBOARD (Chutei.PRO style)
══════════════════════════════════ */
.inicio-dashboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.dcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.dcard-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.dbadge {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  border: 1px solid;
}
.dbadge-open   { background: rgba(57,224,122,.12); border-color: rgba(57,224,122,.4); color: var(--green); }
.dbadge-closed { background: rgba(239,68,68,.10);  border-color: rgba(239,68,68,.35); color: #ef4444; }
.dbadge-live   { background: rgba(57,224,122,.12); border-color: rgba(57,224,122,.4); color: var(--green); }
.bolao-tab-badge { position:absolute; top:2px; right:2px; min-width:16px; height:16px; background:#ef4444; color:#fff; border-radius:8px; font-size:10px; font-weight:700; line-height:16px; text-align:center; padding:0 4px; pointer-events:none; }
.dbadge-live-btn { cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; user-select: none; }
.dbadge-live-btn:hover { background: rgba(57,224,122,.28); border-color: var(--green); transform: scale(1.07); box-shadow: 0 0 10px rgba(57,224,122,.35); }
.dcard-note { font-size: 11px; color: var(--text-muted); padding: 12px 16px 0; }
.dcard-note strong { color: var(--text); }
.dcard-timer-label {
  font-size: 9px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 1.2px; text-transform: uppercase;
  text-align: center; padding: 12px 16px 4px;
}
.dcard-timer {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  color: var(--green);
  letter-spacing: 4px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  padding: 0 16px 8px;
  transition: color 1.2s ease;
}
.dcard-match {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  padding: 0 12px 4px;
  text-align: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}
.dcard-vs { color: var(--text-muted); font-weight: 400; font-size: 12px; }
.dcard-match-sub { text-align: center; font-size: 11px; color: var(--text-muted); padding: 0 16px 14px; }
.dcard-cta {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  padding: 14px;
  background: var(--green);
  color: #0A0E1A;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .3px;
  transition: box-shadow .2s, transform .1s;
}
.dcard-cta:hover { box-shadow: 0 0 22px rgba(157,238,92,.4); transform: translateY(-1px); }

/* Stats 2x2 */
.dcard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}
.dstat {
  background: var(--surface);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dstat-lbl { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); }
.dstat-val { font-size: 28px; font-weight: 900; line-height: 1; }
.dstat-val.green { color: var(--green); }
.dstat-val.gold  { color: var(--gold); }

/* Game rows */
.dgame-list { display: flex; flex-direction: column; }
.dgame-row {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background .1s;
}
.dgame-row:last-child { border-bottom: none; }
.dgame-row.is-live { border-left: 2px solid var(--green); }
.dgame-row:hover { background: rgba(255,255,255,.02); }
@keyframes dgame-pulse-once {
  0%   { background: rgba(34,197,94,0);    box-shadow: none; }
  25%  { background: rgba(34,197,94,.15);  box-shadow: 0 0 0 3px rgba(34,197,94,.5); }
  60%  { background: rgba(34,197,94,.08);  box-shadow: 0 0 0 2px rgba(34,197,94,.25); }
  100% { background: rgba(34,197,94,0);    box-shadow: none; }
}
.dgame-row.pulse-highlight { animation: dgame-pulse-once .8s ease forwards; }
.dgame-teams {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.dgame-team { display: flex; align-items: center; gap: 5px; flex: 1; }
.dgame-team.right { justify-content: flex-end; text-align: right; }
.dgame-vs { font-size: 11px; color: var(--text-muted); font-weight: 400; flex-shrink: 0; }
.dgame-score-area {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.score-box {
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 900;
  background: var(--surface2);
  border: 1px solid var(--border2);
}
.score-box.score-result { color: var(--text); border-color: var(--border2); }
.score-box.score-pred   { color: var(--text-dim); border-color: rgba(57,224,122,.25); background: rgba(57,224,122,.05); }
.score-box.score-pending{ color: var(--text-muted); }
.score-sep { font-size: 13px; color: var(--text-muted); font-weight: 700; }
.dgame-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}
.dgame-status { color: var(--text-muted); }
.dgame-status.live  { color: var(--green); font-weight: 700; }
.dgame-status.today { color: var(--green); }
.dgame-status.done  { color: var(--text-muted); }
.outcome-badge { font-weight: 700; padding: 1px 7px; border-radius: 10px; font-size: 10px; }
.outcome-badge.exact   { color: var(--green);  background: rgba(57,224,122,.12); }
.outcome-badge.correct { color: var(--gold);   background: rgba(245,197,24,.10); }
.outcome-badge.wrong   { color: #ef4444;        background: rgba(239,68,68,.10); }

/* Ranking rows */
.drank-list { display: flex; flex-direction: column; }
.drank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.drank-row:last-child { border-bottom: none; }
.drank-row.is-me { background: rgba(57,224,122,.05); }
.drank-pos { font-size: 16px; min-width: 24px; text-align: center; }
.drank-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.drank-pts { font-size: 16px; font-weight: 900; color: var(--green); }
.drank-divider { border-top: 1px dashed var(--border2); margin: 0; }
.dcard-footer-link { padding: 12px 16px; border-top: 1px solid var(--border); }
.dfooter-btn { background: none; border: none; color: var(--green); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
.dfooter-btn:hover { opacity: .8; }


/* Below dashboard: full-width cards */
.inicio-below-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}

/* ── DESKTOP: 3-column grid ── */
@media (min-width: 769px) {
  .inicio-dashboard {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }
  .dash-left   { flex: 0 0 280px; }
  .dash-center { flex: 1; min-width: 0; }
  .dash-right  { flex: 0 0 240px; }
  .dcard-timer { font-size: 44px; }
}

/* ── BOLÃO INFO ACCORDION ── */
.bolao-info-details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.bolao-info-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  background: var(--surface2);
  user-select: none;
  transition: color .15s;
}
.bolao-info-details summary::-webkit-details-marker { display: none; }
.bolao-info-details summary:hover { color: var(--text); }
.bolao-info-details[open] summary { color: var(--text); border-bottom: 1px solid var(--border); }
.bolao-info-details[open] summary svg { transform: rotate(180deg); }
.bolao-info-details summary svg { transition: transform .2s; }
.bolao-info-body {
  padding: 14px;
  background: var(--surface);
}

/* ── HISTORY ── */
.history-item {
  display: flex; gap: 10px; padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.history-ts  { color: var(--text-muted); flex-shrink: 0; min-width: 78px; }
.history-msg { color: #93c5fd; }

/* ══════════════════════════════════
   ODDS TAB
══════════════════════════════════ */
.odds-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 8px;
  transition: border-color .15s;
}
.odds-card:hover { border-color: var(--border2); }
.odds-card.brazil { border-color: rgba(0,196,114,.3); }
.odds-card.today  { border-color: rgba(245,197,24,.4); background: linear-gradient(135deg, var(--surface2) 0%, rgba(245,197,24,.04) 100%); }
.odds-game {
  display: flex; align-items: center;
  justify-content: space-between;
  font-size: 13px; font-weight: 600;
  margin-bottom: 10px;
}
.odds-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: 8px 0; }
.odds-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 8px; }
.odds-col { text-align: center; background: var(--surface2); border-radius: 6px; padding: 8px 6px; }
.odds-val { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: var(--gold); display: block; }
.odds-pct { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.odds-col-label { font-size: 10px; font-weight: 700; text-transform: uppercase; margin-bottom: 3px; }
.odds-col-label.home { color: var(--green); }
.odds-col-label.draw { color: var(--text-muted); }
.odds-col-label.away { color: var(--red); }
.odds-nodata { font-size: 12px; color: var(--text-muted); font-style: italic; margin-top: 4px; }
.odds-count  { font-size: 11px; color: var(--text-muted); font-weight: 700; }

/* ══════════════════════════════════
   DESKTOP HEADER + SIDEBAR (≥769px)
══════════════════════════════════ */
.desktop-navbar { display: none; }

@media (min-width: 769px) {
  /* ── HEADER: slim top bar, logo + auth only (nav vive na sidebar) ── */
  .desktop-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: var(--live-h); left: 0; right: 0;
    height: 64px;
    background: rgba(17,24,39,.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    z-index: 300;
  }
  .dnav-right { display: flex; align-items: center; gap: 8px; }
  #dnav-user-btn {
    display: flex; align-items: center; gap: 8px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    padding: 5px 12px 5px 5px;
    border-radius: 30px;
    border: 1px solid transparent;
    transition: background .15s, border-color .15s;
  }
  #dnav-user-btn:hover {
    background: var(--surface2);
    border-color: var(--border);
  }

  /* ── SIDEBAR: abaixo do header. O <aside> vira um bloco normal que estica
     junto com a coluna de conteúdo (fundo/borda colados até o rodapé); quem
     gruda no topo ao rolar é o miolo (.sidebar-inner), limitado à altura da
     tela, então ele solta o scroll perto do fim sem deixar vão antes do rodapé. ── */
  .sidebar {
    position: static;
    width: var(--sidebar-w);
    flex-shrink: 0;
  }
  .sidebar-inner {
    position: sticky;
    top: calc(var(--live-h) + 64px);
    height: calc(100vh - var(--live-h) - 64px);
  }
  .countdown-bar { top: calc(var(--live-h) + 64px); left: var(--sidebar-w); }
  .main-content {
    margin-top: calc(var(--live-h) + 64px + var(--countdown-h));
    padding: 0 0 24px;
  }

  /* Content: wide, centered, breathing room */
  .tab-pane.active {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 36px 48px 0;
  }
  .chat-wrap { height: calc(100vh - var(--live-h) - 64px - var(--countdown-h) - 30px); }

  /* Dashboard columns wider */
  .dash-left   { flex: 0 0 300px; }
  .dash-center { flex: 1; min-width: 0; }
  .dash-right  { flex: 0 0 260px; }
  .dcard-timer { font-size: 48px; }

  /* Footer inner also wider */
  .footer-inner, .footer-bottom { max-width: 1280px; }
}

/* ══════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .mobile-header {
    display: flex;
    top: var(--live-h);
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
    padding-left:  max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  .mobile-drawer {
    display: flex;
    top: var(--live-h);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .countdown-bar {
    top: calc(var(--live-h) + var(--topbar-h) + env(safe-area-inset-top, 0px));
    left: 0; right: 0; z-index: 250;
  }
  .main-content {
    margin-top: calc(var(--live-h) + var(--topbar-h) + env(safe-area-inset-top, 0px) + var(--countdown-h));
    padding: 16px 14px calc(80px + env(safe-area-inset-bottom, 0px));
  }
  .cd-label { display: none; }
  .chat-wrap { height: calc(100vh - var(--live-h) - var(--topbar-h) - env(safe-area-inset-top, 0px) - var(--countdown-h) - 30px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card { padding: 14px 14px; min-height: 80px; }
  .stat-number { font-size: 28px; }
  .groups-grid { grid-template-columns: repeat(2, 1fr); }
  .squad-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .main-content { padding: 12px 10px calc(72px + env(safe-area-inset-bottom, 0px)); }
  .page-hero { padding: 20px 16px; }
  .match-name { font-size: 11px; }
  .odds-cols { grid-template-columns: 1fr 1fr 1fr; }
  .cd-num { font-size: 18px; }
  .cd-unit { min-width: 32px; }
  .groups-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════
   iOS / PWA — touch & tap fixes
══════════════════════════════════ */
button, a, [onclick] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* elimina delay de 300ms no iOS */
}
/* scroll suave nativo iOS */
.main-content, .mobile-drawer, .copa-modal-body {
  -webkit-overflow-scrolling: touch;
}
/* impede que o iOS "selecione" texto ao segurar toque em cards */
.match-card, .news-card, .odds-card, .rank-row, .group-card {
  -webkit-user-select: none;
  user-select: none;
}

@media (max-width: 400px) {
  .modal-bg { padding: 8px; }
}

@media print {
  .sidebar, .mobile-header, .countdown-bar,
  .tab-pane:not(#tab-rank), .modal-bg { display: none !important; }
  #tab-rank { display: block !important; }
  .main-content { margin: 0; padding: 0; }
  body { background: #fff; color: #000; }
}

/* ══════════════════════════════════
   LIVE BANNER — barra de jogo ao vivo
══════════════════════════════════ */
body.has-live { --live-h: 40px; }

.live-banner {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 40px;
  z-index: 600;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(90deg, #003d22 0%, #007a42 25%, #00c472 50%, #007a42 75%, #003d22 100%);
  background-size: 200% 100%;
  animation: liveBgScroll 4s linear infinite;
  border-bottom: 2px solid #00ff88;
  box-shadow: 0 0 12px rgba(0,255,136,.5), 0 0 28px rgba(0,196,114,.3), 0 2px 8px rgba(0,0,0,.4);
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  overflow: hidden;
}
body.has-live .live-banner { display: flex; }

@keyframes liveBgScroll {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.live-banner-dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 6px #ff3b3b, 0 0 14px rgba(255,59,59,.6);
  animation: liveDotPulse 1s ease-in-out infinite;
}
@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

.live-banner-label {
  flex-shrink: 0;
  font-size: 10px; font-weight: 800;
  letter-spacing: 1px;
  color: #ff3b3b;
  text-shadow: 0 0 8px rgba(255,59,59,.8);
  text-transform: uppercase;
}

.live-ticker {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}
.live-ticker-track {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px; font-weight: 600;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,.5);
  animation: tickerScroll 30s linear infinite;
  padding-left: 100%;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.live-watch-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: #009955;
  font-size: 11px; font-weight: 800;
  padding: 5px 11px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 0 8px rgba(255,255,255,.35);
  transition: transform .1s, box-shadow .1s;
  letter-spacing: .3px;
  white-space: nowrap;
}
.live-watch-btn:hover { transform: scale(1.06); box-shadow: 0 0 14px rgba(255,255,255,.5); }
.live-watch-btn svg  { width: 12px; height: 12px; fill: #ff0000; }

/* ══════════════════════════════════
   NOTIFICATION SYSTEM
══════════════════════════════════ */
.notif-btn {
  width: 36px; height: 36px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 16px; height: 16px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  border: 2px solid var(--surface);
  pointer-events: none;
}
.notif-panel {
  position: fixed;
  top: calc(var(--topbar-h) + var(--countdown-h) + 6px);
  right: 8px;
  width: min(320px, calc(100vw - 16px));
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  z-index: 600;
  overflow: hidden;
  animation: slideUp .2s ease;
}
.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 700;
}
.notif-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background .15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--surface2); }
.notif-item.unread { background: rgba(245,197,24,.04); }
.notif-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.notif-text { flex: 1; color: var(--text-dim); line-height: 1.4; }
.notif-time { font-size: 10px; color: var(--text-muted); margin-top: 3px; }
.notif-empty { text-align: center; padding: 28px 16px; color: var(--text-muted); font-size: 13px; }

/* ══════════════════════════════════
   PROFILE REDESIGN
══════════════════════════════════ */
.profile-banner {
  height: 110px;
  background: linear-gradient(135deg, #0a1628 0%, #0d2b14 40%, #1a2a00 70%, #0a1628 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--border2);
  border-bottom: none;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.profile-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(245,197,24,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(0,196,114,.08) 0%, transparent 60%);
}
.profile-banner-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 4px;
  color: rgba(245,197,24,.35);
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.profile-main-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 0 24px 24px;
  margin-bottom: 16px;
}
.profile-hero-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: -32px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.profile-avatar-xl-wrap {
  position: relative; flex-shrink: 0; overflow: visible;
}
.profile-avatar-xl {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  outline: none;
  box-shadow: none;
  object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #fff;
  overflow: hidden;
}
/* ── Bordas coloridas por moldura (avatar grande) ── */

.profile-avatar-xl-wrap.profile-frame-gold .profile-avatar-xl {
  outline: 3px solid #fbbf24;
  box-shadow: 0 0 10px 3px rgba(251,191,36,.4);
}
.profile-avatar-xl-wrap.profile-frame-green .profile-avatar-xl {
  outline: 3px solid #22c55e;
  box-shadow: 0 0 10px 3px rgba(34,197,94,.4);
}
.profile-avatar-xl-wrap.profile-frame-fire .profile-avatar-xl {
  outline: 3px solid #f97316;
  box-shadow: 0 0 10px 3px rgba(249,115,22,.4);
}
.profile-avatar-xl-wrap.profile-frame-diamond .profile-avatar-xl {
  outline: 3px solid #67e8f9;
  box-shadow: 0 0 10px 3px rgba(103,232,249,.4);
}
.profile-avatar-xl-wrap.profile-frame-crown .profile-avatar-xl {
  outline: 3px solid #fbbf24;
  box-shadow: 0 0 10px 3px rgba(251,191,36,.4);
}
.profile-avatar-xl-wrap.profile-frame-admin .profile-avatar-xl {
  outline: 3px solid #a855f7;
  box-shadow: 0 0 10px 3px rgba(168,85,247,.4);
}
.profile-avatar-xl-wrap.profile-frame-none .profile-avatar-xl { outline:none; box-shadow:none; }

/* Coroa acima do avatar — moldura de Líder */
.profile-avatar-xl-wrap.profile-frame-crown::before {
  content: '👑';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(251,191,36,.9));
  z-index: 2;
  pointer-events: none;
}
/* Coroa pequena no avatar do topo/nav */
.user-avatar-wrap.profile-frame-crown::before {
  content: '👑';
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  font-size: 13px;
  filter: drop-shadow(0 0 5px rgba(251,191,36,.9));
  z-index: 2;
  pointer-events: none;
}
.profile-avatar-xl img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-avatar-edit-xl {
  position: absolute; bottom: 0; right: 0;
  width: 26px; height: 26px;
  background: var(--green-dim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: 2px solid var(--surface);
}
.profile-avatar-edit-xl svg { width: 13px; height: 13px; color: #fff; }
.profile-identity { flex: 1; min-width: 0; padding-bottom: 4px; }
.profile-name-xl { font-size: 22px; font-weight: 800; line-height: 1.1; }
.profile-username-xl { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.profile-role-badge {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}
.role-admin  { background: rgba(245,197,24,.15); border: 1px solid rgba(245,197,24,.35); color: var(--gold); }
.role-leader { background: rgba(0,196,114,.12); border: 1px solid rgba(0,196,114,.3); color: var(--green); }
.role-user   { background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted); }

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.profile-stat-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  transition: border-color .15s;
}
.profile-stat-card:hover { border-color: var(--border2); }
.profile-stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.profile-stat-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 3px;
}

/* Achievements */
.achievements-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.achievement-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all .15s;
}
.achievement-badge.ach-locked {
  opacity: .4;
  cursor: default;
}
.achievement-badge.ach-gold {
  background: rgba(245,197,24,.1);
  border-color: rgba(245,197,24,.35);
  color: var(--gold);
}
.achievement-badge.ach-green {
  background: rgba(0,196,114,.1);
  border-color: rgba(0,196,114,.3);
  color: var(--green);
}
.achievement-badge.ach-fire {
  background: rgba(239,68,68,.1);
  border-color: rgba(239,68,68,.35);
  color: #ef4444;
}
.achievement-badge.ach-blue {
  background: rgba(59,130,246,.1);
  border-color: rgba(59,130,246,.35);
  color: #3b82f6;
}
.achievement-badge.ach-purple {
  background: rgba(168,85,247,.1);
  border-color: rgba(168,85,247,.35);
  color: #a855f7;
}
.achievement-badge.ach-orange {
  background: rgba(249,115,22,.1);
  border-color: rgba(249,115,22,.35);
  color: #f97316;
}
/* Keep legacy classes working */
.achievement-badge.earned   { background:rgba(245,197,24,.1); border-color:rgba(245,197,24,.3); color:var(--gold); }
.achievement-badge.earned-green { background:rgba(0,196,114,.1); border-color:rgba(0,196,114,.3); color:var(--green); }

.cover-card { min-height: 64px; border: 1px solid rgba(255,255,255,.1) !important; }
.cover-card.frame-active { border-color: rgba(255,255,255,.5) !important; }
.cover-card .frame-card-label { color: rgba(255,255,255,.7) !important; }

/* Admin Quick Card */
.admin-quick-card {
  background: linear-gradient(135deg, rgba(245,197,24,.08), rgba(0,196,114,.06));
  border: 1px solid rgba(245,197,24,.25);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.admin-quick-card:hover {
  border-color: rgba(245,197,24,.5);
  box-shadow: 0 4px 20px rgba(245,197,24,.1);
}
.admin-quick-title {
  font-size: 15px; font-weight: 800;
  color: var(--gold); margin-bottom: 4px;
}
.admin-quick-sub {
  font-size: 12px; color: var(--text-muted); margin-bottom: 14px;
}
.admin-quick-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.admin-quick-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: rgba(245,197,24,.1);
  border: 1px solid rgba(245,197,24,.2);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.admin-quick-btn:hover { background: rgba(245,197,24,.2); }

/* Copa Title Modal */
.copa-modal-wrap {
  background: linear-gradient(135deg, #0a1f3c 0%, #0d2b14 60%, #0a1f3c 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.copa-modal-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  color: var(--gold);
  letter-spacing: 4px;
  line-height: 1;
  text-shadow: 0 0 30px rgba(245,197,24,.4);
}
.copa-modal-flag { font-size: 44px; margin: 8px 0; }
.copa-modal-country { font-size: 16px; font-weight: 700; color: var(--text-dim); margin-bottom: 16px; }
.copa-modal-final {
  font-size: 18px; font-weight: 800; color: var(--gold);
  padding: 10px 20px;
  background: rgba(245,197,24,.1);
  border: 1px solid rgba(245,197,24,.25);
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 20px;
}
.copa-modal-section {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gold);
  margin: 16px 0 8px;
  display: flex; align-items: center; gap: 8px;
}
.copa-modal-section::after { content: ''; flex: 1; height: 1px; background: rgba(245,197,24,.2); }
.copa-modal-stars {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-bottom: 4px;
}
.copa-modal-star {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}
.copa-modal-curiosity {
  background: rgba(59,130,246,.07);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 12px;
  margin-bottom: 5px;
  font-size: 12px;
  color: #93c5fd;
  text-align: left;
  line-height: 1.5;
}

/* ── AGE GATE ─────────────────────────────────────────── */
#age-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
html.age-gate-on #age-gate { display: flex; }
html.age-gate-on body > *:not(#age-gate) { pointer-events: none; }

#age-gate-card, .gate-card {
  background: #111827;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 36px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
}
#age-gate-logo, .gate-logo {
  margin-bottom: 20px;
}
#age-gate-logo img, .gate-logo img {
  height: 48px;
  width: auto;
}
#age-gate-title, .gate-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
}
#age-gate-sub, .gate-sub {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 0 28px;
  line-height: 1.6;
}
#age-gate-yes, .gate-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: #22c55e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  font-family: inherit;
  transition: background .15s;
}
#age-gate-yes:hover, .gate-btn-primary:hover { background: #16a34a; }
#age-gate-no, .gate-btn-secondary {
  display: block;
  width: 100%;
  padding: 13px;
  background: transparent;
  color: #6b7280;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}
#age-gate-no:hover, .gate-btn-secondary:hover { background: rgba(255,255,255,.05); color: #9ca3af; }

/* ── FEEDBACK GATE ────────────────────────────────────── */
#feedback-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#feedback-gate.open { display: flex; }
#feedback-gate-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}
#feedback-gate-stars .fb-star {
  font-size: 34px;
  line-height: 1;
  color: #374151;
  cursor: pointer;
  transition: color .15s, transform .1s;
  user-select: none;
}
#feedback-gate-stars .fb-star:hover { transform: scale(1.12); }
#feedback-gate-stars .fb-star.on { color: #f5c518; }
#feedback-gate-text {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  margin-bottom: 16px;
}
#feedback-gate-text::placeholder { color: #6b7280; }
#feedback-gate-send:disabled {
  opacity: .5;
  cursor: not-allowed;
  background: #22c55e;
}

/* ══════════════════════════════════
   CHECKOUT DE ASSINATURA (página cheia, sem sidebar — js/plans.js)
══════════════════════════════════ */
#plan-checkout-page {
  display: none;
  position: fixed;
  inset: 0;
  /* Abaixo do #modal (z-index 1000/1001) de propósito — os links de Termos/Privacidade
     dentro do checkout abrem em cima dele, não escondidos atrás. */
  z-index: 990;
  background: var(--bg);
  overflow-y: auto;
  padding: 24px 20px 60px;
}
.checkout-page-inner { max-width: 900px; margin: 0 auto; }
.checkout-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.checkout-page-body {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.checkout-col { flex: 1 1 380px; min-width: 0; }
.checkout-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.checkout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
