/* ============================================================
   AFK KICKBOXING — Member App
   Premium design system (dark / charcoal / AFK red)
   ============================================================ */
/* Heavy condensed poster display face for headlines (self-hosted, offline-safe). */
@font-face {
  font-family: 'AFK Display';
  src: url('/assets/fonts/anton-latin.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
}
:root {
  /* Display type — used uppercase for hero titles / screen titles */
  --font-display: 'AFK Display', 'Arial Narrow', Impact, sans-serif;
  /* Surfaces */
  --bg:        #0A0B0D;
  --bg-2:      #0D0E11;
  --surface:   #131519;   /* charcoal card */
  --surface-2: #171A20;
  --elev:      #1E2128;   /* elevated control */
  --elev-2:    #262932;

  /* Lines (used sparingly) */
  --line:      rgba(255,255,255,.055);
  --line-2:    rgba(255,255,255,.10);

  /* Text */
  --ink:       #F4F6F9;   /* primary white */
  --ink-2:     #A7AEB8;   /* cool grey secondary */
  --ink-3:     #868E9B;   /* muted — lightened to meet WCAG AA (~4.5:1) for small labels */

  /* Brand */
  --red:       #E11D2A;
  --red-2:     #FF3B48;
  --red-soft:  rgba(225,29,42,.13);
  --gold:      #F0B23C;   /* belt / rank */
  --gold-soft: rgba(240,178,60,.14);
  --green:     #35D07E;   /* success */
  --green-soft:rgba(53,208,126,.14);

  /* Radius */
  --r-card: 18px;
  --r-btn:  13px;
  --r-input:12px;
  --r-sm:   10px;
  --r-pill: 999px;

  /* Elevation */
  --sh-card: 0 10px 30px -18px rgba(0,0,0,.75);
  --sh-pop:  0 24px 60px -20px rgba(0,0,0,.85);
  --hair:    inset 0 1px 0 rgba(255,255,255,.04);

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --t:    .22s var(--ease);

  --maxw: 480px;
  --nav-h: 62px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; min-height: 100%; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 400; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
body { display: block; }
/* Ambient AFK backdrop — shows behind the phone-width column on larger screens,
   and in the safe-area edges, giving the app depth. */
#root { min-height: 100dvh; background: #0A0B0D url('/assets/app-ambient.jpg') center/cover fixed no-repeat; }
.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
img { max-width: 100%; }
/* Keyboard focus — visible for tab/switch users, never for mouse (focus-visible only). */
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 2px; border-radius: 6px; }
[data-nav-go], [data-nav], .sec-head a, .link-row, .nav, .hh-bell { cursor: pointer; }
::selection { background: rgba(225,29,42,.35); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-btn); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  color: #fff; transition: transform .12s var(--ease), background .18s, box-shadow .18s, filter .18s; }
.btn:active { transform: scale(.97); }
.btn-red { background: linear-gradient(180deg, #F5313E 0%, #D3151F 100%); box-shadow: 0 10px 24px -10px rgba(225,29,42,.7), var(--hair); }
.btn-red:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--elev); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--elev-2); }
.btn-outline { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); }
.btn-outline:hover { color: var(--ink); border-color: rgba(255,255,255,.24); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 13.5px; border-radius: var(--r-sm); }

/* ---------- Auth ---------- */
.auth-screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(10,11,13,.82) 0%, rgba(10,11,13,.62) 42%, rgba(10,11,13,.9) 100%),
    url('/assets/login-bg.jpg') center bottom / cover no-repeat;
  background-attachment: scroll, fixed; }
.auth { width: 100%; max-width: 400px; background: linear-gradient(180deg, rgba(23,26,32,.94), rgba(15,17,21,.96)); border: 1px solid var(--line-2);
  border-radius: 22px; padding: 38px 30px; box-shadow: var(--sh-pop); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.auth .logo { text-align: center; margin-bottom: 6px; }
.logo-mark { font-weight: 800; font-size: 36px; letter-spacing: -2px; }
.logo-mark b { color: var(--red); }
.logo-tag { display: inline-block; background: var(--gold); color: #111; font-size: 10px; font-weight: 800; letter-spacing: 3px; padding: 3px 9px; border-radius: 5px; margin-top: 6px; }
.auth h1 { text-align: center; font-size: 23px; font-weight: 700; letter-spacing: -.4px; margin: 20px 0 4px; }
.auth p.sub { text-align: center; color: var(--ink-3); margin: 0 0 26px; font-size: 14px; }
.auth .switch { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 22px; }
.auth .switch a { color: var(--red); font-weight: 600; }
.form-error { background: var(--red-soft); color: #ff8b93; border-radius: var(--r-sm); padding: 11px 14px; font-size: 14px; margin-bottom: 14px; border: 1px solid rgba(225,29,42,.25); }

/* ---------- Fields / inputs ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink);
  padding: 14px; border-radius: var(--r-input); font-size: 16px; font-family: var(--font); outline: none; width: 100%; transition: border-color var(--t), background var(--t); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); background: #0b0c0f; }
.field input::placeholder { color: var(--ink-3); }

/* ---------- App shell ---------- */
.app { width: 100%; max-width: var(--maxw); margin: 0 auto;
  height: 100vh; height: 100dvh; /* dvh = the real visible height in standalone, so the nav can't fall below the fold */
  background: radial-gradient(140% 55% at 50% -12%, #1c0f11 0%, var(--bg) 46%);
  position: relative; display: flex; flex-direction: column; overflow: hidden; }

.topbar { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; padding-top: max(16px, env(safe-area-inset-top)); }
/* Slim persistent bar: brand wordmark + notification bell only. */
.topbar-slim { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 18px 8px; }
.tb-brand { font-family: var(--font-display); font-size: 22px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); line-height: 1; }
/* Home-only greeting (scrolls with the page). */
.home-greet { display: flex; align-items: center; gap: 12px; margin: 2px 2px 18px; }
.home-greet .hg-av { flex-shrink: 0; border-radius: 50%; padding: 2.5px; background: radial-gradient(circle, rgba(225,29,42,.32), transparent 72%); box-shadow: 0 0 0 1.5px rgba(225,29,42,.8); }
.home-greet .hg-av .avatar { width: 44px; height: 44px; border: 2px solid rgba(10,11,13,.9); }
.home-greet .hg-id { flex: 1; min-width: 0; }
.home-greet .hg-w { font-size: 9.5px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-3); }
.home-greet .hg-name { font-size: 23px; font-weight: 800; letter-spacing: -.6px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-greet .hg-stats { display: flex; gap: 16px; flex-shrink: 0; }
.home-greet .hg-stat { text-align: center; }
.home-greet .hg-stat b { display: block; font-size: 19px; font-weight: 800; line-height: 1; }
.home-greet .hg-stat span { font-size: 8.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-3); font-weight: 700; }
/* ---- Hero header (avatar + welcome + stats + bell) — a clean dark card, consistent with the app ---- */
.hh-avatar { flex-shrink: 0; border-radius: 50%; padding: 3px; background: radial-gradient(circle, rgba(225,29,42,.35), transparent 72%); box-shadow: 0 0 0 1.5px rgba(225,29,42,.85), 0 0 16px rgba(225,29,42,.5); }
.hh-avatar .avatar { width: 50px; height: 50px; border: 2px solid rgba(10,11,13,.9); }
.hh-id { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hh-welcome { font-size: 9.5px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-3); }
.hh-name { display: flex; align-items: center; gap: 6px; font-size: 21px; font-weight: 800; letter-spacing: -.6px; line-height: 1; max-width: 100%; }
.hh-name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hh-name .glove-ic { color: var(--ink-2); flex-shrink: 0; }
.hh-stats { display: flex; gap: 2px; flex-shrink: 0; align-self: stretch; align-items: center; border-left: 1px solid var(--line-2); padding-left: 8px; margin-left: 2px; }
.hh-stat { display: flex; flex-direction: column; align-items: center; min-width: 44px; gap: 1px; }
.hh-ic { display: inline-flex; }
.hh-ic.red { color: var(--red-2); } .hh-ic.blue { color: #4C8DFF; }
.hh-v { font-size: 18px; font-weight: 800; line-height: 1.05; }
.hh-l { font-size: 8px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .3px; font-weight: 700; text-align: center; white-space: nowrap; }
.hh-bell { flex-shrink: 0; position: relative; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.hh-bell .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; background: var(--red); border-radius: 99px; border: 2px solid #0b0c0f; }
@media (max-width: 360px) { .hh-stats { display: none; } }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #F5313E, #7a0f16); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.08), 0 6px 16px -6px rgba(225,29,42,.5); flex-shrink: 0; overflow: hidden; }
.avatar-btn { position: relative; background: none; border: none; padding: 0; cursor: pointer; flex-shrink: 0; line-height: 0; }
.avatar-cam { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface); }
.welcome { flex: 1; line-height: 1.2; }
.welcome span { color: var(--ink-3); font-size: 13px; }
.welcome strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.glove-ic { display: inline-flex; vertical-align: -3px; color: var(--red); }
.welcome .wname { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.welcome .wname strong { display: inline; }
.mem-pill { font-size: 10px; font-weight: 800; letter-spacing: .4px; padding: 2px 9px; border-radius: 999px; text-transform: uppercase; white-space: nowrap; border: 1px solid transparent; line-height: 1.5; }
.mem-pill.tier-bronze { background: rgba(176,115,58,.18); color: #E0A060; border-color: rgba(176,115,58,.42); }
.mem-pill.tier-silver { background: rgba(190,197,209,.16); color: #CBD2DD; border-color: rgba(190,197,209,.34); }
.mem-pill.tier-gold { background: rgba(240,178,60,.18); color: var(--gold); border-color: rgba(240,178,60,.42); }
.mem-pill.tier-ultimate { background: linear-gradient(135deg, rgba(225,29,42,.92), rgba(240,178,60,.92)); color: #fff; border-color: rgba(255,255,255,.28); box-shadow: 0 2px 8px rgba(225,29,42,.35); }
/* Coaching rank medal (shown instead of the membership tier) */
.rank-pill { display: inline-flex; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 600; letter-spacing: .2px; padding: 2px 8px 2px 6px; border-radius: 999px; white-space: nowrap; line-height: 1.5;
  background: rgba(16,10,12,.5); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.rank-pill svg { width: 11px; height: 11px; flex-shrink: 0; opacity: .82; }
.rank-pill.r-junior { color: #E4B98C; border-color: rgba(205,127,50,.4); background: linear-gradient(135deg, rgba(205,127,50,.15), rgba(12,10,12,.5)); }
.rank-pill.r-senior { color: #D6DCE6; border-color: rgba(190,197,209,.32); background: linear-gradient(135deg, rgba(190,197,209,.11), rgba(12,12,14,.5)); }
.rank-pill.r-head { color: #FF9AA2; border-color: rgba(225,29,42,.42); background: linear-gradient(135deg, rgba(225,29,42,.22), rgba(9,8,10,.58)); box-shadow: 0 2px 10px rgba(225,29,42,.16), inset 0 1px 0 rgba(255,255,255,.06); }
.bell { position: relative; width: 42px; height: 42px; border-radius: 13px; background: var(--elev); border: 1px solid var(--line); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.bell:active { transform: scale(.94); }
.bell .dot { position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; box-shadow: 0 0 0 2px var(--bg); }

.screen { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 18px 22px; }
.screen.flush { padding: 0; overflow: hidden; }
/* card / section entrance */
.screen > * { animation: rise .28s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Titles & section headers ---------- */
.section-title { font-family: var(--font-display); font-size: 30px; font-weight: 400; letter-spacing: .5px; text-transform: uppercase; margin: 8px 2px 16px; line-height: 1; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 2px 13px; }
.sec-head h3 { font-size: 16px; font-weight: 700; letter-spacing: -.2px; color: var(--ink); margin: 0; }
.sec-head a { color: var(--red); font-size: 13px; font-weight: 700; padding: 4px 2px; margin: -4px -2px; cursor: pointer; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Cards (subtle depth, minimal borders) ---------- */
.card { background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 18px; box-shadow: var(--sh-card), var(--hair); }
/* Home panels use the same dark card as every other tab (consistency); only the belt
   showcase (.progress-card) keeps its artwork background. */

/* ---------- Belt progress card ---------- */
.progress-card { display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; padding: 0; min-height: 228px;
  background:
    linear-gradient(180deg, rgba(10,11,13,.34) 0%, transparent 28%, transparent 50%, rgba(10,11,13,.6) 80%, rgba(10,11,13,.9) 100%),
    radial-gradient(105% 78% at 50% 30%, rgba(10,11,13,.24) 0%, rgba(10,11,13,.52) 52%, rgba(10,11,13,.8) 100%),
    url('/assets/belt-bg.jpg');
  background-size: cover, cover, cover; background-position: center, center, center; background-repeat: no-repeat, no-repeat, no-repeat; }
.belt-col { text-align: center; }
.belt-label { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; }
.belt-name { font-weight: 700; font-size: 15px; margin-top: 3px; letter-spacing: -.2px; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.belt-name.next { color: var(--red); }
.belt-img { display: block; margin: 6px auto 0; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.belt-fallback { border-radius: 4px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.25); }
.ring-wrap { position: relative; width: 118px; height: 118px; }
.ring-wrap svg { transform: rotate(-90deg); overflow: visible; }
.ring-arc { transition: stroke-dashoffset 1.1s var(--ease); filter: drop-shadow(0 0 6px rgba(225,29,42,.55)); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-center .pct { font-size: 30px; font-weight: 800; letter-spacing: -1px; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.ring-center .lbl { font-size: 9.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 1px; margin-top: 1px; font-weight: 600; }

/* ---- Belt journey: swipeable carousel, focused belt inside the artwork circle ---- */
.belt-ladder { width: 100%; overflow: hidden; margin-top: 52px; touch-action: pan-y; cursor: grab; }
.belt-ladder:active { cursor: grabbing; }
/* Swipe-hint arrows on the Home belt banner */
.progress-card .belt-nav { position: absolute; top: 94px; transform: translateY(-50%); z-index: 4; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(10,11,13,.5); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.45); transition: background .15s, opacity .15s; }
.progress-card .belt-nav.prev { left: 10px; }
.progress-card .belt-nav.next { right: 10px; }
.progress-card .belt-nav:active { background: rgba(225,29,42,.72); }
.progress-card .belt-nav:disabled { opacity: .26; pointer-events: none; }
.belt-track { display: flex; gap: 16px; align-items: center; width: max-content; }
/* Belts render at full focus size and only ever scale DOWN, so the SVG never upscales/blurs. */
.belt-node { flex: 0 0 auto; width: 120px; text-align: center; transform: scale(.5); opacity: .4;
  transition: transform .42s cubic-bezier(.34,1.1,.4,1), opacity .42s var(--ease); }
.belt-node.is-focus { transform: scale(1); opacity: 1; }
.bn-medal { position: relative; width: 116px; height: 70px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.bn-medal .belt-img { width: 116px !important; height: 70px !important; margin: 0 !important; filter: drop-shadow(0 5px 12px rgba(0,0,0,.62)); }
.belt-node.is-focus .bn-medal .belt-img { filter: drop-shadow(0 7px 16px rgba(0,0,0,.75)); }
/* Locked belts: darkened + padlock, always readable as "not unlocked yet" */
.belt-node.is-locked .belt-img, .belt-node.is-locked .belt-fallback { filter: grayscale(1) brightness(.34); }
.belt-node.is-locked.is-focus { opacity: .9; }
.bn-lock { position: absolute; inset: -2px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.95); background: rgba(6,7,9,.42); border-radius: 9px; }
.bn-tick { position: absolute; bottom: 8px; right: 14px; width: 15px; height: 15px; border-radius: 50%; background: var(--green); color: #0A0B0D; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.5); border: 1.5px solid rgba(0,0,0,.28); }

/* ============ Belt Progress — thumb-friendly swipe redesign ============ */
.prog2-hero { position: relative; display: flex; justify-content: center; align-items: center; padding: 16px 0 8px; margin: 0 0 6px;
  background: radial-gradient(58% 78% at 50% 42%, rgba(225,29,42,.24), transparent 70%); }
.prog2-belt { width: 150px; height: auto; filter: drop-shadow(0 12px 26px rgba(0,0,0,.72)); }
.prog2-card { margin-bottom: 6px; }
.p2c-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.p2c-lab { font-size: 10px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--ink-3); }
.p2c-name { font-size: 21px; font-weight: 800; letter-spacing: -.5px; margin-top: 3px; }
.p2c-pct { font-size: 27px; font-weight: 800; color: var(--red-2); letter-spacing: -.6px; margin-top: 1px; font-variant-numeric: tabular-nums; }
.p2c-bar { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin: 13px 0 8px; box-shadow: inset 0 0 0 1px var(--line); }
.p2c-bar > span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--red); transition: width .42s var(--ease); }
.p2c-sub { font-size: 12.5px; color: var(--ink-3); }

/* Belt selector strip (thumb zone) */
.belt-select { display: flex; align-items: center; gap: 2px; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(225,29,42,.34); border-radius: 18px; padding: 6px; box-shadow: 0 10px 26px -14px rgba(225,29,42,.5); }
.belt-select .belt-ladder { flex: 1; min-width: 0; }
.belt-arrow { flex-shrink: 0; width: 38px; height: 62px; border: none; background: none; color: var(--ink-2); display: flex; align-items: center; justify-content: center; border-radius: 12px; cursor: pointer; transition: background .12s; }
.belt-arrow:active:not(:disabled) { background: var(--bg-2); }
.belt-arrow:disabled { opacity: .22; cursor: default; }
.belt-strip { margin-top: 0 !important; padding: 4px 0; }
.belt-strip .belt-track { gap: 8px; }
.belt-strip .belt-node { width: 96px; transform: scale(.58); opacity: .42; transition: transform .32s var(--ease), opacity .32s; }
.belt-strip .belt-node.is-focus { transform: scale(1); opacity: 1; }
.belt-strip .belt-img { width: 66px !important; height: 42px !important; margin: 0 auto !important; }
.belt-dots { display: flex; gap: 6px; justify-content: center; margin: 12px 0 4px; }
.belt-dots .bd { width: 6px; height: 6px; border-radius: 99px; background: var(--line-2); transition: all .25s var(--ease); }
.belt-dots .bd.on { width: 18px; background: var(--red); }

/* Syllabus section cards — collapsible dropdowns */
.ps-card { margin-top: 12px; padding: 0; overflow: hidden; }
.ps-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 15px; background: none; border: none; cursor: pointer; text-align: left; }
.ps-head h3 { font-size: 15px; font-weight: 800; letter-spacing: -.2px; margin: 0; color: var(--ink); }
.ps-head-r { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ps-count { font-size: 13px; font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ps-count.full { color: var(--green); }
.ps-chev { display: inline-flex; color: var(--ink-3); transition: transform .2s var(--ease); }
.ps-card.open .ps-chev { transform: rotate(90deg); }
.ps-body { display: none; }
.ps-card.open .ps-body { display: block; }
.ps-item { display: flex; align-items: center; gap: 12px; padding: 11px 15px; border-top: 1px solid var(--line); }
.ps-txt { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.ps-item.on .ps-txt { color: var(--ink); }
.ps-check { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--green); }
.ps-item.on .ps-check { background: var(--green-soft); border-color: transparent; }
.ps-viewall { width: 100%; background: none; border: none; border-top: 1px solid var(--line); color: var(--red-2); font-size: 13px; font-weight: 700; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.va-chev { display: inline-flex; transition: transform .2s; }
.va-chev.up { transform: rotate(-90deg); }
.ps-empty { text-align: center; padding: 22px 16px 24px; color: var(--ink-3); border-top: 1px solid var(--line); }
.ps-empty svg { color: var(--ink-3); opacity: .5; }
.ps-empty-t { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-top: 8px; }
.ps-empty-s { font-size: 12.5px; margin-top: 3px; max-width: 32ch; margin-left: auto; margin-right: auto; line-height: 1.45; }

/* "What I've learnt" — collapsible dropdown */
.learnt { margin-top: 22px; }
.learnt-head { width: 100%; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 6px 2px; text-align: left; }
.learnt-head h3 { font-size: 16px; font-weight: 700; letter-spacing: -.2px; color: var(--ink); margin: 0; }
.learnt-side { display: inline-flex; align-items: center; gap: 8px; }
.learnt-n { font-size: 11px; font-weight: 800; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; }
.learnt-chev { color: var(--ink-3); display: inline-flex; transition: transform .2s var(--ease); }
.learnt.open .learnt-chev { transform: rotate(90deg); }
.learnt-body { display: none; }
.learnt.open .learnt-body { display: block; }
.learnt-body .note-compose { margin-top: 12px; }
.att-hist { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 15px; border-top: 1px solid var(--line); }
.att-hist:first-child { border-top: none; }
.ah-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.ah-date { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.belt-pct-line { margin-top: auto; padding: 12px 0 20px; font-size: 15px; color: #fff; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.9); text-align: center; }
.belt-pct-line b { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -1px; font-variant-numeric: tabular-nums; margin-right: 5px; }
.belt-pct-line .nb { color: var(--red-2); font-weight: 700; }
.belt-state { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding: 2px 9px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.belt-state.ok { background: rgba(49,196,107,.16); color: var(--green); }
.belt-state.lock { background: rgba(255,255,255,.09); color: var(--ink-3); }

/* ---------- Head Coach area ---------- */
.coach-stats.activity { justify-content: space-around; }
.coach-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.coach-row .cr-main { flex: 1; min-width: 0; }
.cr-name { font-weight: 700; font-size: 15px; }
.cr-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.cr-pct { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.cst-bar { height: 6px; background: var(--bg-2); border-radius: 99px; overflow: hidden; margin-top: 7px; box-shadow: inset 0 0 0 1px var(--line); }
.cst-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--red); transition: width .35s var(--ease); }
.cst-bar.big { height: 11px; margin-top: 10px; }
.coach-back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 14px; font-weight: 600; margin: 2px 0 14px; cursor: pointer; }
.coach-detail-head { display: flex; align-items: center; gap: 14px; }
.cd-name { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.cd-belt { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.cd-prog-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.cd-prog-h b { font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }
.cd-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.tech-list { padding: 6px !important; }
.tech-row { display: flex; align-items: center; gap: 11px; padding: 11px 10px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.tech-row:hover { background: var(--surface-2); }
.tech-row input { width: 21px; height: 21px; accent-color: var(--green); flex-shrink: 0; }
.tech-row .tr-txt { flex: 1; font-size: 14px; color: var(--ink-2); }
.tech-row .tr-check { color: var(--ink-4); opacity: 0; transition: opacity .12s; flex-shrink: 0; }
.tech-row.on .tr-txt { color: var(--ink); }
.tech-row.on .tr-check { opacity: 1; color: var(--green); }
/* read-only rows (student view — only coaches/admin sign off) */
.tech-row.ro { cursor: default; }
.tech-row.ro:hover { background: transparent; }
.tech-row .tr-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; transition: all .12s; }
.tech-row.ro.on .tr-dot { display: none; }
.tech-row.ro .tr-check { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green); }
.coach-notes { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.coach-notes li { border-left: 2px solid var(--line-2); padding-left: 12px; }
.cn-d { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.cn-t { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.45; }
.reg-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.reg-row .cr-main { flex: 1; min-width: 0; }
.reg-seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.reg-seg button { border: none; background: none; color: var(--ink-3); font-size: 12.5px; font-weight: 700; padding: 8px 12px; }
.reg-seg button + button { border-left: 1px solid var(--line-2); }
.reg-seg button.on[data-v="1"] { background: rgba(49,196,107,.16); color: var(--green); }
.reg-seg button.on[data-v="0"] { background: var(--red-soft); color: #FF8B93; }
.reg-seg button:disabled { opacity: .9; cursor: default; }
.reg-seg button:disabled:not(.on) { opacity: .32; }
.reg-row.is-locked { opacity: .96; }
.reg-lockbar { display: flex; align-items: center; gap: 12px; background: rgba(49,196,107,.12); border: 1px solid rgba(49,196,107,.35); color: var(--green); }
.reg-lockbar > svg { flex-shrink: 0; }
.reg-lockbar b { display: block; color: var(--ink); font-size: 14.5px; }
.reg-lockbar span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.reg-lockbar.closed { background: var(--gold-soft); border-color: rgba(240,178,60,.4); color: var(--gold); }
.reg-hint { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
.btn.btn-confirm { background: var(--gold); color: #1a1205; }

/* ---------- Head-coach control surface (iPad portrait) ---------- */
/* On a tablet the coach tools fill the portrait width; the member tabs stay phone-width. */
@media (min-width: 720px) {
  .app.coach-mode { max-width: 760px; }
  .app.coach-mode .coach-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .app.coach-mode .coach-cards .coach-row { margin-top: 0; }
  .app.coach-mode .section-title { font-size: 30px; }
  .app.coach-mode .reg-seg button { padding: 12px 22px; font-size: 14px; }
  .app.coach-mode .reg-row { padding: 14px 16px; }
  .app.coach-mode .grp-row { padding: 15px 14px; }
  .app.coach-mode .gr-txt { font-size: 15.5px; }
  .app.coach-mode .gr-box { width: 27px; height: 27px; }
}
.cls-card { flex-wrap: wrap; }
.cls-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cls-actions .btn { white-space: nowrap; }

/* Run-class: group header + belt picker + class-wide sign-off rows */
.grp-head { }
.gh-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gh-belt { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.gh-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.gh-avatars { display: flex; flex-shrink: 0; }
.gh-avatars .avatar { width: 30px; height: 30px; font-size: 11px; margin-left: -8px; border: 2px solid var(--surface); }
.gh-avatars .avatar:first-child { margin-left: 0; }
.grp-hint { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 12.5px; color: var(--ink-2);
  background: var(--red-soft); border: 1px solid rgba(225,29,42,.22); border-radius: 10px; padding: 9px 12px; }
.grp-hint svg { flex-shrink: 0; color: var(--red-2); }
.grp-belts { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 2px 14px; }
.grp-belt { border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink-2); padding: 9px 15px; border-radius: 99px;
  font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all .12s; }
.grp-belt.on { border-color: var(--red); color: var(--ink); background: var(--red-soft); }
.grp-belt .gb-dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); flex-shrink: 0; }
.grp-row { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.grp-row:hover { background: var(--surface-2); }
.grp-row .gr-box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 11px; font-weight: 800; transition: all .12s; }
.grp-row.on .gr-box { background: var(--green-soft); border-color: transparent; }
.grp-row.part .gr-box { border-color: var(--green); color: var(--green); background: transparent; }
.grp-row .gr-txt { flex: 1; min-width: 0; font-size: 14.5px; color: var(--ink-2); }
.grp-row.on .gr-txt { color: var(--ink); }
.grp-row .gr-count { font-size: 12px; font-weight: 700; color: var(--ink-3); flex-shrink: 0; }
.grp-row.on .gr-count { color: var(--green); }
.grp-row.part .gr-count { color: var(--green); }

/* ---------- Coach Finance & compliance ---------- */
.cr-fin-ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; }
.cr-chev { color: var(--ink-3); flex-shrink: 0; }
.fin-due { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, rgba(225,29,42,.16), var(--surface-2)); border-color: rgba(225,29,42,.3); }
.fd-lab { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.fd-val { font-size: 30px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.fin-inv { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.fi-main { flex: 1; min-width: 0; }
.fi-period { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.fi-meta { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.fi-note { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.fi-side { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.fi-amt { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fin-comp { padding: 4px 0; }
.fc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; }
.fc-row + .fc-row { border-top: 1px solid var(--line); }
.fc-l { min-width: 0; }
.fc-name { font-size: 14.5px; font-weight: 600; }
.fc-exp { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.fc-note { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.fin-badge { flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); letter-spacing: .2px; white-space: nowrap; }
.fin-badge.fin-ok { background: rgba(49,196,107,.16); color: var(--green); }
.fin-badge.fin-warn { background: var(--gold-soft); color: var(--gold); }
.fin-badge.fin-bad { background: var(--red-soft); color: #FF8B93; }
.fin-badge.fin-none { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); }
.fc-doc { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--red); text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-doc svg { flex-shrink: 0; }

/* ---------- Achievements screen ---------- */
.ach-summary { display: flex; justify-content: space-around; text-align: center; padding: 20px 10px; }
.ach-summary .as-n { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.ach-summary .as-l { font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
/* Attendance streak ladder (§19). */
.streak-lead { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 14px; }
.streak-lead b { color: var(--ink); font-weight: 700; }
.streak-sub { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.streak-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.streak-badge { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px 4px; border-radius: 12px; background: var(--bg-2, var(--surface-2)); border: 1px solid var(--line); opacity: .5; transition: opacity var(--t); }
.streak-badge.earned { opacity: 1; background: linear-gradient(180deg, rgba(225,29,42,.16), rgba(240,178,60,.05)); border-color: rgba(225,29,42,.35); box-shadow: 0 8px 20px -12px rgba(225,29,42,.6); }
.streak-badge .sb-flame { color: var(--ink-3); display: inline-flex; }
.streak-badge.earned .sb-flame { color: var(--red-2); filter: drop-shadow(0 0 5px rgba(225,29,42,.55)); }
.streak-badge .sb-n { font-size: 17px; font-weight: 800; line-height: 1; }
.streak-badge .sb-l { font-size: 8px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-3); font-weight: 700; }

/* ---------- Class age-group + eligibility ---------- */
.cls-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.age-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.age-badge.ag-tots { background: rgba(240,178,60,.14); color: var(--gold); border-color: rgba(240,178,60,.3); }
.age-badge.ag-juniors { background: rgba(53,208,126,.14); color: var(--green); border-color: rgba(53,208,126,.3); }
.age-badge.ag-cadets { background: rgba(90,140,255,.14); color: #7aa0ff; border-color: rgba(90,140,255,.3); }
.age-badge.ag-fullcontact { background: var(--red-soft); color: #ff8b93; border-color: rgba(225,29,42,.3); }
.cls-lock { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-3); }
.class-row.ineligible { opacity: .58; }
.allowance-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 15px; margin-bottom: 14px; }
.allowance-bar .ab-l { font-size: 13px; color: var(--ink-2); }
.allowance-bar .ab-l b { color: var(--ink); }
.allowance-bar .ab-grp { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--red); }

/* ---------- Agreements / consent ---------- */
.agreements { display: flex; flex-direction: column; gap: 12px; }
.agreement { padding: 16px; }
.ag-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ag-title { font-size: 15px; font-weight: 700; }
.ag-req { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #ff8b93; background: var(--red-soft); padding: 3px 8px; border-radius: var(--r-pill); }
.ag-opt { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-3); background: var(--surface-2); padding: 3px 8px; border-radius: var(--r-pill); }
.ag-body { font-size: 13px; line-height: 1.55; color: var(--ink-2); max-height: 120px; overflow-y: auto; padding: 10px 12px; background: var(--bg-2, var(--surface-2)); border: 1px solid var(--line); border-radius: 10px; }
.ag-check { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; cursor: pointer; }
.ag-check input { width: 20px; height: 20px; accent-color: var(--red); flex-shrink: 0; }
.ag-sign { display: block; margin-top: 18px; }
.ag-sign span { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.ag-sign input { width: 100%; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); padding: 12px 14px; font-size: 15px; border-radius: 12px; outline: none; font-family: cursive; }

/* ---------- Parent / guardian app ---------- */
.parent-head { display: flex; align-items: center; gap: 14px; padding: 18px 4px 16px; }
.parent-head .pph-avatar { flex-shrink: 0; }
.parent-head .pph-welcome { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--ink-3); font-weight: 700; }
.parent-head .pph-name { font-size: 23px; font-weight: 800; letter-spacing: -.5px; margin-top: 2px; }
.kid-row { cursor: pointer; }
.kid-row .cr-meta { margin-top: 2px; }

/* ---------- Class selection (joining) ---------- */
.cls-pick { cursor: pointer; align-items: center; }
.cls-pick input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--red); flex-shrink: 0; margin-left: 10px; }
.cls-pick.on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }

/* ---------- Notifications ---------- */
.notif { margin-top: 10px; }
.notif.unread { border-color: rgba(225,29,42,.4); }
.notif .nt-title { font-weight: 700; font-size: 15px; }
.notif.unread .nt-title::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--red); border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.notif .nt-body { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.notif .nt-date { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }

/* ---------- Belt Progress page (bar synced to techniques) ---------- */
.belt-prog-bar { margin-top: 12px; }
.belt-prog-bar .bpb-h { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.belt-prog-bar #bpb-name { color: #fff; text-transform: capitalize; }
.belt-prog-bar .bpb-h b { font-size: 26px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.5px; }

/* ---------- Class progress ---------- */
.class-prog { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.class-prog .cp-val { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.class-prog .cp-val small { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.class-prog .cp-ey { align-self: center; }
.meter { height: 8px; background: var(--bg-2); border-radius: var(--r-pill); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.meter > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--red)); border-radius: var(--r-pill);
  box-shadow: 0 0 12px rgba(225,29,42,.5); transition: width 1s var(--ease); }
.cap { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
.cap .rem { color: var(--ink-2); font-weight: 600; }

/* ---------- Quick actions ---------- */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q { display: flex; align-items: center; gap: 12px; min-width: 0; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  border-radius: 15px; padding: 13px 13px; box-shadow: var(--sh-card); transition: transform .12s var(--ease), border-color var(--t); }
.q .qt .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q:active { transform: scale(.97); }
.q .qi { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; }
.q .qt { min-width: 0; }
.q .qt .t { font-size: 14.5px; font-weight: 600; letter-spacing: -.2px; }
.q .qt .s { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Session card (upcoming / next) ---------- */
.session { position: relative; display: flex; gap: 14px; align-items: stretch; padding: 16px 16px 16px 18px; overflow: hidden; }
.session::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--red), #8a1017); }
.session .s-date { flex-shrink: 0; text-align: center; min-width: 46px; }
.session .s-date .m { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--red); }
.session .s-date .d { font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.session .s-date .w { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.session .s-main { flex: 1; min-width: 0; align-self: center; }
.session .s-name { font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.session .s-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.6; }
.session .s-meta .mi { display: inline-flex; vertical-align: -2px; margin-right: 4px; color: var(--ink-3); }
.session .s-side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; }
.when-badge { font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: .3px; background: var(--gold-soft); padding: 5px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.btn.checked-in { background: var(--green-soft); border: 1px solid rgba(53,208,126,.4); color: var(--green); }
.btn.checked-in svg { color: var(--green); }

/* ---------- Weekly activity ---------- */
.activity { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 18px 10px; }
.activity .a { text-align: center; position: relative; }
.activity .a + .a::before { content: ""; position: absolute; left: 0; top: 14%; height: 72%; width: 1px; background: var(--line); }
.activity .a .ai { display: flex; justify-content: center; margin-bottom: 7px; }
.activity .a .v { font-size: 22px; font-weight: 800; letter-spacing: -.6px; line-height: 1; }
.activity .a .l { font-size: 10.5px; color: var(--ink-3); margin-top: 5px; font-weight: 500; }

/* ---------- Achievements ---------- */
.achv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.badge-hex { text-align: center; }
.badge-hex .hex { width: 60px; height: 66px; margin: 0 auto; display: flex; align-items: center; justify-content: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, #241a12, #17140f); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(240,178,60,.35), 0 8px 18px -10px rgba(240,178,60,.5); }
.badge-hex.locked .hex { background: linear-gradient(160deg, var(--surface-2), var(--surface)); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.badge-hex .t { font-size: 11.5px; font-weight: 600; margin-top: 9px; letter-spacing: -.1px; }
.badge-hex.locked .t { color: var(--ink-2); }
.badge-hex .s { font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }

/* ---------- Invite strip ---------- */
.invite { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 16px 18px; border-radius: var(--r-card);
  background: linear-gradient(100deg, rgba(225,29,42,.18), rgba(225,29,42,.03) 65%); border: 1px solid rgba(225,29,42,.22); }
.invite .it { flex: 1; }
.invite .it strong { font-size: 14.5px; }
.invite .it p { margin: 2px 0 0; font-size: 12px; color: var(--ink-2); }
.invite a { color: var(--red); font-weight: 700; font-size: 13px; white-space: nowrap; }

/* ---------- Schedule / bookings ---------- */
.sched-day { display: flex; gap: 14px; margin-bottom: 18px; }
.sched-datecol { flex-shrink: 0; width: 52px; text-align: center; padding-top: 2px; }
.sched-datecol .sd-day { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--red); }
.sched-datecol .sd-date { font-size: 15px; font-weight: 700; line-height: 1.15; margin-top: 1px; }
.sched-datecol .sd-rel { font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .5px; margin-top: 6px; font-weight: 600; }
.sched-items { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sched-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 14px 13px 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-card); }
.sched-item::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--red), #8a1017); }
.sched-item.done::before { background: linear-gradient(180deg, var(--green), #167a44); }
.sched-item .si-main { flex: 1; min-width: 0; }
.sched-item .si-main .t { font-weight: 600; letter-spacing: -.2px; }
.sched-item .si-main .m { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

/* class list rows (book a class) */
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 15px; margin-bottom: 9px; border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); box-shadow: var(--sh-card); }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-main .t { font-weight: 600; letter-spacing: -.2px; }
.list-item .li-main .m { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

/* ---------- Chips / status ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); letter-spacing: .2px; }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.gold  { background: var(--gold-soft); color: var(--gold); }
.chip.red   { background: var(--red-soft); color: #ff8b93; }
.chip.grey  { background: var(--elev); color: var(--ink-3); }

/* Payment-required prompt (Home) — soft gate for members who haven't paid yet. */
.pay-required { border-color: rgba(225,29,42,.35); box-shadow: 0 0 0 1px rgba(225,29,42,.15), 0 10px 30px -18px rgba(225,29,42,.5); }
.pay-required .pr-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pay-required .pr-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--red-soft); color: var(--red-2); }
.pay-required .pr-t { font-size: 15px; font-weight: 700; }
.pay-required .pr-s { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }

/* Grading readiness card (Progress) — the member's "path to next grade". */
.grade-ready-card { display: flex; flex-direction: column; gap: 2px; }
.grade-ready-card.is-ready { border-color: rgba(53,208,126,.35); box-shadow: 0 0 0 1px rgba(53,208,126,.18), 0 10px 30px -18px rgba(53,208,126,.5); }
.grc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.grc-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.grc-msg { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin: 4px 0 10px; }
.rr { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-top: 1px solid var(--line); }
.rr-ic { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--gold); }
.rr.ok .rr-ic { background: var(--green-soft); color: var(--green); }
.rr-main { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.rr-main b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.rr-main span { font-size: 12px; color: var(--ink-3); }

/* ---------- Progress screen: belt hero ---------- */
.belt-hero { position: relative; overflow: hidden; text-align: center; padding: 26px 18px 22px;
  background: radial-gradient(120% 90% at 50% 30%, rgba(10,11,13,.25), rgba(10,11,13,.7)), url('/assets/belt-bg.jpg');
  background-size: cover; background-position: center; }
.belt-hero .belt-img { width: 120px !important; height: 76px !important; margin: 0 auto 10px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.65)); }
.belt-hero .bh-name { font-size: 22px; font-weight: 800; letter-spacing: -.5px; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.belt-hero .bh-grade { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.belt-hero .bh-goal { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--red);
  background: var(--red-soft); padding: 6px 12px; border-radius: var(--r-pill); }

/* ---------- Syllabus (collapsible categories) ---------- */
.syllabus { padding: 0; overflow: hidden; }
.syl-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 6px; }
.syl-top .syl-intro { margin: 0; font-size: 13px; color: var(--ink-2); }
.syl-badge { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 5px 11px; border-radius: var(--r-pill); }
.syllabus .meter-wrap { padding: 8px 16px 4px; }
.syl-cat { border-top: 1px solid var(--line); }
.syl-cat > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 15px 16px; user-select: none; }
.syl-cat > summary::-webkit-details-marker { display: none; }
.syl-cat .cat-name { flex: 1; font-size: 14.5px; font-weight: 600; letter-spacing: -.2px; }
.syl-cat .cat-count { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.syl-cat .chev { display: inline-flex; color: var(--ink-3); transition: transform var(--t); }
.syl-cat[open] .chev { transform: rotate(90deg); }
.syl-list { list-style: none; margin: 0; padding: 0 16px 14px; display: flex; flex-direction: column; gap: 9px; }
.syl-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; line-height: 1.4; }
.syl-box { flex-shrink: 0; width: 21px; height: 21px; border-radius: 6px; border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--green); margin-top: 1px; transition: background .15s, border-color .15s; }
.syl-list li.done .syl-box { background: var(--green-soft); border-color: var(--green); }
.syl-txt { color: var(--ink-2); }
.syl-list li.done .syl-txt { color: var(--ink); }

/* ---------- "What I've learnt" notes ---------- */
.note-compose { display: flex; gap: 9px; margin-bottom: 14px; }
.note-compose input { flex: 1; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink); padding: 12px 14px; border-radius: var(--r-input); outline: none; font-family: var(--font); font-size: 14px; }
.note-compose input:focus { border-color: var(--red); }
.note { padding: 13px 15px; margin-bottom: 9px; border-radius: 13px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); }
.note .nd { font-size: 11px; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.note .nt { font-size: 14px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }

/* ---------- Profile ---------- */
.profile-head { display: flex; align-items: center; gap: 16px; padding: 20px 18px; }
.profile-head .ph-name { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.profile-head .ph-sub { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.profile-head .ph-belt { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11.5px; font-weight: 700; color: var(--gold); background: var(--gold-soft); padding: 4px 10px; border-radius: var(--r-pill); }
.group { margin-top: 22px; }
.group > .g-label { padding: 0 4px 10px; }
.group-card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-card); overflow: hidden; }
.group-card.pad { padding: 6px 16px; }
.prow { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; }
.prow + .prow { border-top: 1px solid var(--line); }
.prow .k { color: var(--ink-3); font-size: 14px; }
.prow .v { font-weight: 600; letter-spacing: -.1px; }
.form-fields { padding: 16px; }
.divider-label { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-3); padding: 16px 16px 4px; border-top: 1px solid var(--line); }
.link-row { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px; background: none; border: none; color: var(--ink); font-size: 15px; font-weight: 500; text-align: left; }
.link-row + .link-row { border-top: 1px solid var(--line); }
.link-row:active { background: var(--elev); }
.link-row.danger { color: #ff8b93; }
.link-row .chev { color: var(--ink-3); }

/* ---------- Chat / messaging ---------- */
.chat { display: flex; flex-direction: column; height: 100%; }
.chat-head { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(10,11,13,.6); backdrop-filter: blur(10px); }
.chat-head .avatar { width: 42px; height: 42px; font-size: 15px; }
.chat-head .ch-txt { line-height: 1.2; }
.chat-head .ch-label { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }
.chat-head .ch-name { font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.chat-thread { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; padding: 14px 14px; }
.brow { display: flex; flex-direction: column; max-width: 78%; margin-bottom: 12px; }
.brow.me { align-self: flex-end; align-items: flex-end; }
.brow.them { align-self: flex-start; align-items: flex-start; }
.bubble { padding: 10px 15px; font-size: 15px; line-height: 1.4; width: fit-content; max-width: 100%; word-break: break-word; border-radius: 20px; }
.brow.me .bubble { background: linear-gradient(180deg, #F5313E, #D3151F); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 6px 14px -8px rgba(225,29,42,.7); }
.brow.them .bubble { background: var(--elev); color: var(--ink); border-bottom-left-radius: 6px; }
.btime { font-size: 10.5px; color: var(--ink-3); margin: 4px 8px 0; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ink-3); text-align: center; padding: 24px; }
.chat-empty p { margin: 0; font-size: 14px; max-width: 24ch; line-height: 1.5; }
.chat-compose { flex-shrink: 0; display: flex; gap: 9px; align-items: center; padding: 12px 14px; padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-2); }
.chat-compose input { flex: 1; background: var(--elev); border: 1px solid var(--line-2); color: var(--ink); padding: 13px 18px; font-size: 15px; outline: none; font-family: var(--font); border-radius: var(--r-pill); }
.chat-compose input:focus { border-color: var(--red); }
.chat-send { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(180deg, #F5313E, #D3151F); border: none; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 16px -8px rgba(225,29,42,.7); }
.chat-send:active { transform: scale(.92); }

/* ---------- Bottom navigation ---------- */
.bottom-nav { flex-shrink: 0; width: 100%; display: flex; padding: 9px 6px max(10px, env(safe-area-inset-bottom));
  background: rgba(12,13,16,.86); backdrop-filter: saturate(160%) blur(18px); border-top: 1px solid var(--line); z-index: 50; }
.bottom-nav .nav { flex: 1; background: none; border: none; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; font-weight: 500; padding: 6px 2px; letter-spacing: .1px; transition: color var(--t); }
.bottom-nav .nav svg.ic { display: block; transition: transform var(--t); }
.bottom-nav .nav.active { color: var(--red); }
.bottom-nav .nav.active svg.ic { transform: translateY(-1px); }
.bottom-nav .nav:active svg.ic { transform: scale(.9); }

/* ---------- Empty states ---------- */
.empty { text-align: center; color: var(--ink-3); padding: 40px 20px; }
.empty .ic { margin-bottom: 12px; display: inline-flex; color: var(--ink-3); }

/* ---------- Toast ---------- */
.toast-root { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 22px); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--elev-2); border: 1px solid var(--line-2); color: #fff; padding: 12px 20px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; box-shadow: var(--sh-pop); animation: rise .2s var(--ease); max-width: 90vw; }
.toast.success { border-color: rgba(53,208,126,.5); }
.toast.error { border-color: rgba(225,29,42,.6); }

.ic { display: inline-block; vertical-align: middle; }

@media (min-width: 500px) { .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

/* ---------- Premium membership card (Profile) ---------- */
.mem-card { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3.4/1; margin-bottom: 12px;
  display: flex; flex-direction: column; justify-content: space-between; padding: 12px 15px; box-shadow: var(--sh-card);
  background-size: cover; background-position: center; }
.mem-card.mem-bronze   { background-image: url('/assets/mem-bronze.jpg'); }
.mem-card.mem-silver   { background-image: url('/assets/mem-silver.jpg'); }
.mem-card.mem-gold     { background-image: url('/assets/mem-gold.jpg'); }
.mem-card.mem-ultimate { background-image: url('/assets/mem-ultimate.jpg'); }
.mem-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 38%, rgba(0,0,0,.72) 100%); }
.mem-card > * { position: relative; z-index: 1; }
.mc-brand { font-weight: 800; letter-spacing: 1.3px; font-size: 11px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.8); }
.mc-brand b { color: var(--red-2); }
.mc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.mc-name { font-size: 17px; font-weight: 800; letter-spacing: -.4px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.85); }
.mc-price { font-size: 15px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.85); white-space: nowrap; }
.mc-price small { font-size: 12px; font-weight: 500; opacity: .85; }

/* Default avatar (no photo) — red gradient over a faint AFK fighter for grit */
.avatar.af { background: linear-gradient(135deg, rgba(245,49,62,.72), rgba(18,7,9,.86)), url('/assets/coach-default.png') center top / cover; }

/* ---------- Achievement medallions ---------- */
.medals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
.medal { text-align: center; }
.medal-wrap { position: relative; width: 98px; height: 98px; margin: 0 auto 8px; }
.medal-img { width: 100%; height: 100%; background-size: contain; background-position: center; background-repeat: no-repeat;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.55)); transition: transform .18s var(--ease); }
.medal.earned .medal-img:active { transform: scale(.94); }
.medal.locked .medal-img { filter: grayscale(1) brightness(.5) drop-shadow(0 6px 12px rgba(0,0,0,.5)); opacity: .6; }
.medal-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.92); }
.medal-lock svg { background: rgba(10,11,13,.7); border-radius: 50%; padding: 6px; width: 27px; height: 27px; box-shadow: 0 2px 8px rgba(0,0,0,.55); }
.medal-t { font-size: 14px; font-weight: 700; letter-spacing: -.2px; }
.medal.locked .medal-t { color: var(--ink-2); }
.medal-s { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.medals.compact { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.medals.compact .medal-wrap { width: 62px; height: 62px; margin-bottom: 5px; }
.medals.compact .medal-t { font-size: 10.5px; }
.medals.compact .medal-s { display: none; }

/* ---------- Class thumbnail (weekly classes / schedule) ---------- */
.cls-thumb { width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px var(--line); }
.list-item.has-thumb { align-items: center; gap: 12px; }

/* ---------- Empty-state illustration ---------- */
.card.empty.illus { padding: 26px 22px; }
.card.empty .empty-illus { width: 120px; height: 120px; margin: 0 auto 12px; background: url('/assets/empty-state.png') center/contain no-repeat; opacity: .9; }

/* ---------- Subtle AFK grit texture over the whole app ---------- */
.app::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 6;
  background: url('/assets/texture.png'); background-size: 420px; opacity: .05; mix-blend-mode: overlay; }

/* ============================================================
   ShredFast-inspired premium components (rank card, hero, rings,
   training calendar) — AFK red/dark, condensed display type.
   ============================================================ */

/* Progress ring */
.ring { display: block; }
.ring .ring-bg { stroke: var(--bg-2); }

/* ---- Belt RANK card (the Home identity hero) ---- */
.rank-card { padding: 0; overflow: hidden; }
.rank-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 18px 14px; }
.rk-id { min-width: 0; }
.rk-belt { font-family: var(--font-display); font-size: 26px; line-height: 1; letter-spacing: .5px; text-transform: uppercase; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.rk-title { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--red-2); margin-top: 6px; }
.rk-ring { flex-shrink: 0; position: relative; }
.rank-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--line); }
.rank-stats .rs { text-align: center; padding: 12px 6px; position: relative; }
.rank-stats .rs + .rs::before { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: var(--line); }
.rank-stats .rs b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.rank-stats .rs span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

/* ---- Cinematic "next session" hero ---- */
.hero-session { position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 188px; display: flex; align-items: flex-end;
  border: 1px solid var(--line); cursor: pointer; box-shadow: var(--sh-card); }
.hs-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); transition: transform .5s var(--ease);
  background-color: #14171d; background-image: radial-gradient(120% 90% at 80% 0%, rgba(225,29,42,.4), transparent 55%), linear-gradient(135deg, #201014, #0c0d10); }
.hero-session:active .hs-bg { transform: scale(1.06); }
.hs-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(8,9,11,.55) 58%, rgba(8,9,11,.95) 100%); }
.hs-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--red-2), var(--red)); box-shadow: 0 0 18px var(--red); }
.hs-body { position: relative; z-index: 2; padding: 16px 18px; width: 100%; }
.hs-when { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red-2); }
.hs-title { font-family: var(--font-display); font-size: 27px; line-height: .98; letter-spacing: .4px; text-transform: uppercase; color: #fff; margin: 6px 0 8px; text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.hs-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.hs-meta .avatar { width: 24px; height: 24px; font-size: 10px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.2); }
.hs-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; background: var(--red); color: #fff; font-size: 13.5px; font-weight: 700; padding: 9px 16px; border-radius: var(--r-pill); }

/* ---- Training calendar (monthly heatmap) ---- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-title { font-size: 13px; font-weight: 800; }
.cal-legend { font-size: 11px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px rgba(225,29,42,.6); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 9.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; }
.cal-cell { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-3); border-radius: 50%;
  border: 1px solid var(--line); }
.cal-cell.blank { border: none; }
.cal-cell.today { border-color: var(--ink-3); color: var(--ink); }
.cal-cell.on { background: radial-gradient(circle, var(--red-2), var(--red)); border-color: transparent; color: #fff; font-weight: 800; box-shadow: 0 0 12px rgba(225,29,42,.5); }

/* ---- Branded boot loader ---- */
.afk-loader { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: var(--bg); z-index: 999; }
.afk-loader .lm { font-family: var(--font-display); font-size: 34px; letter-spacing: 1px; text-transform: uppercase; }
.afk-loader .lm b { color: var(--red-2); }
.afk-loader svg { animation: afkspin 1s linear infinite; }
@keyframes afkspin { to { transform: rotate(360deg); } }
