@import url('https://fonts.googleapis.com/css2?family=Alumni+Sans:wght@400;600;700;800;900&family=Roboto:wght@300;400;500;700&display=swap');

/* ════════════════════════════════════════════════════════
   Focus Gym — Reformer Booking
   ────────────────────────────────────────────────────────
   Sections:
     1. Tokens
     2. Reset + base
     3. Header (site-wide)
     4. Buttons (site-wide)
     5. Booking page
     6. Modal / drawer
     7. Form
     8. Mobile sticky CTA
     9. Footer
    10. Landing page
    11. Cancel + admin
   ════════════════════════════════════════════════════════ */

/* ─── 1. Tokens ─────────────────────────────────────────── */

:root {
  --red: #EC1B2E;
  --red-dark: #c0111f;
  --red-glow: rgba(236,27,46,0.2);
  --ink: #111111;
  --ink2: #54595F;
  --ink3: #7A7A7A;
  --ink4: #a8a8a8;
  --bg: #F4F4F4;
  --bg2: #EBEBEB;
  --surface: #ffffff;
  --border: #E2E2E2;
  --border2: #C8C8C8;
  --green: #15803d;
  --green-bg: #edfaf3;
  --green-border: #bbf7d0;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;

  /* Legacy aliases — kept so existing markup on admin/cancel pages still resolves */
  --accent: var(--red);
  --accent-dark: var(--red-dark);
  --accent-subtle: rgba(236,27,46,0.07);
  --text: var(--ink);
  --text-secondary: var(--ink2);
  --muted: var(--ink3);
  --white: #ffffff;
  --available-bg: var(--green-bg);
  --available-text: var(--green);
  --available-border: var(--green-border);
  --booked-bg: var(--bg2);
  --booked-text: #555;
  --booked-border: #ccc;
  --hold-bg: var(--amber-bg);
  --hold-text: var(--amber);
  --hold-border: var(--amber-border);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.07);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.09), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.09), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.13), 0 4px 8px rgba(0,0,0,0.07);
}

/* ─── 2. Reset + base ───────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }

a { color: var(--red); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--red-dark); text-decoration: underline; }

h1, h2, h3 { font-family: 'Alumni Sans', sans-serif; }

/* ─── 3. Header ─────────────────────────────────────────── */

.hdr {
  position: sticky; top: 0; z-index: 200;
  background: #f7f7f7;
  border-bottom: 3px solid var(--red);
  height: 76px;
  display: flex; align-items: center;
  padding: 0 1.75rem; gap: 1.25rem;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.hdr-logo { display: flex; align-items: center; height: 56px; text-decoration: none; }
.hdr-logo img { height: 100%; width: auto; display: block; }
.hdr-logo:hover { text-decoration: none; }
.hdr-sep { width: 1px; height: 28px; background: var(--border); }
.hdr-sub {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink3); line-height: 1;
}
.hdr-space { flex: 1; }
.hdr-back {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink2);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 0.15s;
  white-space: nowrap;
}
.hdr-back:hover { color: var(--red); text-decoration: none; }
@media (max-width: 640px) {
  .hdr { padding: 0 1rem; gap: 0.85rem; height: 64px; }
  .hdr-logo { height: 46px; }
  .hdr-sub { display: none; }
}

/* ─── 4. Buttons ────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  border: none; cursor: pointer;
  font-family: 'Alumni Sans', sans-serif;
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  min-height: 50px;
  transition: all 0.18s ease;
  white-space: nowrap;
  width: 100%;
}
.btn-primary {
  background: var(--red); color: white;
  box-shadow: 0 4px 18px var(--red-glow);
}
.btn-primary:hover:not(:disabled) {
  background: var(--red-dark);
  box-shadow: 0 6px 24px rgba(236,27,46,0.4);
  transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.35; cursor: not-allowed;
  transform: none !important; box-shadow: none !important;
}
.btn-secondary {
  background: white; color: var(--ink);
  border: 1.5px solid var(--border2);
}
.btn-secondary:hover { border-color: var(--red); color: var(--red); }

.btn.is-loading { pointer-events: none; }
.btn.is-loading::after {
  content: ''; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: white;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.spin-red {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2.5px solid var(--border2); border-top-color: var(--red);
  animation: spin 0.7s linear infinite; display: block; margin: 0 auto;
}

/* ─── 5. Booking page ───────────────────────────────────── */

.booking-page {
  max-width: 1200px; margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
  width: 100%;
}

.booking-head { margin-bottom: 2rem; }
.booking-head h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800; letter-spacing: 0.03em;
  text-transform: uppercase; line-height: 1;
  color: var(--ink); margin-bottom: 0.5rem;
}
.booking-head p { font-size: 0.95rem; color: var(--ink2); }

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}
.booking-grid > .sidebar { min-width: 0; }
@media (max-width: 900px) {
  .booking-grid { grid-template-columns: minmax(0, 1fr); }
}

.main-col { display: flex; flex-direction: column; gap: 1.75rem; }

.section-head {
  display: flex; align-items: baseline; gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.section-head .lbl {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); white-space: nowrap;
}
.section-head .lbl-line { flex: 1; height: 1px; background: var(--border); }
.section-head .lbl-meta { font-size: 0.78rem; color: var(--ink3); font-weight: 500; }
@media (max-width: 540px) { .section-head .lbl-meta { display: none; } }

/* Date strip */
.dates {
  display: flex; gap: 0.5rem;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.dates::-webkit-scrollbar { display: none; }
.date-card {
  flex-shrink: 0; min-width: 74px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 0.75rem 0.5rem;
  text-align: center; cursor: pointer; user-select: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  position: relative;
  font-family: inherit;
}
.date-card:hover:not(.sel) {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.date-card .dn {
  display: block; font-family: 'Alumni Sans', sans-serif;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink3); margin-bottom: 0.25rem;
}
.date-card .dd {
  display: block; font-family: 'Alumni Sans', sans-serif;
  font-size: 2rem; font-weight: 800; line-height: 1;
  color: var(--ink); margin-bottom: 0.15rem;
}
.date-card .dm {
  display: block; font-family: 'Alumni Sans', sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink3);
}
.date-card.sel {
  background: var(--red); border-color: var(--red);
  transform: translateY(-2px); box-shadow: 0 4px 18px var(--red-glow);
}
.date-card.sel .dn, .date-card.sel .dm { color: rgba(255,255,255,0.6); }
.date-card.sel .dd { color: white; }

/* Slot card */
.slot-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}
.slot-card-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: #FAFAFA;
  border-bottom: 1px solid var(--border);
}
.legend { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.li {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 500; color: var(--ink2);
}
.ld { width: 9px; height: 9px; border-radius: 50%; }
.ld-open { background: var(--green); }
.ld-sel { background: var(--red); }
.ld-full { background: #999; }
.ld-hold { background: var(--amber); }
.ld-whole {
  width: 12px; height: 12px; border-radius: 3px;
  background: transparent; border: 1.5px dashed var(--red);
}
.day-label {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
}

.slot-scroll {
  max-height: 600px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--border2) transparent;
}
.slot-scroll::-webkit-scrollbar { width: 4px; }
.slot-scroll::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }

table.st { width: 100%; border-collapse: collapse; }
table.st thead th {
  position: sticky; top: 0; z-index: 2;
  background: #1a1a1a; color: rgba(255,255,255,0.85);
  font-family: 'Alumni Sans', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.85rem 1.25rem; text-align: center;
}
table.st thead th:first-child { text-align: left; }
table.st tbody tr { transition: background 0.1s; }
table.st tbody tr:hover { background: #FAFAFA; }
table.st tbody tr.now-row { background: rgba(236,27,46,0.04); }
table.st td {
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.6rem; text-align: center; vertical-align: middle;
}
table.st tbody tr:last-child td { border-bottom: none; }
table.st td.time-col {
  text-align: left; padding-left: 1.25rem;
  font-family: 'Alumni Sans', sans-serif;
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--ink); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.now-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--red); border-radius: 50%;
  margin-right: 0.4rem; vertical-align: middle;
  box-shadow: 0 0 0 4px rgba(236,27,46,0.15);
  animation: now-pulse 1.6s ease-in-out infinite;
}
@keyframes now-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(236,27,46,0.12); }
  50%      { box-shadow: 0 0 0 7px rgba(236,27,46,0.02); }
}
.time-col .ampm {
  font-size: 0.7rem; color: var(--ink3); font-weight: 500;
  margin-left: 0.2rem; letter-spacing: 0.08em;
}

.sc {
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  width: calc(100% - 8px); min-height: 42px;
  font-family: 'Alumni Sans', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: transform 0.1s, box-shadow 0.1s, background 0.1s;
  cursor: pointer; user-select: none;
}
.sc-open { background: var(--green-bg); color: var(--green); border-color: var(--green-border); }
.sc-open:hover { transform: scale(0.94); box-shadow: 0 2px 8px rgba(21,128,61,0.15); }
.sc-sel {
  background: var(--red); color: white;
  border-color: var(--red-dark);
  box-shadow: 0 3px 12px var(--red-glow);
  transform: scale(0.94);
}
.sc-full { background: var(--bg2); color: #888; border-color: #ddd; cursor: not-allowed; }
.sc-hold { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-border); cursor: not-allowed; }
.sc-loading { padding: 4rem 1rem !important; }

tr.whole-studio td {
  background: linear-gradient(to right, rgba(236,27,46,0.05), rgba(236,27,46,0.02));
}

/* Early AM band (12am–4am) */
tr.early-am-row td {
  background: rgba(99, 102, 241, 0.06);
}
tr.early-am-row td.time-col {
  color: var(--ink2);
}
tr.early-am-divider {
  pointer-events: none;
}
tr.early-am-divider td {
  padding: 0.5rem 1.25rem 0.4rem;
  border-bottom: none;
  background: rgba(99, 102, 241, 0.1);
}
.early-am-label {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #6366f1;
}

.whole-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: 'Alumni Sans', sans-serif;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red);
  margin-top: 0.2rem;
}

/* Sidebar */
.sidebar {
  position: sticky; top: 90px;
  display: flex; flex-direction: column; gap: 1rem;
}
.sel-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.sel-hdr {
  background: var(--ink); padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.sel-hdr-t {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 1.15rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: white; flex: 1;
}
.sel-count {
  background: var(--red); color: white;
  font-family: 'Alumni Sans', sans-serif;
  font-size: 0.95rem; font-weight: 800;
  padding: 0.2rem 0.65rem; border-radius: 99px;
  min-width: 28px; text-align: center;
}
.sel-body { padding: 1rem 1.25rem; }
.sel-empty {
  text-align: center; padding: 1.75rem 0.5rem;
  color: var(--ink3); font-size: 0.85rem; line-height: 1.6;
}
.sel-empty strong { color: var(--green); }
.sel-date {
  padding-bottom: 0.65rem; margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem; color: var(--ink3);
}
.sel-date strong {
  display: block;
  font-family: 'Alumni Sans', sans-serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.05em; color: var(--ink);
}
.sel-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.sel-item:last-child { border-bottom: none; }
.sel-item-info { min-width: 0; }
.sel-item-time {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.04em; color: var(--ink); line-height: 1.1;
}
.sel-item-time .ampm {
  font-size: 0.65rem; color: var(--ink3); font-weight: 500;
  margin-left: 0.3rem; letter-spacing: 0.06em;
}
.sel-item-ref { font-size: 0.75rem; color: var(--ink3); margin-top: 0.1rem; }
.sel-item-ref.whole { color: var(--red); font-weight: 500; }
.sel-item-rm {
  flex-shrink: 0; background: none; border: none;
  cursor: pointer; color: var(--ink4);
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: color 0.12s, background 0.12s;
}
.sel-item-rm:hover { color: var(--red); background: #fef2f2; }

.cta-area { display: flex; flex-direction: column; gap: 0.6rem; }
.total-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.65rem 1rem; background: white;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.82rem; color: var(--ink2);
}
.total-line strong {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  color: var(--ink); letter-spacing: 0.02em;
}

/* ─── 6. Modal / drawer ─────────────────────────────────── */

.overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(10,10,14,0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: flex-end; justify-content: center;
}
.overlay.active {
  display: flex;
  animation: ov-in 0.18s ease;
}
@media (min-width: 560px) {
  .overlay { align-items: center; padding: 1.5rem; }
}
@keyframes ov-in { from { opacity: 0; } to { opacity: 1; } }

.drawer {
  background: var(--surface); width: 100%;
  max-width: 480px; max-height: 92dvh; overflow-y: auto;
  border-radius: 14px 14px 0 0;
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  box-shadow: 0 -8px 48px rgba(0,0,0,0.2);
  animation: dr-in 0.24s cubic-bezier(0.32, 0.72, 0, 1);
}
@media (min-width: 560px) {
  .drawer { border-radius: 14px; animation: sc-in 0.2s cubic-bezier(0.32, 0.72, 0, 1); }
}
@keyframes dr-in {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes sc-in {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.drawer-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink3); font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}
.drawer-close:hover { background: var(--border); color: var(--ink); }

.drawer-title {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 1.8rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink);
  margin-bottom: 0.5rem; padding-right: 2.5rem;
}
.drawer-sub { font-size: 0.875rem; color: var(--ink2); margin-bottom: 1.25rem; }

.bk-summary {
  background: #FAFAFA; border: 1px solid var(--border);
  border-radius: 8px; padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
}
.bk-sum-lbl {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 0.6rem;
}
.bk-sum-row {
  display: flex; justify-content: space-between; gap: 0.5rem;
  font-size: 0.85rem; padding: 0.22rem 0;
  border-bottom: 1px solid var(--border);
}
.bk-sum-row:last-child { border-bottom: none; }
.bk-sum-row span:first-child { color: var(--ink3); }
.bk-sum-row span:last-child { font-weight: 500; }

/* ─── 7. Form ───────────────────────────────────────────── */

.form { display: flex; flex-direction: column; gap: 0.9rem; }
.fl { display: flex; flex-direction: column; gap: 0.3rem; }
.fl label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink2);
}
.fi {
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 0.75rem 0.875rem;
  font-family: 'Roboto', sans-serif; font-size: 0.95rem;
  width: 100%; background: #FAFAFA; color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.fi:focus { border-color: var(--red); background: white; box-shadow: 0 0 0 3px var(--red-glow); outline: none; }
.fi::placeholder { color: var(--ink4); }
.fi.err { border-color: var(--red); }
.ferr {
  font-size: 0.73rem; color: #b42318; font-weight: 500;
  margin-top: 0.1rem; min-height: 1em;
}

/* Dual-code notice + member cards (whole-studio booking) */
.dual-code-notice {
  background: #1e293b;
  color: #e2e8f0;
  border-left: 3px solid var(--red);
  border-radius: 6px;
  padding: .55rem .8rem;
  font-size: .82rem;
  line-height: 1.4;
  margin-bottom: .25rem;
}
.dual-code-block { display: flex; flex-direction: column; gap: 0.75rem; }
.member-card {
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 10px;
  padding: .75rem .85rem .85rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--surface2, #f9f9f9);
}
.member-card-hdr {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--red);
}

/* Confirmation view (inside drawer) */
.conf { text-align: center; padding: 1.75rem 0.5rem; animation: ov-in 0.28s ease; }
.conf-icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #15803d);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: white; margin-bottom: 1.25rem;
  box-shadow: 0 6px 22px rgba(22,163,74,0.28);
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.conf-title {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 2.25rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 0.4rem;
}
.conf-sub { font-size: 0.9rem; color: var(--ink2); margin-bottom: 0.75rem; line-height: 1.65; }
.conf-ref {
  display: inline-block; background: var(--bg2); border-radius: 4px;
  padding: 0.4rem 1rem; font-size: 0.72rem; color: var(--ink3);
  font-weight: 500; letter-spacing: 0.06em; margin-bottom: 1.5rem;
}
.conf-table {
  background: white; border: 1.5px solid var(--border);
  border-radius: 8px; overflow: hidden;
  margin-bottom: 1.5rem; text-align: left;
}
.conf-row {
  display: flex; justify-content: space-between;
  padding: 0.7rem 1rem; font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.conf-row:last-child { border-bottom: none; }
.conf-row span:first-child { color: var(--ink3); }
.conf-row span:last-child { font-weight: 500; }

/* ─── 8. Mobile sticky CTA (legacy — replaced by drawer on <900px) ─ */

.mobile-cta { display: none !important; }

.sel-hdr-chev { display: none; }

/* ─── 9. Footer ─────────────────────────────────────────── */

.site-footer {
  text-align: center; padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--ink3); font-size: 0.78rem;
  line-height: 1.7;
  margin-top: 2rem; background: white;
}
.site-footer a { color: var(--red); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer-name {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); display: block; margin-bottom: 0.4rem;
}

/* ─── 10. Landing page ──────────────────────────────────── */

.landing { display: flex; flex-direction: column; }

.landing-hero {
  background: linear-gradient(135deg, #0f0f0f 0%, #2a0a0e 55%, #EC1B2E 100%);
  color: white;
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1591291621164-2c6367723315?w=1200&q=80&auto=format&fit=crop') center/cover no-repeat;
  opacity: 0.12;
}
.landing-hero-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.landing-hero h2 {
  font-family: 'Alumni Sans', sans-serif;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem; line-height: 1.05;
}
.landing-hero p {
  font-size: 1rem; color: rgba(255,255,255,0.85);
  line-height: 1.7; margin-bottom: 2rem;
}
.landing-hero .btn {
  width: auto; min-width: 220px;
  padding: 0.95rem 2.25rem;
}

.landing-section { max-width: 960px; margin: 0 auto; padding: 3.5rem 1.5rem; width: 100%; }

.section-label {
  font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--red); margin-bottom: 0.4rem;
}
.section-title {
  font-family: 'Alumni Sans', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800; color: var(--ink);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 0.5rem; line-height: 1.1;
}
.section-sub {
  font-size: 0.95rem; color: var(--ink2);
  line-height: 1.7; max-width: 520px;
}

.equipment-block {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem; margin-top: 2rem;
}
@media (min-width: 680px) {
  .equipment-block { grid-template-columns: 1fr 1fr; align-items: center; }
}
.equipment-image {
  border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.equipment-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.equipment-specs { display: flex; flex-direction: column; gap: 1rem; }
.spec-item { display: flex; gap: 0.85rem; align-items: flex-start; }
.spec-icon {
  width: 38px; height: 38px; border-radius: 6px;
  background: var(--accent-subtle); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.spec-text strong {
  display: block; font-size: 0.875rem; font-weight: 800;
  color: var(--ink); margin-bottom: 0.15rem;
}
.spec-text span { font-size: 0.8rem; color: var(--ink2); line-height: 1.55; }

.landing-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

.benefits-section { background: #ebebeb; }
.benefits-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1rem; margin-top: 2rem;
}
@media (min-width: 560px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  border-top: 3px solid var(--red);
}
.benefit-card .benefit-emoji { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }
.benefit-card h3 {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 1.05rem; font-weight: 800;
  margin-bottom: 0.4rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink);
}
.benefit-card p { font-size: 0.82rem; color: var(--ink2); line-height: 1.65; }

.landing-cta {
  background: var(--ink); color: white;
  text-align: center; padding: 3.5rem 2rem;
  border-top: 3px solid var(--red);
}
.landing-cta h2 {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 2rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.5rem; color: white;
}
.landing-cta p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 1.75rem; }
.landing-cta .btn { width: auto; min-width: 220px; }

/* ─── 11. Cancel + admin ────────────────────────────────── */

/* Shared header for cancel + admin pages */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: #f7f7f7;
  border-bottom: 3px solid var(--red);
  height: 76px;
  display: flex; align-items: center; justify-content: center;
  gap: 1.25rem;
  padding: 0 1.75rem;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  text-align: center;
}
.site-header-logo {
  height: 52px; width: auto; display: block; flex-shrink: 0;
}
.site-header-text {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  line-height: 1.2;
}
.site-header-text .eyebrow {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink3); margin: 0;
}
.site-header-text h1 {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 1.35rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); margin: 0;
}
@media (max-width: 640px) {
  .site-header { height: 64px; padding: 0 1rem; gap: 0.85rem; }
  .site-header-logo { height: 42px; }
  .site-header-text h1 { font-size: 1.1rem; }
}

.cancel-layout, .admin-layout {
  max-width: 720px; margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}

.card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 0; }

.card h2 {
  font-size: 1.35rem; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 0.75rem;
}

.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid transparent;
}
.alert-error { background: #fef2f2; color: #b42318; border-color: #fecaca; }
.alert-success { background: var(--green-bg); color: var(--green); border-color: var(--green-border); }

.booking-summary {
  list-style: none; padding: 0; margin: 0.75rem 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.booking-summary li {
  padding: 0.6rem 0.85rem; background: #fafafa;
  border-radius: var(--radius-sm); font-size: 0.875rem;
  border: 1px solid var(--border);
}

.cancel-form { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.cancel-form .form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.cancel-form label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink2);
}
.cancel-form input {
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 0.75rem 0.875rem;
  font-family: 'Roboto', sans-serif; font-size: 0.95rem;
  background: #FAFAFA; width: 100%;
}
.cancel-form input:focus {
  border-color: var(--red); background: white;
  box-shadow: 0 0 0 3px var(--red-glow); outline: none;
}

.admin-layout .card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem;
}
.admin-form textarea {
  min-height: 200px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.85rem; line-height: 1.6;
  resize: vertical;
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 0.75rem; background: #FAFAFA; width: 100%;
}
.admin-actions {
  margin-top: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.admin-actions .btn { width: auto; }

/* ════════════════════════════════════════════════════════
   12. Mobile booking refinements (≤900px)
   ──────────────────────────────────────────────────────── */

@media (max-width: 900px) {

  /* Page chrome */
  .booking-page { padding: 1.1rem 0.875rem 5.5rem; }
  .booking-head { margin-bottom: 1.1rem; }
  .booking-head h1 { font-size: clamp(1.85rem, 7vw, 2.4rem); margin-bottom: 0.3rem; }
  .booking-head p { font-size: 0.85rem; line-height: 1.5; }
  .main-col { gap: 1.25rem; }

  .section-head { gap: 0.55rem; margin-bottom: 0.6rem; }
  .section-head .lbl { font-size: 0.78rem; letter-spacing: 0.16em; }

  /* Date strip — tighter cards */
  .dates { gap: 0.4rem; }
  .date-card { min-width: 60px; padding: 0.5rem 0.4rem; border-radius: 7px; }
  .date-card .dn { font-size: 0.68rem; letter-spacing: 0.1em; margin-bottom: 0.15rem; }
  .date-card .dd { font-size: 1.5rem; }
  .date-card .dm { font-size: 0.62rem; letter-spacing: 0.1em; }

  /* Slot card */
  .slot-card { border-radius: 10px; }
  .slot-card-bar {
    padding: 0.55rem 0.85rem;
    gap: 0.4rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .legend { gap: 0.55rem; row-gap: 0.35rem; width: 100%; }
  .li { font-size: 0.66rem; letter-spacing: 0; gap: 0.3rem; }
  .ld { width: 8px; height: 8px; }
  .ld-whole { width: 10px; height: 10px; }
  .day-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--ink3);
  }

  /* Let the table flow with the page — no nested scroll on mobile */
  .slot-scroll { max-height: none; overflow: visible; }
  table.st thead th {
    position: static;
    padding: 0.6rem 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }
  table.st thead th:first-child { min-width: 60px; padding-left: 0.75rem; }
  table.st td { padding: 0.3rem 0.22rem; }
  table.st td.time-col {
    padding-left: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.1;
  }
  table.st td.time-col .ampm {
    display: block;
    margin-left: 0;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    margin-top: 0.1rem;
  }
  .sc {
    width: calc(100% - 4px);
    min-height: 38px;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    border-radius: 5px;
  }
  .sc-open:hover { transform: none; box-shadow: none; }
  .whole-badge { font-size: 0.55rem; margin-top: 0.15rem; letter-spacing: 0.12em; }
  .now-dot { width: 5px; height: 5px; margin-right: 0.25rem; box-shadow: 0 0 0 3px rgba(236,27,46,0.15); }

  /* ─── Sidebar → bottom-sheet drawer ─── */
  .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    top: auto;
    z-index: 250;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 36px rgba(0,0,0,0.14);
    max-height: 80dvh;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    transform: translateY(calc(100% - 130px));
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .sidebar.is-open { transform: translateY(0); }
  .sidebar.is-empty {
    transform: translateY(calc(100% - 64px));
  }
  .sidebar.is-empty .cta-area,
  .sidebar.is-empty .sel-body { display: none; }

  .sel-card {
    border: none;
    border-radius: 16px 16px 0 0;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: var(--surface);
  }

  .sel-hdr {
    position: relative;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.15rem 1.1rem 0.85rem;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .sel-hdr::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 38px; height: 4px;
    background: var(--border2);
    border-radius: 99px;
  }
  .sel-hdr-t {
    color: var(--ink);
    font-size: 1rem;
    letter-spacing: 0.08em;
  }
  .sel-hdr-chev {
    display: block;
    width: 18px; height: 18px;
    flex-shrink: 0;
    color: var(--ink3);
    transition: transform 0.22s;
    margin-left: auto;
  }
  .sidebar.is-open .sel-hdr-chev { transform: rotate(180deg); }

  .sel-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
    padding: 0.75rem 1.1rem 0.5rem;
  }
  .sel-empty { padding: 1.25rem 0.5rem; }

  .cta-area {
    padding: 0.75rem 1rem 1.1rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
    gap: 0.5rem;
  }
  .cta-area .btn { width: 100%; min-height: 52px; }
  .total-line { padding: 0.55rem 0.85rem; font-size: 0.78rem; }
  .total-line strong { font-size: 1.25rem; }

  /* Push page content above the collapsed drawer */
  body[data-page="booking"] { padding-bottom: 80px; }
  body[data-page="booking"].selection-active { padding-bottom: 146px; }

  /* Footer breathes above the drawer */
  .site-footer { padding-bottom: 1rem; }
}

/* ─── Simple landing page ───────────────────────────────── */
.landing-simple {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--bg);
}
.landing-simple-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  max-width: 420px;
  width: 100%;
}
.landing-simple-inner .hdr-logo img {
  height: 64px;
  width: auto;
}
.landing-simple-inner h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0;
}
.landing-simple-inner p {
  color: var(--ink2);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}
.landing-simple-inner .btn {
  margin-top: 0.5rem;
  min-width: 200px;
}
.back-link {
  font-size: 0.85rem;
  color: var(--ink3);
  text-decoration: none;
  margin-top: 0.25rem;
}
.back-link:hover { color: var(--ink); }

/* Very small phones */
@media (max-width: 380px) {
  .booking-page { padding: 1rem 0.7rem 5rem; }
  table.st thead th:first-child { min-width: 52px; padding-left: 0.55rem; }
  table.st td.time-col { padding-left: 0.55rem; font-size: 0.9rem; }
  .sc { font-size: 0.7rem; min-height: 36px; letter-spacing: 0.02em; }
  table.st thead th { font-size: 0.72rem; }
  .date-card { min-width: 56px; }
  .date-card .dd { font-size: 1.4rem; }
}
