/* ==========================================================================
   GLTC Golf Society - design tokens
   Claret #902333 brand, rose-biased neutrals, Fraunces display / Figtree UI.
   Green is reserved as the semantic "open / paid / available" signal.
   ========================================================================== */

:root {
  --ground: #F7F3F2;
  --surface: #FFFFFF;
  --surface-sunken: #F0E8E7;
  --ink: #241A1C;
  --ink-soft: #57484C;
  --ink-faint: #93858A;
  --line: #E4D8D9;

  --accent: #902333;
  --accent-deep: #4E1420;
  --accent-tint: #F5E3E6;
  --sand: #C9A25B;

  --ok: #35784B;
  --ok-tint: #E4EFE7;
  --warn: #B97D10;
  --danger: #C03B2B;
  --danger-tint: #F8E8E5;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(36, 26, 28, 0.06), 0 4px 16px rgba(36, 26, 28, 0.07);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #191114;
    --surface: #241A1E;
    --surface-sunken: #1E1518;
    --ink: #EDE5E6;
    --ink-soft: #B5A5A9;
    --ink-faint: #7D6E73;
    --line: #3A2C31;

    --accent: #C25A6C;
    --accent-deep: #380D17;
    --accent-tint: #3A222A;
    --sand: #D3B276;

    --ok: #5CAB79;
    --ok-tint: #22352A;
    --warn: #D89A2B;
    --danger: #D2635A;
    --danger-tint: #3A2320;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.35);
  }
}

/* Base ------------------------------------------------------------------ */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0 0 0.4em; }
h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 0.8em; }
a { color: var(--accent); }

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: -0.015em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sand);
  margin-bottom: 0.5em;
}

.mono, .tee-time { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-faint); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header / footer -------------------------------------------------------- */

.site-header {
  background: var(--accent-deep);
  color: #F2F5F0;
  position: sticky;
  top: 0;
  z-index: 30; /* above the outings drawer + scrim so the burger stays clickable */
  box-shadow: var(--shadow);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
}
.header-row > :last-child { margin-left: auto; }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.burger:hover { background: rgba(255, 255, 255, 0.2); }
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #F2EDEE;
  transition: opacity 120ms ease, transform 120ms ease;
}
/* morph to an X while the drawer is open */
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .burger span { transition: none; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.pill {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-open { background: rgba(255, 255, 255, 0.14); color: #C9EED7; }
.pill-open::before { content: "● "; color: #6FCE96; }
.pill-closed { background: rgba(0, 0, 0, 0.25); color: #E8C9C5; }
.pill-closed::before { content: "● "; color: #E08A80; }

.site-footer {
  margin-top: 64px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.9rem;
}

/* Outings drawer ------------------------------------------------------------
   Slides in over the content from the burger button; the tee sheet never
   reflows. Scrim click / Escape / burger all close it. */

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 24;
  background: rgba(20, 10, 13, 0.45);
}

.outing-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 25;
  width: min(300px, 84vw);
  padding: 74px 18px 24px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  transform: translateX(-102%);
  transition: transform 200ms ease;
  visibility: hidden;
}
.outing-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .outing-nav { transition: none; }
}

.outing-nav-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin: 0 0 10px;
}

/* Mobile outing switcher bar + bottom sheet -------------------------------- */

.outing-switcher { display: none; }
.sheet-handle { display: none; }

@media (max-width: 820px) {
  .burger { display: none; }

  .outing-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
    padding: 12px 14px;
    font: inherit;
    text-align: left;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
  }
  .outing-switcher-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-faint);
    flex-shrink: 0;
  }
  .outing-switcher-name {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .outing-switcher-chevron { margin-left: auto; color: var(--accent); }

  /* the drawer becomes a bottom sheet, in thumb reach */
  .outing-nav {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 72vh;
    padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
    border-right: none;
    border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    transform: translateY(105%);
  }
  .outing-nav.is-open { transform: translateY(0); }

  .sheet-handle {
    display: block;
    width: 42px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: var(--line);
  }

  /* bigger touch targets in the sheet */
  .outing-link { padding: 14px; }

  .hero { padding-top: 24px; }
}

.outing-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.outing-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.3;
}
.outing-link:hover { background: var(--surface-sunken); border-color: var(--line); }
.outing-link.is-current {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.outing-year h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sand);
  margin: 14px 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.outing-year:first-child h3 { margin-top: 0; }

.outing-link-name { display: block; font-weight: 600; font-size: 0.95rem; }
.outing-link-meta { display: block; font-size: 0.8rem; color: var(--ink-faint); margin-top: 2px; }
.outing-link-meta .open-word { color: var(--ok); font-weight: 700; }


/* Hero ------------------------------------------------------------------- */

.hero { padding: 44px 0 8px; }
.hero-note { max-width: 62ch; color: var(--ink-soft); }

.rate-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
}
.rate-strip li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.88rem;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.rate-label { color: var(--ink-soft); }
.rate-amount { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Tee sheet -------------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0 16px;
}
.section-head h2 { margin: 0; }

.legend {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
  display: flex;
  gap: 14px;
  align-items: center;
}
.legend .dot { margin-right: 5px; }

.tee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.tee-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}
.tee-card.is-full { background: var(--surface-sunken); box-shadow: none; }

.tee-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.tee-time {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.seats-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 3px 10px;
}
.seats-tag.seats-full { color: var(--ink-faint); background: var(--line); }

.seat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-grow: 1;
}

.seat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  padding: 5px 8px;
  border-radius: 6px;
}
.seat-taken { background: var(--surface-sunken); font-weight: 500; }
.tee-card.is-full .seat-taken { background: transparent; }
.seat-free { color: var(--ink-faint); border: 1px dashed var(--line); }

.seat-move {
  font: inherit;
  font-weight: 500;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline dotted var(--ink-faint);
  text-underline-offset: 3px;
}
.seat-move:hover, .seat-move:focus-visible { color: var(--accent); text-decoration-color: var(--accent); }

.section-head-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.inline-form { display: inline; }
a.btn-cancel-mode { text-decoration: none; display: inline-block; text-align: center; }

.tools-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

/* Close bookings: same shape as the other header tools, amber so it reads
   as an organiser control rather than a member one. */
.btn-close-mode {
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1.5px solid #B97D10;
  background: transparent;
  color: #B97D10;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-close-mode:hover { background: rgba(185, 125, 16, 0.08); }
.btn-cancel-mode {
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-cancel-mode:hover { background: rgba(179, 38, 30, 0.06); border-color: var(--danger); color: var(--danger); }

/* Cancel dialog */
.cancel-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cancel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-sunken);
}
.cancel-row.is-cancelled { opacity: 0.55; }
.cancel-row-info { display: flex; flex-direction: column; gap: 2px; }
.cancel-row-meta { font-size: 0.85rem; color: var(--ink-faint); }
.cancel-row-done { font-weight: 700; color: var(--ok); white-space: nowrap; }
.btn-remove-player { padding: 8px 14px; font-size: 0.88rem; }
.cancel-note { font-size: 0.88rem; color: var(--ink-faint); margin: 0 0 6px; }
.cancel-empty { color: var(--ink-faint); margin: 0 0 14px; }

/* Organiser-only refund banner on the tee sheet page */
.refund-alert {
  margin: 20px 0;
  padding: 16px 20px;
  border: 1.5px solid var(--danger);
  border-left-width: 6px;
  border-radius: 12px;
  background: rgba(179, 38, 30, 0.06);
}
.refund-alert h2 { margin: 0 0 8px; font-size: 1.05rem; color: var(--danger); }
.refund-alert ul { margin: 0; padding: 0; list-style: none; }
.refund-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0;
}
.refund-actions {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.refund-actions-label { font-size: 0.82rem; color: var(--ink-faint); white-space: nowrap; }
.btn-refunded {
  background: var(--danger);
  color: #fff;
  font-size: 0.85rem;
  padding: 7px 12px;
}
.btn-refunded:hover { filter: brightness(1.08); }
.refund-alert-foot { margin: 10px 0 0; font-size: 0.88rem; color: var(--ink-faint); }

.open-bookings-form { margin-top: 14px; }
.open-bookings-note { font-size: 0.85rem; margin: 8px 0 0; }

.stats-page h2 { margin-top: 1.6em; }

/* Per-outing ledger accordion */
.ledger {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 10px 0;
  background: var(--surface-sunken);
}
.ledger summary {
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.ledger[open] summary { border-bottom: 1px solid var(--line); }
.ledger-meta { color: var(--ink-faint); font-size: 0.88rem; }
.ledger > *:not(summary) { margin-left: 16px; margin-right: 16px; }
.ledger > p, .ledger .prize-scroll { margin-bottom: 12px; }
.ledger-subhead { font-size: 0.95rem; margin: 14px 16px 8px; }
.ledger-ok { color: var(--ok); font-weight: 600; }
.ledger-warn { color: var(--danger); font-weight: 700; }

.stats-full {
  margin: 24px 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}
.prize-table .is-negative { color: #b3261e; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.dot-taken { background: var(--accent); }
.dot-free { background: transparent; border: 1.5px solid var(--ink-faint); }

/* Buttons ----------------------------------------------------------------- */

.btn {
  font: inherit;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: filter 120ms ease, transform 120ms ease;
}
.btn:hover { filter: brightness(1.07); }
/* Author display rules beat the UA's [hidden] default - restore it. */
[hidden] { display: none !important; }
.btn:active { transform: translateY(1px); }

.btn-primary, .btn-book { background: var(--accent); color: #fff; }
.btn-book { width: 100%; margin-top: 2px; }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-danger { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: wait; }

/* Small pill next to a section heading (e.g. "Export CSV" on the stats page) */
.stats-page .btn-export {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  padding: 6px 12px;
  margin-left: 12px;
  vertical-align: middle;
  text-decoration: none;
  border-radius: 999px;
}

/* Forms ------------------------------------------------------------------- */

label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; }

input, select {
  font: inherit;
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
input:focus, select:focus { border-color: var(--accent); outline: none; }

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 16px;
}
legend {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 0 6px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px 16px;
}

.form-message { min-height: 1.4em; font-weight: 600; color: var(--danger); font-size: 0.92rem; }
.form-message.is-ok { color: var(--ok); }
.form-message.is-error { color: var(--danger); }

/* Booking dialog ----------------------------------------------------------- */

dialog {
  border: none;
  border-radius: 14px;
  padding: 24px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
dialog::backdrop { background: rgba(14, 20, 16, 0.55); backdrop-filter: blur(2px); }

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.dialog-head .eyebrow { margin-bottom: 2px; }
.dialog-time {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.dialog-close {
  background: var(--surface-sunken);
  border: none;
  color: var(--ink-soft);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1rem;
  cursor: pointer;
}

.count-picker { display: flex; gap: 8px; margin-bottom: 14px; }
.count-btn {
  font: inherit;
  font-weight: 700;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
}
.count-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.player-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.player-row label { margin-bottom: 10px; }
.player-row select { width: auto; min-width: 150px; }

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.total-line { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Success state ------------------------------------------------------------ */

#book-success { text-align: center; padding: 12px 4px; }
#book-success .btn { margin-top: 10px; }

.success-check {
  width: 56px;
  height: 56px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 1.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-ref { color: var(--ink-soft); }
.success-note { font-size: 0.88rem; color: var(--ink-faint); }

/* Prizes -------------------------------------------------------------------- */

.prizes-section {
  margin-top: 48px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.prize-group-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  margin: 18px 0 8px;
}
.prizes-section h2 + .prize-group-title { margin-top: 4px; }

.prize-scroll { overflow-x: auto; }

.prize-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 480px;
}
.prize-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  padding: 8px 12px;
  border-bottom: 2px solid var(--accent);
}
.prize-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.prize-table tbody tr:first-child td { font-weight: 700; }

/* Cancel section / manage page ---------------------------------------------- */

.cancel-section {
  margin-top: 56px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cancel-section > p { max-width: 68ch; color: var(--ink-soft); }

.manage-card {
  max-width: 640px;
  margin: 44px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.booking-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin: 20px 0 24px;
  padding: 16px;
  background: var(--surface-sunken);
  border-radius: var(--radius);
}
.booking-meta dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-weight: 700;
}
.booking-meta dd { margin: 2px 0 0; font-weight: 600; }

.cancel-player-list { list-style: none; padding: 0; margin: 0 0 18px; }
.cancel-player-list li { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.cancel-player-list li:last-child { border-bottom: none; }
.cancel-player-list input[type="checkbox"] { width: auto; margin-right: 8px; }
.cancel-player-list label { display: inline; font-weight: 500; font-size: 1rem; }
.cancel-player-list .is-cancelled { text-decoration: line-through; }

.back-link { margin-top: 24px; }

/* Members ------------------------------------------------------------------- */

.auth-card { max-width: 440px; }
.auth-card form { margin-top: 8px; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-alt { margin-top: 20px; color: var(--ink-soft); }

.membership-status {
  margin: 18px 0 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface-sunken);
  border: 1px solid var(--line);
}
.membership-status.is-paid { border-color: var(--ok); background: var(--ok-tint); }

.status-badge {
  display: inline-block;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.status-paid { background: var(--ok); color: #fff; }
.status-due { background: var(--warn); color: #fff; }

.member-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  align-items: center;
}
.member-actions form { margin: 0; }

.member-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Notices / payment result ---------------------------------------------------- */

.notice-card {
  margin-top: 44px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sand);
  border-radius: var(--radius);
}
.notice-closed { border-left-color: var(--warn); }

.payment-result { text-align: center; }
.payment-result .success-check { margin-bottom: 18px; }

.pending-spinner {
  width: 44px;
  height: 44px;
  margin: 4px auto 18px;
  border-radius: 50%;
  border: 4px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .pending-spinner { animation-duration: 2.5s; }
  .btn { transition: none; }
}

@media (max-width: 480px) {
  .hero { padding-top: 28px; }
  dialog { padding: 18px; }
  .dialog-actions { flex-direction: column; align-items: stretch; }
  .player-row { grid-template-columns: 1fr; }
  .player-row select { width: 100%; }
}
