:root {
  --sand: #F6F1E7;
  --sand-2: #EEE6D6;
  --card: #FFFFFF;
  --ink: #0E2A47;
  --ink-2: #3D5470;
  --muted: #6B7A8C;
  --line: #E2D9C8;
  --blue: #1E4FA8;
  --blue-d: #163C82;
  --ball: #D9F24A;
  --off: #0F7B5F;
  --off-bg: #E3F4EC;
  --danger: #B42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 42, 71, .06), 0 4px 16px rgba(14, 42, 71, .06);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --display: "Bricolage Grotesque", var(--font);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--blue); }
[hidden] { display: none !important; }
h1, h2 { font-family: var(--display); letter-spacing: -.01em; margin: 0; }
.muted { color: var(--muted); margin: 4px 0 0; }
.hint { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

.demo-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 6px 16px;
}
.viewas { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.viewas a {
  min-height: 30px; padding: 0 12px;
  display: inline-flex; align-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, .85);
  text-decoration: none; font-weight: 600;
}
.viewas a[aria-current="true"] { background: var(--ball); color: var(--ink); }

.view {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 120px;
}

/* Club header */
.club {
  position: relative;
  overflow: hidden;
  margin: 16px 0 8px;
  padding: 20px 18px 18px;
  border-radius: 20px;
  background: var(--blue);
  color: #fff;
}
.club-court {
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, .08);
  pointer-events: none;
}
.club-court svg { width: 100%; height: 100%; }
.club-top { position: relative; display: flex; gap: 12px; align-items: center; }
.club-mark { width: 48px; height: 48px; flex: none; }
.club h1 { font-size: 24px; line-height: 1.15; }
.club-sub { margin: 4px 0 0; font-size: 14px; color: rgba(255, 255, 255, .85); }
.club-facts {
  position: relative;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.club-facts li {
  background: rgba(255, 255, 255, .12);
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
}
.club-facts strong { font-size: 16px; }
.club-facts span { font-size: 12.5px; color: rgba(255, 255, 255, .82); line-height: 1.3; }
.club-facts li:nth-child(2) strong { color: var(--ball); }

/* Sections */
.block { padding: 22px 0 6px; }
.block h2 { font-size: 19px; }
.step { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-n {
  width: 24px; height: 24px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font: 700 13px/1 var(--font);
}

/* Date strip */
.date-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  margin: 0 -16px;
  padding: 2px 16px 6px;
  scrollbar-width: none;
}
.date-strip::-webkit-scrollbar { display: none; }
.day {
  flex: none;
  scroll-snap-align: start;
  width: 64px;
  min-height: 78px;
  padding: 8px 4px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.day-wd { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.day-n { font: 700 22px/1.1 var(--display); }
.day-open { font-size: 11.5px; color: var(--off); font-weight: 600; }
.day.full .day-open { color: var(--muted); }
.day.full .day-n { color: var(--muted); }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.day[aria-pressed="true"] .day-wd, .day[aria-pressed="true"] .day-open { color: var(--ball); }
.day[aria-pressed="true"] .day-n { color: #fff; }

/* Chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-weight: 600;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:disabled { opacity: .45; cursor: not-allowed; }

.empty {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1.5px dashed var(--line);
  text-align: center;
  color: var(--ink-2);
}
.empty button { margin-top: 10px; }

/* Class */
.class-list { display: grid; gap: 10px; margin-top: 12px; }
.class-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.class-when { font-weight: 700; }
.class-meta { font-size: 13.5px; color: var(--muted); }
.seats { display: flex; gap: 3px; margin-top: 6px; }
.seats i { width: 14px; height: 14px; border-radius: 50%; background: var(--ball); border: 1.5px solid #A9C21F; }
.seats i.gone { background: var(--sand-2); border-color: #D6CCB8; }

/* Info */
.info dl { margin: 12px 0 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.info dl > div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--sand-2); }
.info dl > div:last-child { border-bottom: 0; }
.info dt { font-weight: 700; font-size: 14px; }
.info dd { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.foot { padding: 28px 0 8px; text-align: center; font-size: 14px; }
.foot a { color: var(--muted); }

/* Your bookings */
.my-bookings { margin-top: 12px; }
.mine {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px;
  background: var(--ball);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 8px;
}
.mine small { display: block; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.mine strong { font-size: 15.5px; }
.mine span { font-weight: 700; white-space: nowrap; }

/* Sticky bar */
.bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  display: flex; align-items: center; gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(14, 42, 71, .08);
}
@media (min-width: 592px) { .bar { border-radius: 16px 16px 0 0; border: 1px solid var(--line); border-bottom: 0; } }
.bar-info { flex: 1; min-width: 0; }
.bar-when { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-total { font-size: 13.5px; color: var(--muted); }

/* Buttons */
.btn {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-primary:disabled { background: #B7C3D6; cursor: not-allowed; }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.link-plain { display: block; text-align: center; padding: 12px; font-weight: 600; }

/* Top nav */
.topnav { display: flex; align-items: center; gap: 8px; padding: 14px 0 6px; }
.topnav-title { font-size: 20px; }
.back, .icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-size: 20px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
}

/* Summary + form */
.summary {
  margin: 10px 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}
.summary-kicker { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ball); font-weight: 700; }
.summary-when { font: 700 20px/1.25 var(--display); margin-top: 2px; }
.summary-meta { font-size: 14px; color: rgba(255, 255, 255, .8); margin-top: 2px; }
.summary-edit { color: #fff; font-size: 14px; font-weight: 600; background: none; border: 0; padding: 8px 0 0; text-decoration: underline; cursor: pointer; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.field > span, .field legend { font-weight: 700; font-size: 15px; padding: 0; }
.field i { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  font-size: 16px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 79, 168, .18); }
.field.invalid input { border-color: var(--danger); }
.err { display: none; font-style: normal; font-size: 13.5px; color: var(--danger); }
.field.invalid .err { display: block; }
.rent { gap: 8px; }
.check {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  font-weight: 600;
}
.check input { width: 20px; height: 20px; accent-color: var(--blue); }
.form-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}
.form-total span { color: var(--ink-2); }
.form-total strong { font: 800 24px/1 var(--display); }

/* Done */
.done { padding: 28px 0 0; text-align: center; }
.done-badge {
  width: 64px; height: 64px; margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ball);
  color: var(--ink);
}
.done-badge svg { width: 32px; height: 32px; }
.done h1 { font-size: 28px; }
.ticket {
  margin: 20px 0;
  text-align: left;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ticket-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  background: var(--blue);
  color: #fff;
}
.ticket-head small { display: block; font-size: 12px; opacity: .85; text-transform: uppercase; letter-spacing: .05em; }
.ticket-code { font: 800 22px/1 var(--display); letter-spacing: .04em; }
.ticket dl { margin: 0; padding: 4px 16px; }
.ticket dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ticket dl div:last-child { border-bottom: 0; }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; font-weight: 600; text-align: right; }
.done-actions { display: grid; gap: 10px; }

/* Staff */
.staff-day { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; }
.staff-date { flex: 1; text-align: center; font: 700 18px/1.2 var(--display); }
.kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpis li { background: var(--card); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); }
.kpis strong { display: block; font: 800 22px/1.1 var(--display); }
.kpis span { font-size: 12.5px; color: var(--muted); }
.staff-hint { margin: 14px 0 10px; }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.row {
  display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 10px;
  min-height: 48px;
  padding: 8px 10px 8px 12px;
  border-radius: 12px;
  background: var(--card);
  border-left: 4px solid transparent;
}
.row-time { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.row-what { min-width: 0; }
.row-what strong { display: block; font-size: 15px; }
.row-what span { display: block; font-size: 13px; color: var(--muted); }
.row.free { background: transparent; border: 1.5px dashed var(--line); border-left-width: 1.5px; }
.row.free .row-what { color: var(--muted); font-size: 14px; }
.row.booking { border-left-color: var(--blue); box-shadow: var(--shadow); }
.row.sample { border-left-color: #8FA6C9; }
.row.klass { border-left-color: #A9C21F; box-shadow: var(--shadow); }
.row.blocked { border-left-color: var(--danger); background: #FBEDEB; }
.row .btn-sm { min-height: 36px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 10;
  transform: translate(-50%, 20px);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 3px solid var(--ball); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }
@media (hover: hover) {
  .day:hover:not([aria-pressed="true"]), .chip:hover:not([aria-pressed="true"]):not(:disabled) { border-color: var(--ink-2); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 360px) {
  .club-facts { grid-template-columns: 1fr 1fr; }
}

/* Rebook */
.rebook {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ball);
}
.rebook small { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rebook strong { display: block; font-size: 15.5px; }
.rebook span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.rebook .link-btn { flex: none; color: var(--ink); }
.done-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.done-pair .btn { padding: 0 10px; font-size: 14.5px; }
.done-pair .btn[hidden] + .btn, .done-pair .btn:only-child { grid-column: 1 / -1; }
.ticket-price { text-align: right; }

/* Shared view header + cards */
.view-head { padding: 20px 0 6px; }
.view-head h1 { font-size: 24px; }
.card { margin-top: 14px; padding: 16px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.card h2 { font-size: 18px; }
.link-btn { background: none; border: 0; padding: 6px 0 0; font: 600 13.5px/1.2 var(--font); color: var(--danger); text-decoration: underline; cursor: pointer; text-align: left; }

/* Staff rows */
.row-act { display: flex; flex-direction: column; gap: 6px; }
.tog {
  min-height: 36px; min-width: 76px; padding: 0 10px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--card); font: 700 13.5px/1 var(--font); cursor: pointer;
}
.tog[aria-pressed="true"] { background: var(--off); border-color: var(--off); color: #fff; }
.tog[aria-pressed="true"]::before { content: "✓ "; }
.row.settled { opacity: .72; }
.row.free .row-act { flex-direction: row; }

/* Walk-in sheet */
.sheet {
  width: min(520px, calc(100% - 24px));
  margin: auto auto 12px;
  padding: 18px 16px 16px;
  border: 0; border-radius: 18px;
  background: var(--sand);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(14, 42, 71, .35);
}
.sheet::backdrop { background: rgba(14, 42, 71, .45); }
.sheet h2 { font-size: 20px; }
.sheet-when { margin: -6px 0 0; font-weight: 600; color: var(--blue); }
.sheet-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 4px; }

/* Owner */
.owner-kpis { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.owner-kpis li { padding: 12px 14px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.owner-kpis span { font-size: 13px; color: var(--muted); font-weight: 600; }
.owner-kpis strong { font: 800 26px/1.15 var(--display); margin: 2px 0; }
.owner-kpis em { font-style: normal; font-size: 12.5px; color: var(--ink-2); }
.owner-kpis em.up { color: var(--off); }
.owner-kpis em.down { color: var(--danger); }
.chart { margin-top: 10px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--sand-2); stroke-width: 1; }
.chart .axis { font: 500 11px var(--font); fill: var(--muted); }
.chart .val { font: 700 12px var(--font); fill: var(--ink); }
.chart .bar { fill: #86A6E0; cursor: pointer; outline: none; }
.chart .bar-today { fill: var(--blue); }
.chart .bar:hover, .chart .bar:focus-visible { fill: var(--blue-d); }
.numbers { margin-top: 8px; font-size: 13.5px; }
.numbers summary { cursor: pointer; color: var(--blue); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.numbers table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.numbers th, .numbers td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--sand-2); }
.numbers td:last-child, .numbers th:last-child { text-align: right; }

.heat-wrap { position: relative; margin-top: 30px; }
.heat-off {
  position: absolute; top: -22px; height: calc(100% + 22px);
  border-radius: 8px 8px 0 0;
  background: var(--off-bg);
  pointer-events: none;
}
.heat-off span { position: absolute; top: 3px; left: 0; right: 0; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--off); }
.heat { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; }
.heat-cell { display: flex; flex-direction: column; gap: 4px; outline: none; cursor: default; }
.heat-cell i { display: block; height: 44px; border-radius: 4px; background: var(--c); }
.heat-cell:focus-visible i, .heat-cell:hover i { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.heat-cell span { height: 14px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.heat-legend { display: flex; align-items: center; gap: 2px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.heat-legend span { margin: 0 6px; }
.heat-legend span:first-child { margin-left: 0; }
.heat-legend i { width: 18px; height: 10px; border-radius: 2px; }
.heat-legend i:nth-of-type(1) { background: #E6ECF8; }
.heat-legend i:nth-of-type(2) { background: #BCCDEE; }
.heat-legend i:nth-of-type(3) { background: #86A6E0; }
.heat-legend i:nth-of-type(4) { background: #4A78CC; }
.heat-legend i:nth-of-type(5) { background: #1E4FA8; }
.heat-note { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }

.ahead { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ahead li { display: grid; grid-template-columns: 78px 1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.ahead-day { font-weight: 700; }
.ahead-bar { height: 10px; border-radius: 999px; background: var(--sand-2); overflow: hidden; }
.ahead-bar i { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.ahead-num { color: var(--ink-2); font-size: 13px; white-space: nowrap; }

.settings { margin-top: 12px; gap: 12px; }
.peso-in { position: relative; }
.peso-in b { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.peso-in input { padding-left: 30px; }

.tip {
  position: fixed; z-index: 20;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
}

/* Sign in */
.login { padding: 14px 0 40px; }
.login-card { margin-top: 18px; padding: 24px 18px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); text-align: center; }
.login-card .form { margin-top: 18px; text-align: left; }
.login-mark svg { width: 56px; height: 56px; }
.login-card h1 { font-size: 24px; margin-top: 8px; }
.pin { letter-spacing: .5em; font-size: 22px !important; text-align: center; }
.who {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 12px; padding: 8px 12px;
  border-radius: 10px; background: var(--sand-2);
  font-size: 13.5px;
}
.who span { flex: 1; }
.who a { font-weight: 600; }
.who .link-btn { padding: 0; color: var(--ink-2); }

/* Time list */
.times { display: grid; gap: 8px; }
.times-group { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.times-group:first-child { margin-top: 0; }
.time-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card);
  text-align: left; cursor: pointer;
}
.tr-time { font: 700 17px/1.2 var(--display); }
.tr-price { text-align: right; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.tr-price small { display: block; font-size: 12px; color: var(--off); }
.time-row[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.time-row[aria-pressed="true"] .tr-price, .time-row[aria-pressed="true"] .tr-price small { color: #fff; }
.empty span { display: block; margin-top: 4px; font-size: 14px; }
.empty-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
@media (hover: hover) { .time-row:hover:not([aria-pressed="true"]) { border-color: var(--ink-2); } }

/* Length picker */
.len-pick { display: grid; gap: 10px; }
.len-pick .hint { margin: 0; font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.step-btn {
  width: 48px; height: 48px; flex: none;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card);
  font: 700 22px/1 var(--font);
  cursor: pointer;
}
.step-btn:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { flex: 1; text-align: center; font: 800 22px/1 var(--display); }

.member-tag {
  display: inline-block; margin-left: 4px; padding: 1px 8px;
  border-radius: 999px; background: var(--ball); color: var(--ink);
  font: 700 11.5px/1.5 var(--font); font-style: normal; vertical-align: 2px;
}

/* Payment */
.pay { gap: 10px; }
.pay-gcash { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--card); border: 1.5px solid var(--line); }
.pay-step { margin: 0; font-size: 15px; }
.pay-step b {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; margin-right: 6px;
  border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px;
}
.pay-qr { display: grid; place-items: center; }
.pay-qr img { width: 220px; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.qr-empty {
  width: 220px; aspect-ratio: 1; display: grid; place-content: center; gap: 6px;
  padding: 16px; text-align: center;
  border: 2px dashed #CFC3AC; border-radius: 12px; background: var(--sand);
}
.qr-empty strong { font-size: 15px; }
.qr-empty span { font-size: 12.5px; color: var(--muted); }
.upload {
  position: relative; display: grid; place-items: center;
  min-height: 96px; padding: 12px;
  border: 2px dashed var(--line); border-radius: 12px; background: var(--sand);
  cursor: pointer; text-align: center;
}
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-empty { font-weight: 700; color: var(--blue); }
.upload.has-file .upload-empty { display: none; }
.upload img { max-height: 220px; max-width: 100%; border-radius: 8px; }
.receipt-btn {
  justify-self: start; margin-top: 6px; padding: 4px 10px;
  border: 0; border-radius: 999px;
  background: #FFF1C2; color: #7A5B00;
  font: 700 12.5px/1.4 var(--font); cursor: pointer;
}
.receipt-btn.ok { background: var(--off-bg); color: var(--off); }
.row-what .receipt-btn { display: inline-block; }
.receipt-img { display: block; max-width: 100%; max-height: 60vh; margin: 12px auto 0; border-radius: 10px; border: 1px solid var(--line); }
.payqr-owner { display: grid; gap: 12px; margin-top: 12px; }
.upload-btn { cursor: pointer; }

.pay-rule { margin: 0; padding: 10px 12px; border-radius: 10px; background: #FFF6D6; color: #6B5100; font-size: 14px; font-weight: 600; }
.receipt-btn.wait { background: var(--sand-2); color: var(--ink-2); cursor: default; }
.receipt-btn.late { background: #FBEDEB; color: var(--danger); cursor: default; }
span.receipt-btn { cursor: default; }
.done-pay { margin: 0 0 16px; text-align: left; }

/* Club rules */
.rule-group { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 10px; }
.rule-group summary {
  min-height: 52px; padding: 14px 16px;
  font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.rule-group summary::-webkit-details-marker { display: none; }
.rule-group summary::after { content: "+"; font-size: 20px; color: var(--muted); }
.rule-group[open] summary::after { content: "−"; }
.rule-group ul { margin: 0; padding: 0 16px 14px 34px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.rules h2 { margin-bottom: 2px; }
.rules-inline summary { cursor: pointer; color: var(--blue); font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.rules-inline .rule-group { box-shadow: none; border: 1.5px solid var(--line); }

/* Sign in modes + staff accounts */
.code { letter-spacing: .35em; text-transform: uppercase; }
.link-quiet { background: none; border: 0; width: 100%; color: var(--blue); font: 600 15px var(--font); cursor: pointer; }
.staff-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.staff-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px; border-radius: 12px; background: var(--sand);
}
.staff-item strong { display: block; }
.staff-item span { font-size: 13.5px; color: var(--ink-2); }
.staff-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.code-chip { padding: 1px 6px; border-radius: 6px; background: var(--ball); color: var(--ink); letter-spacing: .08em; }
.staff-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; margin-top: 12px; }

.role-tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font: 700 11.5px/1.5 var(--font); font-style: normal; vertical-align: 1px; }
.role-owner { background: var(--ink); color: #fff; }
.role-staff { background: var(--sand-2); color: var(--ink-2); }
.staff-add { grid-template-columns: 1fr; }
.who .link-btn { margin-left: 0; }
