@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Apple-Refined Neutral Surface System */
  --bg-canvas: #F5F5F7;
  --bg-pure: #FFFFFF;
  --bg-subtle: #FAFAFC;
  --bg-elevated: #EFEFF4;
  --bg-glass: rgba(255, 255, 255, 0.86);

  /* Typography Hierarchy (Apple / Linear Ink) */
  --ink-primary: #1D1D1F;
  --ink-secondary: #515154;
  --ink-muted: #86868B;

  /* Single Brand Accent: JH Fitness Academy Royal Cobalt */
  --brand: #0051D5;
  --brand-hover: #003FA6;
  --brand-soft: rgba(0, 81, 213, 0.07);
  --brand-border: rgba(0, 81, 213, 0.18);

  /* Quiet Semantic Indicators (Used for 6px dots & subtle accents, never loud rainbow boxes) */
  --dot-success: #1D9E53;
  --dot-warning: #D97706;
  --dot-danger: #DC2626;
  --dot-info: #0051D5;
  --dot-ctba: #7C3AED;
  --dot-neutral: #86868B;

  /* Hairline Borders & Whisper-Quiet Elevation */
  --border-hairline: rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.12);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.09);

  /* Radii & Fonts */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 9999px;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 150ms cubic-bezier(0.4, 0, 1, 1) both fadeOutPage;
}

::view-transition-new(root) {
  animation: 220ms cubic-bezier(0, 0, 0.2, 1) both fadeInPage;
}

@keyframes fadeOutPage {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  line-height: 1.5;
  font-size: 14px;
  overflow-x: hidden;
}

main {
  animation: 220ms cubic-bezier(0.16, 1, 0.3, 1) both fadeInPage;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.nowrap {
  white-space: nowrap;
}

/* ============================================================================
   LAYOUT & CONTAINERS
   ============================================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 76px 0;
}

.section-Pure {
  background: var(--bg-pure);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-header-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 10px;
  white-space: nowrap;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.h1-display {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}

.h2-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
}

.subtitle {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-top: 10px;
}

/* ============================================================================
   UNIFIED FROSTED NAVIGATION HEADER (56px Apple Toolbar)
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-hairline);
}

.site-header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-hairline);
}

.brand-mark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-mark-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink-primary);
  white-space: nowrap;
}

.brand-mark-sub {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 500;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.site-nav-link:hover {
  color: var(--ink-primary);
  background: rgba(0, 0, 0, 0.04);
}

.site-nav-link.active {
  color: var(--ink-primary);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.055);
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ============================================================================
   BUTTONS (Strict single-line nowrap, refined proportions)
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  flex-shrink: 0;
  line-height: 1;
}

.btn-lg {
  height: 44px;
  padding: 0 22px;
  font-size: 14px;
}

.btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

.btn-primary {
  background: var(--brand);
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 81, 213, 0.2);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-dark {
  background: var(--ink-primary);
  color: #FFFFFF;
}

.btn-dark:hover {
  background: #000000;
}

.btn-secondary {
  background: var(--bg-pure);
  color: var(--ink-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: rgba(0, 0, 0, 0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink-primary);
}

/* ============================================================================
   QUIET STATUS DOTS & SUBTLE TAGS (Zero Rainbow Clutter)
   ============================================================================ */
.status-dot-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-primary);
  white-space: nowrap;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-success { background: var(--dot-success); }
.dot-warning { background: var(--dot-warning); }
.dot-danger  { background: var(--dot-danger); }
.dot-info    { background: var(--dot-info); }
.dot-ctba    { background: var(--dot-ctba); }
.dot-neutral { background: var(--dot-neutral); }

.tag-quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.tag-brand {
  background: var(--brand-soft);
  border-color: var(--brand-border);
  color: var(--brand);
}

/* ============================================================================
   SEGMENTED CONTROL (Apple macOS / iOS Segmented Picker)
   ============================================================================ */
.segmented {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: rgba(0, 0, 0, 0.055);
  border-radius: var(--radius-sm);
  gap: 2px;
}

.segmented-btn {
  height: 30px;
  padding: 0 13px;
  border-radius: 7px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.segmented-btn:hover {
  color: var(--ink-primary);
}

.segmented-btn.active {
  background: var(--bg-pure);
  color: var(--ink-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ============================================================================
   PUBLIC HOME (index.html) — EDITORIAL HERO & 3-PILLAR OVERVIEW
   ============================================================================ */
.hero-editorial {
  padding: 56px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
}

.hero-metric-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-metric-lbl {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
  white-space: nowrap;
}

.hero-media-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-pure);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-lg);
}

.hero-media-frame img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: center 22%;
}

.hero-media-caption {
  padding: 14px 18px;
  background: var(--bg-pure);
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

/* Live "Today at Bar Hill" Horizontal Strip */
.today-strip {
  background: var(--bg-pure);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  margin-top: 36px;
}

.today-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.today-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.today-mini-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease;
}

.today-mini-card:hover {
  border-color: var(--brand);
}

/* 3-Column Spacious Programme Architecture (Zero 2-Line Title Wrapping) */
.programme-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.programme-card {
  background: var(--bg-pure);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.programme-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.programme-card-img {
  height: 210px;
  width: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--border-hairline);
}

.programme-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.programme-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-primary);
  letter-spacing: -0.015em;
  margin: 8px 0 6px;
  white-space: nowrap;
}

.programme-card-desc {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.programme-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

/* Coach Bio Split Section */
.coach-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.coach-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.coach-photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
}

.credential-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0 26px;
}

.credential-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-primary);
}

/* ============================================================================
   APPLE CALENDAR & BOOKING ENGINE (schedule.html & Admin CRM Pillar 2)
   ============================================================================ */
.calendar-shell {
  background: var(--bg-pure);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.calendar-toolbar {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-subtle);
}

/* 7-Day Horizontal Date Strip */
.day-strip-bar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-pure);
}

.day-strip-cell {
  padding: 12px 10px;
  text-align: center;
  border: none;
  border-right: 1px solid var(--border-hairline);
  background: transparent;
  cursor: pointer;
  transition: background 0.14s ease;
}

.day-strip-cell:last-child {
  border-right: none;
}

.day-strip-cell:hover {
  background: var(--bg-subtle);
}

.day-strip-cell.active {
  background: var(--brand-soft);
  box-shadow: inset 0 -2px 0 var(--brand);
}

.day-strip-dow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  display: block;
}

.day-strip-cell.active .day-strip-dow {
  color: var(--brand);
}

.day-strip-date {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-top: 2px;
  display: block;
}

.day-strip-count {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 2px;
  display: block;
}

/* View 1: Chronological Single-Line Schedule Rows (Arketa / Apple Calendar Agenda) */
.schedule-agenda-list {
  divide-y: 1px solid var(--border-hairline);
}

.schedule-row {
  display: grid;
  grid-template-columns: 145px 1.5fr 1fr 150px 140px;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-hairline);
  transition: background 0.12s ease;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row:hover {
  background: var(--bg-subtle);
}

.schedule-time-col {
  display: flex;
  flex-direction: column;
}

.schedule-time-main {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-primary);
  white-space: nowrap;
}

.schedule-time-dur {
  font-size: 11.5px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.schedule-title-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.schedule-class-title {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.schedule-class-sub {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* View 2: True Apple Calendar 7-Day Time Grid */
.cal-week-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  min-height: 480px;
  background: var(--bg-pure);
}

.cal-day-column {
  border-right: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
}

.cal-day-column:last-child {
  border-right: none;
}

.cal-day-col-header {
  padding: 12px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-day-col-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-primary);
}

.cal-day-events {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.cal-event-block {
  padding: 9px 11px;
  border-radius: var(--radius-xs);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--brand);
  cursor: pointer;
  transition: all 0.14s ease;
  text-align: left;
}

.cal-event-block:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.cal-event-block.ctba {
  border-left-color: var(--dot-ctba);
}

.cal-event-block.opengym {
  border-left-color: var(--dot-success);
}

.cal-event-block.pt {
  border-left-color: var(--dot-warning);
  background: rgba(217, 119, 6, 0.05);
}

.cal-event-block.ical-busy {
  border-left-color: var(--dot-neutral);
  background: repeating-linear-gradient(
    -45deg,
    #FAFAFC,
    #FAFAFC 6px,
    #EFEFF4 6px,
    #EFEFF4 12px
  );
  cursor: default;
}

.cal-event-time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  display: block;
}

.cal-event-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
  margin-top: 2px;
  line-height: 1.25;
  display: block;
}

.cal-event-meta {
  font-size: 11px;
  color: var(--ink-secondary);
  margin-top: 3px;
  display: block;
}

/* View 3: 1-to-1 PT Slot Picker */
.pt-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  padding: 24px;
}

.pt-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.pt-slot-btn {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-pure);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
  text-align: center;
  transition: all 0.14s ease;
}

.pt-slot-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.pt-slot-btn.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.pt-slot-btn.busy {
  background: var(--bg-canvas);
  border-color: var(--border-hairline);
  color: var(--ink-muted);
  text-decoration: line-through;
  cursor: not-allowed;
}

/* ============================================================================
   MEMBERSHIPS, CLASS PACKS & SHOP (memberships.html)
   ============================================================================ */
.pricing-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pricing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.plan-card {
  background: var(--bg-pure);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  position: relative;
}

.plan-card.featured {
  border: 1.5px solid var(--brand);
  box-shadow: var(--shadow-md);
}

.plan-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 12px 0 8px;
}

.plan-price-val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.03em;
}

.plan-price-cycle {
  font-size: 13px;
  color: var(--ink-muted);
}

.plan-rule-box {
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 12px 0 16px;
  line-height: 1.45;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li::before {
  content: '✓';
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
}

.shop-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.shop-card {
  background: var(--bg-pure);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.shop-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.shop-card-img-wrap {
  width: 100%;
  height: 175px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
}

.shop-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s var(--ease-out);
}

.shop-card:hover .shop-card-img-wrap img {
  transform: scale(1.05);
}

/* ============================================================================
   UNIFIED BACKEND WORKSPACE (app.html — Coach, Member, Admin CRM)
   ============================================================================ */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 58px;
  background: var(--bg-pure);
  border-bottom: 1px solid var(--border-hairline);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-workspace {
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px;
}

/* Admin 2-Column Layout: Clean Left Navigation Rail + Content Canvas */
.crm-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: start;
}

.crm-sidebar {
  background: var(--bg-pure);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 10px;
  position: sticky;
  top: 82px;
}

.crm-nav-section-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  padding: 8px 10px 6px;
}

.crm-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.crm-nav-btn:hover {
  background: var(--bg-canvas);
  color: var(--ink-primary);
}

.crm-nav-btn.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.crm-nav-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.crm-nav-btn.active .crm-nav-count {
  color: var(--brand);
}

/* Uniform Monochrome Apple KPI Strip (Zero Rainbow Numbers) */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--bg-pure);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink-primary);
  letter-spacing: -0.025em;
  margin: 4px 0 4px;
  white-space: nowrap;
}

.kpi-sub {
  font-size: 12px;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Surface Cards & Linear-Grade Data Tables */
.panel-card {
  background: var(--bg-pure);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.panel-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
}

.panel-body {
  padding: 20px;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 10px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-hairline);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 13px;
  color: var(--ink-primary);
  vertical-align: middle;
  white-space: nowrap;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--bg-subtle);
}

.cell-primary {
  font-weight: 600;
  color: var(--ink-primary);
}

.cell-secondary {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 1px;
}

/* Inputs & Search */
.input-clean {
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong);
  background: var(--bg-pure);
  font-size: 13px;
  color: var(--ink-primary);
  outline: none;
}

.input-clean:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ============================================================================
   MODAL & TOAST
   ============================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(29, 29, 31, 0.42);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  background: var(--bg-pure);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 22px;
}

.toast-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  background: var(--ink-primary);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: none;
  align-items: center;
  gap: 8px;
}

.toast-bar.show {
  display: inline-flex;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
  background: var(--bg-pure);
  border-top: 1px solid var(--border-hairline);
  padding: 48px 0 36px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-hairline);
}

.footer-col-title {
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 12px;
  font-size: 13px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--brand);
}

@media (max-width: 1024px) {
  .hero-grid, .coach-split, .crm-shell, .pt-picker-grid {
    grid-template-columns: 1fr;
  }
  .programme-grid-3, .pricing-grid-4, .pricing-grid-3, .shop-grid-4, .kpi-strip, .today-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cal-week-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .schedule-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .programme-grid-3, .pricing-grid-4, .pricing-grid-3, .shop-grid-4, .kpi-strip, .today-strip-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   V4 APPLE / LINEAR UPGRADES:
   1. Hero Studio Showcase & Floating Coach Card
   2. Time-Band Aligned Apple Calendar + Live Red "Now" Line
   3. Right-Hand Slide-Over Member & Class Inspector Drawer
   4. Interactive 10-Second Plan Recommender Bar
   5. 1-Tap Free WhatsApp Action Button
   6. iOS Mobile Bottom Glass Tab Bar
   ============================================================================ */

/* 1. Hero Studio Showcase */
.hero-showcase-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0F141C;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-lg);
}

.hero-showcase-media {
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-floating-coach {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.hero-coach-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 2px solid var(--brand);
  flex-shrink: 0;
}

.hero-video-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(29, 29, 31, 0.78);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.hero-video-pill:hover {
  background: rgba(0, 81, 213, 0.9);
}

/* 2. Time-Band Aligned Apple Calendar Grid + Live Red "Now" Line */
.cal-band-section {
  border-bottom: 1px solid var(--border-hairline);
  position: relative;
}

.cal-band-section:last-child {
  border-bottom: none;
}

.cal-band-header {
  padding: 6px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-hairline);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-band-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--bg-pure);
}

.cal-band-cell {
  border-right: 1px solid var(--border-hairline);
  padding: 10px;
  min-height: 115px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cal-band-cell:last-child {
  border-right: none;
}

.cal-empty-slot {
  height: 100%;
  min-height: 78px;
  border-radius: var(--radius-xs);
  border: 1px dashed rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ink-muted);
}

.cal-now-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(255, 59, 48, 0.08);
  border-top: 1.5px solid #FF3B30;
  color: #D70015;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
}

.cal-now-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF3B30;
}

/* 3. Linear-Style Right-Hand Slide-Over Inspector Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(29, 29, 31, 0.32);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: flex-end;
}

.drawer-backdrop.open {
  display: flex;
}

.drawer-panel {
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: var(--bg-pure);
  border-left: 1px solid var(--border-strong);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.drawer-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  z-index: 5;
}

.drawer-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.drawer-box-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

/* 4. Interactive 10-Second Plan Recommender Bar */
.recommender-bar {
  background: var(--bg-pure);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.plan-card.recommended-match {
  border: 2px solid var(--brand);
  box-shadow: 0 12px 32px rgba(0, 81, 213, 0.12);
  transform: translateY(-2px);
}

/* 5. Quiet WhatsApp Action Button (£0 Free wa.me link) */
.btn-whatsapp {
  background: rgba(29, 158, 83, 0.08);
  color: #147A3E;
  border: 1px solid rgba(29, 158, 83, 0.22);
}

.btn-whatsapp:hover {
  background: rgba(29, 158, 83, 0.15);
  border-color: rgba(29, 158, 83, 0.35);
}

/* Clickable CRM rows */
.clickable-row {
  cursor: pointer;
}

/* Coach Roll Call: Visual Date Strip & Upcoming Session Timeline Cards (Replacing <select> dropdown) */
.coach-schedule-picker {
  background: var(--bg-pure);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
  overflow: hidden;
}

.coach-session-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-subtle);
}

.coach-session-card {
  background: var(--bg-pure);
  border: 1.5px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s ease;
  position: relative;
}

.coach-session-card:hover {
  border-color: rgba(0, 81, 213, 0.4);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.coach-session-card.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 4px 14px rgba(0, 81, 213, 0.1);
}

.coach-session-datetime {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.coach-session-card.active .coach-session-datetime {
  color: var(--brand);
}

.coach-session-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coach-session-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.coach-upnext-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(29, 158, 83, 0.12);
  color: #147A3E;
}

/* 6. Mobile iOS Glass Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border-hairline);
  z-index: 150;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
}

.mobile-bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
}

.mobile-bottom-link.active {
  color: var(--brand);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: 68px;
  }
  .site-nav {
    display: none;
  }
}

/* ============================================================================
   V5 APPLE / LINEAR STUDIO OS REFINEMENTS (ZERO WALLS OF TEXT OR DUPLICATION)
   ============================================================================ */
.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  color: var(--ink-primary);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.avatar-circle.lg {
  width: 44px;
  height: 44px;
  font-size: 15px;
  background: var(--brand-soft);
  border-color: rgba(0, 81, 213, 0.2);
  color: var(--brand);
}

.avatar-circle.ctba {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.22);
  color: #6D28D9;
}

.pill-subtle,
.pill-amber,
.pill-danger,
.pill-blue,
.pill-purple {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  color: var(--ink-secondary);
  white-space: nowrap;
}

.pill-amber {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.22);
  color: #B45309;
}

.pill-danger {
  background: rgba(229, 72, 77, 0.08);
  border-color: rgba(229, 72, 77, 0.22);
  color: #C81E1E;
}

.pill-blue {
  background: var(--brand-soft);
  border-color: rgba(0, 81, 213, 0.18);
  color: var(--brand);
}

.pill-purple {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.2);
  color: #6D28D9;
}

.row-chevron {
  color: var(--ink-muted);
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.14s ease, color 0.14s ease;
  display: inline-block;
}

.clickable-row:hover .row-chevron {
  transform: translateX(2px);
  color: var(--brand);
}

/* Tactile 1-Tap Check-In Button (Replaces dual Present/No-Show button clutter) */
.checkin-toggle-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-pure);
  color: var(--ink-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.14s ease;
}

.checkin-toggle-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.checkin-toggle-btn.checked {
  background: rgba(29, 158, 83, 0.1);
  border-color: rgba(29, 158, 83, 0.3);
  color: #147A3E;
}

/* Clean Key-Value Inspector Sheet Rows */
.sheet-kv-list {
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  background: var(--bg-pure);
  overflow: hidden;
}

.sheet-kv-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 13px;
}

.sheet-kv-row:last-child {
  border-bottom: none;
}

.sheet-kv-label {
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 500;
}

.sheet-kv-input {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-primary);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  outline: none;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.sheet-kv-input:hover {
  background: var(--bg-subtle);
}

.sheet-kv-input:focus {
  background: var(--bg-pure);
  border-color: var(--brand);
}

/* Pulse Action Inbox */
.attention-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border-hairline);
  transition: background 0.12s ease;
}

.attention-row:last-child {
  border-bottom: none;
}

.attention-row:hover {
  background: var(--bg-subtle);
}

/* ============================================================================
   V6 BULLETPROOF MOBILE & TABLET RESPONSIVE ARCHITECTURE (320px–1024px)
   Prevents horizontal viewport blowout and adapts every surface cleanly
   ============================================================================ */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.portal-split-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 20px;
  align-items: start;
}

.kpi-strip.kpi-strip-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Critical CSS Grid blowout prevention: allow grid children to shrink below content width */
.hero-grid > *,
.coach-split > *,
.crm-shell > *,
.portal-split-grid > *,
.pt-picker-grid > *,
.programme-grid-3 > *,
.pricing-grid-4 > *,
.pricing-grid-3 > *,
.shop-grid-4 > *,
.kpi-strip > *,
.today-strip-grid > *,
.panel-card,
.calendar-shell,
.app-workspace,
#appMount {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .portal-split-grid {
    grid-template-columns: 1fr;
  }

  .crm-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .crm-sidebar {
    position: static;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px;
  }

  .crm-sidebar::-webkit-scrollbar {
    display: none;
  }

  .crm-nav-section-label {
    display: none;
  }

  .crm-nav-btn {
    width: auto;
    flex-shrink: 0;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
  }
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 44px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
  }

  /* Public Site Header: Keep Logo + Single Primary Action on 390px screens */
  .site-header {
    height: 56px;
  }

  .site-header-inner {
    padding: 0 14px;
    gap: 10px;
  }

  .brand-mark {
    gap: 9px;
    min-width: 0;
  }

  .brand-mark img {
    width: 30px;
    height: 30px;
  }

  .brand-mark-name {
    font-size: 13.5px;
  }

  .brand-mark-sub {
    font-size: 10.5px;
  }

  .site-header-actions .btn-secondary {
    display: none;
  }

  .site-header-actions .btn-primary {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  /* App Topbar (app.html): 2-Row Clean Mobile Header */
  .app-topbar {
    height: auto;
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .app-topbar-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .app-topbar-right {
    flex-shrink: 0;
  }

  .app-topbar-modes {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .app-topbar-modes .segmented-btn {
    padding: 0 6px;
    font-size: 11.5px;
    text-align: center;
  }

  .app-workspace {
    padding: 14px;
  }

  /* Segmented Control Bars: Smooth Horizontal Touch Scroll instead of overflowing viewport */
  .segmented {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .segmented::-webkit-scrollbar {
    display: none;
  }

  /* Hero Section & Typography on Mobile */
  .hero-editorial {
    padding: 28px 0 32px;
  }

  .hero-grid {
    gap: 28px;
  }

  .eyebrow,
  .programme-card-title,
  .schedule-class-title,
  .schedule-class-sub,
  .kpi-sub,
  .kpi-label,
  .panel-title {
    white-space: normal;
  }

  .h1-display {
    font-size: 2rem;
    line-height: 1.12;
  }

  .h2-title {
    font-size: 1.45rem;
  }

  .subtitle {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
  }

  .hero-metric-val {
    font-size: 17px;
    white-space: normal;
  }

  .hero-metric-lbl {
    font-size: 11px;
    white-space: normal;
    line-height: 1.3;
  }

  .hero-showcase-media,
  .hero-media-frame img {
    height: 290px;
  }

  .hero-floating-coach {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px 12px;
    gap: 10px;
  }

  /* Today Strip & KPI Cards */
  .today-strip {
    padding: 14px;
    margin-top: 24px;
  }

  .today-strip-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .kpi-strip,
  .kpi-strip.kpi-strip-3,
  .programme-grid-3,
  .pricing-grid-4,
  .pricing-grid-3,
  .shop-grid-4,
  .today-strip-grid,
  .credential-list,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .kpi-card {
    padding: 14px 16px;
  }

  .kpi-value {
    font-size: 22px;
  }

  /* Calendar & Date Strip on Mobile */
  .calendar-toolbar,
  .panel-header {
    padding: 12px 14px;
    gap: 10px;
  }

  .panel-header > div {
    max-width: 100%;
  }

  #crmMemberSortSelect,
  #crmMemberSearchInput {
    width: 100% !important;
    flex: 1 1 140px;
  }

  .day-strip-bar {
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .day-strip-bar::-webkit-scrollbar {
    display: none;
  }

  .day-strip-cell {
    flex: 1 0 74px;
    padding: 10px 6px;
  }

  .day-strip-date {
    font-size: 13.5px;
  }

  .schedule-row {
    padding: 14px;
    gap: 8px;
  }

  .cal-band-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cal-band-cell,
  .cal-band-grid > .cal-day-col-header {
    min-width: 145px;
    flex: 1 0 145px;
  }

  /* Coach Session Strip */
  .coach-session-strip {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  /* Pulse Attention Rows Stack Cleanly on Mobile */
  .attention-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    gap: 10px;
  }

  .attention-row > div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Slide-Over Drawer Full Screen on Mobile */
  .drawer-panel {
    max-width: 100%;
  }

  .drawer-header,
  .drawer-body {
    padding: 14px 16px;
  }

  .sheet-kv-row {
    grid-template-columns: 105px 1fr;
    padding: 8px 10px;
  }
}


