/* Coached by Ryan — booking + coach dashboard. Same brand system as the main site. */
:root {
  --pitch: #0b0f16; --panel: #121826; --panel-2: #0e1420; --line: rgba(240,236,224,0.1);
  --cream: #f0ece0; --slate: #9aa4b2; --red: #d0341f; --red-hot: #e6432c;
  --blue: #3d94c0; --blue-deep: #1b6a8a; --green: #3fae6a; --amber: #e0a52b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--pitch); color: var(--cream);
  font-family: 'Barlow', system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--blue); }
h1, h2, h3, .display {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif; font-weight: 700; text-transform: uppercase;
  line-height: 1.02; margin: 0 0 12px; text-wrap: balance;
}
h1 { font-size: clamp(30px, 8vw, 46px); }
h2 { font-size: clamp(24px, 6vw, 32px); }
h3 { font-size: 22px; }
.eyebrow {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .22em; font-size: 14px; color: var(--blue); margin: 0 0 10px;
}
.eyebrow::before {
  content: ''; display: inline-block; width: 22px; height: 3px; background: var(--red);
  margin-right: 10px; vertical-align: middle; transform: skewX(-24deg);
}
.muted { color: var(--slate); }
.small { font-size: 14px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px 120px; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(11,15,22,.92); backdrop-filter: blur(8px); z-index: 5;
}
.topbar img { height: 34px; width: auto; }
.topbar .brand { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 20px; letter-spacing: .02em; color: var(--cream); text-decoration: none; }
.topbar .spacer { flex: 1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: .02em;
  padding: 13px 22px; border-radius: 6px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; color: var(--cream); background: transparent; min-height: 46px;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-book { background: var(--red); color: #fff; }
.btn-book:hover { background: var(--red-hot); }
.btn-ghost { border-color: rgba(240,236,224,.28); }
.btn-ghost:hover { border-color: rgba(240,236,224,.6); }
.btn-blue { background: var(--blue-deep); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 14px; min-height: 36px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 12px; }
.card.selectable { cursor: pointer; }
.card.selectable:hover, .card.selected { border-color: var(--blue); }
.card.selected { box-shadow: inset 0 0 0 1px var(--blue); }
.price { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; color: var(--cream); }
.tag { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; padding: 2px 8px; border-radius: 3px; background: rgba(61,148,192,.18); color: var(--blue); }
.tag.red { background: rgba(208,52,31,.18); color: var(--red-hot); }
.tag.green { background: rgba(63,174,106,.18); color: var(--green); }
.tag.amber { background: rgba(224,165,43,.18); color: var(--amber); }
.tag.grey { background: rgba(154,164,178,.15); color: var(--slate); }
label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--cream); background: var(--panel-2);
  border: 1px solid rgba(240,236,224,.2); border-radius: 6px; padding: 11px 12px; min-height: 46px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
textarea { min-height: 84px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; margin: 10px 0; }
.check input { width: 22px; height: 22px; accent-color: var(--red); }
.radio-cards { display: grid; gap: 8px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 12px; cursor: pointer; background: var(--panel-2); }
.radio-card input { margin-top: 5px; width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.radio-card.selected { border-color: var(--blue); }
.radio-card .t { font-weight: 600; }
.radio-card .d { color: var(--slate); font-size: 14px; }
.error { color: var(--red-hot); font-weight: 500; margin: 10px 0; min-height: 1.2em; }
.status { color: var(--slate); margin: 10px 0; }
.hidden { display: none !important; }

/* stepper */
.steps { display: flex; gap: 6px; margin: 14px 0 18px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: rgba(240,236,224,.12); }
.steps span.done { background: var(--blue); }
.steps span.now { background: var(--red); }
.summary { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--slate); font-size: 14px; margin-bottom: 8px; }
.summary b { color: var(--cream); font-weight: 600; }
.summary a { font-size: 13px; }

/* calendar */
.cal { margin-bottom: 18px; }
.cal h3 { font-size: 20px; margin: 10px 0 6px; color: var(--cream); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { text-align: center; font-size: 12px; color: var(--slate); text-transform: uppercase; letter-spacing: .1em; padding: 4px 0; }
.day {
  aspect-ratio: 1 / .9; min-height: 44px; border-radius: 6px; border: 1px solid transparent; background: transparent;
  color: rgba(240,236,224,.28); font: inherit; font-size: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 2px;
}
.day.open { background: var(--panel); border-color: var(--line); color: var(--cream); cursor: pointer; }
.day.open:hover { border-color: var(--blue); }
.day.selected { background: var(--blue-deep); border-color: var(--blue); color: #fff; }
.day.today { text-decoration: underline; text-underline-offset: 3px; }
.day .n { font-weight: 600; }
.day .sub { font-size: 10px; line-height: 1; color: inherit; opacity: .8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-weight: 600; font-size: 16px; padding: 10px 14px; min-height: 44px; border-radius: 6px;
  background: var(--panel); border: 1px solid var(--line); color: var(--cream); cursor: pointer;
}
.chip:hover { border-color: var(--blue); }
.chip.selected { background: var(--red); border-color: var(--red); color: #fff; }
.chip.busy { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

/* sticky action bar */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(11,15,22,.94); border-top: 1px solid var(--line); backdrop-filter: blur(8px); z-index: 6;
}
.actionbar .inner { max-width: 720px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.actionbar .inner .grow { flex: 1; }

/* detail list */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0; }
.dl dt { color: var(--slate); font-size: 14px; }
.dl dd { margin: 0; }
.banner { border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--panel); }
.banner.ok { border-color: rgba(63,174,106,.5); }
.banner.warn { border-color: rgba(224,165,43,.5); }
.banner.bad { border-color: rgba(208,52,31,.5); }
.banner h3 { margin-bottom: 4px; }

/* sheet (bottom modal) */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--panel); border-radius: 14px 14px 0 0; width: 100%; max-width: 720px; max-height: 92dvh; overflow: auto; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
@media (min-width: 720px) { .sheet-bg { align-items: center; } .sheet { border-radius: 14px; max-height: 86vh; } }

/* coach dashboard */
.tabs { display: flex; border-bottom: 1px solid var(--line); margin: 0 -16px 14px; padding: 0 8px; overflow-x: auto; }
.tabs button { font: inherit; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 17px; color: var(--slate); background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 12px; cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--cream); border-bottom-color: var(--red); }
.dayhead { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 18px; letter-spacing: .04em; margin: 18px 0 8px; color: var(--blue); }
.bk { display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; }
.bk .time { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; line-height: 1.1; }
.bk .time small { display: block; font-size: 13px; color: var(--slate); font-family: 'Barlow', sans-serif; font-weight: 500; }
.bk .who { font-weight: 600; font-size: 17px; }
.bk .meta { color: var(--slate); font-size: 14px; }
.bk .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bk.cancelled { opacity: .55; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.wday { min-height: 66px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); padding: 4px; font-size: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; text-align: left; color: var(--cream); font-family: inherit; }
.wday .d { font-weight: 700; font-size: 14px; }
.wday .w { color: var(--slate); font-size: 11px; line-height: 1.15; }
.wday .c { margin-top: auto; font-weight: 600; color: var(--blue); }
.wday.tpl { background: var(--panel); }
.wday.custom { border-color: var(--blue); background: rgba(61,148,192,.12); }
.wday.closed { background: transparent; color: rgba(240,236,224,.35); }
.wday.closed .w { text-decoration: line-through; }
.wday.past { opacity: .35; cursor: default; }
.wday.today .d { color: var(--red-hot); }
.wday.picked { outline: 2px solid var(--red); outline-offset: -2px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--slate); margin: 8px 0; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; border: 1px solid var(--line); }
.win-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; margin: 6px 0; }
.win-row select { min-height: 42px; }
.tpl-row { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: start; margin: 8px 0; }
.tpl-row .dname { font-weight: 700; padding-top: 10px; font-family: 'Barlow Condensed', sans-serif; font-size: 18px; }
code.copy { user-select: all; background: var(--panel-2); padding: 4px 6px; border-radius: 4px; font-size: 13px; word-break: break-all; display: block; }
.foot { margin-top: 30px; color: var(--slate); font-size: 13px; text-align: center; }
