/* ==================================================================
   Little Legends Football Academy — design system
   Based on Little_Legends_UI_Design_Guide.html
   ================================================================== */

/* ---------------- Tokens ---------------- */
:root {
  --red: #B72209;
  --red-dark: #8F1B08;
  --orange: #F7A51F;
  --orange-ink: #A45A00;
  --gold: #E9CFA3;
  --ink: #212023;
  --ink-2: #373538;
  --muted: #6F6C6F;
  --line: #E8E5E1;
  --line-strong: #DDD9D5;
  --paper: #FFFFFF;
  --soft: #F7F6F4;
  --canvas: #F0EEEB;
  --soft-red: #FFF1ED;
  --soft-orange: #FFF6E5;
  --soft-green: #EAF7F0;
  --soft-blue: #EDF3FC;
  --green: #238653;
  --blue: #3267B8;

  --shadow: 0 14px 40px rgba(33, 32, 35, .08);
  --shadow-sm: 0 8px 28px rgba(33, 32, 35, .04);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 10px;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1200px;
  --gutter: 42px;
}

/* ---------------- Base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, .link { color: var(--red); font-weight: 600; }
p a:hover, .link:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; }
p { margin: 0 0 1em; }
hr { border: 0; height: 1px; background: var(--line); margin: 20px 0; }
:focus-visible { outline: 3px solid rgba(183, 34, 9, .35); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------------- Typography ---------------- */
.display, .h-display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.5px;
}
.h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 6vw, 72px); line-height: .92; letter-spacing: -1px; }
.h2, .section-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 38px); line-height: 1; letter-spacing: .2px; margin: 0; }
.h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: 1.05; }
.h4 { font-size: 16px; font-weight: 800; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; display: block; }
.eyebrow.red { color: var(--red); }
.lead { font-size: 17px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xsmall { font-size: 11px; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12px; }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-center { text-align: center; }
.rule { height: 4px; width: 52px; background: var(--red); border-radius: 99px; margin-top: 12px; }
.text-center .rule { margin-left: auto; margin-right: auto; }

/* ---------------- Layout helpers ---------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section.tight { padding: 44px 0; }
.section.soft { background: var(--soft); }
.section.dark { background: var(--ink); color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.section-sub { color: var(--muted); font-size: 15px; margin: 10px 0 0; max-width: 620px; }
.dark .section-sub { color: #C7C2BF; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

/* ---------------- Buttons ---------------- */
.btn {
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-outline { background: #fff; color: var(--ink); border-color: #D8D4D1; }
.btn-outline:hover { border-color: var(--ink); }
.btn-soft { background: var(--soft-red); color: var(--red); }
.btn-gold { background: var(--orange); color: #2D2110; }
.btn-gold:hover { background: #F09A0B; }
.btn-ghost { background: transparent; color: var(--red); padding-left: 6px; padding-right: 6px; }
.btn-white { background: #fff; color: var(--ink); }
.btn-sm { padding: 8px 12px; font-size: 12px; border-radius: 9px; }
.btn-lg { padding: 15px 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------------- Badges ---------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .3px; white-space: nowrap; }
.badge-red { background: var(--soft-red); color: var(--red); }
.badge-green { background: var(--soft-green); color: var(--green); }
.badge-orange { background: var(--soft-orange); color: var(--orange-ink); }
.badge-blue { background: var(--soft-blue); color: var(--blue); }
.badge-dark { background: #EEEDEE; color: var(--ink); }
.badge-solid { background: var(--red); color: #fff; }

/* ---------------- Cards ---------------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card.soft { background: var(--soft); box-shadow: none; }
.card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.red { background: var(--red); color: #fff; border-color: var(--red); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-title { font-size: 16px; font-weight: 800; margin: 0; }
.card-title.display { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; }
.card-title.mb-1 { margin-bottom: 16px; } /* .card-title's margin: 0 would otherwise cancel the spacing utility */
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.divider-strong { height: 5px; background: linear-gradient(90deg, var(--red), var(--orange)); border-radius: 999px; }

.kpi { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kpi:last-child { border-bottom: 0; }
.kpi span { color: var(--muted); }
.kpi strong { font-size: 13px; text-align: right; }
.dark .kpi { border-color: rgba(255,255,255,.12); }
.dark .kpi span { color: #C7C2BF; }

.feature { display: flex; gap: 15px; }
.feature-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.feature-icon.red { background: var(--red); }
.feature-icon.orange { background: var(--orange); color: var(--ink); }
.feature h4 { margin: 0 0 5px; font-size: 15px; }
.feature p { margin: 0; color: var(--muted); font-size: 13px; }

.stat { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.stat-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 700; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1; margin-top: 8px; }
.stat-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--soft-red); display: grid; place-items: center; color: var(--red); font-weight: 900; flex: none; }
.stat-icon svg { width: 18px; height: 18px; }
.stat-foot { font-size: 12px; color: var(--muted); margin-top: 10px; }

.callout { border-radius: 20px; padding: 32px; background: linear-gradient(120deg, var(--soft-red), #fff); border: 1px solid #F1D4CC; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.callout h3 { font-family: var(--font-display); font-size: 32px; text-transform: uppercase; margin: 0 0 6px; }
.callout p { margin: 0; color: var(--muted); font-size: 14px; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; margin: 0 auto 14px; color: var(--red); }
.empty h3 { color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* ---------------- Progress ---------------- */
.progress { height: 9px; background: #E9E6E2; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--red); border-radius: inherit; transition: width .4s ease; }
.progress.orange > span { background: var(--orange); }
.progress.green > span { background: var(--green); }

/* ---------------- Alerts / flash ---------------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid transparent; margin-bottom: 16px; }
.alert-icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.alert p:last-child { margin-bottom: 0; }
.alert-success { background: var(--soft-green); border-color: #CBEBD9; color: #185E3A; }
.alert-error { background: var(--soft-red); border-color: #F1D4CC; color: var(--red-dark); }
.alert-warning { background: var(--soft-orange); border-color: #F6DDB0; color: #7A4300; }
.alert-info { background: var(--soft-blue); border-color: #D3E1F5; color: #234A85; }
.alert .alert-close { margin-left: auto; background: none; border: 0; cursor: pointer; opacity: .6; padding: 0 4px; font-size: 18px; line-height: 1; }
.alert .alert-close:hover { opacity: 1; }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.form-section-title { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.form-section-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
label, .label { font-size: 13px; font-weight: 700; }
.req { color: var(--red); }
.optional { color: var(--muted); font-weight: 500; font-size: 12px; }
.input, input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=time],
input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: #fff;
  padding: 12px 13px;
  outline: none;
  color: var(--ink);
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
  min-height: 46px;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777477' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(183, 34, 9, .10); }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #A9A5A2; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); background: #FFFBFA; }
.help { font-size: 12px; color: var(--muted); }
.field-error { font-size: 12px; color: var(--red); font-weight: 600; }
.input-wrap { position: relative; }
.input-wrap .toggle-password { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; padding: 6px 8px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.check a { color: var(--red); font-weight: 700; }
.choice-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.choice-card:hover { border-color: var(--ink); }
.choice-card input { width: 18px; height: 18px; accent-color: var(--red); margin-top: 2px; flex: none; }
.choice-card:has(input:checked) { border-color: var(--red); background: var(--soft-red); }
.choice-card.disabled { opacity: .55; cursor: not-allowed; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table.table { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 640px; }
.table th { background: var(--soft); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); padding: 13px 15px; white-space: nowrap; }
.table td { padding: 14px 15px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: #FCFBFA; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.player { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.avatar.red { background: var(--red); }
.avatar.orange { background: var(--orange); color: var(--ink); }
.avatar.lg { width: 52px; height: 52px; font-size: 17px; }

/* ==================================================================
   PUBLIC LAYOUT
   ================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-display); font-size: 21px; letter-spacing: .5px; text-transform: uppercase; }
.brand-text small { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--red); margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; color: var(--muted); }
.main-nav a { position: relative; padding: 6px 0; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--red); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }
.mobile-nav { display: none; }

.site-footer { background: var(--ink); color: #C7C2BF; padding: 60px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--font-display); text-transform: uppercase; font-size: 18px; letter-spacing: .5px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a:hover { color: #fff; }
.footer-brand img { width: 72px; height: 72px; margin-bottom: 14px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; }
.footer-stripe { height: 5px; background: linear-gradient(90deg, var(--red), var(--orange)); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(125deg, var(--ink) 0%, #2E292A 62%, var(--red-dark) 100%); color: #fff; border-radius: 28px; padding: 64px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 30px; min-height: 420px; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; border: 80px solid rgba(247, 165, 31, .10); border-radius: 50%; right: -180px; top: -180px; }
.hero-copy { position: relative; z-index: 2; max-width: 680px; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(46px, 6.4vw, 80px); line-height: .92; text-transform: uppercase; letter-spacing: -1px; margin: 0 0 20px; }
.hero p { color: #D8D4D1; font-size: 17px; max-width: 580px; margin: 0 0 28px; }
.hero-art { position: relative; z-index: 2; display: flex; justify-content: center; }
.hero-art img { width: min(340px, 100%); filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .28)); }

/* Page header (inner pages) */
.page-hero { background: linear-gradient(125deg, var(--ink) 0%, #2E292A 70%, var(--red-dark) 130%); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 380px; height: 380px; border: 60px solid rgba(247, 165, 31, .08); border-radius: 50%; right: -120px; top: -160px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 60px); text-transform: uppercase; line-height: .95; margin: 0; }
.page-hero p { color: #D8D4D1; max-width: 640px; margin: 14px 0 0; font-size: 16px; }

/* ==================================================================
   AUTH LAYOUT (login, register…)
   ================================================================== */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.auth-aside { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--ink) 0%, #2E292A 60%, var(--red-dark) 120%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside::after { content: ""; position: absolute; width: 460px; height: 460px; border: 70px solid rgba(247, 165, 31, .10); border-radius: 50%; right: -170px; bottom: -170px; }
.auth-aside .brand-text strong { color: #fff; }
.auth-aside .brand-text small { color: var(--orange); }
.auth-aside-body { position: relative; z-index: 2; max-width: 460px; }
.auth-aside h2 { font-family: var(--font-display); font-size: clamp(40px, 4.4vw, 60px); text-transform: uppercase; line-height: .92; margin: 0 0 16px; }
.auth-aside p { color: #D8D4D1; }
.auth-aside .auth-logo { width: 220px; margin: 0 0 28px; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .3)); }
.auth-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 14px; }
.auth-points li { display: flex; gap: 10px; align-items: center; }
.auth-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-family: var(--font-display); font-size: 40px; text-transform: uppercase; line-height: 1; margin: 0 0 8px; }
.auth-card .form-grid { grid-template-columns: 1fr; }
.auth-foot { margin-top: 22px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-mobile-brand { display: none; }

/* ==================================================================
   DASHBOARD LAYOUT (parent + admin)
   ================================================================== */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: var(--canvas); }
.sidebar { background: var(--ink); color: #fff; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .brand { padding: 0 8px 22px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sidebar .brand img { width: 42px; height: 42px; }
.sidebar .brand-text strong { font-size: 19px; }
.sidebar .brand-text small { color: var(--orange); }
.side-section { font-size: 10px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #8A8588; padding: 16px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #C5C0BD; margin: 2px 0; transition: background .15s, color .15s; }
.side-link svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-link.active { background: var(--red); color: #fff; font-weight: 800; }
.side-link .count { margin-left: auto; background: var(--orange); color: var(--ink); font-size: 10px; font-weight: 900; border-radius: 99px; padding: 3px 7px; }
.sidebar-foot { margin-top: auto; padding-top: 18px; }
.sidebar-card { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 14px; font-size: 12px; color: #C5C0BD; }
.sidebar-card strong { color: #fff; display: block; margin-bottom: 4px; font-size: 13px; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.app-topbar .page-title { font-family: var(--font-display); font-size: 26px; text-transform: uppercase; margin: 0; line-height: 1; }
.app-topbar .crumbs { font-size: 12px; color: var(--muted); margin-top: 3px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.user-chip .avatar { width: 30px; height: 30px; font-size: 11px; }
.app-content { padding: 28px 32px 48px; flex: 1; }
.app-content > .alert:first-child { margin-top: 0; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; }
.sidebar-backdrop { display: none; }
.app-shell.admin .sidebar { background: #19181A; }
.admin-tag { display: inline-block; background: var(--orange); color: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: 1px; padding: 3px 7px; border-radius: 6px; margin-left: 4px; vertical-align: middle; }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dash-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 18px; }

/* ==================================================================
   ERROR PAGES
   ================================================================== */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.error-page .code { font-family: var(--font-display); font-weight: 800; font-size: clamp(90px, 16vw, 160px); line-height: .9; color: var(--red); letter-spacing: -2px; }
.error-page h1 { font-family: var(--font-display); text-transform: uppercase; font-size: 34px; margin: 10px 0 8px; }
.error-page p { color: var(--muted); max-width: 460px; margin: 0 auto 24px; }
.error-page img { width: 110px; margin: 0 auto 10px; }

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 1100px) {
  .main-nav { gap: 18px; font-size: 13px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  :root { --gutter: 28px; }
  .main-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: block; position: fixed; inset: 72px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px var(--gutter) 22px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease; z-index: 49; }
  .mobile-nav.open { transform: none; opacity: 1; visibility: visible; }
  .mobile-nav a:not(.btn) { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 700; }
  .mobile-nav a.active { color: var(--red); }
  .mobile-nav .btn-row { margin-top: 16px; }
  .mobile-nav .btn { flex: 1; }

  .hero { grid-template-columns: 1fr; padding: 44px; }
  .hero-art { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-brand { display: flex; justify-content: center; margin-bottom: 26px; }
  .auth-mobile-brand img { width: 88px; }

  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 60; transform: translateX(-100%); transition: transform .25s ease; }
  .app-shell.nav-open .sidebar { transform: none; }
  .app-shell.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 55; }
  .menu-toggle { display: inline-flex; }
  .app-topbar { padding: 0 20px; }
  .app-content { padding: 22px 20px 40px; }
}

@media (max-width: 700px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .section { padding: 52px 0; }
  .site-header .container { height: 64px; }
  .mobile-nav { inset: 64px 0 auto 0; }
  .brand img { width: 42px; height: 42px; }
  .brand-text strong { font-size: 18px; }
  .hero { padding: 32px 24px; border-radius: 20px; min-height: 0; }
  .hero p { font-size: 15px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .callout { flex-direction: column; align-items: flex-start; padding: 24px; }
  .card { padding: 20px; }
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px; }
  .stat-value { font-size: 32px; }
  .app-topbar .page-title { font-size: 22px; }
  .user-chip .user-name { display: none; }
  .user-chip { padding: 4px; }
  .btn-row.stack-mobile { flex-direction: column; align-items: stretch; }
  .btn-row.stack-mobile .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ==================================================================
   PUBLIC PAGES (Stage 2)
   ================================================================== */

/* Home hero wrapper + facts strip */
.home-hero { padding: 30px 0 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: -38px 40px 0; position: relative; z-index: 3; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.fact { padding: 22px 24px; display: flex; gap: 14px; align-items: center; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact .stat-icon { width: 44px; height: 44px; border-radius: 12px; }
.fact strong { display: block; font-family: var(--font-display); font-size: 26px; line-height: 1; text-transform: uppercase; }
.fact span { font-size: 13px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 24px; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 54px; line-height: .8; color: var(--soft-red); -webkit-text-stroke: 1.5px var(--red); margin-bottom: 16px; }
.step h3 { font-size: 17px; margin: 0 0 6px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }
.step .badge { position: absolute; top: 22px; right: 20px; }

/* Season panel */
.season-panel { display: grid; grid-template-columns: .9fr 1.1fr; border-radius: 24px; overflow: hidden; background: var(--ink); color: #fff; }
.season-panel-copy { padding: 44px; position: relative; overflow: hidden; }
.season-panel-copy::after { content: ""; position: absolute; width: 300px; height: 300px; border: 50px solid rgba(247, 165, 31, .08); border-radius: 50%; left: -120px; bottom: -150px; }
.season-panel-copy > * { position: relative; z-index: 2; }
.season-panel-copy h2 { font-family: var(--font-display); font-size: clamp(34px, 4vw, 48px); text-transform: uppercase; line-height: .95; margin: 14px 0 14px; }
.season-panel-copy p { color: #C7C2BF; }
.season-panel-body { background: #2A282B; padding: 36px 40px; }
.season-panel-body .kpi { border-color: rgba(255, 255, 255, .1); }
.season-panel-body .kpi span { color: #C7C2BF; }
.date-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 6px; }
.date-chip { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 12px 8px; text-align: center; }
.date-chip small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange); }
.date-chip strong { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1; }
.date-chip span { display: block; font-size: 11px; color: #C7C2BF; }
.light .date-chip { background: var(--soft); border-color: var(--line); }
.light .date-chip span { color: var(--muted); }
.light .date-chip small { color: var(--red); }

/* Why-us cards */
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why-card .stat-icon { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; }
.why-card .stat-icon svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 17px; margin-bottom: 6px; }
.why-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* Session timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 0 0 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .t-dot { width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: 16px; text-align: center; line-height: 1; }
.timeline li:nth-child(2) .t-dot { background: var(--red); }
.timeline li:nth-child(3) .t-dot { background: var(--orange); color: var(--ink); }
.timeline h4 { margin: 6px 0 4px; font-size: 16px; }
.timeline p { margin: 0; font-size: 14px; color: var(--muted); }
.dark .timeline::before { background: rgba(255, 255, 255, .12); }
.dark .timeline .t-dot { background: rgba(255, 255, 255, .1); }
.dark .timeline li:nth-child(2) .t-dot { background: var(--red); }
.dark .timeline li:nth-child(3) .t-dot { background: var(--orange); }
.dark .timeline p { color: #C7C2BF; }

/* Club pathway band */
.pathway { position: relative; overflow: hidden; border-radius: 24px; background: linear-gradient(120deg, var(--red-dark), var(--red) 55%, #D2400F); color: #fff; padding: 48px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.pathway::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .07); }
.pathway h2 { font-family: var(--font-display); font-size: clamp(34px, 4vw, 50px); text-transform: uppercase; line-height: .95; margin: 0 0 12px; }
.pathway p { color: #FFE3DA; margin: 0; }
.pathway-steps { position: relative; z-index: 2; display: grid; gap: 10px; }
.pathway-steps div { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 13px 16px; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
.pathway-steps b { font-family: var(--font-display); font-size: 22px; color: var(--orange); width: 26px; }

/* Testimonials */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.quote-stars { color: var(--orange); display: flex; gap: 2px; }
.quote-stars svg { width: 16px; height: 16px; fill: currentColor; }
.quote blockquote { margin: 0; font-size: 15px; line-height: 1.6; flex: 1; }
.quote footer { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.quote footer strong { display: block; font-size: 14px; }
.quote footer span { color: var(--muted); }

/* FAQ accordion */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--soft-red); color: var(--red); display: grid; place-items: center; font-size: 18px; font-weight: 800; }
.faq-item[open] summary::after { content: "\2013"; background: var(--red); color: #fff; }
.faq-item[open] { border-color: #F1D4CC; box-shadow: var(--shadow-sm); }
.faq-item .faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.faq-group-title { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; margin: 34px 0 14px; scroll-margin-top: 96px; }
.faq-group-title:first-child { margin-top: 0; }

/* Split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.top { align-items: start; }
.split-media { position: relative; border-radius: 24px; background: var(--soft); border: 1px solid var(--line); min-height: 380px; display: grid; place-items: center; overflow: hidden; }
.split-media img { width: 62%; max-width: 320px; filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .18)); position: relative; z-index: 1; }
.pitch-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(33, 32, 35, .08); }
.check-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check-list li svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: var(--soft-green); color: var(--green); margin-top: 1px; }
.dark .check-list li svg, .price-card .check-list li svg { background: rgba(255, 255, 255, .1); color: var(--orange); }

/* Values & coaches */
.value-card { border-radius: var(--radius); padding: 26px; background: var(--soft); border: 1px solid var(--line); }
.value-card .v-letter { font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: .9; color: var(--red); }
.value-card h3 { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; margin: 10px 0 6px; }
.value-card p { color: var(--muted); font-size: 14px; margin: 0; }
.coach-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.coach-photo { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--ink), #3A2F2F 70%, var(--red-dark)); display: grid; place-items: center; position: relative; }
.coach-photo span { font-family: var(--font-display); font-size: 64px; font-weight: 800; color: rgba(255, 255, 255, .9); }
.coach-photo .badge { position: absolute; left: 14px; bottom: 14px; }
.coach-body { padding: 20px 22px 22px; }
.coach-body h3 { font-size: 18px; margin: 0 0 2px; }
.coach-body .role { color: var(--red); font-weight: 700; font-size: 13px; }
.coach-body p { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

/* Age groups, price, kit */
.age-card { border-radius: var(--radius); border: 1px solid var(--line); padding: 26px; background: #fff; position: relative; overflow: hidden; }
.age-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--red); }
.age-card:nth-child(2)::before { background: var(--orange); }
.age-card:nth-child(3)::before { background: var(--ink); }
.age-card .ages { font-family: var(--font-display); font-size: 44px; font-weight: 800; line-height: 1; }
.age-card .ages small { font-size: 18px; color: var(--muted); font-weight: 600; }
.age-card h3 { font-size: 17px; margin: 8px 0 6px; }
.age-card p { font-size: 14px; color: var(--muted); margin: 0; }
.price-card { border-radius: 24px; background: var(--ink); color: #fff; padding: 34px; position: relative; overflow: hidden; }
.price-card .price { font-family: var(--font-display); font-size: 88px; font-weight: 800; line-height: .9; }
.price-card .price small { font-size: 22px; color: #C7C2BF; font-weight: 600; margin-left: 6px; }
.price-card .check-list li { font-size: 14px; }
.pay-methods { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.pay-methods span { font-size: 12px; font-weight: 700; padding: 7px 11px; border-radius: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kit-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.kit-item .stat-icon { width: 34px; height: 34px; }
.kit-item .stat-icon svg { width: 16px; height: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.contact-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .stat-icon { width: 42px; height: 42px; }
.contact-item strong { display: block; font-size: 14px; }
.contact-item span, .contact-item a { font-size: 14px; color: var(--muted); }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 240px; position: relative; background: var(--soft); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; padding: 20px; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Legal / long-form prose */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 96px; font-size: 13px; }
.legal-toc strong { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.legal-toc a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); color: var(--muted); font-weight: 600; }
.legal-toc a:hover { color: var(--red); border-color: var(--red); }
.prose { max-width: 760px; font-size: 15px; line-height: 1.75; }
.prose h2 { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; margin: 38px 0 12px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin: 6px 0; }
.prose a { color: var(--red); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 1em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--soft); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }

@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); margin: -30px 20px 0; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 1000px) {
  .season-panel, .pathway, .split, .contact-grid { grid-template-columns: 1fr; }
  .split { gap: 30px; }
  .split-media { min-height: 280px; }
  .legal { grid-template-columns: 1fr; gap: 20px; }
  .legal-toc { display: none; }
  .kit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .home-hero { padding-top: 16px; }
  .facts { grid-template-columns: 1fr 1fr; margin: 14px 0 0; }
  .fact { padding: 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .fact strong { font-size: 22px; }
  .steps { grid-template-columns: 1fr; }
  .season-panel-copy, .season-panel-body { padding: 28px 22px; }
  .date-list { grid-template-columns: repeat(2, 1fr); }
  .pathway { padding: 30px 22px; }
  .price-card { padding: 26px; }
  .price-card .price { font-size: 72px; }
  .kit-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 44px 0 40px; }
}

/* ==================================================================
   PARENT PORTAL (Stage 4)
   ================================================================== */
.welcome { position: relative; overflow: hidden; border-radius: 20px; padding: 28px 30px; background: linear-gradient(125deg, var(--ink) 0%, #2E292A 60%, var(--red-dark) 120%); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.welcome::after { content: ""; position: absolute; width: 280px; height: 280px; border: 46px solid rgba(247, 165, 31, .10); border-radius: 50%; right: -90px; top: -120px; }
.welcome > * { position: relative; z-index: 1; }
.welcome .eyebrow { margin-bottom: 6px; }
.welcome h2 { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 42px); text-transform: uppercase; line-height: 1; margin: 0 0 8px; }
.welcome p { margin: 0; color: #D8D4D1; }
.stat-value-sm { font-size: 24px !important; margin-top: 14px !important; line-height: 1.05 !important; }

.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list-row:first-of-type { border-top: 0; }
.list-row .player { flex: 1; min-width: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; }
.checklist li.current { background: var(--soft-red); }
.checklist-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #EEEDEE; color: var(--muted); }
.checklist-mark svg { width: 15px; height: 15px; }
.checklist li.done .checklist-mark { background: var(--green); color: #fff; }
.checklist li.current .checklist-mark { background: var(--red); color: #fff; }
.checklist strong { display: block; font-size: 14px; }
.checklist a strong { color: var(--red); }
.checklist li.done strong { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.checklist span { font-size: 12px; color: var(--muted); }

.date-chip.next { background: var(--red) !important; border-color: var(--red) !important; color: #fff; }
.date-chip.next small, .date-chip.next span { color: #FFE3DA !important; }

.child-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.child-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.child-card-head { display: flex; gap: 14px; align-items: center; }
.child-card h3 { font-size: 18px; margin: 0 0 2px; }
.child-card .badge svg { width: 12px; height: 12px; }
.child-card-foot { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); margin-top: 18px; }
.child-card-add { align-items: center; justify-content: center; text-align: center; gap: 6px; border-style: dashed; border-width: 2px; background: transparent; min-height: 200px; transition: border-color .15s, background .15s; }
.child-card-add:hover { border-color: var(--red); background: #fff; }
.child-card-add .empty-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--soft-red); color: var(--red); display: grid; place-items: center; margin-bottom: 6px; }
.child-card-add .empty-icon svg { width: 22px; height: 22px; }
.empty-icon svg { width: 26px; height: 26px; }
.card-title .alert-icon { vertical-align: -4px; margin-right: 4px; }

@media (max-width: 700px) {
  .welcome { padding: 24px 20px; }
  .welcome .btn { width: 100%; }
  .list-row { flex-wrap: wrap; }
  .list-row .player { flex-basis: 100%; }
}

/* ==================================================================
   ADMIN: SEASONS (Stage 5)
   ================================================================== */
.avatar svg { width: 16px; height: 16px; }
.text-red { color: var(--red); font-weight: 700; }
.session-rows { display: grid; gap: 8px; }
.session-row { display: grid; grid-template-columns: 34px 1.4fr 1fr 1fr 40px; gap: 10px; align-items: start; }
.session-row-head { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); padding: 0 2px; }
.session-num { width: 34px; height: 46px; border-radius: 10px; background: var(--soft-red); color: var(--red); font-family: var(--font-display); font-weight: 800; font-size: 20px; display: grid; place-items: center; }
.session-row .btn-ghost { height: 46px; color: var(--muted); }
.session-row .btn-ghost:hover { color: var(--red); }
.sat-warning { display: none; font-size: 11px; font-weight: 700; color: var(--orange-ink); margin-top: 4px; }
.date-chip.past { opacity: .5; }
.stack-sm form { display: block; }
.stack-sm form .btn-block { width: 100%; }
.btn-white.btn-block { justify-content: flex-start; }

@media (max-width: 700px) {
  .session-row { grid-template-columns: 30px 1fr 1fr; }
  .session-row > div { grid-column: 2 / -1; }
  .session-row-head { display: none; }
  .session-row .btn-ghost { grid-column: 1; grid-row: 2; height: 36px; padding: 0; }
}

/* Long unbroken words (e.g. season names) must never widen the page */
.stat, .dash-stats > *, .dash-grid > *, .child-grid > * { min-width: 0; }
.stat-value-sm, .card-title, .welcome p { overflow-wrap: anywhere; }

/* ==================================================================
   BOOKING & PAYMENTS (Stage 6)
   ================================================================== */
.text-right { text-align: right; }
.choice-card strong svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; color: var(--red); }
.choice-card > strong { white-space: nowrap; }
.order-summary { position: sticky; top: 90px; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 16px; padding-top: 14px; border-top: 2px solid var(--ink); }
.order-total span { font-weight: 800; }
.order-total strong { font-family: var(--font-display); font-size: 38px; line-height: 1; }
.xsmall .alert-icon { width: 13px; height: 13px; vertical-align: -2px; }

.receipt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.receipt-head .brand img { width: 52px; height: 52px; }
.receipt .table { font-size: 14px; }
.receipt-total td { font-weight: 800; font-size: 15px; border-top: 2px solid var(--ink) !important; background: var(--soft); }
.receipt .label { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; margin-bottom: 4px; }

@media (max-width: 1000px) {
  .order-summary { position: static; }
}

@media print {
  .sidebar, .app-topbar, .no-print, .alert, .skip-link { display: none !important; }
  .app-shell { display: block; background: #fff; }
  .app-content { padding: 0; }
  .dash-grid { display: block; }
  .card { box-shadow: none; border: 0; padding: 0; }
  body { background: #fff; }
}
.order-summary [data-pay-button] { white-space: normal; line-height: 1.3; }

/* ==================================================================
   ADMIN MANAGEMENT (Stage 7)
   ================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; padding: 18px 20px; }
.filters .field { min-width: 170px; }
.filters .field.grow { flex: 1 1 240px; }
.filters .field.narrow { min-width: 0; width: 90px; }
.filters .field.narrow-date { min-width: 0; width: 160px; }
.filters .filter-actions { display: flex; gap: 6px; }
.filters .filter-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-bottom: 12px; }
.filters .filter-checks .check { font-size: 13px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.table a.player:hover { color: var(--red); }
.table .badge svg, .badge svg { width: 12px; height: 12px; }
.row-attention { background: #FFFBF2; }
.star-icon { width: 14px; height: 14px; color: var(--orange); fill: var(--orange); vertical-align: -2px; }
.badge-solid svg { fill: currentColor; }

.health-row { padding: 12px 14px; border-radius: 12px; background: var(--soft); margin-top: 8px; }
.health-row.has { background: var(--soft-orange); }
.health-row strong { font-size: 13px; }
.health-row p { margin: 4px 0 0; font-size: 14px; }

.scouting { background: var(--ink); color: #fff; border-color: var(--ink); }
.scouting .label, .scouting label { color: #E7E3E0; }
.scouting textarea, .scouting select { background: #2A282B; border-color: #3A383B; color: #fff; }
.rating { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating input { position: absolute; opacity: 0; width: 0; }
.rating label { cursor: pointer; color: #5A5659; }
.rating label svg { width: 28px; height: 28px; fill: currentColor; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: var(--orange); }

.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line-strong); }
.seg button:hover { background: var(--soft); }
.seg button.on { color: #fff; }
.seg button.on.booked { background: var(--blue); }
.seg button.on.attended { background: var(--green); }
.seg button.on.no_show { background: var(--red); }

.register-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.register-table { font-size: 12px; min-width: 0; }
.register-table td, .register-table th { padding: 8px 8px; }
.register-table .tick { text-align: center; width: 64px; }
.register-table .box { display: inline-block; width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 4px; }

@media print {
  .filters, .pager, .app-topbar .btn { display: none !important; }
  .table-wrap { border: 0; overflow: visible; }
  table.table { min-width: 0; }
  .register-table th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4 landscape; margin: 12mm; }
}
.seg button { white-space: nowrap; }
.email-preview { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 12px; background: #F0EEEB; }
.recipient { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.recipient span { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.check-row { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.check-row:first-of-type { border-top: 0; }
.check-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.check-icon svg { width: 17px; height: 17px; }
.check-row.ok .check-icon { background: var(--soft-green); color: var(--green); }
.check-row.warn .check-icon { background: var(--soft-orange); color: var(--orange-ink); }
.check-row.fail .check-icon { background: var(--soft-red); color: var(--red); }
.check-row strong { font-size: 14px; }
.check-row .small { overflow-wrap: anywhere; }
.check-fix { margin-top: 4px; color: var(--ink-2); background: var(--soft); border-radius: 8px; padding: 6px 10px; }

/* ==================================================================
   PART 2: ROLLING SATURDAYS
   ================================================================== */

/* Saturday picker */
.sat-picker { display: flex; flex-wrap: wrap; gap: 18px; }
.sat-month { flex: 1 1 250px; max-width: 320px; }
.sat-month-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; text-transform: uppercase; margin-bottom: 6px; }
.sat-grid { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.sat-grid th { font-size: 11px; font-weight: 800; color: var(--muted); padding: 2px 0; text-align: center; }
.sat-grid th.sat-col { color: var(--red); }
.sat-grid td { text-align: center; font-size: 13px; height: 36px; padding: 0; border-radius: 9px; position: relative; }
.sat-grid td.off span, .sat-grid td.past span, .sat-grid td.unavailable span { color: #C9C5C1; }
.sat-grid td.blocked { background: repeating-linear-gradient(135deg, #F3F1EE, #F3F1EE 4px, #E8E5E1 4px, #E8E5E1 8px); }
.sat-grid td.blocked span { color: var(--muted); text-decoration: line-through; }
.sat-grid td.open input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sat-grid td.open label { display: grid; place-items: center; height: 36px; border-radius: 9px; cursor: pointer; font-weight: 800; color: var(--red); background: var(--soft-red); border: 1.5px solid #F1D4CC; transition: background .15s, color .15s; }
.sat-grid td.open label:hover { border-color: var(--red); }
.sat-grid td.open input:checked + label { background: var(--red); color: #fff; border-color: var(--red); box-shadow: 0 4px 12px rgba(183, 34, 9, .3); }
.sat-grid td.open input:focus-visible + label { outline: 3px solid rgba(183, 34, 9, .35); outline-offset: 2px; }
.sat-legend { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.sat-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.lg-open { background: var(--soft-red); border: 1.5px solid #F1D4CC; }
.lg-blocked { background: repeating-linear-gradient(135deg, #F3F1EE, #F3F1EE 3px, #DDD9D5 3px, #DDD9D5 6px); }
.lg-off { background: #F7F6F4; border: 1px solid var(--line); }

/* Admin calendar */
.cal-months { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-top: 16px; }
.cal-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.cal-row:first-of-type { border-top: 0; }
.cal-row.past { opacity: .55; }
.cal-row.next .cal-date { background: var(--red); color: #fff; }
.cal-row.next .cal-date small { color: #FFE3DA; }
.cal-date { width: 46px; height: 46px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; line-height: 1; flex: none; }
.cal-date small { font-size: 9px; font-weight: 800; letter-spacing: 1px; color: var(--red); }
.cal-date strong { font-family: var(--font-display); font-size: 22px; }
.cal-row.blocked .cal-date { background: repeating-linear-gradient(135deg, #F3F1EE, #F3F1EE 4px, #E8E5E1 4px, #E8E5E1 8px); }
.cal-info { flex: 1; min-width: 120px; }
.cal-info a:hover { color: var(--red); }
.cal-block-form { display: flex; gap: 6px; align-items: center; }
.cal-block-form input { min-height: 34px; padding: 6px 10px; font-size: 13px; width: 150px; }

/* Session date lists (parent + admin) */
.session-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 10px 0; }
.session-pill { border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; background: #fff; line-height: 1.2; }
.session-pill small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--red); }
.session-pill strong { font-family: var(--font-display); font-size: 19px; }
.session-pill span { display: block; font-size: 11px; color: var(--muted); }
.session-pill.done { opacity: .5; }
.session-pill.next { border-color: var(--red); background: var(--soft-red); }
.session-pill.moved span { color: var(--orange-ink); }
.policy-box { background: var(--soft-orange); border: 1px solid #F6DDB0; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13px; color: #5C3B00; }
.policy-box ul { margin: 6px 0 0; padding-left: 18px; }
.policy-box li { margin: 3px 0; }
.membership-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.membership-card + .membership-card { margin-top: 16px; }
.card-on-file { display: flex; align-items: center; gap: 12px; }
.card-on-file .card-chip { width: 46px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, var(--ink), #4A4649); color: #fff; font-size: 9px; font-weight: 800; display: grid; place-items: center; text-transform: uppercase; }

@media (max-width: 700px) {
  .sat-month { max-width: none; }
  .cal-block-form input { width: 120px; }
}
.session-preview { display: flex; gap: 8px; align-items: center; background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.kid-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(160px, 1.3fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.kid-row:first-of-type { border-top: 0; }
.how-grid > div { display: flex; flex-direction: column; gap: 6px; }
.how-grid p { margin: 0; }
@media (max-width: 700px) { .kid-row { grid-template-columns: 1fr; } }
.date-list { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important; }
.date-chip.chip-blocked { opacity: .5; text-decoration: line-through; }
.date-chip.chip-blocked small { text-decoration: none; }
