.book-container { padding-top: 1.5rem; padding-bottom: 8rem; }

.book-controls { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.repeat-btn { align-self: flex-end; }

.book-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; padding: .65rem .9rem; background: var(--panel); border: 1px solid var(--line); border-radius: .8rem; }
.book-legend .legend { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--muted); }
.book-legend i { width: 18px; height: 18px; border-radius: .35rem; display: inline-block; flex-shrink: 0; }
.lg-free { background: var(--panel2); border: 1px solid var(--line); }
.lg-sel { background: var(--lime); }
.lg-range { background: rgba(198,242,78,.2); border: 1px solid rgba(198,242,78,.4); }
.lg-busy { background: var(--line); }
.lg-peak { background: rgba(242,193,78,.18); border: 1px solid rgba(242,193,78,.5); }

.court-card { padding: 1rem 1.1rem; margin-bottom: .8rem; }
.court-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; gap: .6rem; flex-wrap: wrap; }
.court-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.15rem; display: inline-flex; align-items: center; gap: .5rem; }
.court-meta { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .85rem; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: .5rem;
}
@media (min-width: 640px) {
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}

.slot-cell {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: .65rem;
  padding: .85rem .3rem;
  font-family: inherit;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .12s, border-color .15s, background .15s;
  text-align: center;
  position: relative;
}
.slot-cell:hover:not(.busy):not(.selected) { transform: translateY(-1px); border-color: rgba(198,242,78,.5); background: rgba(198,242,78,.05); }
.slot-cell.peak { color: var(--gold); border-color: rgba(242,193,78,.4); }
.slot-cell.peak::after { content: '+50%'; position: absolute; right: 4px; bottom: 2px; font-size: .55rem; color: var(--gold); font-weight: 700; opacity: .8; }
.slot-cell.busy { background: var(--line); color: var(--dim); cursor: not-allowed; text-decoration: line-through; }
.slot-cell.selected { background: var(--lime); color: var(--ink); border-color: var(--lime); transform: scale(1.02); box-shadow: 0 4px 14px rgba(198,242,78,.3); }
.slot-cell.in-range { background: rgba(198,242,78,.18); color: var(--lime); border-color: rgba(198,242,78,.4); }
.slot-cell .price { display: block; font-size: .68rem; color: var(--muted); font-weight: 600; margin-top: .15rem; }
.slot-cell.peak .price { color: var(--gold); }
.slot-cell.selected .price, .slot-cell.in-range .price { color: var(--ink); opacity: .7; }
.slot-cell.in-range .price { color: var(--lime); opacity: .85; }
.slot-cell.busy .price { display: none; }

/* Sticky range summary */
.range-summary {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(10,14,19,.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 1rem;
  animation: slideUp .2s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.range-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.range-info { flex: 1; min-width: 200px; }
.range-label { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1rem; }
.range-time { color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.range-total { text-align: right; }
.range-total-l { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.range-total-v { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--lime); letter-spacing: -.02em; line-height: 1; margin-top: .15rem; }
@media (max-width: 640px) {
  .range-inner { gap: .5rem; }
  .range-total-v { font-size: 1.2rem; }
  .range-summary .btn-lg { padding: .65rem 1rem; font-size: .9rem; }
}

/* Booking modal */
.book-modal { max-width: 560px; }
.book-summary-card { background: var(--panel2); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.bsc-row { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; font-size: .9rem; }
.bsc-row + .bsc-row { border-top: 1px dashed var(--line); }
.bsc-label { color: var(--muted); }
.bsc-value { font-weight: 700; text-align: right; }
.bsc-total { padding-top: .75rem; margin-top: .25rem; border-top: 1px solid var(--line) !important; }
.bsc-total .bsc-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.bsc-total .bsc-value { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--lime); letter-spacing: -.02em; }

.coach-section { margin-bottom: 1rem; padding: 1rem 1.2rem; }
.coach-toggle { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.coach-spec-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; margin-top: .8rem; margin-bottom: .8rem; }
.coach-spec-bar button { background: var(--panel); border: 1px solid var(--line); color: var(--muted); border-radius: .55rem; padding: .45rem; font-family: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; transition: all .15s; }
.coach-spec-bar button.active { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.coach-cards { display: grid; gap: .6rem; }
.coach-card {
  display: flex; align-items: center; gap: .85rem;
  background: var(--panel); border: 1.5px solid var(--line);
  border-radius: .8rem; padding: .65rem .85rem; cursor: pointer;
  transition: border-color .15s, transform .12s;
  font-family: inherit;
  color: var(--text); text-align: left;
}
.coach-card:hover { border-color: rgba(54,230,200,.4); transform: translateY(-1px); }
.coach-card.selected { border-color: var(--teal); background: rgba(54,230,200,.08); box-shadow: 0 4px 14px rgba(54,230,200,.2); }
.coach-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.coach-info { flex: 1; }
.coach-info .nm { font-weight: 700; font-size: .98rem; line-height: 1.15; }
.coach-info .sp { color: var(--muted); font-size: .8rem; margin-top: .15rem; }
.coach-card .chk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
.coach-card.selected .chk { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.coach-card.unavail { opacity: .42; cursor: not-allowed; }
.coach-card.unavail:hover { transform: none; border-color: var(--line); }
.coach-empty { color: var(--muted); font-size: .85rem; padding: 1rem; text-align: center; background: var(--panel2); border: 1px dashed var(--line); border-radius: .7rem; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; cursor: pointer; inset: 0; background: var(--line); transition: .15s; border-radius: 999px; }
.switch-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: white; transition: .15s; border-radius: 50%; }
.switch input:checked + .switch-slider { background: var(--lime); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); background: var(--ink); }
