:root {
  --bg: #f4f7fb;
  --ink: #111827;
  --muted: #667085;
  --line: #d9e2ef;
  --panel: #ffffff;
  --navy: #101828;
  --blue: #2563eb;
  --green: #16a34a;
  --orange: #f59e0b;
  --red: #ef4444;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
.shell { max-width: 1240px; margin: 0 auto; padding: 18px 18px 96px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px;
  margin-bottom: 16px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
  backdrop-filter: blur(12px);
}
.brand, .account, .hero-actions, .match-meta, .mini-stats, .panel-title, .filterbar, .auth-links { display: flex; align-items: center; gap: 10px; }
.brand { min-width: 0; }
.brand-logo {
  display: block;
  width: 238px;
  max-width: 58vw;
  height: 72px;
  object-fit: contain;
  object-position: left center;
  border-radius: 8px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #101828, #2563eb);
  color: #fff;
  border-radius: 8px;
  font-weight: 900;
}
.brand-mark.big { width: 58px; height: 58px; font-size: 28px; margin-bottom: 10px; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: -2px; }
.ghost, .pill, .primary-btn, .secondary-btn, .text-link, .card-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
}
.pill { background: #e7efff; color: #1d4ed8; padding: 0 14px; }
.ghost { border: 1px solid var(--line); padding: 0 12px; background: #fff; }
.primary-btn { background: var(--blue); color: #fff; border: 0; padding: 0 18px; cursor: pointer; }
.secondary-btn { background: #111827; color: #fff; border: 0; padding: 0 18px; cursor: pointer; }
.full { width: 100%; }
.hero, .game-hero {
  min-height: 360px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: end;
  padding: 36px;
  background:
    linear-gradient(120deg, rgba(16,24,40,.94), rgba(37,99,235,.70)),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero h1 { max-width: 760px; margin: 10px 0; font-size: 56px; line-height: 1.02; letter-spacing: 0; }
.hero p, .game-hero p { max-width: 660px; color: rgba(255,255,255,.86); font-size: 18px; }
.eyebrow { color: var(--blue); text-transform: uppercase; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.hero .eyebrow, .game-hero .eyebrow { color: #93c5fd; }
.live-panel, .panel, .match-card, .auth-card, .profile-card, .news-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.live-panel { color: var(--ink); padding: 22px; align-self: stretch; display: flex; flex-direction: column; justify-content: end; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 8px rgba(239,68,68,.12); margin-bottom: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 28px 0 14px; }
.section-head h2 { margin: 4px 0 0; font-size: 28px; }
.match-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.match-card { padding: 18px; }
.match-card.ao_vivo { border-color: rgba(239,68,68,.35); }
.match-meta { justify-content: space-between; color: var(--muted); font-size: 13px; }
.match-meta strong { color: var(--red); }
.scoreline { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: 22px 0; }
.scoreline div { display: grid; gap: 8px; }
.scoreline div:last-child { text-align: right; }
.scoreline span { font-size: 36px; font-weight: 900; }
.scoreline.giant span { font-size: 70px; }
.scoreline.giant strong { font-size: 26px; }
.scoreline em { color: var(--muted); font-style: normal; font-weight: 900; }
.mini-stats { justify-content: space-between; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.bar-stat { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin: 16px 0; color: var(--muted); }
.bar-stat div { height: 8px; background: #e6edf7; border-radius: 99px; overflow: hidden; }
.bar-stat i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); }
.card-link { border: 1px solid var(--line); width: 100%; margin-top: 12px; }
.dashboard-split, .profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.panel { padding: 16px; }
.panel-title { justify-content: space-between; margin-bottom: 10px; }
.panel-title h3 { margin: 0; }
.panel-title a, .panel-title span, .hint { color: var(--muted); font-size: 13px; font-weight: 800; }
.rank-row, .news-row, .stat-line {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.rank-row.large { grid-template-columns: 50px 1fr auto; }
.rank-row span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #eff6ff; color: #1d4ed8; font-weight: 900; }
.rank-row small { color: var(--muted); }
.rank-row em { font-style: normal; font-weight: 900; color: var(--green); }
.news-row { grid-template-columns: 1fr; }
.news-row span { color: var(--muted); }
.auth-wrap { min-height: 72vh; display: grid; place-items: center; }
.auth-card { width: min(440px, 100%); padding: 28px; }
.auth-card.wide { width: min(700px, 100%); }
.auth-card h1 { margin: 0 0 8px; font-size: 34px; }
.auth-card p { color: var(--muted); }
.auth-logo {
  display: block;
  width: min(360px, 92%);
  height: 190px;
  margin: 0 auto 14px;
  object-fit: contain;
  border-radius: 8px;
  background: #020b1d;
}
label { display: grid; gap: 7px; color: #344054; font-weight: 800; font-size: 13px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 96px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.full-row { grid-column: 1 / -1; }
.notice { padding: 12px 14px; border-radius: 8px; margin-bottom: 12px; font-weight: 800; }
.notice.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.notice.success { background: #ecfdf3; color: #027a48; border: 1px solid #bbf7d0; }
.game-hero { min-height: 300px; grid-template-columns: 1fr; align-items: center; text-align: center; }
.game-hero .match-meta { max-width: 640px; margin: 0 auto; width: 100%; }
.stat-line { grid-template-columns: 1fr auto; color: var(--muted); }
.stat-line strong { color: var(--ink); }
.guess-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guess-form button { grid-column: 1 / -1; }
.comment-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-bottom: 14px; }
.comment { padding: 12px 0; border-top: 1px solid var(--line); }
.comment small { display: block; color: var(--muted); margin: 3px 0 8px; }
.comment p { margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.news-card { padding: 18px; min-height: 190px; }
.news-card span { color: var(--blue); font-weight: 900; font-size: 12px; text-transform: uppercase; }
.news-card p, .news-card small { color: var(--muted); }
.filterbar { justify-content: space-between; background: #fff; border: 1px solid var(--line); padding: 12px; border-radius: 8px; margin-bottom: 14px; }
.profile-card { padding: 24px; text-align: center; }
.avatar { width: 88px; height: 88px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 8px; background: #101828; color: #fff; font-size: 36px; font-weight: 900; }
.profile-form { display: grid; gap: 12px; }
.empty { padding: 16px; color: var(--muted); font-weight: 800; }
.admin-grid, .groups-grid, .plans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.plans-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-form, .plan-card, .group-form, .member-form {
  display: grid;
  gap: 12px;
}
.plan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}
.plan-card > strong {
  color: var(--blue);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}
.check-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}
.check-row input { width: 18px; min-height: 18px; }
label small { color: var(--muted); font-weight: 700; }
.group-form {
  grid-template-columns: 1.2fr 1.2fr .7fr auto;
  align-items: end;
}
.group-card p { color: var(--muted); margin: 0 0 8px; }
.group-card small { color: var(--muted); font-weight: 800; }
.member-form {
  grid-template-columns: 1fr auto;
  margin-top: 14px;
}
.admin-shortcut {
  background: #101828;
  color: #fff;
  border-color: #101828;
}
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 30;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, .18);
  backdrop-filter: blur(18px);
}
.bottom-nav a {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 8px;
  color: #475467;
  font-size: 11px;
  font-weight: 900;
}
.bottom-nav svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bottom-nav a.active {
  background: #e7efff;
  color: #1d4ed8;
}
.bottom-nav a.active svg { filter: drop-shadow(0 4px 8px rgba(37,99,235,.22)); }
@media (max-width: 900px) {
  .shell { padding: 10px 10px 96px; }
  .topbar { grid-template-columns: 1fr auto; align-items: center; }
  .brand-logo { width: 174px; max-width: 56vw; height: 58px; }
  .auth-logo { width: min(300px, 94%); height: 166px; }
  .account { justify-content: space-between; }
  .account .ghost { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 24px; }
  .hero h1 { font-size: 38px; }
  .match-grid, .dashboard-split, .profile-grid, .news-grid { grid-template-columns: 1fr; }
  .scoreline span { font-size: 30px; }
  .scoreline.giant span { font-size: 52px; }
  .form-grid, .guess-form, .comment-form { grid-template-columns: 1fr; }
  .admin-grid, .groups-grid, .plans-grid, .group-form, .member-form { grid-template-columns: 1fr; }
  .rank-row, .rank-row.large { grid-template-columns: 38px 1fr; }
  .rank-row em { grid-column: 2; }
  .bottom-nav {
    bottom: 10px;
    width: calc(100% - 16px);
    padding: 7px;
  }
  .bottom-nav a { font-size: 10px; padding: 7px 3px; }
  .bottom-nav svg { width: 21px; height: 21px; }
}
