/* SSF — shared styles
   Palette taken from the club: logo navy + shuttle gold, court-floor blue, court-line orange. */
:root {
  --navy: #14306e;
  --navy-deep: #0c1e4a;
  --gold: #f4c01e;
  --gold-soft: #fff4cc;
  --court: #e3edf7;
  --line-orange: #e27a1f;
  --ink: #0f1b33;
  --muted: #56627d;
  --rule: #d6deea;
  --paper: #ffffff;
  --bg: #f3f6fa;
  --ok: #17804f;
  --ok-soft: #e3f4ea;
  --warn: #9a6300;
  --warn-soft: #fff1d6;
  --bad: #b3261e;
  --bad-soft: #fde8e6;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
  --radius: 10px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); color: var(--navy); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
[hidden] { display: none !important; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-deep); color: #fff; border-bottom: 3px solid var(--gold); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: #000; }
.brand span small { display: block; font-family: var(--body); font-size: .72rem; font-weight: 500; color: #b8c6e3; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.nav a { color: #dbe4f3; text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { color: #fff; }
.nav .btn { margin-left: .25rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; padding: .25rem .5rem; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 67px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-deep); padding: .5rem 1.25rem 1.25rem; border-bottom: 3px solid var(--gold); }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin: .75rem 0 0; }
}

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 600 1rem var(--body); padding: .7rem 1.25rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #ffd13d; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-line-light:hover { background: #fff; color: var(--navy-deep); }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; }
.btn-sm { padding: .4rem .85rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy); font: inherit; text-decoration: underline; cursor: pointer; }

/* ── Hero ── */
.hero { position: relative; min-height: min(82vh, 720px); display: flex; align-items: flex-end; color: #fff; background: var(--navy-deep); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,30,74,.15) 0%, rgba(12,30,74,.35) 45%, rgba(12,30,74,.95) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 3rem 0 3.5rem; }
.hero h1 { font-size: clamp(3.2rem, 9vw, 7.2rem); font-weight: 800; line-height: .92; margin-bottom: .3em; max-width: 12ch; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40ch; color: #e8eef9; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.25rem; padding-top: 1.25rem; border-top: 2px solid var(--line-orange); max-width: 640px; }
.hero .facts div { font-size: .95rem; color: #c9d5ec; }
.hero .facts strong { display: block; font-family: var(--display); font-size: 1.6rem; color: #fff; }

/* ── Sections ── */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--paper); }
.section.court { background: var(--court); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.facts-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.facts-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.facts-list li span:first-child { color: var(--muted); }
.facts-list li span:last-child { font-weight: 600; text-align: right; }
.about-photo { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ── Event list (dates are the structure) ── */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.event { display: grid; grid-template-columns: 76px 1fr; gap: 1.1rem; background: var(--paper); border-radius: var(--radius); padding: 1rem 1.1rem; border-left: 4px solid var(--line-orange); }
.event-date { text-align: center; font-family: var(--display); line-height: 1; color: var(--navy); }
.event-date .d { font-size: 2.3rem; font-weight: 800; }
.event-date .m { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.event-date .w { font-size: .82rem; color: var(--muted); font-family: var(--body); margin-top: .2rem; }
.event h3 { font-size: 1.3rem; margin-bottom: .2rem; color: var(--ink); }
.event .meta { font-size: .92rem; color: var(--muted); margin-bottom: .35rem; }
.event p { margin: 0; font-size: .97rem; }
.kind { display: inline-block; font-size: .78rem; font-weight: 600; padding: .1rem .5rem; border-radius: 4px; background: var(--court); color: var(--navy); margin-left: .4rem; vertical-align: middle; }
.kind.members { background: var(--gold-soft); color: var(--warn); }
.events.past .event { border-left-color: var(--rule); }
.event.has-img { grid-template-columns: 76px 1fr 200px; }
.event-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
@media (max-width: 640px) { .event.has-img { grid-template-columns: 64px 1fr; } .event-img { grid-column: 1 / -1; aspect-ratio: 16/9; } }
.countdown { display: inline-block; background: var(--gold); color: var(--navy-deep); font-family: var(--display); font-weight: 800; font-size: 1.35rem; padding: .25rem .9rem; border-radius: 6px; margin: 0 0 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.empty { background: var(--paper); border: 2px dashed var(--rule); border-radius: var(--radius); padding: 1.5rem; color: var(--muted); }

/* ── Tournament ── */
.tournament { position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(244,192,30,.16), transparent 55%),
    linear-gradient(160deg, #14306e 0%, #0c1e4a 60%, #081432 100%); }
/* A badminton court drawn in faint lines behind the section */
.tournament::before { content: ""; position: absolute; inset: -10% -5% -10% 30%; opacity: .09; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 610 1340' fill='none' stroke='%23fff' stroke-width='6'%3E%3Crect x='3' y='3' width='604' height='1334'/%3E%3Cline x1='46' y1='3' x2='46' y2='1337'/%3E%3Cline x1='564' y1='3' x2='564' y2='1337'/%3E%3Cline x1='3' y1='670' x2='607' y2='670' stroke-width='10'/%3E%3Cline x1='3' y1='472' x2='607' y2='472'/%3E%3Cline x1='3' y1='868' x2='607' y2='868'/%3E%3Cline x1='3' y1='79' x2='607' y2='79'/%3E%3Cline x1='3' y1='1261' x2='607' y2='1261'/%3E%3Cline x1='305' y1='3' x2='305' y2='472'/%3E%3Cline x1='305' y1='868' x2='305' y2='1337'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(-12deg); }
.t-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 860px) { .t-grid { grid-template-columns: 1fr; } }
.tournament h2 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; line-height: .95; margin-bottom: .4em; }
.t-text { color: #d6e0f2; font-size: 1.12rem; max-width: 46ch; }
.t-count { display: inline-flex; align-items: baseline; gap: .6rem; background: var(--gold); color: var(--navy-deep); border-radius: 12px; padding: .5rem 1.1rem .45rem; margin-bottom: 1.25rem; box-shadow: 0 10px 30px rgba(244,192,30,.25); }
.t-count .n { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; }
.t-count .l { font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.tournament .t-banner { display: inline-block; background: var(--gold); color: var(--navy-deep); font-family: var(--display); font-weight: 800; font-size: 1.4rem; padding: .35rem 1rem; border-radius: 8px; margin: 0 0 1.25rem; }
.t-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.t-facts div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: .75rem .9rem; }
.t-facts dt { font-size: .82rem; color: #9fb1d6; margin-bottom: .15rem; }
.t-facts dd { margin: 0; font-weight: 600; }
.t-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.1rem; }
.t-soon { font-weight: 700; color: var(--gold); }
.t-note { margin-top: 1.25rem; font-size: .92rem; color: #9fb1d6; }
.t-poster { padding: 0; border: 0; background: none; cursor: zoom-in; justify-self: center; max-width: 420px; width: 100%; transform: rotate(2deg); transition: transform .3s ease; }
.t-poster:hover, .t-poster:focus-visible { transform: rotate(0) scale(1.02); }
.t-poster img { width: 100%; border-radius: 10px; border: 4px solid var(--gold); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
@media (max-width: 860px) { .t-poster { transform: none; max-width: 360px; } }

/* ── Plans ── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--paper); border-radius: var(--radius); padding: 1.5rem; border-top: 5px solid var(--navy); display: flex; flex-direction: column; }
.plan.family { border-top-color: var(--gold); }
.plan.youth { border-top-color: var(--line-orange); }
.plan h3 { color: var(--navy); margin-bottom: .1rem; }
.plan .price { font-family: var(--display); font-size: 3rem; font-weight: 800; color: var(--ink); line-height: 1; margin: .5rem 0; }
.plan .price small { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.plan p { color: var(--muted); flex: 1; }
.benefits { columns: 2; column-gap: 2rem; padding-left: 1.2rem; margin: 2rem 0 0; }
.benefits li { margin-bottom: .45rem; break-inside: avoid; }
@media (max-width: 640px) { .benefits { columns: 1; } }

/* ── Gallery: albums ── */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.album-card { position: relative; display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: var(--navy); text-align: left; color: #fff; font: inherit; }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.album-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,20,50,.92) 100%); }
.album-card:hover img, .album-card:focus-visible img { transform: scale(1.05); }
.album-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1rem 1.1rem; display: grid; gap: .15rem; border-bottom: 4px solid var(--gold); }
.album-info strong { font-family: var(--display); font-size: 1.5rem; line-height: 1.05; }
.album-info span { font-size: .9rem; color: #d6e0f2; }
.album-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1.25rem; }
.album-bar h3 { margin: 0; font-size: 1.8rem; color: var(--navy); }
.album-bar p { margin: .1rem 0 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 200px; grid-auto-flow: dense; gap: .6rem; }
.photo-grid .photo { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--court); }
.photo-grid .photo:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-grid .photo:hover img { transform: scale(1.04); }
@media (max-width: 560px) { .photo-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; } }

/* ── Full-screen viewer ── */
.viewer { position: fixed; inset: 0; z-index: 150; background: rgba(6,12,28,.96); display: flex; align-items: center; justify-content: center; }
.viewer figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 92vw; }
.viewer img { max-height: 84vh; max-width: 92vw; border-radius: 6px; user-select: none; }
.viewer figcaption { display: flex; gap: 1rem; justify-content: space-between; width: 100%; color: #dbe4f3; margin-top: .6rem; font-size: .95rem; }
.v-count { color: #9fb1d6; white-space: nowrap; }
.v-close { position: absolute; top: 1rem; right: 1rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 0; background: #fff; font-size: 1.2rem; cursor: pointer; z-index: 2; }
.v-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; z-index: 2; }
.v-nav:hover { background: var(--gold); color: var(--navy-deep); }
.v-prev { left: 1rem; } .v-next { right: 1rem; }
@media (max-width: 640px) { .v-nav { top: auto; bottom: 1rem; transform: none; } }

/* ── Rules + contact ── */
.rules-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .rules-list { grid-template-columns: 1fr; } }
.rule { display: grid; grid-template-columns: 3rem 1fr; gap: .9rem; background: var(--bg); border-radius: 12px; padding: 1.1rem 1.2rem; border-top: 3px solid var(--line-orange); }
.rule-n { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--line-orange); }
.rule h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: .35rem; }
.rule p { margin: 0 0 .5rem; font-size: .98rem; }
.rule p:last-child { margin-bottom: 0; }
.rule ul { margin: .25rem 0 0; padding-left: 1.1rem; font-size: .98rem; }
.rule li { margin-bottom: .3rem; }
#rules .section-head { max-width: 75ch; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-lines p { margin-bottom: 1.1rem; }
.contact-lines strong { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--navy); }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ── Footer ── */
.site-footer { background: var(--navy-deep); color: #b8c6e3; padding: 2rem 0; font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.site-footer a { color: #fff; }

/* ── Forms ── */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .3rem; }
.field > span { font-weight: 600; font-size: .95rem; }
.field small { color: var(--muted); font-size: .85rem; }
input, select, textarea { font: inherit; font-size: 1rem; padding: .7rem .85rem; border: 1.5px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(20,48,110,.15); }
input[type="checkbox"], input[type="radio"] { width: auto; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: .55rem; font-weight: 500; }
.form-error { background: var(--bad-soft); color: var(--bad); border-radius: 8px; padding: .75rem 1rem; font-weight: 500; }
.form-ok { background: var(--ok-soft); color: var(--ok); border-radius: 8px; padding: .75rem 1rem; font-weight: 500; }

/* ── Panels (join, login, portal, admin) ── */
.page { padding: 2.5rem 0 4rem; min-height: calc(100vh - 67px - 90px); }
.panel { background: var(--paper); border-radius: 14px; padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: 0 1px 2px rgba(15,27,51,.06), 0 8px 24px rgba(15,27,51,.06); }
.narrow { max-width: 460px; margin-inline: auto; }
.medium { max-width: 720px; margin-inline: auto; }
.panel h1 { font-size: clamp(2rem, 5vw, 2.6rem); color: var(--navy); }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.badge.active, .badge.approved { background: var(--ok-soft); color: var(--ok); }
.badge.pending { background: var(--warn-soft); color: var(--warn); }
.badge.rejected, .badge.expired { background: var(--bad-soft); color: var(--bad); }
.badge.soon { background: var(--warn-soft); color: var(--warn); }

/* ── Join wizard ── */
.steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.75rem; counter-reset: step; }
.steps li { flex: 1; font-size: .85rem; color: var(--muted); padding-top: .55rem; border-top: 4px solid var(--rule); counter-increment: step; }
.steps li::before { content: counter(step) ". "; font-weight: 700; }
.steps li.on { color: var(--navy); border-top-color: var(--gold); font-weight: 600; }
.steps li.done { color: var(--navy); border-top-color: var(--navy); }
.plan-pick { display: grid; gap: .75rem; }
.plan-pick label { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: center; border: 2px solid var(--rule); border-radius: 12px; padding: 1rem 1.1rem; cursor: pointer; }
.plan-pick label:has(input:checked) { border-color: var(--navy); background: var(--court); }
.plan-pick strong { font-family: var(--display); font-size: 1.35rem; color: var(--navy); display: block; }
.plan-pick .amt { font-family: var(--display); font-size: 1.6rem; font-weight: 800; }
.person { border: 1.5px solid var(--rule); border-radius: 12px; padding: 1rem; display: grid; gap: .75rem; }
.person-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.person-head strong { font-family: var(--display); font-size: 1.15rem; color: var(--navy); }
.summary { background: var(--court); border-radius: 12px; padding: 1rem 1.2rem; }
.summary .line { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .97rem; }
.summary .total { border-top: 2px solid var(--navy); margin-top: .4rem; padding-top: .55rem; font-weight: 700; font-size: 1.1rem; }
.swish { border: 2px solid var(--navy); border-radius: 12px; padding: 1.25rem; text-align: center; }
.swish .num { font-family: var(--display); font-size: 2.4rem; font-weight: 800; letter-spacing: .04em; color: var(--navy); }
.swish .amt { font-size: 1.15rem; font-weight: 700; }
.actions-row { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }

/* ── Member card (portal) ── */
.portal { display: grid; grid-template-columns: 340px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .portal { grid-template-columns: 1fr; } }
.member-card { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border-radius: 16px; padding: 1.4rem; position: relative; overflow: hidden; }
.member-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--gold); }
.member-card .top { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-size: 1.1rem; color: var(--gold); }
.member-card .top img { width: 38px; height: 38px; border-radius: 50%; background: #000; }
.avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid var(--gold); background: #22418a; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 2.6rem; font-weight: 800; color: var(--gold); margin: 1.1rem 0 .8rem; overflow: hidden; }
.member-card .name { font-family: var(--display); font-size: 1.8rem; font-weight: 700; line-height: 1.05; }
.member-card .id { font-family: var(--display); font-size: 1.35rem; letter-spacing: .06em; color: var(--gold); margin: .2rem 0 .9rem; }
.member-card dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; font-size: .95rem; }
.member-card dt { color: #9fb1d6; }
.member-card dd { margin: 0; font-weight: 600; }
.stack { display: grid; gap: 1.5rem; }
.panel h2 { font-size: 1.7rem; }
.status-banner { border-radius: 12px; padding: 1rem 1.2rem; }
.status-banner.pending { background: var(--warn-soft); color: #6b4700; }
.status-banner.rejected, .status-banner.expired { background: var(--bad-soft); color: #7c1a14; }
.status-banner.soon { background: var(--gold-soft); color: #6b4700; }
.status-banner h3 { margin-bottom: .3rem; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table th { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ── Admin ── */
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.stat { background: var(--paper); border-radius: 12px; padding: .9rem 1rem; border: 0; text-align: left; font: inherit; cursor: pointer; color: inherit; }
.stat strong { display: block; font-family: var(--display); font-size: 2.1rem; line-height: 1; color: var(--navy); }
.stat span { font-size: .9rem; color: var(--muted); }
.stat.hot strong { color: var(--line-orange); }
.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--rule); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: .7rem 1rem; font: 600 1rem var(--body); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold); }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.toolbar input, .toolbar select { width: auto; flex: 1 1 200px; }
.m-list { display: grid; gap: .75rem; }
.m-row { background: var(--paper); border-radius: 12px; padding: 1rem 1.1rem; display: grid; grid-template-columns: 56px 1fr auto; gap: 1rem; align-items: start; }
.m-row.waiting { box-shadow: inset 4px 0 0 var(--gold); }
.m-photo { width: 56px; height: 56px; border-radius: 50%; background: var(--court); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; color: var(--navy); font-size: 1.3rem; overflow: hidden; }
.m-photo img { width: 100%; height: 100%; object-fit: cover; }
.m-row h3 { font-size: 1.25rem; margin: 0 0 .15rem; color: var(--ink); }
.m-row .meta { font-size: .9rem; color: var(--muted); }
.m-row .meta b { color: var(--ink); font-weight: 600; }
.m-row .people { font-size: .88rem; margin-top: .35rem; }
.m-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
@media (max-width: 700px) { .m-row { grid-template-columns: 48px 1fr; } .m-actions { grid-column: 1 / -1; justify-content: flex-start; } }
.pay-note { margin-top: .5rem; font-size: .9rem; background: var(--gold-soft); border-radius: 8px; padding: .5rem .7rem; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.ev-row { display: flex; justify-content: space-between; gap: 1rem; align-items: start; background: var(--paper); border-radius: 10px; padding: .8rem 1rem; }
.ev-row + .ev-row { margin-top: .5rem; }
.ev-row .when { font-weight: 600; color: var(--navy); font-size: .92rem; }
.album-list { display: grid; gap: .4rem; }
.album-list button { display: grid; grid-template-columns: 56px 1fr; gap: .75rem; align-items: center; text-align: left; padding: .45rem; border: 2px solid transparent; border-radius: 10px; background: var(--bg); cursor: pointer; font: inherit; color: var(--ink); }
.album-list button[aria-current="true"] { border-color: var(--navy); background: var(--court); }
.album-list img, .album-list .ph { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: var(--rule); }
.album-list strong { display: block; line-height: 1.2; }
.album-list span { font-size: .82rem; color: var(--muted); }
.bulk-bar { position: sticky; top: 72px; z-index: 5; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: var(--navy-deep); color: #fff; padding: .6rem .9rem; border-radius: 10px; }
.bulk-bar select { width: auto; padding: .35rem .5rem; }
.bulk-bar .link-btn { color: #dbe4f3; }
.bulk-bar .btn-danger { background: #fff; }
.g-admin figcaption div { flex-wrap: wrap; }
.g-admin figure { position: relative; }
.g-admin figure.selected { outline: 3px solid var(--gold); }
.g-admin .pick { position: absolute; top: .4rem; left: .4rem; width: 1.3rem; height: 1.3rem; accent-color: var(--gold); }
.g-admin .is-cover { position: absolute; top: .4rem; right: .4rem; background: var(--gold); color: var(--navy-deep); font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: 4px; }
.g-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.g-admin figure { margin: 0; background: var(--paper); border-radius: 10px; overflow: hidden; }
.g-admin img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.g-admin figcaption { padding: .45rem .55rem; font-size: .82rem; display: grid; gap: .35rem; }
.g-admin figcaption div { display: flex; gap: .3rem; }
.modal { position: fixed; inset: 0; z-index: 120; background: rgba(8,14,32,.8); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal h2 { font-size: 1.7rem; }
.modal .box { background: #fff; border-radius: 14px; max-width: min(900px, 96vw); max-height: 92vh; overflow: auto; padding: 1rem; position: relative; }
.modal .box img, .modal .box iframe { max-width: 100%; max-height: 78vh; display: block; margin: 0 auto; border: 0; }
.modal .box iframe { width: 80vw; height: 78vh; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .75rem 1.2rem; border-radius: 10px; z-index: 200; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: 92vw; }
.spinner { color: var(--muted); padding: 1rem 0; }
.tab-count { display: inline-block; min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: var(--line-orange); color: #fff; font-size: .78rem; line-height: 1.4rem; text-align: center; margin-left: .2rem; }
.poster-preview { width: 100%; max-height: 420px; object-fit: contain; background: var(--bg); border-radius: 8px; }
.ev-photo { display: flex; gap: .75rem; align-items: center; }
.ev-photo img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; }
.ev-row .thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.ev-row .ev-main { display: flex; gap: .75rem; align-items: flex-start; }
.msg { background: var(--paper); border-radius: 12px; padding: 1rem 1.1rem; }
.msg.unread { box-shadow: inset 4px 0 0 var(--gold); }
.msg-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: baseline; }
.msg-body { white-space: pre-wrap; margin: .6rem 0 .8rem; }
.edit-people { display: grid; gap: .6rem; }
.edit-people .row { display: grid; grid-template-columns: 1fr 160px auto; gap: .5rem; align-items: end; }
@media (max-width: 560px) { .edit-people .row { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hide-sm { display: none !important; } }
