/* KICK IT team dashboard. Light and high-contrast: it gets used on phones in daylight at the gate. */
:root {
  --orange: #F1460C;
  --orange-dark: #C4380A;
  --ink: #121212;
  --text: #1C1C1C;
  --muted: #5F5F5F;
  --line: #E4E1DE;
  --bg: #F6F4F2;
  --card: #FFFFFF;
  --green: #0F7B3F;
  --green-bg: #E3F4EA;
  --blue: #1D5FBF;
  --blue-bg: #E4EEFB;
  --amber-bg: #FFF1D6;
  --amber: #8A5A00;
  --red: #B42318;
  --red-bg: #FDE7E5;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sidebar layout: fixed sidebar on desktop, slim top bar + drawer on phones */
:root { --side: 248px; --top: 56px; }
.dtop { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: var(--top); padding: 0 12px; background: var(--ink); color: #fff; }
.dtop__menu { width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; font-size: 20px; cursor: pointer; }
.dtop__badge { margin-left: auto; text-decoration: none; }
.dside__brand { font: 24px/1 var(--display); color: #fff; text-decoration: none; }
.dside__brand span { color: var(--orange); }
.dside { position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; width: var(--side); display: flex; flex-direction: column; padding: 20px 14px 16px; background: var(--ink); color: #fff; overflow-y: auto;
  transform: translateX(-100%); transition: transform .2s ease; }
.dside-open .dside { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.5); }
.dscrim { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.45); }
.dside__brand--lg { font-size: 30px; padding: 0 10px; }
.dside__event { margin: 6px 10px 22px; color: #9A9A9A; font-size: 12px; font-weight: 600; }
.dside__nav { display: grid; gap: 2px; }
.dside__group { margin: 18px 10px 6px; color: #7E7E7E; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.dside__nav a, .dside__link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #CFCFCF; text-decoration: none; font: 600 15px var(--body); background: none; border: 0; width: 100%; cursor: pointer; text-align: left; }
.dside svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dside__nav a:hover, .dside__link:hover { background: rgba(255,255,255,.07); color: #fff; }
.dside__nav a[aria-current] { background: var(--orange); color: #fff; }
.dside__nav .dbadge { margin-left: auto; }
.dside__nav a[aria-current] .dbadge { background: #fff; color: var(--orange-dark); }
.dside__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid #2A2A2A; display: grid; gap: 2px; }
.dside__foot form { margin: 0; }
.dside__link small { color: #8A8A8A; font-weight: 500; margin-left: auto; }
.dbadge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--orange); color: #fff; font: 800 12px/1 var(--body); }
@media (min-width: 900px) {
  .dtop { display: none; }
  .dside { transform: none; }
  .dscrim { display: none; }
  body.has-side { padding-left: var(--side); }
  :root { --top: 0px; }
}

.dmain { max-width: 1180px; margin: 0 auto; padding: 20px 16px 64px; }
@media (min-width: 900px) { .dmain { padding: 28px 28px 64px; } }

.dhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dhead h1 { font: clamp(32px, 7vw, 44px)/1 var(--display); text-transform: uppercase; margin: 0; }
.dhead__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dmuted { color: var(--muted); margin: 4px 0 0; }
.dcount { font-family: var(--body); font-size: 16px; font-weight: 700; color: var(--muted); vertical-align: middle; }
.dsec { font: 18px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 22px 0 10px; }
.dlink { color: var(--muted); font-weight: 600; }

/* Buttons */
.dbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 16px; border-radius: 10px; border: 2px solid var(--orange); background: var(--orange); color: #fff; font: 700 14px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.dbtn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.dbtn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.dbtn--ghost:hover { background: #fff; border-color: var(--text); }
.dbtn--wa { background: #1FA855; border-color: #1FA855; }
.dbtn--wa:hover { background: #178A45; border-color: #178A45; }
.dbtn--big { min-height: 52px; padding: 10px 22px; font-size: 16px; }
.dbtn--done { background: var(--green-bg); border-color: var(--green); color: var(--green); min-height: 52px; }
.dbtn--done:hover { background: #fff; border-color: var(--red); color: var(--red); }

/* Banner + toasts */
.dbanner { display: block; background: var(--amber-bg); color: var(--amber); padding: 12px 16px; border-radius: 12px; text-decoration: none; font-weight: 600; margin-bottom: 8px; }
.dbanner b { font-size: 18px; }
.toasts { list-style: none; padding: 0; margin: 0 0 16px; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--blue-bg); color: var(--blue); font-weight: 600; margin-bottom: 6px; }
.toast--success { background: var(--green-bg); color: var(--green); }
.toast--error { background: var(--red-bg); color: var(--red); }

/* KPI tiles */
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.kpi small { display: block; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.kpi strong { display: block; font: clamp(28px, 6vw, 40px)/1.1 var(--display); margin: 4px 0 2px; overflow-wrap: anywhere; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi--hot { border-color: var(--orange); box-shadow: inset 4px 0 0 var(--orange); }

/* Cards */
.dgrid { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 900px) { .dgrid { grid-template-columns: 1fr 1fr; } }
.dcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 14px; min-width: 0; }
.dgrid .dcard { margin-top: 0; }
.dcard h2 { font: 20px/1 var(--display); text-transform: uppercase; margin: 0 0 12px; }
.dcard__head { display: flex; justify-content: space-between; align-items: baseline; }
.dcard__sub { margin-top: 24px !important; }
.dempty { color: var(--muted); margin: 4px 0; }

/* Tables */
.dtable { width: 100%; border-collapse: collapse; }
.dtable th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); padding: 6px 4px; }
.dtable td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.dtable .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Bar chart */
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 170px; }
.bars__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bars__bar { width: 100%; min-height: 2px; background: var(--orange); border-radius: 4px 4px 0 0; }
.bars__n { font-size: 11px; font-weight: 700; color: var(--text); }
.bars__day { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* Sign-up rows */
.rows { list-style: none; padding: 0; margin: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row__main { display: block; min-width: 0; flex: 1 1 240px; text-decoration: none; color: inherit; }
.row__main:hover .row__name { color: var(--orange-dark); }
.row__name { display: block; font-weight: 700; font-size: 16px; }
.row__meta { color: var(--muted); font-size: 14px; }
.row__side { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.row__time { color: var(--muted); font-size: 12px; }
.row--checkin { padding: 14px 0; }

.tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px; background: #EEE; color: var(--text); margin-right: 4px; }
.tag--register { background: #FFE6DB; color: var(--orange-dark); }
.tag--donate { background: var(--green-bg); color: var(--green); }
.tag--volunteer { background: var(--blue-bg); color: var(--blue); }
.tag--sponsor { background: #EFE5FB; color: #6B2FB8; }

.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #EEE; color: var(--text); text-decoration: none; }
.pill--new { background: var(--amber-bg); color: var(--amber); }
.pill--contacted { background: var(--blue-bg); color: var(--blue); }
.pill--confirmed { background: var(--green-bg); color: var(--green); }
.pill--declined { background: var(--red-bg); color: var(--red); }
.pill--in { background: var(--green); color: #fff; }

/* Filters + search */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters__q { flex: 1 1 260px; }
.filters input, .filters select, .dform input:not([type=checkbox]), .dform select, .dform textarea, .bigsearch input {
  width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid #CFCAC5; border-radius: 10px; background: #fff; color: var(--text); font: 16px/1.4 var(--body);
}
.filters select { width: auto; }
.bigsearch { display: flex; gap: 8px; margin-bottom: 4px; }
.bigsearch input { min-height: 56px; font-size: 20px; }
.bigsearch .dbtn { min-height: 56px; padding: 0 24px; font-size: 16px; }
.gauge { margin: 0; font-weight: 700; color: var(--muted); }
.gauge b { font: 40px/1 var(--display); color: var(--green); }

.dform { display: grid; gap: 12px; }
.dform label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; }
.dform--row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.dform .dbtn { justify-self: start; }
.dcheck { display: flex !important; align-items: center; gap: 8px; font-weight: 600 !important; min-height: 42px; }
.dcheck input { width: 20px; height: 20px; accent-color: var(--orange); }
.derror { color: var(--red); font-weight: 600; font-size: 13px; grid-column: 1 / -1; margin: 0; }
.checkline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }

.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); }

/* ---------- Directory ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 12px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a[aria-current] { color: var(--text); border-color: var(--orange); }
.tabs span { font-weight: 600; font-size: 12px; background: #EEE; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.dnotice { background: var(--blue-bg); color: var(--blue); border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600; margin: 0 0 14px; }
.filters { margin-bottom: 14px; }
.dhelp { font-weight: 400; color: var(--muted); font-size: 12px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red) !important; }
.dlink--danger { color: var(--red); }
.dbtn--danger { background: var(--red); border-color: var(--red); }
.stack .dcard:first-of-type { margin-top: 0; }
.subform { border: 0; border-top: 1px dashed var(--line); padding: 14px 0 0; margin: 14px 0 0; }
.subform:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.formbar { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.dform input[type=file] { padding: 8px; }

.avatar { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #2A2A2A; color: #fff; font: 18px/1 var(--display); letter-spacing: .02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 36px; height: 36px; font-size: 14px; }
.avatar--sq { width: 44px; height: 44px; border-radius: 10px; background: #F0EDEA; color: var(--text); border: 1px solid var(--line); }
.avatar--sq img { object-fit: contain; background: #fff; }
.avatar--md { width: 84px; height: 84px; font-size: 30px; border: 4px solid #fff; }
.avatar--xl, .avatar--xl-sq { width: 128px; height: 128px; font-size: 46px; border: 5px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.avatar--xl-sq { border-radius: 20px; background: #fff; color: var(--text); }
.avatar--xl-sq img { object-fit: contain; }
@media (max-width: 600px) { .avatar--xl, .avatar--xl-sq { width: 104px; height: 104px; font-size: 38px; } }

/* Player cards */
.pcards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pcard { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; padding: 0 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.pcard:hover { box-shadow: 0 8px 24px -12px rgba(0,0,0,.3); transform: translateY(-2px); }
.pcard__cover { align-self: stretch; height: 56px; margin: 0 -14px -42px; background: linear-gradient(115deg, var(--ink) 55%, var(--orange) 55%); }
.pcard__name { margin-top: 8px; font-size: 16px; }
.pcard__head { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.pcard__meta { margin-top: auto; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.pill--minor { background: var(--blue-bg); color: var(--blue); }

/* LinkedIn-style profile */
.profile { display: grid; gap: 14px; }
@media (min-width: 980px) { .profile { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.profile__main .dcard:first-child, .profile__side .dcard:first-child { margin-top: 0; }
.pro-top { padding: 0; overflow: hidden; }
.pro-top__cover { height: 120px; background:
  linear-gradient(115deg, transparent 58%, var(--orange) 58% 66%, transparent 66%),
  repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 24px, transparent 24px 48px), var(--ink); }
@media (min-width: 700px) { .pro-top__cover { height: 160px; } }
.pro-top__body { position: relative; padding: 0 20px 20px; }
.pro-top__body > .avatar { margin-top: -64px; }
.pro-top__actions { position: absolute; right: 20px; top: 12px; display: flex; gap: 8px; }
.pro-top__name { font: 700 clamp(24px, 5vw, 30px)/1.15 var(--body); margin: 10px 0 2px; }
.pro-top__name span { color: var(--orange); font-family: var(--display); font-weight: 400; }
.pro-top__headline { font-size: 17px; margin: 0 0 6px; }
.pro-top__meta { color: var(--muted); margin: 0 0 12px; }
.pro-top__meta .pill { margin-left: 4px; vertical-align: 1px; }
.pro-about { white-space: normal; margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline__item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeline__item:last-child { border-bottom: 0; }
.timeline__item b a { color: inherit; text-decoration: none; }
.timeline__item b a:hover { color: var(--orange-dark); text-decoration: underline; }
.timeline__role, .timeline__when { display: block; font-size: 14px; }
.timeline__when { color: var(--muted); }
.timeline__item p { margin: 6px 0 0; font-size: 14px; }
.achv { list-style: none; padding: 0; margin: 0; }
.achv li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.achv li:last-child { border-bottom: 0; }
.achv__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #FFE6DB; color: var(--orange-dark); flex: none; }
.achv p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; background: #FAF8F6; }
.chips a { color: inherit; text-decoration: none; }
.dcard--private { border-style: dashed; background: #FCFBFA; }
.pro-notes { background: #F4F1EE; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 12px 0 0; }
.mini { list-style: none; padding: 0; margin: 0; }
.mini a { display: flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; color: inherit; }
.mini a:hover b { color: var(--orange-dark); }
.mini span { display: grid; min-width: 0; }
.mini small { color: var(--muted); }
.row__main--avatar { display: flex; align-items: center; gap: 12px; }
.dcheck { flex-wrap: wrap; }
.dcheck .dhelp, .dcheck .derror { flex-basis: 100%; }
.dform + .dform { margin-top: 12px; }
.dcard--live { border-color: var(--green); box-shadow: inset 4px 0 0 var(--green); }

/* ---------- Team login ---------- */
.login { background: var(--ink); min-height: 100vh; }
.login__wrap { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 20px; padding: 32px 16px; }
@media (min-width: 900px) { .login__wrap { grid-template-columns: 1fr 1fr; align-items: center; max-width: 1040px; margin: 0 auto; gap: 48px; } }
.login__brand { display: grid; justify-items: center; text-align: center; color: #fff; }
@media (min-width: 900px) { .login__brand { justify-items: start; text-align: left; } }
.login__title { font: clamp(80px, 22vw, 160px)/.86 var(--display); text-transform: uppercase; }
.login__title span { color: var(--orange); margin-left: .1em; }
.login__sub { font: 26px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin-top: 10px; }
.login__meta { color: #A8A8A8; margin-top: 6px; font-weight: 600; }
.login__card { width: 100%; max-width: 420px; background: var(--card); border-radius: 18px; padding: 26px 22px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); border-top: 6px solid var(--orange); }
.login__card h1 { font: 34px/1 var(--display); text-transform: uppercase; margin: 0; }
.login__card .dform { margin-top: 18px; gap: 16px; }
.login__card .dform label { font-size: 14px; }
.login__card .dform input { min-height: 50px; font-size: 17px; }
.login__pw { position: relative; display: block; }
.login__pw input { padding-right: 72px !important; }
.login__show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: #F0EDEA; color: var(--text); font: 700 13px var(--body); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.login__submit { width: 100%; justify-self: stretch !important; }
.login__error { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 12px 14px; font-weight: 600; margin-top: 14px; }
.login__info { background: var(--blue-bg); color: var(--blue); border-radius: 10px; padding: 10px 14px; font-weight: 600; margin: 14px 0 0; }
.login__help { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.login__back { margin: 8px 0 0; font-size: 14px; }
.pro-top__name .pill { font: 700 12px/1.4 var(--body); color: var(--text); vertical-align: middle; margin-left: 6px; }
.pro-top__name .pill--in { color: #fff; }

/* ---------- Player form (add / edit) ---------- */
.pf { display: grid; gap: 16px; padding-bottom: 84px; }
@media (min-width: 1360px) { .pf { grid-template-columns: 170px minmax(0, 1fr) 300px; align-items: start; } }
@media (min-width: 1100px) and (max-width: 1359px) { .pf { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; } }
.pf__steps { display: none; }
@media (min-width: 1360px) {
  .pf__steps { display: grid; gap: 2px; position: sticky; top: 24px; }
  .pf__steps a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
  .pf__steps a span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #E9E5E1; font-size: 12px; font-weight: 800; color: var(--text); }
  .pf__steps a:hover { background: #fff; color: var(--text); }
  .pf__steps a.is-active { background: #fff; color: var(--text); box-shadow: 0 1px 0 var(--line); }
  .pf__steps a.is-active span { background: var(--orange); color: #fff; }
}
.pf__main { display: grid; gap: 14px; min-width: 0; }
.pf__sec { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; scroll-margin-top: calc(var(--top) + 20px); }
@media (min-width: 700px) { .pf__sec { padding: 24px 26px; } }
.pf__sec > header { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.pf__sec > header h2 { font: 22px/1 var(--display); text-transform: uppercase; margin: 0; }
.pf__sec > header p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.pf__num { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; font: 16px/1 var(--display); }
.pf__sec--private { background: #FCFBFA; border-style: dashed; }
.pf__sec--private .pf__num { background: var(--blue); }

.pf__grid { display: grid; gap: 16px 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
.pf__grid + .pf__grid, .pf__grid + .pft, .pft + .pf__grid, .pft + .pft { margin-top: 16px; }
.pf__grid--one { grid-template-columns: 1fr; }
.pf__grid--ach { grid-template-columns: minmax(0, 1fr) 110px; }

.pff { display: grid; gap: 6px; min-width: 0; }
.pff label { font-weight: 700; font-size: 13px; color: var(--text); }
.pff__opt { font-weight: 500; color: #9A948E; font-size: 12px; margin-left: 2px; }
.pff input:not([type=checkbox]):not([type=file]), .pff select, .pff textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #D8D3CE; border-radius: 10px; background: #fff;
  color: var(--text); font: 16px/1.4 var(--body); transition: border-color .15s, box-shadow .15s;
}
.pff textarea { min-height: 96px; resize: vertical; }
.pff input:hover, .pff select:hover, .pff textarea:hover { border-color: #B9B2AB; }
.pff input:focus, .pff select:focus, .pff textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(241,70,12,.18); }
.pff__hint { color: var(--muted); font-size: 12px; line-height: 1.4; }
.pff__err { color: var(--red); font-size: 13px; font-weight: 600; font-style: normal; }
.pff--error input, .pff--error select, .pff--error textarea { border-color: var(--red) !important; background: #FFF8F7 !important; }

/* Photo */
.pf__photo { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.pf__avatar { display: grid; place-items: center; flex: none; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; background: var(--ink); color: #fff; font: 34px/1 var(--display); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 18px -8px rgba(0,0,0,.4); }
.pf__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf__photo-text { display: grid; gap: 6px; justify-items: start; }
.pf__upload { cursor: pointer; }
.pf__clear { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.pf__minor { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--blue-bg); color: var(--blue); font-size: 14px; font-weight: 600; }

/* Skills chips */
.pf__chips, .pv__chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pf__chips:empty, .pv__chips:empty { display: none; }
.pf__chips li, .pv__chips li { border: 1px solid var(--line); background: #FAF8F6; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.pf__chips + .pf__grid { margin-top: 16px; }

/* Career rows */
.pf__sub { font: 700 15px var(--body); margin: 4px 0 10px; }
.pf__sub:not(:first-of-type) { margin-top: 26px; }
.pf__rows { display: grid; gap: 12px; }
.pfr { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 14px; margin: 0; background: #FCFBFA; min-width: 0; }
.pfr .pf__grid--one { margin-top: 14px; }
.pfr__remove { position: absolute; top: 10px; right: 12px; font-size: 12px; font-weight: 700; color: var(--muted); display: flex; gap: 5px; align-items: center; cursor: pointer; }
.pfr__remove input { accent-color: var(--red); }
.pfr .pf__grid { padding-right: 60px; }
@media (max-width: 600px) { .pfr .pf__grid { padding-right: 0; padding-top: 18px; } }
.pfr--removed { opacity: .45; }
.pfr--removed .pf__grid, .pfr--removed .pf__grid--one { pointer-events: none; }
.pf__empty { color: var(--muted); font-size: 14px; margin: 0 0 10px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.pf__add { margin-top: 10px; border: 1px dashed #C9C2BB; background: transparent; color: var(--text); font: 700 14px var(--body); padding: 10px 16px; border-radius: 10px; cursor: pointer; width: 100%; }
.pf__add:hover { border-color: var(--orange); color: var(--orange-dark); background: #FFF6F2; }

/* Toggle switches */
.pft { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.pft input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pft__switch { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #D8D3CE; transition: background .15s; margin-top: 1px; }
.pft__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.pft input:checked + .pft__switch { background: var(--green); }
.pft input:checked + .pft__switch::after { transform: translateX(18px); }
.pft input:focus-visible + .pft__switch { outline: 3px solid var(--orange); outline-offset: 2px; }
.pft:has(input:checked) { border-color: var(--green); background: var(--green-bg); }
.pft__text { display: grid; gap: 2px; }
.pft__text b { font-size: 15px; }
.pft__text span { color: var(--muted); font-size: 13px; }
.pft--error { border-color: var(--red); background: #FFF8F7; }
.pf__note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* Live preview */
.pf__side { display: none; }
@media (min-width: 1100px) { .pf__side { display: block; position: sticky; top: 24px; } }
.pf__label { margin: 0 0 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pv { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pv__cover { height: 64px; background: linear-gradient(115deg, var(--ink) 58%, var(--orange) 58% 68%, var(--ink) 68%); }
.pv__body { padding: 0 16px 16px; display: grid; justify-items: start; gap: 2px; }
.pv__avatar { display: grid; place-items: center; width: 72px; height: 72px; margin-top: -36px; border-radius: 50%; overflow: hidden; background: #2A2A2A; color: #fff; font: 26px/1 var(--display); border: 4px solid #fff; }
.pv__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pv__name { font-size: 18px; margin-top: 6px; }
.pv__head { font-size: 14px; }
.pv__meta { color: var(--muted); font-size: 13px; }
.pf__checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.pf__checks li { display: flex; gap: 8px; align-items: baseline; font-size: 14px; font-weight: 600; color: var(--muted); }
.pf__checks li::before { content: "○"; width: 16px; flex: none; }
.pf__checks li small { font-weight: 500; }
.pf__checks li.ok { color: var(--green); }
.pf__checks li.ok::before { content: "✓"; }
.pf__checks li.warn { color: var(--amber); }
.pf__checks li.warn::before { content: "!"; font-weight: 800; }

/* Save bar */
.pf__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 16px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(0,0,0,.3); backdrop-filter: blur(8px); }
@media (min-width: 900px) { .pf__bar { padding: 12px 28px; left: var(--side); } }
.pf__status { margin-right: auto; color: var(--muted); font-size: 14px; font-weight: 600; }
.pf__status.is-dirty { color: var(--amber); }
.pf__status.is-dirty::before { content: "● "; }
.pf__grid--exp { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pf__grid--exp .span2 { grid-column: span 2; }
@media (max-width: 700px) { .pf__grid--exp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf--simple { grid-template-columns: minmax(0, 760px) !important; }
.pf__sec .pft + .pft { margin-top: 10px; }
.pff input[type=file] { font: 14px var(--body); color: var(--muted); padding: 8px; border: 1px dashed #C9C2BB; border-radius: 10px; background: #fff; width: 100%; }
.pff input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: #F4F1EE; color: var(--text); font: 700 13px var(--body); cursor: pointer; }
.pff input[type=file]::file-selector-button:hover { background: #fff; border-color: var(--text); }

/* ---------- Gate check-in ---------- */
.ci { max-width: 760px; margin: 0 auto; }
.ci__top { background: var(--ink); color: #fff; border-radius: 18px; padding: 20px 20px 18px; position: relative; overflow: hidden; }
.ci__top::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; background: var(--orange); opacity: .18; transform: rotate(45deg); }
.ci__count { display: flex; align-items: flex-end; gap: 12px; position: relative; }
.ci__big { font: clamp(64px, 18vw, 96px)/.85 var(--display); color: #fff; }
.ci__of { color: #BDBDBD; font-size: 14px; line-height: 1.3; padding-bottom: 4px; }
.ci__of b { color: #fff; font-size: 16px; }
.ci__bar { height: 12px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; margin: 16px 0 8px; position: relative; }
.ci__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #FF8A3D); border-radius: 999px; transition: width .4s ease; }
.ci__sub { margin: 0; color: #BDBDBD; font-size: 13px; position: relative; }

.ci__search { position: sticky; top: calc(var(--top) + 4px); z-index: 5; display: flex; gap: 8px; margin: 14px 0 0; padding: 8px; background: var(--bg); border-radius: 16px; }
.ci__icon { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--muted); pointer-events: none; }
.ci__search input { flex: 1; min-width: 0; min-height: 56px; padding: 10px 14px 10px 46px; border: 2px solid #D8D3CE; border-radius: 14px; background: #fff; font: 18px var(--body); color: var(--text); }
.ci__search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(241,70,12,.15); }
.ci__search .dbtn { min-height: 56px; padding: 0 22px; border-radius: 14px; font-size: 16px; }

.ci__toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 30; background: var(--green); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); max-width: calc(100% - 32px); }

.ci__tabs { display: flex; gap: 6px; margin: 10px 0 12px; padding: 4px; background: #EAE6E2; border-radius: 14px; }
.ci__tabs a { flex: 1; text-align: center; padding: 10px 8px; border-radius: 10px; color: var(--muted); font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap; }
.ci__tabs a span { display: inline-block; min-width: 24px; padding: 1px 7px; margin-left: 4px; border-radius: 999px; background: rgba(0,0,0,.08); font-size: 12px; color: var(--text); }
.ci__tabs a[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ci__tabs a[data-tab="in"][aria-selected="true"] span { background: var(--green); color: #fff; }

.ci__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ci__row { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.ci__row.is-in { border-color: #BFE3CC; background: #F5FBF7; }
.ci__who { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.ci__avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; font: 18px/1 var(--display); }
.is-in .ci__avatar { background: var(--green); }
.ci__text { display: grid; min-width: 0; }
.ci__text b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci__text > span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.ci__party { padding: 1px 7px; border-radius: 6px; background: #FFF1D6; color: var(--amber); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ci__form { flex: none; margin: 0; }
.ci__btn { min-width: 112px; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--orange); background: var(--orange); color: #fff; font: 800 15px var(--body); cursor: pointer; }
.ci__btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.ci__btn:disabled { opacity: .6; }
.is-in .ci__btn { background: transparent; border-color: #BFE3CC; color: var(--green); }
.ci__undo { display: none; }
.is-in .ci__btn:hover { border-color: var(--red); color: var(--red); background: #fff; }
.is-in .ci__btn:hover .ci__done { display: none; }
.is-in .ci__btn:hover .ci__undo { display: inline; }
@media (max-width: 520px) {
  .ci__btn { min-width: 96px; padding: 0 10px; }
}
.ci__empty { text-align: center; color: var(--muted); padding: 28px 16px; background: var(--card); border: 1px dashed var(--line); border-radius: 14px; margin: 0; }
.ci__walkin { margin-top: 0; }
.ci__walkin h2 { margin-bottom: 4px; }
.ci__walkin .dform { margin-top: 14px; }
.dbanner--blue { background: var(--blue-bg); color: var(--blue); }
.dbanner + .dbanner { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Applications ---------- */
.chipnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.chipnav a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 700; font-size: 13px; text-decoration: none; }
.chipnav a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.apps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.app { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: inherit; text-decoration: none; }
.app:hover { border-color: var(--orange); }
.app__img { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: var(--ink); color: #fff; font: 20px/1 var(--display); }
.app__img img { width: 100%; height: 100%; object-fit: cover; }
.app__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.app__text b { font-size: 16px; }
.app__text > span, .app__text small { color: var(--muted); font-size: 13px; }
.app__photo { width: 120px; height: 120px; object-fit: cover; border-radius: 14px; margin-bottom: 14px; border: 1px solid var(--line); }
.tag--player { background: #FFE6DB; color: var(--orange-dark); }
.tag--club { background: var(--green-bg); color: var(--green); }
.tag--agent { background: #EFE5FB; color: #6B2FB8; }
.tag--scout { background: var(--blue-bg); color: var(--blue); }
.pill--pending { background: var(--amber-bg); color: var(--amber); }
.pill--approved { background: var(--green-bg); color: var(--green); }
.pill--rejected { background: var(--red-bg); color: var(--red); }
.consents { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.consents li { font-weight: 600; font-size: 14px; }
.consents li.yes { color: var(--green); }
.consents li.yes::before { content: "✓ "; }
.consents li.no { color: var(--muted); }
.consents li.no::before { content: "✗ "; }
.dbtn--danger-ghost { color: var(--red); border-color: #F3C2BD; }
.dbtn--danger-ghost:hover { background: var(--red-bg); border-color: var(--red); }
.dform textarea { min-height: 80px; }
.ci__seats { color: var(--text); font-weight: 700; }
@media (min-width: 900px) { .tk-kpis { grid-template-columns: repeat(5, 1fr); } }
.kpi__of { font-size: 18px; color: var(--muted); }
.meterbar { display: block; height: 6px; background: #EEE; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.meterbar span { display: block; height: 100%; background: var(--orange); }
.tk-code { font: 700 12px ui-monospace, Menlo, monospace; background: #F0EDEA; padding: 2px 6px; border-radius: 6px; margin-left: 6px; letter-spacing: .06em; }

/* ---------- Member account area ---------- */
.acct__bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--ink); }
@media (min-width: 900px) { .acct__bar { padding: 12px 28px; } }
.acct__bar nav { display: flex; align-items: center; gap: 4px; }
.acct__bar nav a, .acct__bar nav button { white-space: nowrap; color: #CFCFCF; text-decoration: none; font: 600 14px var(--body); padding: 8px 10px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
.acct__bar nav a:hover, .acct__bar nav button:hover { color: #fff; background: rgba(255,255,255,.08); }
.acct__bar form { margin: 0; }
.acct__main { max-width: 900px; }
.acct .pf__bar { left: 0 !important; }
.acct__note { margin-top: 18px; font-size: 13px; }
.reset-link { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #D8D3CE; border-radius: 10px; font: 14px ui-monospace, Menlo, monospace; }
.tablewrap { overflow-x: auto; }
.statusform select { min-height: 40px; padding: 6px 10px; border: 1px solid #CFCAC5; border-radius: 10px; background: #fff; font: 600 14px var(--body); }

/* ---------- Raffle ---------- */
.rprizes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rprize { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.rprize b { display: block; font-size: 17px; }
.rprize span { color: var(--muted); font-size: 14px; }
.rprize form { margin: 0; }
.rprize.is-done { opacity: .6; }
.reveal { margin: 0; min-height: 100vh; display: grid; grid-template-rows: 1fr auto; background:
  radial-gradient(60% 50% at 50% 30%, rgba(241,70,12,.35), transparent 70%), #0d0d0d; color: #fff; }
.reveal__stage { display: grid; place-content: center; text-align: center; padding: 32px 16px; }
.reveal__kicker { color: var(--orange); font-weight: 800; letter-spacing: .3em; text-transform: uppercase; margin: 0; }
.reveal__prize { font: clamp(40px, 9vw, 110px)/.95 var(--display); text-transform: uppercase; margin: 12px 0 6px; }
.reveal__donor { color: #aaa; margin: 0 0 28px; font-size: clamp(16px, 2.4vw, 24px); }
.reveal__label { color: #ccc; font-size: clamp(18px, 2.6vw, 28px); margin: 0; }
.reveal__number { font: clamp(90px, 22vw, 260px)/1 var(--display); margin: 8px 0; color: #fff; font-variant-numeric: tabular-nums; }
.reveal__number.is-final { color: var(--orange); text-shadow: 0 0 60px rgba(241,70,12,.6); }
.reveal__name { font: clamp(36px, 7vw, 80px)/1 var(--display); text-transform: uppercase; margin: 0; }
.reveal__note { color: #ccc; font-size: clamp(16px, 2.4vw, 24px); }
.reveal__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 20px; background: #000; color: #777; font-size: 13px; }
.reveal__bar a { color: #aaa; }

/* Donations */
.dalert { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #FFF4E5; border: 1px solid #F3C98B; color: #6B4300; font-size: 14px; }
.dalert a { color: inherit; font-weight: 700; }
.dchecks { display: flex; flex-wrap: wrap; gap: 4px 22px; }

/* Raffle draw panel */
.drawpad { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--card); border: 2px solid var(--orange); display: grid; gap: 14px; }
.drawpad__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 18px; }
.drawpad__head h2 { margin: 0 0 4px; font-size: 22px; }
.drawpad__head p { margin: 0; color: var(--muted); max-width: 60ch; }
.drawpad__pool { padding: 8px 14px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 700; white-space: nowrap; }
.drawpad__add { padding-top: 14px; border-top: 1px dashed var(--line); }
