/* ============================================================
   Bolão Copa 2026 — Identidade Visual Voluy Fibra  v3
   #ff5600 laranja · #363636 cinza-escuro · #ffffff branco
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variáveis ───────────────────────────────────────────── */
:root {
  --orange:        #ff5600;
  --orange-dark:   #d94800;
  --orange-bg:     rgba(255,86,0,.08);
  --dark:          #363636;
  --dark-soft:     #4a4a4a;
  --surface:       #ffffff;
  --bg:            #f2f2f2;
  --border:        #e0e0e0;
  --muted:         #888888;
  --text:          #2a2a2a;

  /* Bootstrap overrides */
  --bs-primary:       #ff5600;
  --bs-primary-rgb:   255,86,0;
  --bs-link-color:    #ff5600;
  --bs-link-hover-color: #d94800;
  --bs-body-bg:       #f2f2f2;
  --bs-body-color:    #2a2a2a;
  --bs-border-color:  #e0e0e0;
}

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

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
}

a { color: var(--orange); }
a:hover { color: var(--orange-dark); }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  background: var(--dark) !important;
  padding: .55rem 0;
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}

.navbar-logo { height: 34px; width: auto; }

.navbar-nav .nav-link {
  color: rgba(255,255,255,.78) !important;
  font-weight: 500;
  font-size: .9rem;
  padding: .45rem .9rem !important;
  border-radius: 6px;
  transition: color .15s, background .15s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255,86,0,.2);
}

.navbar-toggler { border-color: rgba(255,255,255,.25); }
.navbar-toggler-icon { filter: invert(1); }

.dropdown-menu {
  background: var(--dark);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
  min-width: 180px;
}

.dropdown-item {
  color: rgba(255,255,255,.78);
  font-weight: 500;
  border-radius: 6px;
  padding: .42rem 1rem;
}

.dropdown-item:hover { background: var(--orange); color: #fff; }

.badge-role {
  font-size: .6rem;
  padding: 2px 7px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ── Botões ─────────────────────────────────────────────── */
.btn {
  border-radius: 8px;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .01em;
  transition: all .16s ease;
}

.btn-lg { font-size: 1rem; padding: .6rem 1.6rem; }
.btn-sm { font-size: .8rem; padding: .28rem .8rem; }

/* Primary → laranja */
.btn-primary, .btn-success {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
}

.btn-primary:hover, .btn-success:hover,
.btn-primary:focus, .btn-success:focus {
  background: var(--orange-dark) !important;
  border-color: var(--orange-dark) !important;
  color: #fff !important;
}

/* Secondary → cinza escuro */
.btn-secondary {
  background: var(--dark) !important;
  border-color: var(--dark) !important;
  color: #fff !important;
}

.btn-secondary:hover {
  background: var(--dark-soft) !important;
  border-color: var(--dark-soft) !important;
}

/* Outline variants */
.btn-outline-primary, .btn-outline-success {
  border-color: var(--orange) !important;
  color: var(--orange) !important;
  background: transparent !important;
}

.btn-outline-primary:hover, .btn-outline-success:hover {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
}

/* btn-check (radio/checkbox visualmente como botão) — estado selecionado */
.btn-check:checked + .btn-outline-primary,
.btn-check:checked + .btn-outline-success {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(255,86,0,.25);
}

.btn-check:focus + .btn-outline-primary,
.btn-check:focus + .btn-outline-success {
  box-shadow: 0 0 0 3px rgba(255,86,0,.25);
}

.btn-outline-secondary {
  border-color: var(--border) !important;
  color: var(--dark) !important;
  background: var(--surface) !important;
}

.btn-outline-secondary:hover {
  background: var(--dark) !important;
  border-color: var(--dark) !important;
  color: #fff !important;
}

.btn-outline-danger { border-color: #dc3545; color: #dc3545; }
.btn-outline-danger:hover { background: #dc3545; color: #fff; }

.btn-outline-info { border-color: #0dcaf0; color: #0dcaf0; }
.btn-outline-info:hover { background: #0dcaf0; color: var(--dark); }

/* ── Badges ─────────────────────────────────────────────── */
.badge.bg-primary,
.badge.bg-success  { background: var(--orange) !important; }
.badge.bg-secondary { background: var(--dark) !important; }
.badge.bg-warning  { background: #ffc107 !important; color: var(--dark) !important; }

/* ── Forms ──────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: 8px;
  border-color: var(--border);
  font-family: 'Outfit', sans-serif;
  background: var(--surface);
}

.form-control:focus, .form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,86,0,.18);
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  background: var(--surface);
  transition: box-shadow .2s;
}

.card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); }

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  padding: .8rem 1.1rem;
}

.card-header.dark {
  background: var(--dark);
  color: #fff;
  border-bottom: none;
}

/* ── Tables ─────────────────────────────────────────────── */
.table th {
  font-weight: 700;
  font-size: .77rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  border-bottom-width: 1px;
}

.table-hover tbody tr:hover { background: var(--orange-bg); }

.table-dark-head thead th {
  background: var(--dark);
  color: rgba(255,255,255,.85);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Alerts ─────────────────────────────────────────────── */
.alert-success  { background: #f6fff9; border-color: #b8f0cd; color: #1a6e38; }
.alert-danger   { background: #fff5f5; border-color: #ffc3c3; color: #8b1a1a; }
.alert-warning  { background: #fffbf0; border-color: #ffe082; color: #7a5800; }
.alert-info     { background: #f0f8ff; border-color: #b8dcf8; color: #1a4a7a; }

/* ── Hero ───────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 60%, #2a1500 100%);
  border-radius: 1rem;
  padding: 3.5rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,86,0,.28) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,86,0,.16) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section h1, .hero-section p { color: #fff !important; }

.hero-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* ── Homepage focus panels ─────────────────────────────── */
.home-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.home-panel-header {
  background: var(--dark);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  border-bottom: 3px solid var(--orange);
}

.home-panel-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.home-group-heading {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .12rem;
}

.home-group-heading a {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
}

.home-group-heading a:hover {
  color: var(--orange);
}

.home-group-header-arrow {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .78rem;
  transition: all .2s ease;
}

.home-group-header-arrow:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.home-kicker {
  color: rgba(255,255,255,.58);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-groups-carousel,
.home-groups-carousel .carousel-inner,
.home-groups-carousel .carousel-item.active {
  height: 100%;
}

.home-group-focus {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: .95rem;
  padding: 1rem;
}

.home-group-switcher {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: .7rem;
  padding: .85rem;
  border: 1px solid rgba(255, 86, 0, .2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 86, 0, .1), #fff 55%);
}

.home-group-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 86, 0, .28);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--orange);
  transition: all .2s ease;
}

.home-group-arrow:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-1px);
}

.home-group-arrow-placeholder {
  border-color: transparent;
  background: transparent;
}

.home-group-title {
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.home-group-title:hover {
  color: var(--orange);
}

.home-group-meta {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
  text-align: center;
}

.home-ranking {
  margin-top: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.home-ranking-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem .95rem;
  color: var(--text);
  font-weight: 800;
  background: #f7f7f7;
}

.home-ranking-title a {
  color: var(--orange);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.home-ranking-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: .65rem;
  padding: .72rem .95rem;
  border-top: 1px solid var(--border);
}

.home-ranking-position {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 86, 0, .12);
  color: var(--orange);
  font-size: .78rem;
  font-weight: 900;
}

.home-ranking-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.home-empty {
  color: var(--muted);
  padding: 2rem 1rem;
  text-align: center;
  font-weight: 600;
}

.home-empty-compact {
  margin: 1rem;
  padding: 1rem;
}

/* ── Group management ───────────────────────────────────── */
.group-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--dark), #242424);
  color: #fff;
  border-bottom: 4px solid var(--orange);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.group-admin-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.group-admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

.approval-count {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

.approval-list,
.member-admin-grid {
  display: grid;
  gap: .8rem;
}

.approval-card,
.member-admin-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: .85rem;
  padding: .9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.approval-avatar {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 86, 0, .12);
  color: var(--orange);
  font-weight: 900;
}

.approval-info,
.member-admin-info {
  min-width: 0;
  display: grid;
  gap: .1rem;
}

.approval-info span,
.member-admin-info span,
.approval-info small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-actions {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.invite-copy-box {
  display: flex;
  gap: .45rem;
}

.invite-copy-box input {
  font-weight: 700;
}

.group-info-grid {
  display: grid;
  grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr);
  gap: 1rem;
}

.group-info-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.group-info-card strong {
  display: block;
  color: var(--orange);
  font-size: 2rem;
  line-height: 1;
}

.group-info-card small {
  color: var(--muted);
  font-weight: 700;
}

.invite-page {
  max-width: 620px;
}

.invite-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(255, 86, 0, .12);
  color: var(--orange);
  font-size: 2rem;
}

.home-match-grid {
  display: grid;
}

.home-match-row {
  display: grid;
  grid-template-columns: minmax(96px, .7fr) minmax(0, 1.6fr) minmax(112px, .7fr);
  align-items: center;
  gap: .75rem;
  padding: .78rem 1rem;
  border-bottom: 1px solid var(--border);
}

.home-match-row:last-child {
  border-bottom: none;
}

.home-match-stage {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.home-match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
}

.home-match-team {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.15;
}

.home-match-team-a {
  justify-content: flex-end;
  text-align: right;
}

.home-match-team-b {
  justify-content: flex-start;
  text-align: left;
}

.home-match-team img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  flex-shrink: 0;
}

.home-match-vs {
  color: var(--orange);
  font-weight: 900;
}

.home-match-date {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  text-align: right;
}

/* ── Section title ──────────────────────────────────────── */
.section-title {
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--orange);
  margin-bottom: 1.25rem;
}

.section-title .accent { color: var(--orange); }

/* ── Status pills ───────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.status-pill.scheduled { background: rgba(255,86,0,.12); color: var(--orange-dark); }
.status-pill.live      { background: #fdecea; color: #c62828; animation: pulse-live 1.4s infinite; }
.status-pill.finished  { background: #ececec; color: var(--muted); }

@keyframes pulse-live {
  0%,100% { opacity: 1; }
  50%      { opacity: .55; }
}

/* ── Scoring cards (homepage) ───────────────────────────── */
.scoring-section {
  background: var(--dark);
  border-radius: 12px;
  padding: 2rem;
  color: #fff;
  margin-top: 2rem;
}

.scoring-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  transition: background .2s;
}

.scoring-card:hover { background: rgba(255,255,255,.13); }

.scoring-pts { font-size: 2rem; font-weight: 900; line-height: 1; margin-bottom: .3rem; }
.scoring-pts.positive { color: #5edb8a; }
.scoring-pts.negative { color: #ff7070; }

/* ── Group cards (Copa standings) ───────────────────────── */
.group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  transition: box-shadow .2s;
}

.group-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); }

.group-header {
  background: var(--dark);
  color: #fff;
  padding: .55rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.group-letter {
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: .82rem;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.group-header-title {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .9;
}

.group-table { width: 100%; border-collapse: collapse; font-size: .8rem; }

.group-table th {
  background: #f5f5f5;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.group-table th.team-col { text-align: left; }

.group-table td {
  padding: 7px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.group-table td.team-col { text-align: left; }
.group-table tr:last-child td { border-bottom: none; }
.group-table tbody tr:hover { background: var(--orange-bg); }

/* Top 2 rows → qualifying indicator */
.group-table tbody tr:nth-child(1) td,
.group-table tbody tr:nth-child(2) td { border-left: 3px solid var(--orange); }

.group-table tbody tr:nth-child(1) .team-rank,
.group-table tbody tr:nth-child(2) .team-rank {
  background: var(--orange);
  color: #fff;
}

.team-name-cell {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 500;
}

.team-rank {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #ebebeb;
  color: var(--muted);
  font-size: .63rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  flex-shrink: 0;
}

.team-flag {
  width: 22px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  margin-right: 6px;
  flex-shrink: 0;
}

.team-flag-placeholder {
  width: 22px; height: 14px;
  background: var(--border);
  border-radius: 2px;
  margin-right: 6px;
  display: inline-block;
  flex-shrink: 0;
}

.pts-col { font-weight: 800; color: var(--dark); }

/* ── Match cards ────────────────────────────────────────── */
.match-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  transition: box-shadow .2s;
}

.match-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

.match-card.status-live {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220,53,69,.18);
}

.match-card-header {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 7px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .73rem;
  font-weight: 500;
}

.match-score-badge {
  background: var(--dark);
  color: #fff;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .95rem;
  letter-spacing: .05em;
}

/* ── Prediction screen ──────────────────────────────────── */
.prediction-tabs {
  gap: .5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .75rem;
}

.prediction-tabs .nav-link {
  color: var(--dark);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  font-weight: 700;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .85rem;
}

.prediction-tabs .nav-link.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,86,0,.22);
}

.prediction-tabs .badge {
  background: rgba(255,86,0,.14);
  color: var(--orange);
  border-radius: 999px;
  min-width: 24px;
}

.prediction-tabs .nav-link.active .badge {
  background: #fff;
  color: var(--orange);
}

.prediction-match-card {
  min-height: 245px;
}

.prediction-stage {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prediction-card-body {
  padding: 1rem;
  text-align: center;
}

.prediction-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  min-height: 58px;
}

.prediction-team {
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .45rem;
}

.prediction-team-home {
  justify-content: flex-end;
  text-align: right;
}

.prediction-team-away {
  justify-content: flex-start;
  text-align: left;
}

.prediction-team-flag {
  width: 34px;
  height: 24px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
  background: #f7f7f7;
}

.prediction-team-flag.placeholder {
  display: inline-block;
  background: var(--border);
}

.prediction-team-name {
  min-width: 0;
  color: var(--text);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.prediction-versus {
  color: var(--dark-soft);
  font-size: 1rem;
  font-weight: 900;
  line-height: 24px;
  padding-top: 2px;
}

.prediction-score {
  align-self: start;
  margin-top: 1px;
  white-space: nowrap;
}

.prediction-match-date {
  color: var(--muted);
  font-size: .78rem;
  margin: .55rem 0 1rem;
}

.prediction-current {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem;
  min-height: 28px;
  margin-bottom: .55rem;
}

.prediction-empty-state {
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 160px;
  font-weight: 600;
}

.prediction-empty-state i {
  color: var(--orange);
  font-size: 1.4rem;
}

/* ── Prediction pts badge ───────────────────────────────── */
.pts-badge {
  font-weight: 700;
  font-size: .8rem;
  padding: 2px 10px;
  border-radius: 20px;
}

.pts-positive { background: #e8f8ee; color: #1a6e38; }
.pts-negative { background: #ffeaea; color: #8b1a1a; }
.pts-zero     { background: #ececec; color: var(--muted); }

/* ── Score input ────────────────────────────────────────── */
.score-input {
  width: 58px !important;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  border: 2px solid var(--border);
  padding: 6px 4px;
  transition: border-color .2s;
}

.score-input:focus {
  border-color: var(--orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,86,0,.15);
}

/* ── Ranking table ──────────────────────────────────────── */
.ranking-pos-1 { background: linear-gradient(90deg, rgba(255,86,0,.1) 0%, transparent 100%); }
.ranking-pos-2 { background: linear-gradient(90deg, rgba(54,54,54,.06) 0%, transparent 100%); }
.ranking-pos-3 { background: linear-gradient(90deg, rgba(205,127,50,.07) 0%, transparent 100%); }
.rank-medal { font-size: 1.2rem; }

/* ── Knockout bracket ───────────────────────────────────── */
.bracket-round-title {
  background: var(--dark);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
  margin-bottom: .75rem;
}

.bracket-match {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: .6rem;
  transition: box-shadow .2s;
}

.bracket-match:hover { box-shadow: 0 3px 12px rgba(0,0,0,.1); }

.bracket-match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: .82rem;
  font-weight: 500;
}

.bracket-match-team:first-child {
  border-bottom: 1px solid var(--border);
}

.bracket-match-team.winner {
  font-weight: 700;
  background: var(--orange-bg);
}

.bracket-score {
  margin-left: auto;
  font-weight: 800;
  font-size: .85rem;
  color: var(--dark);
  min-width: 20px;
  text-align: right;
}

.bracket-match-date {
  font-size: .68rem;
  color: var(--muted);
  padding: 3px 10px;
  background: #f7f7f7;
  border-top: 1px solid var(--border);
}

.bracket-tbd {
  color: var(--muted);
  font-style: italic;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.45);
  font-size: .82rem;
  margin-top: 4rem;
  padding: 1.4rem 0;
  border-top: 3px solid var(--orange);
}

footer a { color: var(--orange); }
footer .footer-logo { height: 28px; opacity: .8; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { padding: 2rem 1.2rem; }
  .home-match-row { grid-template-columns: 1fr; gap: .4rem; }
  .home-match-stage, .home-match-date { text-align: center; }
  .group-table td, .group-table th { padding: 5px 4px; font-size: .72rem; }
  .team-name-cell span.name { max-width: 72px; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
  .bracket-match-team { font-size: .76rem; padding: 6px 8px; }
  .prediction-tabs .nav-link { width: 100%; justify-content: center; }
  .prediction-tabs .nav-item { flex: 1 1 100%; }
  .prediction-team-flag { width: 38px; height: 27px; }
  .prediction-team-name { font-size: .86rem; }
  .group-admin-hero { align-items: stretch; flex-direction: column; }
  .approval-card,
  .member-admin-card { grid-template-columns: 44px 1fr; }
  .approval-actions,
  .member-admin-card form { grid-column: 1 / -1; justify-content: stretch; }
  .approval-actions form,
  .approval-actions button { width: 100%; }
  .group-info-grid { grid-template-columns: 1fr; }
  .invite-copy-box { flex-direction: column; }
}
