* { box-sizing:border-box; }
html { font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; color:var(--ink); background:var(--soft); }
body { margin:0; min-height:100vh; display:flex; flex-direction:column; }
a { color:var(--brand-dark); }
.container { width:min(1160px,calc(100% - 32px)); margin-inline:auto; }
.site-header { background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; }
.header-inner { min-height:76px; display:flex; align-items:center; gap:28px; }
.brand img { display:block; width:150px; height:auto; }
.main-nav { flex:1; }
.main-nav ul { display:flex; gap:22px; list-style:none; padding:0; margin:0; }
.main-nav a,.user-menu a,.link-button { text-decoration:none; font-weight:650; color:var(--ink); }
.user-menu { display:flex; align-items:center; gap:14px; }
.user-menu form { margin:0; }
.sport-switcher select { width:auto; min-width:110px; padding:8px 30px 8px 10px; border-radius:999px; font-size:.88rem; font-weight:750; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.link-button { border:0; background:none; cursor:pointer; font:inherit; padding:0; }
.menu-toggle { display:none; }
.site-main { flex:1; padding:54px 0 72px; }
.site-footer { background:#172033; color:#fff; padding:34px 0; }
.footer-inner { display:flex; justify-content:space-between; gap:24px; }
.footer-inner p { color:#c8d0dd; margin:.35rem 0 0; }
.footer-inner a { color:#fff; margin-left:20px; }
.user-menu .button {background: var(--green);color:#fff;border:1px solid var(--green);}
.hero { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr); gap:32px; align-items:center; padding:42px 0 58px; }
.hero h1,.page-heading h1 { font-size:clamp(2.2rem,5vw,4.5rem); line-height:1.02; letter-spacing:-.045em; margin:.45rem 0 1rem; }
.hero p,.page-heading p { font-size:1.15rem; color:var(--muted); max-width:720px; }
.hero-card,.panel,.stat-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 12px 32px rgba(23,32,51,.05); }
.hero-card { padding:28px; }
.hero-card ul { margin:14px 0 0; padding-left:20px; line-height:1.9; }
.eyebrow { color:var(--brand-dark); font-weight:800; text-transform:uppercase; letter-spacing:.1em; font-size:.77rem; }
.hero-actions,.toolbar { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.button { display:inline-flex; justify-content:center; align-items:center; border:1px solid var(--brand); background:var(--brand); color:#fff; border-radius:10px; padding:12px 18px; font-weight:750; text-decoration:none; cursor:pointer; }
.button:hover { background:var(--brand-dark); border-color:var(--brand-dark); }
.button-secondary { color:var(--brand-dark); background:#fff; }
.button-small { padding:8px 12px; }
.button.disabled { opacity:.48; cursor:not-allowed; }
.feature-grid,.stat-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.panel { padding:28px; margin-bottom:22px; }
.panel h1,.panel h2 { margin-top:0; }
.stat-card { padding:24px; display:flex; flex-direction:column; gap:6px; }
.stat-card span,.stat-card small { color:var(--muted); }
.stat-card strong { font-size:2.35rem; }
.page-heading { margin-bottom:28px; }
.page-heading h1 { font-size:clamp(2rem,4vw,3.6rem); }
.auth-card { width:min(520px,100%); margin:0 auto; }
.auth-card form { display:grid; gap:16px; margin-top:24px; }
label { display:grid; gap:7px; font-weight:700; }
input,select,textarea { width:100%; border:1px solid #cbd2dc; border-radius:10px; padding:12px 13px; font:inherit; background:#fff; }
input:focus { outline:3px solid rgba(2,125,213,.14); border-color:var(--brand); }
label small,.auth-note { color:var(--muted); font-weight:400; }
.checkbox-label { display:flex; grid-template-columns:auto 1fr; align-items:flex-start; }
.checkbox-label input { width:auto; margin-top:4px; }
.notice { padding:14px 16px; border-radius:10px; margin-bottom:18px; border:1px solid; }
.notice.success { color:var(--success); background:#ecfdf3; border-color:#abefc6; }
.notice.error { color:var(--danger); background:#fef3f2; border-color:#fecdca; }
.notice.development { color:#6941c6; background:#f4f3ff; border-color:#d9d6fe; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; }
th,td { padding:14px; text-align:left; border-bottom:1px solid var(--line); white-space:nowrap; }
th { color:var(--muted); font-size:.82rem; text-transform:uppercase; letter-spacing:.05em; }
.empty-state { text-align:center; color:var(--muted); padding:36px; }
.status { display:inline-block; border-radius:999px; padding:5px 9px; font-size:.78rem; font-weight:750; background:#eef2f6; }
.status-active,.status-approved,.status-verified,.status-completed { background:#dcfae6; color:#067647; }
.status-pending,.status-pending_verification,.status-pending_approval { background:#fff4cc; color:#7a5b00; }
.definition-list > div,.membership-list > div { display:grid; grid-template-columns:160px 1fr auto; gap:16px; padding:14px 0; border-bottom:1px solid var(--line); }
.definition-list span,.membership-list span { color:var(--muted); }
.toolbar { justify-content:space-between; margin-bottom:24px; }
.toolbar h1 { margin:0; }
.debug-error { white-space:pre-wrap; overflow:auto; background:#111827; color:#fff; padding:18px; border-radius:10px; }
@media (max-width:800px) {
  .hero,.feature-grid,.stat-grid { grid-template-columns:1fr; }
  .menu-toggle { display:block; margin-left:auto; }
  .main-nav { display:none; position:absolute; left:16px; right:16px; top:70px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px; }
  .main-nav.is-open { display:block; }
  .main-nav ul { flex-direction:column; }
  .user-menu { margin-left:auto; gap:8px; }
  .sport-switcher select { min-width:92px; max-width:112px; padding:7px 24px 7px 9px; }
  .user-menu .notification-link { display:none; }
  .footer-inner { flex-direction:column; }
  .footer-inner a { margin:0 18px 0 0; }
  .definition-list > div,.membership-list > div { grid-template-columns:1fr; gap:4px; }
}

