@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Barlow+Condensed:wght@500;600;700;800&display=swap');

:root {
  /* Dark pitch base */
  --bg: #0a100d;
  --bg-2: #0d1512;
  --surface: #121b17;
  --surface-2: #17221c;
  --surface-3: #1d2a23;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.14);

  /* Football greens */
  --grass: #2fbf5b;
  --grass-2: #22a34a;
  --grass-deep: #17803a;
  --grass-glow: rgba(47,191,91,.28);

  /* German flag accents */
  --gold: #f5c518;
  --gold-2: #ffd84a;
  --red: #e23b2e;
  --black: #0b0f0d;

  --ink: #e9f2ec;
  --ink-2: #c2d1c8;
  --muted: #7d9188;
  --muted-2: #5f7268;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.55);
  --radius: 16px;
  --radius-sm: 11px;
  --sidebar-w: 268px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Barlow Condensed', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 78% -8%, rgba(47,191,91,.10), transparent 60%),
    radial-gradient(900px 500px at 8% 108%, rgba(245,197,24,.05), transparent 55%);
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
.ic-svg { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }

/* ---------------- LAYOUT ---------------- */
.app { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0e1613 0%, #0a100d 100%);
  position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column; z-index: 40;
  border-right: 1px solid var(--line);
}
.sidebar::before { /* German tricolor spine */
  content: ''; position: absolute; top: 0; bottom: 0; right: -1px; width: 3px;
  background: linear-gradient(180deg, #111 0 33%, var(--red) 33% 66%, var(--gold) 66%);
  opacity: .55;
}
.brand { display: flex; align-items: center; gap: 13px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.brand .crest-box { width: 46px; height: 54px; flex: none; position: relative; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.brand .crest-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.brand .crest-svg { width: 100%; height: 100%; }
.brand h1 { font-family: var(--display); font-size: 21px; line-height: .95; font-weight: 800; letter-spacing: .5px; color: #fff; }
.brand span { font-size: 10px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }

.nav { padding: 12px 12px; flex: 1; overflow-y: auto; }
.nav-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted-2); padding: 14px 12px 6px; font-weight: 700; }
.nav-item {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 11px; color: var(--ink-2); font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s; position: relative;
}
.nav-item .ic-svg { color: var(--muted); transition: color .15s; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item:hover .ic-svg { color: var(--grass); }
.nav-item.active { background: linear-gradient(135deg, rgba(47,191,91,.16), rgba(47,191,91,.06)); color: #fff; box-shadow: inset 0 0 0 1px rgba(47,191,91,.25); }
.nav-item.active .ic-svg { color: var(--grass); }
.nav-item.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grass); }

.sidebar-foot { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted-2); }
.sidebar-foot a { color: var(--muted); text-decoration: none; }
.sidebar-foot a:hover { color: var(--grass); }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10,16,13,.82); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 13px 30px;
}
.topbar h2 { font-family: var(--display); font-size: 25px; font-weight: 800; letter-spacing: .4px; color: #fff; }
.topbar .spacer { flex: 1; }

/* Segmented toggles */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .15s; white-space: nowrap; }
.seg button .ic-svg { width: 16px; height: 16px; }
.seg button:hover { color: var(--ink-2); }
.seg button.on { background: linear-gradient(135deg, var(--grass-2), var(--grass-deep)); color: #fff; box-shadow: 0 2px 8px var(--grass-glow); }
.seg.role button.on.admin { background: linear-gradient(135deg, #2a2a2a, var(--black)); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(245,197,24,.3); }

.content { padding: 26px 30px 60px; max-width: 1200px; }

/* ---------------- COMPONENTS ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.section-title { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: .4px; color: #fff; margin: 6px 0 16px; display: flex; align-items: center; gap: 12px; }
.section-title .rule { flex: 1; height: 1px; background: var(--line); }

/* Hero */
.hero {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background:
    linear-gradient(135deg, #10201a 0%, #0c1712 60%),
    var(--surface);
  border: 1px solid var(--line);
  padding: 34px 34px; margin-bottom: 22px; box-shadow: var(--shadow-md);
}
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 88% 12%, var(--grass-glow), transparent 45%); pointer-events: none; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #111 0 33%, var(--red) 33% 66%, var(--gold) 66%); }
.hero .eyebrow { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-2); font-weight: 700; position: relative; }
.hero h1 { font-family: var(--display); font-size: 46px; line-height: .98; font-weight: 800; margin: 10px 0 8px; letter-spacing: .5px; color: #fff; position: relative; }
.hero p { color: var(--ink-2); max-width: 580px; position: relative; }
.hero .meta { display: flex; gap: 30px; margin-top: 22px; position: relative; flex-wrap: wrap; }
.hero .meta div span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; }
.hero .meta div strong { font-family: var(--display); font-size: 21px; font-weight: 700; color: #fff; }

/* Stadium photo hero */
.hero-stadium { padding: 0; min-height: 340px; display: flex; align-items: flex-end; }
.hero-stadium .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-stadium::before { /* legibility overlay over the photo */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,11,9,.95) 0%, rgba(6,11,9,.80) 40%, rgba(6,11,9,.30) 100%),
    linear-gradient(0deg, rgba(6,11,9,.90) 0%, rgba(6,11,9,.15) 55%, transparent 100%);
}
.hero-stadium::after { z-index: 3; }
.hero-stadium .hero-content { position: relative; z-index: 2; padding: 34px 34px 30px; width: 100%; }
.hero-stadium .hero-content .meta div span { color: #b9cabf; }
.hero-edit { margin-top: 20px; backdrop-filter: blur(4px); }

/* Stat pills */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { padding: 18px; position: relative; overflow: hidden; }
.stat .ic-svg { width: 22px; height: 22px; color: var(--grass); }
.stat .n { font-family: var(--display); font-size: 36px; font-weight: 800; color: #fff; line-height: 1; margin-top: 8px; }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Teams grid */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
.team-card { padding: 20px 14px; display: flex; flex-direction: column; align-items: center; gap: 11px; text-align: center; transition: transform .15s, box-shadow .15s, border-color .15s; cursor: pointer; }
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(47,191,91,.4); }
.logo-wrap { width: 68px; height: 68px; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 8px; box-shadow: var(--shadow-sm); flex: none; }
.logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.team-card .tn { font-weight: 700; font-size: 14px; color: #fff; }
.team-card .tp { font-size: 12px; color: var(--muted); }

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.standings { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 14px; min-width: 560px; }
table.standings thead th { background: var(--surface-3); color: var(--ink-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; padding: 12px 8px; text-align: center; font-weight: 700; }
table.standings thead th.left { text-align: left; padding-left: 16px; }
table.standings tbody td { padding: 12px 8px; text-align: center; border-bottom: 1px solid var(--line); color: var(--ink-2); }
table.standings tbody tr:last-child td { border-bottom: none; }
table.standings tbody tr:hover td { background: rgba(255,255,255,.02); }
table.standings td.team { text-align: left; }
.team-cell { display: flex; align-items: center; gap: 11px; padding-left: 8px; }
.team-cell .logo-sm { width: 30px; height: 30px; border-radius: 8px; background: #fff; padding: 3px; flex: none; }
.team-cell .logo-sm img { width: 100%; height: 100%; object-fit: contain; }
.team-cell .pos { width: 24px; height: 24px; border-radius: 7px; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.team-cell strong { font-size: 14px; color: #fff; }
table.standings tbody tr.q-champ td { background: linear-gradient(90deg, rgba(47,191,91,.10), transparent); }
table.standings tbody tr.q-champ .pos { background: var(--grass-deep); color: #fff; }
table.standings tbody tr.q-semi .pos { background: var(--gold); color: var(--black); }
td.pts { font-weight: 800; color: #fff; font-size: 15px; }
.dg-pos { color: var(--grass); font-weight: 600; }
.dg-neg { color: var(--red); font-weight: 600; }
.qual-legend { display: flex; gap: 20px; margin-top: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: middle; }

/* Matches */
.round-group { margin-bottom: 8px; }
.round-head { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; }
.round-head h3 { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.round-head h3 .ic-svg { width: 17px; height: 17px; color: var(--grass); }
.round-head .rule { flex: 1; height: 1px; background: var(--line); }
.match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; margin-bottom: 9px; transition: border-color .15s; }
.match:hover { border-color: var(--line-strong); }
.match .side { display: flex; align-items: center; gap: 11px; min-width: 0; }
.match .side.home { justify-content: flex-end; text-align: right; }
.match .side .logo-sm { width: 36px; height: 36px; border-radius: 9px; background: #fff; padding: 4px; flex: none; }
.match .side .logo-sm img { width: 100%; height: 100%; object-fit: contain; }
.match .side .nm { font-weight: 600; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .score { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; }
.match .score .box { min-width: 38px; height: 40px; padding: 0 7px; border-radius: 10px; background: var(--surface-3); color: #fff; font-size: 21px; display: grid; place-items: center; border: 1px solid var(--line); }
.match .score.done .box { background: linear-gradient(135deg, #14231b, #0f1a14); border-color: rgba(47,191,91,.25); }
.match .score.pending .box { background: var(--surface-2); color: var(--muted); font-size: 15px; }
.match .score .vs { color: var(--muted-2); font-size: 11px; }
.match .win .nm { color: var(--grass); font-weight: 800; }
.match .edit-btn { grid-column: 1 / -1; margin-top: 10px; justify-self: center; }
.chip-wo { font-size: 10px; background: rgba(245,197,24,.15); color: var(--gold-2); border: 1px solid rgba(245,197,24,.3); padding: 2px 7px; border-radius: 20px; font-weight: 700; }

/* Rank lists */
.rank-list { display: flex; flex-direction: column; overflow: hidden; }
.rank-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: none; }
.rank-row .rk { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-3); color: var(--muted); font-family: var(--display); font-weight: 800; font-size: 15px; display: grid; place-items: center; flex: none; }
.rank-row .rk .ic-svg { width: 17px; height: 17px; }
.rank-row.top1 .rk { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--black); }
.rank-row.top2 .rk { background: #9fb3c8; color: var(--black); }
.rank-row.top3 .rk { background: #c67b3f; color: #fff; }
.rank-row .info { flex: 1; min-width: 0; }
.rank-row .info .nm { font-weight: 600; color: #fff; font-size: 14.5px; }
.rank-row .info .tm { font-size: 12.5px; color: var(--muted); }
.rank-row .val { font-family: var(--display); font-size: 23px; font-weight: 800; color: var(--grass); }
.rank-row .val small { font-size: 12px; color: var(--muted); font-family: var(--font); font-weight: 500; }
.empty-state { padding: 30px; text-align: center; color: var(--muted); }
.cards-badges { display: flex; gap: 7px; align-items: center; }
.cardico { width: 15px; height: 20px; border-radius: 3px; display: inline-block; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.cardico.y { background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.cardico.r { background: linear-gradient(135deg, #f04438, var(--red)); }
.count-badge { font-weight: 700; color: #fff; min-width: 20px; text-align: center; }
.susp-tag { font-size: 10px; background: rgba(226,59,46,.13); color: #f77; border: 1px solid rgba(226,59,46,.3); padding: 3px 9px; border-radius: 20px; font-weight: 600; }

/* Bracket */
.bracket { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 10px; max-width: 820px; }
.bracket .col { display: flex; flex-direction: column; gap: 24px; }
.bnode { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; box-shadow: var(--shadow-sm); }
.bnode .bhead { background: var(--surface-3); color: var(--ink-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; padding: 7px 13px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.bnode .bhead .ic-svg { width: 14px; height: 14px; }
.bnode.final { box-shadow: 0 0 0 1px rgba(245,197,24,.3), var(--shadow-md); }
.bnode.final .bhead { background: linear-gradient(135deg, var(--gold), #c99700); color: var(--black); }
.brow { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.brow:last-child { border-bottom: none; }
.brow .logo-sm { width: 28px; height: 28px; border-radius: 7px; background: #fff; padding: 3px; flex: none; }
.brow .logo-sm img { width: 100%; height: 100%; object-fit: contain; }
.brow .ph { width: 28px; height: 28px; border-radius: 7px; background: var(--surface-3); flex: none; }
.brow .nm { flex: 1; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.brow .nm.slot { color: var(--muted); font-weight: 500; font-style: italic; }
.brow .sc { font-family: var(--display); font-weight: 800; font-size: 18px; min-width: 26px; text-align: center; color: #fff; }
.brow.win { background: rgba(47,191,91,.08); }
.brow.win .nm { color: var(--grass); font-weight: 800; }
.champion-banner { grid-column: 1/-1; text-align: center; margin-top: 26px; padding: 24px; background: linear-gradient(135deg, #16130a, #0f1712); border: 1px solid rgba(245,197,24,.25); border-radius: var(--radius); }
.champion-banner .cup { color: var(--gold-2); }
.champion-banner .cup .ic-svg { width: 42px; height: 42px; }
.champion-banner .lbl { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-2); font-weight: 700; margin-top: 6px; }
.champion-banner .nm { font-family: var(--display); font-size: 34px; font-weight: 800; color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 11px; font-weight: 600; font-size: 13.5px; transition: all .15s; }
.btn .ic-svg { width: 17px; height: 17px; }
.btn-primary { background: linear-gradient(135deg, var(--grass), var(--grass-deep)); color: #fff; box-shadow: 0 4px 14px var(--grass-glow); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-navy { background: var(--surface-3); color: #fff; }
.btn-ghost { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-3); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-danger { background: rgba(226,59,46,.12); color: #f77; border: 1px solid rgba(226,59,46,.25); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--black); }

/* Admin banner */
.admin-banner { display: flex; align-items: center; gap: 13px; padding: 13px 18px; margin-bottom: 20px; background: linear-gradient(135deg, #1a1a12, #10120d); border: 1px solid rgba(245,197,24,.22); border-radius: 12px; }
.admin-banner .ico { color: var(--gold-2); }
.admin-banner .ico .ic-svg { width: 22px; height: 22px; }
.admin-banner .t { flex: 1; font-size: 13px; color: var(--ink-2); }
.admin-banner .t strong { display: block; font-size: 14px; color: #fff; }

/* Roster */
.roster-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.roster-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line-strong); }
.roster-table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.roster-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.roster-table .dorsal { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); border: 1px solid var(--line); color: #fff; font-family: var(--display); font-weight: 800; }
.roster-table strong { color: #fff; }
.roster-table .ced { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.roster-table .redacted { letter-spacing: 2px; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.66); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); width: 100%; max-width: 470px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.modal-head { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-family: var(--display); font-size: 21px; font-weight: 800; color: #fff; }
.modal-head .x { margin-left: auto; color: var(--muted); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.modal-head .x:hover { background: var(--surface-3); color: #fff; }
.modal-head .x .ic-svg { width: 18px; height: 18px; }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field select { width: 100%; padding: 11px 13px; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; color: var(--ink); transition: border .15s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--grass); box-shadow: 0 0 0 3px var(--grass-glow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.score-inputs { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 8px 0 6px; }
.score-inputs .col { flex: 1; text-align: center; }
.score-inputs .team-lbl { font-weight: 600; color: #fff; margin-bottom: 9px; font-size: 13.5px; }
.score-inputs input { width: 68px; height: 68px; text-align: center; font-family: var(--display); font-size: 30px; font-weight: 800; background: var(--bg-2); border: 2px solid var(--line); border-radius: 13px; color: #fff; }
.score-inputs .colon { font-family: var(--display); font-size: 26px; color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Admin actions */
.admin-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 24px; }
.action-card { padding: 18px; display: flex; gap: 13px; align-items: flex-start; text-align: left; transition: transform .15s, box-shadow .15s, border-color .15s; cursor: pointer; }
.action-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(47,191,91,.35); }
.action-card .ico { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, rgba(47,191,91,.16), rgba(47,191,91,.04)); display: grid; place-items: center; flex: none; }
.action-card .ico .ic-svg { color: var(--grass); width: 21px; height: 21px; }
.action-card .t strong { display: block; color: #fff; font-size: 14.5px; }
.action-card .t span { font-size: 12.5px; color: var(--muted); }

/* Toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--surface-3); border: 1px solid var(--line-strong); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 200; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; animation: toastIn .25s; }
.toast .ic-svg { width: 18px; height: 18px; color: var(--grass); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } }

.mobile-nav { display: none; }
.mobile-topbar { display: none; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 860px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding-bottom: 78px; }
  .topbar { display: none; }
  .mobile-topbar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: linear-gradient(180deg, #0e1613, #0b110e); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .mobile-topbar .crest-box { width: 30px; height: 36px; flex: none; position: relative; }
  .mobile-topbar .crest-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
  .mobile-topbar h1 { font-family: var(--display); font-size: 17px; font-weight: 800; line-height: 1; flex: 1; color: #fff; letter-spacing: .5px; }
  .mobile-topbar .m-toggles { display: flex; gap: 6px; }
  .mobile-topbar .mt { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 6px 10px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
  .mobile-topbar .mt .ic-svg { width: 14px; height: 14px; }
  .mobile-topbar .mt.on { background: linear-gradient(135deg, var(--grass-2), var(--grass-deep)); color: #fff; border-color: transparent; }
  .mobile-topbar .mt.on.admin { background: var(--black); color: var(--gold-2); border-color: rgba(245,197,24,.3); }

  .content { padding: 16px; }
  .hero { padding: 24px 20px; }
  .hero h1 { font-size: 33px; }
  .hero .meta { gap: 20px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .bracket { grid-template-columns: 1fr; gap: 20px; }

  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: rgba(11,17,14,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 7px 4px 9px; }
  .mobile-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px; color: var(--muted); font-size: 10px; font-weight: 600; }
  .mobile-nav button .ic-svg { width: 21px; height: 21px; }
  .mobile-nav button.active { color: var(--grass); }
  .modal { max-width: 100%; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 28px; }
  .match { padding: 13px 12px; gap: 8px; }
  .match .side .logo-sm { width: 30px; height: 30px; }
  .match .side .nm { font-size: 12.5px; }
}
