:root {
  --navy: #07152f;
  --navy-2: #0c2447;
  --navy-3: #15325c;
  --ink: #101828;
  --muted: #5b677a;
  --muted-2: #7e8a9c;
  --line: #e1e7ef;
  --line-soft: #edf1f6;
  --bg: #f3f5f1;
  --cream: #f7f8f4;
  --white: #ffffff;
  --lime: #c6f32b;
  --lime-soft: #efffc2;
  --lime-deep: #789c00;
  --green: #1f9d55;
  --red: #c2413b;
  --amber: #b77900;
  --shadow: 0 18px 50px rgba(7, 21, 47, 0.1);
  --shadow-soft: 0 8px 24px rgba(7, 21, 47, 0.07);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.08; }
.ui-icon { flex: 0 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker-lime { color: var(--lime-deep); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 14px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--lime); color: var(--navy); }
.btn-primary:hover { background: #d4ff45; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: #c8d1dc; background: #fff; }
.btn-danger { background: #fbe9e8; color: var(--red); }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted);
  transition: background 160ms ease, color 160ms ease;
}
.icon-btn:hover { background: var(--line-soft); color: var(--navy); }

/* Login */
.auth-page { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr); }
.auth-brand {
  position: relative;
  overflow: hidden;
  padding: 42px clamp(28px, 5vw, 72px) 36px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100svh;
}
.auth-brand::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px; border-radius: 50%;
  right: -220px; top: 10%;
  border: 1px solid rgba(198, 243, 43, 0.2);
  box-shadow: 0 0 0 80px rgba(198, 243, 43, 0.035), 0 0 0 160px rgba(198, 243, 43, 0.025);
}
.auth-brand::after {
  content: "";
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  left: -90px; bottom: 10%; background: rgba(198, 243, 43, 0.08); filter: blur(2px);
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-logo { width: 150px; height: auto; }
.auth-brand-copy { max-width: 510px; padding: 80px 0 50px; }
.auth-brand-copy .kicker { color: var(--lime); }
.auth-brand-copy h1 { margin-top: 16px; font-size: clamp(42px, 5vw, 72px); color: #fff; }
.auth-brand-copy h1 span { color: var(--lime); }
.auth-brand-copy p { margin-top: 22px; max-width: 420px; color: rgba(255,255,255,0.72); font-size: 17px; }
.auth-brand-foot { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.55); font-size: 12px; }
.auth-brand-foot span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--cream); }
.auth-card { width: min(440px, 100%); }
.auth-card .eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.auth-card h2 { font-size: clamp(34px, 4vw, 46px); color: var(--navy); }
.auth-card > p { margin-top: 14px; color: var(--muted); font-size: 15px; }
.auth-box { margin-top: 26px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.auth-box h3 { font-size: 18px; color: var(--navy); }
.auth-box p { margin-top: 8px; color: var(--muted); font-size: 13.5px; }
.auth-box .btn { margin-top: 18px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted-2); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.field { display: grid; gap: 7px; }
.field + .field { margin-top: 14px; }
.field label { font-size: 12px; font-weight: 750; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; background: #fff; color: var(--ink); outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(21, 50, 92, 0.09); }
.field-hint { color: var(--muted-2); font-size: 11.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-note { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--lime-soft); color: #3c4a14; font-size: 12.5px; }
.demo-note strong { display: block; margin-bottom: 3px; color: var(--navy); }
.auth-error { margin-top: 14px; padding: 11px 13px; border-radius: 10px; background: #fbe9e8; color: var(--red); font-size: 13px; }
.auth-user { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .04em; flex: 0 0 auto; }
.auth-user strong { display: block; color: var(--navy); font-size: 13.5px; }
.auth-user span { display: block; color: var(--muted); font-size: 12px; }

/* App shell */
.app-shell { min-height: 100svh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; height: 100svh; overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 28px 18px 18px;
  background: var(--navy);
  color: #fff;
}
.sidebar-logo { width: 128px; height: auto; margin: 0 10px 28px; }
.side-club { display: flex; gap: 11px; align-items: center; margin: 0 6px 28px; padding: 12px; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; background: rgba(255,255,255,0.04); }
.side-club .avatar { background: var(--lime); color: var(--navy); }
.side-club strong { display: block; font-size: 12.5px; line-height: 1.3; }
.side-club span { display: block; margin-top: 3px; color: rgba(255,255,255,0.5); font-size: 10.5px; }
.side-label { margin: 0 12px 8px; color: rgba(255,255,255,0.38); font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.side-nav { display: grid; gap: 3px; }
.side-nav button {
  display: flex; align-items: center; gap: 11px; width: 100%;
  min-height: 42px; padding: 0 12px; border-radius: 11px;
  color: rgba(255,255,255,0.68); text-align: left; font-size: 13px; font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}
.side-nav button:hover { background: rgba(255,255,255,0.07); color: #fff; }
.side-nav button.is-active { background: var(--lime); color: var(--navy); }
.side-nav button .ui-icon { opacity: .9; }
.side-bottom { margin-top: auto; padding-top: 26px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 6px; border-top: 1px solid rgba(255,255,255,0.1); }
.side-user .avatar { width: 34px; height: 34px; background: rgba(255,255,255,0.1); color: var(--lime); font-size: 10px; }
.side-user strong { display: block; font-size: 11.5px; }
.side-user span { display: block; color: rgba(255,255,255,0.45); font-size: 10px; }
.side-logout { display: flex; align-items: center; gap: 8px; margin: 8px 6px 0; color: rgba(255,255,255,0.5); font-size: 11.5px; }
.side-logout:hover { color: #fff; }
.app-main { min-width: 0; padding: 28px clamp(20px, 3.6vw, 48px) 50px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.mobile-brand { display: none; }
.mobile-brand img { width: 94px; }
.topbar-date { color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.user-chip .avatar { width: 29px; height: 29px; font-size: 9px; }
.user-chip strong { font-size: 11.5px; color: var(--navy); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.page-title { font-size: clamp(30px, 3.6vw, 48px); color: var(--navy); }
.page-sub { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 620px; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* Dashboard cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(7,21,47,0.02); }
.stat-card .stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.stat-card .stat-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--bg); color: var(--navy); }
.stat-card .stat-value { margin-top: 14px; font-size: 30px; font-weight: 800; letter-spacing: -.045em; color: var(--navy); line-height: 1; }
.stat-card .stat-note { margin-top: 8px; color: var(--muted); font-size: 11.5px; }
.stat-card.accent { background: var(--lime); border-color: var(--lime); }
.stat-card.accent .stat-top, .stat-card.accent .stat-note { color: rgba(7,21,47,0.62); }
.stat-card.accent .stat-value { color: var(--navy); }
.stat-card.accent .stat-icon { background: rgba(7,21,47,0.1); color: var(--navy); }
.hero-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(230px, .7fr); gap: 24px;
  padding: 28px; margin-bottom: 20px;
  background: var(--navy); color: #fff; border-radius: var(--radius);
}
.hero-card::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; right: -100px; bottom: -180px; border: 1px solid rgba(198,243,43,.18); box-shadow: 0 0 0 45px rgba(198,243,43,.03); }
.hero-card > * { position: relative; z-index: 1; }
.hero-card .kicker { color: var(--lime); }
.hero-card h2 { margin-top: 10px; font-size: clamp(28px, 3.2vw, 42px); color: #fff; }
.hero-card p { margin-top: 10px; color: rgba(255,255,255,0.66); font-size: 13.5px; max-width: 520px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); font-size: 11.5px; }
.hero-pill.live { background: var(--lime); color: var(--navy); font-weight: 800; }
.score-mini { align-self: center; padding: 18px; border: 1px solid rgba(255,255,255,0.14); border-radius: 18px; background: rgba(255,255,255,0.055); }
.score-mini .score-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.72); }
.score-mini .score-num { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -.05em; }
.score-mini .score-num span { font-size: 16px; color: rgba(255,255,255,0.35); font-weight: 500; }
.score-mini .score-note { margin-top: 8px; color: rgba(255,255,255,0.48); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 19px 14px; border-bottom: 1px solid var(--line-soft); }
.panel-head h3 { font-size: 15px; color: var(--navy); }
.panel-head .panel-link { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.panel-head .panel-link:hover { color: var(--navy); }
.panel-body { padding: 16px 19px 19px; }
.panel-body.flush { padding: 0; }
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 540px; }
.table th { padding: 10px 18px; text-align: left; color: var(--muted-2); font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: #fbfcfa; white-space: nowrap; }
.table td { padding: 13px 18px; border-top: 1px solid var(--line-soft); font-size: 12.5px; vertical-align: middle; }
.table tr:hover td { background: #fcfdf9; }
.table .cell-strong { color: var(--navy); font-weight: 750; }
.table .cell-sub { margin-top: 2px; color: var(--muted); font-size: 11px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-open { background: #fff6df; color: var(--amber); }
.badge-paid { background: #e9f7ee; color: var(--green); }
.badge-overdue { background: #fbe9e8; color: var(--red); }
.badge-confirmed { background: #e9f7ee; color: var(--green); }
.badge-pending { background: #fff6df; color: var(--amber); }
.badge-cancelled { background: #f1f2f4; color: var(--muted); }
.badge-new { background: var(--lime-soft); color: #5a7200; }
.badge-contacted { background: #e8f0ff; color: #2b5da8; }
.badge-demo { background: #f0e9ff; color: #6b46a8; }
.badge-won { background: #e9f7ee; color: var(--green); }
.badge-lost { background: #f1f2f4; color: var(--muted); }
.badge-live { background: var(--lime); color: var(--navy); }
.badge-scheduled { background: #e8f0ff; color: #2b5da8; }
.badge-finished { background: #f1f2f4; color: var(--muted); }
.badge-active { background: #e9f7ee; color: var(--green); }
.badge-pilot { background: var(--lime-soft); color: #5a7200; }
.badge-paused { background: #f1f2f4; color: var(--muted); }
.status-select {
  max-width: 132px;
  min-height: 30px;
  padding: 4px 26px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 700;
}
.code-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 7px;
  background: var(--bg);
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .03em;
}
.code-chip:hover { background: var(--lime-soft); }
.list { display: grid; gap: 0; }
.list-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.list-item:first-child { padding-top: 0; }
.list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--navy); flex: 0 0 auto; }
.list-item strong { display: block; color: var(--navy); font-size: 12.5px; }
.list-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.list-item .list-end { margin-left: auto; text-align: right; flex: 0 0 auto; }
.list-item .list-end strong { font-size: 12.5px; }
.list-item .list-end span { font-size: 10.5px; }
.booking-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.booking-item:last-child { border-bottom: 0; }
.booking-date { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; line-height: 1; }
.booking-date strong { font-size: 17px; color: var(--lime); }
.booking-date span { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); }
.booking-item strong { display: block; color: var(--navy); font-size: 12.5px; }
.booking-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.team-card { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.team-card .team-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.team-card .team-top strong { color: var(--navy); font-size: 18px; }
.team-card .team-top span { color: var(--muted); font-size: 10.5px; }
.team-card p { margin-top: 7px; color: var(--muted); font-size: 11.5px; }
.team-card .players { margin-top: 12px; display: flex; align-items: center; gap: 6px; color: var(--navy); font-size: 11px; font-weight: 750; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 13px; }
.empty strong { display: block; color: var(--navy); font-size: 14px; margin-bottom: 4px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 10.5px; font-weight: 700; }
.pill.lime { background: var(--lime-soft); color: #526700; }
.pill.navy { background: var(--navy); color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 14px; }
.section-head h2 { font-size: 22px; color: var(--navy); }
.section-head p { color: var(--muted); font-size: 12.5px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.filter-btn { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 11px; font-weight: 750; }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.invoice-line { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line-soft); text-align: left; }
.invoice-line:last-child { border-bottom: 0; }
.invoice-line .invoice-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--navy); flex: 0 0 auto; }
.invoice-line .invoice-main { min-width: 0; flex: 1; }
.invoice-line strong { display: block; color: var(--navy); font-size: 12.5px; }
.invoice-line span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.invoice-line .invoice-end { text-align: right; flex: 0 0 auto; }
.invoice-line .invoice-end strong { font-size: 13px; }
.invoice-line .invoice-end .badge { margin-top: 5px; }
.invoice-total { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0 0; border-top: 1px solid var(--line); margin-top: 8px; color: var(--navy); font-weight: 800; }

/* Modals and forms */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(7,21,47,.52); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 160ms ease-out; }
.modal-card { width: min(560px, 100%); max-height: min(88svh, 800px); overflow: auto; border-radius: 22px; background: var(--cream); box-shadow: 0 30px 90px rgba(7,21,47,.25); animation: modalIn 180ms ease-out; }
.modal-wide { width: min(820px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 2; }
.modal-head h2 { margin-top: 6px; font-size: 24px; color: var(--navy); }
.modal-body { padding: 20px 22px; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding: 15px 22px 20px; border-top: 1px solid var(--line); background: #fff; position: sticky; bottom: 0; }
.modal-close { position: absolute; right: 16px; top: 16px; }
.invoice-doc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.invoice-doc-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--navy); padding-bottom: 14px; }
.invoice-doc-head img { width: 104px; }
.invoice-doc-head strong { display: block; font-size: 18px; color: var(--navy); text-align: right; }
.invoice-doc-head span { display: block; color: var(--muted); font-size: 11px; text-align: right; margin-top: 3px; }
.invoice-doc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px 0; }
.invoice-doc-meta p { margin: 0; color: var(--muted); font-size: 11px; }
.invoice-doc-meta strong { display: block; margin-top: 3px; color: var(--navy); font-size: 12.5px; }
.invoice-doc-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.invoice-doc-table td { padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 12px; }
.invoice-doc-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.invoice-doc-total { display: flex; justify-content: space-between; padding-top: 14px; margin-top: 6px; border-top: 2px solid var(--navy); color: var(--navy); font-weight: 800; }
.invoice-doc-foot { margin-top: 22px; color: var(--muted); font-size: 10.5px; }
.print-only { display: none; }
.toast-host { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: grid; gap: 8px; max-width: min(360px, calc(100vw - 36px)); }
.toast { padding: 12px 15px; border-radius: 12px; background: var(--navy); color: #fff; box-shadow: var(--shadow); font-size: 12.5px; opacity: 0; transform: translateY(8px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast-success { border-left: 4px solid var(--lime); }
.toast-error { border-left: 4px solid #ff7a70; }
.toast-info { border-left: 4px solid #7eb6ff; }

/* Live page */
.live-page { background: var(--navy); color: #fff; min-height: 100svh; }
.live-nav { max-width: 1180px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.live-nav img { width: 128px; }
.live-nav-links { display: flex; align-items: center; gap: 20px; color: rgba(255,255,255,.64); font-size: 12px; }
.live-nav-links a:hover { color: var(--lime); }
.live-shell { max-width: 1180px; margin: 0 auto; padding: 30px 24px 60px; }
.live-hero { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr); gap: 22px; align-items: stretch; }
.live-main { min-width: 0; }
.live-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.live-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(198,243,43,.12); }
.live-title { margin-top: 14px; font-size: clamp(38px, 5vw, 64px); color: #fff; }
.live-title span { color: var(--lime); }
.live-sub { margin-top: 12px; color: rgba(255,255,255,.62); font-size: 14px; max-width: 640px; }
.scoreboard { margin-top: 24px; padding: 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035)); }
.scoreboard-top { display: flex; justify-content: space-between; gap: 10px; color: rgba(255,255,255,.55); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; }
.scoreboard-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 14px; }
.score-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.score-team.right { justify-content: flex-end; text-align: right; }
.score-team .team-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--lime); color: var(--navy); font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.score-team.right .team-mark { background: rgba(255,255,255,.14); color: #fff; }
.score-team strong { display: block; font-size: 14px; line-height: 1.25; }
.score-team span { display: block; margin-top: 3px; color: rgba(255,255,255,.5); font-size: 10.5px; }
.score-values { display: flex; align-items: baseline; gap: 10px; color: #fff; font-size: 48px; font-weight: 800; letter-spacing: -.06em; }
.score-values span { color: rgba(255,255,255,.3); font-size: 20px; }
.scoreboard-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.5); font-size: 10.5px; }
.stream-card { margin-top: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; overflow: hidden; background: #041024; }
.stream-frame { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 70% 35%, rgba(198,243,43,.22), transparent 38%), linear-gradient(140deg, #0d2c54, #06152c 65%); display: grid; place-items: center; overflow: hidden; }
.stream-frame::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 40px 40px; opacity: .5; }
.stream-play { position: relative; z-index: 1; width: 70px; height: 70px; border-radius: 50%; background: var(--lime); color: var(--navy); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(198,243,43,.25); transition: transform 180ms ease; }
.stream-play:hover { transform: scale(1.06); }
.stream-caption { position: absolute; left: 16px; bottom: 14px; z-index: 1; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); font-size: 11px; }
.stream-caption .live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff6b5f; }
.stream-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid rgba(255,255,255,.1); }
.stream-foot > div { display: grid; gap: 2px; min-width: 0; }
.stream-foot strong { font-size: 12px; }
.stream-foot > div > span { color: rgba(255,255,255,.45); font-size: 10.5px; }
.live-side { display: grid; gap: 14px; align-content: start; }
.live-card { padding: 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.04); }
.live-card h3 { font-size: 13px; color: #fff; }
.live-card .kicker { color: rgba(255,255,255,.4); }
.schedule-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.schedule-item:last-child { border-bottom: 0; padding-bottom: 0; }
.schedule-date { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; text-align: center; line-height: 1; flex: 0 0 auto; }
.schedule-date strong { font-size: 14px; color: var(--lime); }
.schedule-date span { font-size: 8px; text-transform: uppercase; color: rgba(255,255,255,.45); }
.schedule-item strong { display: block; font-size: 11.5px; color: rgba(255,255,255,.85); }
.schedule-item span { display: block; margin-top: 3px; color: rgba(255,255,255,.42); font-size: 10px; }
.live-cta { padding: 18px; border-radius: 18px; background: var(--lime); color: var(--navy); }
.live-cta h3 { font-size: 17px; }
.live-cta p { margin-top: 6px; font-size: 12px; color: rgba(7,21,47,.65); }
.live-cta .btn { margin-top: 12px; }
.live-foot { max-width: 1180px; margin: 0 auto; padding: 18px 24px 40px; color: rgba(255,255,255,.35); font-size: 10.5px; display: flex; justify-content: space-between; gap: 12px; }
.live-empty { padding: 40px 20px; text-align: center; color: rgba(255,255,255,.6); }

/* Mobile navigation */
.mobile-nav { display: none; }
.mobile-nav-inner { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; gap: 2px; width: 100%; padding: 10px 8px; }
.mobile-nav button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 8px 2px; border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 750; white-space: nowrap; }
.mobile-nav button.is-active { background: var(--navy); color: #fff; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: 1fr; }
  .score-mini { max-width: 320px; }
}
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { min-height: auto; padding: 28px 24px 32px; }
  .auth-brand-copy { padding: 54px 0 20px; }
  .auth-brand-copy h1 { font-size: 46px; }
  .auth-brand-copy p { font-size: 14px; }
  .auth-brand-foot { display: none; }
  .auth-panel { padding: 30px 20px 44px; align-items: flex-start; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .mobile-nav { display: block; position: sticky; top: 0; z-index: 30; background: rgba(247,248,244,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .mobile-brand { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px 0; }
  .mobile-brand .mobile-user { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10.5px; }
  .mobile-brand .avatar { width: 27px; height: 27px; font-size: 8px; }
  .app-main { padding: 22px 16px 40px; }
  .topbar { margin-bottom: 22px; }
  .topbar-date { display: none; }
  .topbar-actions .user-chip { display: none; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .page-title { font-size: 34px; }
  .page-sub { font-size: 13px; }
  .team-grid { grid-template-columns: 1fr; }
  .live-hero { grid-template-columns: 1fr; }
  .live-nav-links { display: none; }
  .live-nav { padding: 18px 16px; }
  .live-shell { padding: 20px 16px 40px; }
  .scoreboard-grid { grid-template-columns: 1fr auto 1fr; }
  .score-team .team-mark { width: 34px; height: 34px; font-size: 10px; }
  .score-team strong { font-size: 12px; }
  .score-values { font-size: 38px; }
  .live-foot { padding: 18px 16px 30px; flex-direction: column; }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-grid-3 { grid-template-columns: 1fr; }
  .mobile-nav button { font-size: 9.5px; }
  .stat-card { padding: 14px; }
  .stat-card .stat-value { font-size: 24px; }
  .stat-card .stat-note { font-size: 10.5px; }
  .panel-head { padding: 14px 14px 12px; }
  .panel-body { padding: 14px; }
  .table th { padding: 9px 14px; }
  .table td { padding: 11px 14px; }
  .invoice-doc { padding: 15px; }
  .invoice-doc-meta { grid-template-columns: 1fr; gap: 10px; }
  .form-row { grid-template-columns: 1fr; }
  .scoreboard { padding: 16px; }
  .score-team .team-mark { display: none; }
  .scoreboard-bottom { flex-direction: column; gap: 4px; }
  .score-values { font-size: 34px; }
  .modal-backdrop { padding: 10px; align-items: flex-end; }
  .modal-card { max-height: 92svh; border-radius: 20px 20px 0 0; }
  .modal-head { padding: 18px 16px 13px; }
  .modal-body { padding: 16px; }
  .modal-actions { padding: 13px 16px 18px; }
}
@media print {
  body * { visibility: hidden; }
  .invoice-print, .invoice-print * { visibility: visible; }
  .invoice-print { position: absolute; inset: 0; display: block !important; background: #fff; padding: 20px; }
  .print-only { display: block; }
}

@media (max-width: 900px) {
  .live-nav { flex-wrap: wrap; }
  .live-nav-links {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 11px;
    overflow-x: auto;
  }
  .live-nav img { width: 118px; }
}
