/* ZiggyCuts Barbershop v2.
   Archetype: barbershop (sign-shop energy, menu-on-the-wall, tight cut grid).
   Brand signal Tier 1: warm gold neon script sign on matte black.
   Display: Abril Fatface. Body: Archivo. Mono: Space Mono (tickets, prices, times). */

:root {
  --ink: #0c0b08;
  --ink-2: #12100b;
  --panel: #171410;
  --cream: #f2e9d8;
  --cream-dim: #b9ad97;
  --muted: #857a66;
  --gold: #e9b558;
  --gold-bright: #f6d492;
  --gold-dim: rgba(233, 181, 88, 0.32);
  --rule: rgba(242, 233, 216, 0.16);
  --rule-soft: rgba(242, 233, 216, 0.09);
  --danger: #d96a4b;
  --r: 3px;
  --font-display: 'Abril Fatface', serif;
  --font-body: 'Archivo', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(233, 181, 88, 0.25); }

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; line-height: 1.02; }
button { font-family: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn-gold { background: var(--gold); color: #191204; font-weight: 700; }
.btn-gold:hover:not(:disabled) { background: var(--gold-bright); }
.btn-gold:disabled { opacity: 0.38; cursor: not-allowed; }
.btn-line { border-color: var(--rule); color: var(--cream); background: transparent; }
.btn-line:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(12, 11, 8, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner { display: flex; align-items: center; gap: 30px; height: 64px; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; margin-left: auto; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-dim);
  transition: color 160ms ease;
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-phone {
  font-family: var(--font-mono); font-size: 12px;
  text-decoration: none; color: var(--cream-dim);
  transition: color 160ms ease;
}
.nav-phone:hover { color: var(--gold-bright); }
.nav .btn { padding: 10px 20px; }

/* ---------- hero: THE SIGN ---------- */

.sign-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 28px 96px;
  position: relative;
  background:
    radial-gradient(ellipse 62% 42% at 50% 38%, rgba(233, 181, 88, 0.09), transparent 70%),
    var(--ink);
}
.neon-sign {
  width: min(680px, 86vw);
  filter:
    drop-shadow(0 0 5px rgba(246, 212, 146, 0.9))
    drop-shadow(0 0 22px rgba(233, 181, 88, 0.55))
    drop-shadow(0 0 70px rgba(233, 181, 88, 0.32));
  animation: ignite 1.7s steps(1, end) 1;
}
@keyframes ignite {
  0% { opacity: 0.05; filter: none; }
  12% { opacity: 0.05; filter: none; }
  13% { opacity: 0.85; }
  19% { opacity: 0.08; filter: none; }
  26% { opacity: 0.08; filter: none; }
  27% { opacity: 1; }
  33% { opacity: 0.5; }
  35% { opacity: 1; }
  100% { opacity: 1; }
}
.sign-locale {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 34px;
}
.sign-locale b { color: var(--gold); font-weight: 400; }
.sign-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 54px);
  max-width: 21ch;
  margin: 26px auto 38px;
  color: var(--cream);
}
.sign-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.sign-status {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--rule-soft);
  padding: 15px 28px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sign-status .lit { color: var(--gold); }

/* ---------- section scaffolding ---------- */

section { padding: 96px 0; }
.sec-mark {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 72px);
  margin-bottom: 18px;
}
.sec-lead { color: var(--cream-dim); max-width: 54ch; }

/* ---------- the wall (price board) ---------- */

.wall { border-top: 1px solid var(--rule); }
.wall-board { margin-top: 48px; border-top: 3px double var(--rule); }
.wall-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 26px;
  padding: 26px 4px 24px;
  border-bottom: 1px solid var(--rule-soft);
  text-decoration: none;
  position: relative;
}
.wall-line {
  display: flex;
  align-items: baseline;
  gap: 18px;
  min-width: 0;
  overflow: hidden;
}
.wall-name { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); white-space: nowrap; flex-shrink: 0; }
.wall-dots {
  flex: 1 1 auto;
  border-bottom: 2px dotted var(--gold-dim);
  transform: translateY(-7px);
  min-width: 16px;
  overflow: hidden;
}
.wall-price {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.wall-meta {
  grid-column: 1 / -1;
  display: flex;
  gap: 22px;
  align-items: baseline;
  flex-wrap: wrap;
}
.wall-desc { color: var(--muted); font-size: 14px; max-width: 62ch; }
.wall-time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cream-dim);
  white-space: nowrap;
}
.wall-row .wall-go {
  position: absolute;
  right: 4px;
  bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
  opacity: 0;
  transition: opacity 160ms ease;
}
.wall-row:hover .wall-go { opacity: 1; }
.wall-row:hover .wall-name { color: var(--gold-bright); }
.wall-name { transition: color 160ms ease; }
.wall-note {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
}
.wall-note b { color: var(--gold); font-weight: 700; }

/* ---------- the chairs ---------- */

.chairs-list { margin-top: 40px; border-top: 1px solid var(--rule); }
.chair-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 28px;
  align-items: center;
  padding: 40px 4px;
  border-bottom: 1px solid var(--rule-soft);
}
.chair-row h3 { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 46px); }
.chair-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-top: 8px;
}
.chair-row p { color: var(--cream-dim); font-size: 15px; max-width: 46ch; }
.chair-row .btn { justify-self: end; }
.chair-row.any { background: var(--ink-2); }
.chair-row.any h3 { font-size: clamp(22px, 2.4vw, 30px); color: var(--gold); }

/* ---------- the proof (cut grid) ---------- */

.proof { background: var(--ink-2); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.cut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 44px;
}
.cut-grid figure { position: relative; overflow: hidden; }
.cut-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.92);
}
.cut-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(12, 11, 8, 0.72);
}
.proof-quote {
  margin-top: 64px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.15;
  max-width: 26ch;
}
.proof-quote em { color: var(--gold); font-style: normal; }
.proof-cite {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}

/* ---------- the shelf (products, cream inversion) ---------- */

.shelf { background: var(--cream); color: var(--ink); }
.shelf .sec-mark { color: #8a6420; }
.shelf .sec-lead { color: #5c5443; }
.shelf-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 52px;
  border-bottom: 6px solid var(--ink);
}
.shelf-item {
  text-decoration: none;
  padding: 0 22px 26px;
  border-left: 1px solid rgba(12, 11, 8, 0.14);
  transition: background-color 180ms ease;
}
.shelf-item:first-child { border-left: none; }
.shelf-item:hover { background: rgba(12, 11, 8, 0.05); }
.shelf-item img { width: 100%; aspect-ratio: 1; object-fit: cover; mix-blend-mode: multiply; }
.shelf-item h3 { font-family: var(--font-display); font-size: 21px; margin-top: 14px; }
.shelf-item p { color: #5c5443; font-size: 13px; margin-top: 6px; line-height: 1.5; }
.shelf-price {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #8a6420;
  margin-top: 12px;
  letter-spacing: 0.08em;
}
.shelf-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5c5443;
  margin-top: 22px;
}
.shelf-note a { color: #8a6420; }

/* ---------- visit ---------- */

.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 44px; align-items: start; }
.hours-rows { border-top: 3px double var(--rule); }
.hours-row {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.1em;
  padding: 13px 4px;
  border-bottom: 1px solid var(--rule-soft);
}
.hours-row span:first-child { color: var(--cream-dim); }
.hours-row.closed span:last-child { color: var(--muted); }
.hours-row.today { background: rgba(233, 181, 88, 0.07); }
.hours-row.today span { color: var(--gold); }
.visit-details p { color: var(--cream-dim); margin-bottom: 18px; }
.visit-details p b { color: var(--cream); font-weight: 600; }
.visit-details a { color: var(--gold-bright); text-decoration-color: var(--gold-dim); }
.visit-photo { margin-top: 30px; border: 1px solid var(--rule-soft); }
.visit-fine {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 2;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
}

/* ---------- open chairs board (live CTA) ---------- */

.board { border-top: 1px solid var(--rule); text-align: center; padding: 120px 0; }
.board .sec-title { margin-bottom: 10px; }
.board-sub { color: var(--cream-dim); margin-bottom: 44px; }
.board-slots {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 66px;
}
.board-slot {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 16px 22px;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.board-slot small { display: block; font-size: 10px; color: var(--muted); letter-spacing: 0.22em; margin-top: 4px; transition: color 160ms ease; }
.board-slot:hover { border-color: var(--gold); background: rgba(233, 181, 88, 0.08); color: var(--gold-bright); }
.board-slot:hover small { color: var(--gold); }
.board-msg { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); align-self: center; }
.board-more { margin-top: 40px; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--rule-soft); padding: 44px 0; background: var(--ink-2); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner img { height: 24px; width: auto; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 160ms ease;
}
.footer-links a:hover { color: var(--gold-bright); }
.footer-copy { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }

/* ================= booking page ================= */

.book-main {
  padding: 120px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 52px;
  align-items: start;
}
.book-main > * { min-width: 0; }
.book-head h1 { font-family: var(--font-display); font-size: clamp(40px, 5vw, 62px); margin: 12px 0 10px; }
.book-head p { color: var(--cream-dim); margin-bottom: 36px; }

.step {
  border-top: 3px double var(--rule);
  padding: 26px 0 34px;
  transition: opacity 200ms ease;
}
.step.locked { opacity: 0.32; pointer-events: none; }
.step-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.step-num { font-family: var(--font-mono); font-size: 12px; color: var(--gold); letter-spacing: 0.16em; }
.step-head h2 { font-family: var(--font-display); font-size: 27px; }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice {
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  background: var(--ink-2);
  padding: 17px;
  text-align: left;
  cursor: pointer;
  color: var(--cream);
  font-family: var(--font-body);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.choice:hover { border-color: var(--rule); }
.choice[aria-pressed="true"] { border-color: var(--gold); background: rgba(233, 181, 88, 0.08); }
.choice b { display: block; font-size: 15px; font-weight: 600; }
.choice small { color: var(--muted); font-size: 12px; display: block; margin-top: 4px; }
.choice .choice-price { font-family: var(--font-mono); color: var(--gold); font-size: 13px; margin-top: 10px; display: block; }

.svc-list { display: grid; gap: 8px; }
.svc-list .choice { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.svc-list .choice .choice-price { margin-top: 0; font-size: 16px; font-weight: 700; }

.addons { margin-top: 18px; display: none; }
.addons.visible { display: block; }
.addons-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.addon {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 160ms ease;
}
.addon:hover { border-color: var(--rule); }
.addon input { accent-color: var(--gold); width: 16px; height: 16px; }
.addon .addon-price { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--gold); }

.date-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 18px; }
.date-chip {
  flex: 0 0 auto;
  border: 1px solid var(--rule-soft);
  background: var(--ink-2);
  color: var(--cream);
  border-radius: var(--r);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.date-chip small { display: block; color: var(--muted); font-size: 10px; letter-spacing: 0.14em; }
.date-chip[aria-pressed="true"] { border-color: var(--gold); background: rgba(233, 181, 88, 0.08); }

.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  border: 1px solid var(--rule-soft);
  background: var(--ink-2);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 13px;
  border-radius: var(--r);
  padding: 12px 4px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.slot:hover { border-color: var(--rule); }
.slot[aria-pressed="true"] { border-color: var(--gold); background: rgba(233, 181, 88, 0.1); color: var(--gold-bright); }
.slot-msg { font-family: var(--font-mono); font-size: 13px; color: var(--muted); padding: 14px 0; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  transition: border-color 160ms ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 72px; resize: vertical; }

.confirm-btn { width: 100%; text-align: center; font-size: 14px; padding: 17px; border: none; }
.confirm-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.book-error { font-family: var(--font-mono); font-size: 13px; color: var(--danger); margin-top: 14px; min-height: 20px; }

/* ticket */

.ticket {
  position: sticky;
  top: 90px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 28px 26px;
  font-family: var(--font-mono);
}
.ticket::before, .ticket::after { content: ''; display: block; border-top: 1px dashed var(--rule); margin: 0 -26px; }
.ticket::before { margin-bottom: 20px; }
.ticket::after { margin-top: 20px; }
.ticket-brand { text-align: center; margin-bottom: 18px; }
.ticket-brand img { height: 24px; width: auto; margin: 0 auto 8px; }
.ticket-brand span {
  display: block; font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--muted);
}
.ticket-rows { min-height: 110px; }
.ticket-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; padding: 7px 0; }
.ticket-row .k { color: var(--muted); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.ticket-row .v { text-align: right; }
.ticket-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 32px 0; }
.ticket-total[hidden] { display: none; }
.ticket-total {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--rule);
  margin-top: 12px; padding-top: 15px;
  font-size: 17px; font-weight: 700;
}
.ticket-total .amount { color: var(--gold); }
.ticket-foot { font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); text-align: center; line-height: 1.9; }

.book-success { text-align: center; padding: 44px 20px; border-top: 3px double var(--rule); }
.book-success .stamp {
  font-family: var(--font-mono);
  display: inline-block;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: var(--r);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 8px 18px;
  transform: rotate(-2.5deg);
  margin-bottom: 26px;
}
.book-success h2 { font-family: var(--font-display); font-size: 42px; margin-bottom: 12px; }
.book-success p { color: var(--cream-dim); max-width: 46ch; margin: 0 auto 8px; }
.book-success .code {
  font-family: var(--font-mono); font-size: 26px; color: var(--gold);
  letter-spacing: 0.16em; display: block; margin: 20px 0;
}

/* ================= barber portal: THE BOOK ================= */

.chair-main { padding: 110px 0 80px; }
.chair-main h1 { font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 56px); margin: 12px 0 8px; }
.chair-sub { color: var(--cream-dim); margin-bottom: 34px; }

.gate {
  max-width: 400px;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--panel);
  padding: 34px 30px;
}
.gate .choice-grid { grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.gate .field input { text-align: center; font-family: var(--font-mono); font-size: 22px; letter-spacing: 0.5em; }
.gate-error { font-family: var(--font-mono); font-size: 12px; color: var(--danger); min-height: 18px; margin-top: 12px; }

.deskbar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 3px double var(--rule);
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 22px;
}
.deskbar .who { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.deskbar .spacer { flex: 1; }
.deskbar button {
  background: none; border: 1px solid var(--rule-soft); border-radius: var(--r);
  color: var(--cream-dim); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 14px; cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}
.deskbar button:hover { border-color: var(--gold); color: var(--gold-bright); }

.day-grid { display: grid; grid-template-columns: 64px repeat(var(--day-cols, 2), minmax(0, 1fr)); border: 1px solid var(--rule-soft); border-radius: var(--r); overflow: hidden; }
.day-col-head {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--cream-dim);
  padding: 12px 10px; background: var(--ink-2);
  border-bottom: 1px solid var(--rule-soft);
  border-left: 1px solid var(--rule-soft);
}
.day-col-head.me { color: var(--gold); }
.day-time {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
  padding: 8px; border-top: 1px solid var(--rule-soft); background: var(--ink-2);
}
.day-cell {
  border-top: 1px solid var(--rule-soft);
  border-left: 1px solid var(--rule-soft);
  min-height: 44px;
  position: relative;
  padding: 4px;
}
.day-cell.own-open { cursor: pointer; transition: background-color 140ms ease; }
.day-cell.own-open:hover { background: rgba(233, 181, 88, 0.06); }
.day-cell.own-open:hover::after {
  content: 'BOOK';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; color: var(--gold);
}
.entry {
  border-radius: var(--r);
  padding: 7px 9px;
  font-size: 12px;
  line-height: 1.45;
  height: 100%;
}
.entry.booking { background: rgba(233, 181, 88, 0.14); border: 1px solid var(--gold-dim); }
.entry.block {
  background: repeating-linear-gradient(-45deg, rgba(242,233,216,.05), rgba(242,233,216,.05) 6px, transparent 6px, transparent 12px);
  border: 1px solid var(--rule-soft);
  color: var(--cream-dim);
}
.entry b { display: block; font-weight: 600; font-size: 12.5px; }
.entry .entry-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--cream-dim); }
.entry .entry-x {
  position: absolute; top: 6px; right: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-family: var(--font-mono); font-size: 11px; padding: 2px 5px;
  transition: color 140ms ease;
}
.entry .entry-x:hover { color: var(--danger); }
.day-closed {
  grid-column: 1 / -1;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  text-align: center; padding: 50px 0;
}

.blockbar {
  display: none;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed var(--gold-dim);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 12px;
}
.blockbar.visible,
.blockbar.desk-booker {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 0 22px;
}
.blockbar select, .blockbar input {
  background: var(--ink-2); color: var(--cream);
  border: 1px solid var(--rule-soft); border-radius: var(--r);
  font-family: var(--font-mono); font-size: 12px; padding: 8px 10px;
}
.blockbar .btn { padding: 9px 18px; font-size: 11px; }
.portal-msg { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 14px; min-height: 18px; }
.portal-msg.err { color: var(--danger); }

/* ================= booking flow v2 ================= */
/* Replaces the old one-page stepped form. Cream ticket on dark page. */

/* Hard-enforce the hidden attribute against CSS display overrides */
[hidden] { display: none !important; }

/* --- ghost button (nav back-link) --- */
.btn-ghost {
  border-color: rgba(242, 233, 216, 0.22);
  color: var(--cream-dim);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--rule); color: var(--cream); background: rgba(242, 233, 216, 0.05); }

/* --- layout --- */
.bk-page { padding-bottom: 0; }
.bk-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 104px 28px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}
.bk-stage { min-width: 0; }

/* --- progress rail --- */
.bk-rail {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 40px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.bk-rail::-webkit-scrollbar { display: none; }
.bk-step {
  background: none;
  border: none;
  padding: 7px 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 5px;
  transition: color 160ms ease;
}
.bk-step-num { }
.bk-step-name { }
.bk-step--done  { color: var(--gold); }
.bk-step--done:hover { color: var(--gold-bright); }
.bk-step--current { color: var(--cream); cursor: default; }
.bk-step--future  { color: var(--muted); cursor: default; }
.bk-rail-sep {
  color: var(--muted);
  opacity: 0.4;
  padding: 0 6px;
  user-select: none;
}

/* --- screen wrapper and transitions --- */
.bk-screen-wrap { position: relative; min-height: 380px; }
.bk-screen { display: none; }
.bk-screen--active {
  display: block;
  animation: bk-enter 180ms ease both;
}
@keyframes bk-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bk-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 58px);
  color: var(--cream);
  margin-bottom: 34px;
  text-wrap: balance;
  line-height: 1.04;
}
.bk-loading {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 24px 0;
}

/* --- screen 1: barber cards --- */
.bk-barber-list { display: flex; flex-direction: column; gap: 10px; }
.bk-barber-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  background: var(--ink-2);
  padding: 16px 20px;
  cursor: pointer;
  color: var(--cream);
  font-family: var(--font-body);
  text-align: left;
  width: 100%;
  min-height: 80px;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.bk-barber-card:hover { border-color: var(--rule); }
.bk-barber-card--sel,
.bk-barber-card[aria-pressed="true"] { border-color: var(--gold); background: rgba(233, 181, 88, 0.06); }
/* Monogram plate: 72px square, dark panel, 1px gold ring */
.bk-barber-mono {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 46px;
  color: var(--gold);
  line-height: 1;
}
.bk-barber-info { flex: 1; min-width: 0; }
.bk-barber-name {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 3px;
}
.bk-barber-title { display: block; color: var(--muted); font-size: 13px; }
.bk-barber-chev { color: var(--gold); font-size: 28px; flex-shrink: 0; line-height: 1; }
/* "First open chair" variant: dashed gold border, no monogram */
.bk-barber-card--any { border-style: dashed; border-color: rgba(233, 181, 88, 0.38); }
.bk-barber-card--any:hover { border-color: var(--gold); }
.bk-barber-card--any.bk-barber-card--sel { border-color: var(--gold); border-style: solid; }

/* --- screen 2: service menu (dotted-leader rows) --- */
.bk-svc-menu { border-top: 2px double var(--rule); }
.bk-svc-row {
  position: relative;
  border-bottom: 1px solid var(--rule-soft);
  transition: background-color 160ms ease;
}
/* Gold left-edge bar on selected service */
.bk-svc-row--sel::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
}
.bk-svc-row--sel { background: rgba(233, 181, 88, 0.04); }
.bk-svc-btn {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  background: none;
  border: none;
  padding: 20px 14px 20px 18px;
  cursor: pointer;
  text-align: left;
  color: var(--cream);
  transition: color 160ms ease;
}
.bk-svc-btn:hover .bk-svc-name { color: var(--gold-bright); }
.bk-svc-row--sel .bk-svc-btn .bk-svc-name { color: var(--gold-bright); }
.bk-svc-name {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 160ms ease;
}
.bk-svc-dots {
  flex: 1 1 auto;
  border-bottom: 2px dotted var(--gold-dim);
  transform: translateY(-4px);
  min-width: 16px;
  overflow: hidden;
}
.bk-svc-meta {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--gold);
  white-space: nowrap;
}
/* Add-on sub-rows */
.bk-addon-group {
  padding: 4px 16px 14px 18px;
  animation: bk-enter 180ms ease both;
}
.bk-addon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 4px 9px 20px;
  cursor: pointer;
  font-size: 14px;
  border-radius: var(--r);
  transition: background-color 140ms ease;
}
.bk-addon-row:hover { background: rgba(233, 181, 88, 0.05); }
.bk-addon-chk {
  /* square checkbox */
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  flex-shrink: 0;
  border: 1px solid var(--muted);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.bk-addon-chk:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.bk-addon-chk:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: 2px solid var(--ink);
  border-top: none;
  border-left: none;
  transform: rotate(42deg);
}
.bk-addon-chk:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bk-addon-name { font-weight: 500; }
.bk-addon-dots {
  flex: 1;
  border-bottom: 1px dotted var(--rule-soft);
  transform: translateY(-3px);
  min-width: 10px;
}
.bk-addon-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cream-dim);
  white-space: nowrap;
}

/* --- screen 3: week strip --- */
.bk-month {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.bk-day-mon {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1;
}
.bk-day-chip--sel .bk-day-mon,
.bk-day-chip[aria-pressed="true"] .bk-day-mon { color: var(--gold); }
.bk-week-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.bk-week-arr {
  flex-shrink: 0;
  width: 34px; height: 34px;
  background: var(--ink-2);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  color: var(--cream-dim);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: none; /* shown on desktop via media query */
  align-items: center;
  justify-content: center;
  transition: border-color 160ms ease, color 160ms ease;
}
.bk-week-arr:hover { border-color: var(--gold); color: var(--gold); }
.bk-week {
  flex: 1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 10px;
}
.bk-week::-webkit-scrollbar { display: none; }
.bk-day-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 52px;
  border: 1px solid var(--rule-soft);
  background: var(--ink-2);
  border-radius: var(--r);
  padding: 8px 10px 10px;
  cursor: pointer;
  color: var(--cream);
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 68px;
}
.bk-day-chip:hover:not(:disabled) { border-color: var(--rule); }
.bk-day-chip--sel,
.bk-day-chip[aria-pressed="true"] {
  border-color: transparent;
  border-bottom: 3px solid var(--gold);
  background: rgba(233, 181, 88, 0.08);
  padding-bottom: 7px; /* compensate 3px border */
}
.bk-day-chip--closed {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: var(--muted);
}
.bk-day-dow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  line-height: 1;
}
.bk-day-num {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: var(--cream);
}
.bk-day-chip--sel .bk-day-dow,
.bk-day-chip[aria-pressed="true"] .bk-day-dow { color: var(--gold); }
.bk-day-chip--sel .bk-day-num,
.bk-day-chip[aria-pressed="true"] .bk-day-num { color: var(--gold-bright); }
/* Slot groups */
.bk-slot-area { min-height: 80px; }
.bk-slot-msg {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 16px 0;
}
.bk-slots-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 10px;
}
.bk-slots-eyebrow:first-child { margin-top: 0; }
.bk-slot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bk-slot-chip {
  font-family: var(--font-mono);
  font-size: 13px;
  border: 1px solid var(--rule-soft);
  background: var(--ink-2);
  color: var(--cream);
  border-radius: var(--r);
  padding: 12px 16px;
  min-height: 44px;
  min-width: 86px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.bk-slot-chip--named {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 14px;
  min-width: 96px;
}
.bk-slot-who {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.bk-slot-chip--sel .bk-slot-who,
.bk-slot-chip[aria-pressed="true"] .bk-slot-who {
  opacity: 0.88;
}
.bk-chair-note {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gold);
  margin: -18px 0 28px;
  text-wrap: balance;
}
.bk-slot-chip:hover { border-color: var(--gold); }
.bk-slot-chip--sel,
.bk-slot-chip[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
/* Next-opening shortcut */
.bk-next-open { margin-top: 22px; }
.bk-next-btn {
  background: none;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 11px 18px;
  min-height: 44px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.bk-next-btn:hover { border-color: var(--gold); background: rgba(233, 181, 88, 0.07); }

/* --- screen 4: details form --- */
.bk-fields { margin-bottom: 20px; }
.bk-policy {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
}

/* ---- ticket: cream-paper rail (desktop), bottom sheet (mobile) ---- */
.bk-ticket {
  position: sticky;
  top: 88px;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--r);
  font-family: var(--font-mono);
  overflow: visible;
}
/* Perforated top edge: row of holes + side notches */
.bk-ticket-stub {
  height: 16px;
  border-radius: var(--r) var(--r) 0 0;
  background:
    radial-gradient(circle 7px at 10px 8px, var(--ink) 7px, var(--cream) 7.5px),
    var(--cream);
  background-size: 20px 16px;
  background-repeat: repeat-x;
  position: relative;
}
.bk-ticket-stub::before,
.bk-ticket-stub::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 12px; height: 12px;
  background: var(--ink);
  border-radius: 50%;
}
.bk-ticket-stub::before { left: -6px; }
.bk-ticket-stub::after  { right: -6px; }
/* Ticket interior */
.bk-ticket-inner { padding: 18px 24px 8px; }
.bk-ticket-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(12, 11, 8, 0.18);
}
.bk-ticket-logo { height: 26px; width: auto; }
.bk-ticket-eyebrow {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(12, 11, 8, 0.35);
}
.bk-tlines { min-height: 88px; }
.bk-tlines-empty {
  font-size: 11px;
  text-align: center;
  padding: 22px 0;
  color: rgba(12, 11, 8, 0.3);
  line-height: 1.5;
}
.bk-tline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 5px 0;
  font-size: 12px;
  border-bottom: 1px dotted rgba(12, 11, 8, 0.1);
}
.bk-tline:last-child { border-bottom: none; }
.bk-tline-k {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(12, 11, 8, 0.42);
  flex-shrink: 0;
}
.bk-tline-v {
  text-align: right;
  font-size: 12px;
  color: var(--ink);
}
/* Total panel */
.bk-ttotal {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 12px 0 0;
  margin-top: 10px;
  border-top: 2px solid rgba(12, 11, 8, 0.12);
}
.bk-ttotal[hidden] { display: none; }
.bk-ttotal-label {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(12, 11, 8, 0.38);
  align-self: flex-start;
  padding-top: 4px;
}
.bk-ttotal-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.bk-ttotal-price {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: #6e5016;
  line-height: 1;
}
.bk-ttotal-dur {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(12, 11, 8, 0.38);
  margin-top: 2px;
}
/* CTA area */
.bk-ticket-cta {
  padding: 16px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bk-ticket-err {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--danger);
  min-height: 16px;
  line-height: 1.4;
}
.bk-cta {
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 20px;
  border: none;
  border-radius: var(--r);
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 180ms ease, opacity 180ms ease;
  min-height: 44px;
}
.bk-cta:hover:not(:disabled) { background: var(--gold-bright); }
.bk-cta:disabled { opacity: 0.38; cursor: not-allowed; }
.bk-ticket-fine {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(12, 11, 8, 0.35);
  text-align: center;
  line-height: 2;
  padding: 6px 24px 22px;
}

/* --- mobile bottom bar (hidden on desktop) --- */
.bk-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
  padding: 10px 20px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  align-items: center;
  gap: 14px;
}
.bk-bar-toggle {
  flex: 1;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-mono);
  color: var(--cream);
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.bk-bar-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  display: block;
}
.bk-bar-hint {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}
.bk-cta-sm {
  flex-shrink: 0;
  width: auto;
  padding: 12px 20px;
  font-size: 11px;
  letter-spacing: 0.14em;
  min-height: 44px;
}
/* Mobile sheet overlay */
.bk-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 11, 8, 0.62);
  z-index: 140;
  cursor: pointer;
}
.bk-overlay--open { display: block; }

/* --- success view --- */
.bk-success {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 24px 60px;
}
.bk-success[hidden] { display: none; }
.bk-sticket {
  width: min(440px, 100%);
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--r);
  font-family: var(--font-mono);
}
.bk-sticket-stub {
  height: 16px;
  border-radius: var(--r) var(--r) 0 0;
  background:
    radial-gradient(circle 7px at 10px 8px, var(--ink) 7px, var(--cream) 7.5px),
    var(--cream);
  background-size: 20px 16px;
  background-repeat: repeat-x;
  position: relative;
}
.bk-sticket-stub::before,
.bk-sticket-stub::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 12px; height: 12px;
  background: var(--ink);
  border-radius: 50%;
}
.bk-sticket-stub::before { left: -6px; }
.bk-sticket-stub::after  { right: -6px; }
.bk-sticket-inner {
  padding: 24px 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.bk-sticket-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #6e5016;
  border: 2px solid #6e5016;
  border-radius: var(--r);
  padding: 6px 14px;
  transform: rotate(-1.8deg);
}
.bk-sticket-code {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #6e5016;
  line-height: 1;
}
.bk-sticket-lines {
  width: 100%;
  border-top: 1px dashed rgba(12, 11, 8, 0.16);
  padding-top: 14px;
  margin-top: 4px;
}
.bk-sticket-lines .bk-tline-k { color: rgba(12, 11, 8, 0.42); }
.bk-sticket-lines .bk-tline-v { color: var(--ink); }
.bk-sticket-save {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(12, 11, 8, 0.4);
  line-height: 1.7;
  max-width: 32ch;
}
.bk-sticket-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
/* Ink-colored button variant for cream-background success ticket */
.bk-btn-ink {
  color: var(--ink) !important;
  border-color: rgba(12, 11, 8, 0.22) !important;
  background: transparent !important;
}
.bk-btn-ink:hover {
  border-color: #6e5016 !important;
  color: #6e5016 !important;
  background: transparent !important;
}

/* ================= booking v2: responsive ================= */

/* Desktop: show week strip arrows */
@media (min-width: 961px) {
  .bk-week-arr { display: flex; }
}

/* Tablet: single column */
@media (max-width: 960px) {
  .bk-wrap {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 96px; /* room for bottom bar */
  }
  .bk-bar { display: flex; }
  /* Ticket becomes a fixed bottom sheet */
  .bk-ticket {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    top: auto;
    max-height: 86vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 160;
    border-radius: 14px 14px 0 0;
    /* On mobile, the stub notches should bleed slightly */
  }
  .bk-ticket--open { transform: translateY(0); }
  .bk-ticket-stub { border-radius: 14px 14px 0 0; }
  .bk-ticket-stub::before,
  .bk-ticket-stub::after { background: var(--ink); }
}

@media (max-width: 760px) {
  .bk-wrap { padding: 96px 16px 96px; }
  .bk-barber-mono { width: 60px; height: 60px; font-size: 38px; }
  .bk-barber-name { font-size: 22px; }
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .book-main { grid-template-columns: 1fr; }
  .ticket { position: static; }
  .visit-grid { grid-template-columns: 1fr; gap: 40px; }
  .shelf-rail { grid-template-columns: 1fr 1fr; }
  .shelf-item { padding-top: 22px; }
  .chair-row { grid-template-columns: 1fr; gap: 14px; }
  .chair-row .btn { justify-self: start; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  /* .wrap padding override outranks .chair-main (same element, later rule) --
     restate the portal's top padding so the h1 clears the fixed nav */
  .chair-main { padding: 100px 20px 64px; }
  section { padding: 68px 0; }
  .nav-links, .nav-phone { display: none; }
  .nav-inner { justify-content: space-between; }
  .book-main { padding: 100px 20px 64px; }
  .choice-grid { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
  .cut-grid { grid-template-columns: repeat(2, 1fr); }
  .wall-row { grid-template-columns: 1fr; }
  .wall-line { flex-wrap: nowrap; gap: 10px; }
  .wall-dots { display: block; min-width: 16px; }
  .wall-meta { flex-direction: column; gap: 8px; }
  .wall-row .wall-go { display: none; }
  .bk-svc-btn { overflow: hidden; }
  .day-grid { grid-template-columns: 52px repeat(var(--day-cols, 2), minmax(0, 1fr)); }
  .hero-stats { flex-wrap: wrap; }
  .board-slots { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .shelf-rail { grid-template-columns: 1fr; }
  .shelf-item { border-left: none; border-top: 1px solid rgba(12, 11, 8, 0.14); }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .neon-sign { animation: none; }
}

/* ================= barber portal: clients tab ================= */

.clients-controls {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px;
}
.clients-controls input[type=search], .clients-controls input[type=text] {
  flex: 1; min-width: 160px;
  background: var(--ink-2); border: 1px solid var(--rule-soft); border-radius: var(--r);
  color: var(--cream); font-family: var(--font-body); font-size: 14px;
  padding: 9px 12px; transition: border-color 160ms ease;
}
.clients-controls input:focus { outline: none; border-color: var(--gold); }
.clients-controls select {
  background: var(--ink-2); border: 1px solid var(--rule-soft); border-radius: var(--r);
  color: var(--cream); font-family: var(--font-mono); font-size: 12px;
  padding: 9px 10px; transition: border-color 160ms ease;
}
.clients-export-btn { padding: 9px 18px; font-size: 11px; letter-spacing: 0.12em; }

.clients-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 24px; }
.clients-table th {
  text-align: left; padding: 8px 10px 8px 0;
  color: var(--muted); font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1px solid var(--rule); font-weight: 400;
}
.clients-table td {
  padding: 11px 10px 11px 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: middle;
}
.clients-row { cursor: pointer; transition: background-color 120ms ease; }
.clients-row:hover { background: rgba(233, 181, 88, 0.04); }
.clients-phone-link {
  color: var(--gold-bright); text-decoration: none;
  font-family: var(--font-mono); font-size: 12px;
}
.clients-phone-link:hover { text-decoration: underline; }
.clients-upcoming-badge {
  display: inline-block; background: rgba(233, 181, 88, 0.18); color: var(--gold);
  border-radius: 99px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; padding: 2px 8px; white-space: nowrap;
}
.clients-detail-cell {
  padding: 14px 16px !important;
  background: var(--panel);
  border-bottom: 1px solid var(--rule-soft);
}
.clients-detail-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 20px;
}
.clients-detail-item { font-size: 12px; }
.clients-detail-label {
  display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
}
.clients-count-cell { font-family: var(--font-mono); font-size: 13px; }
.clients-date-cell  { font-family: var(--font-mono); font-size: 12px; color: var(--cream-dim); }
.clients-spend-cell { font-family: var(--font-mono); font-size: 13px; color: var(--gold); }
.clients-empty {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted); padding: 24px 0;
}

/* Mobile cards for the clients tab (shown at <= 479px) */
.clients-cards-wrap { display: none; }
.client-card {
  background: var(--panel); border: 1px solid var(--rule-soft);
  border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px;
  cursor: pointer; transition: border-color 120ms ease;
}
.client-card:hover { border-color: var(--rule); }
.client-card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; margin-bottom: 6px;
}
.client-card-name { font-size: 15px; font-weight: 500; }
.client-card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.client-card-stat  { font-family: var(--font-mono); font-size: 11px; color: var(--cream-dim); }
.client-card-detail {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}

@media (max-width: 479px) {
  .clients-table-wrap { display: none; }
  .clients-cards-wrap { display: block; }
  .clients-controls { gap: 8px; }
  .clients-controls input[type=search], .clients-controls input[type=text] {
    min-width: 0; flex: 1 1 120px;
  }
  .clients-detail-grid { grid-template-columns: 1fr 1fr; }
}

/* ================= spam protection: honeypot field ================= */
.field-hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ================= success ticket extras ================= */
.bk-sticket-email {
  font-size: 11px;
  color: rgba(12, 11, 8, 0.45);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.bk-sticket-email[hidden] { display: none; }
.bk-sticket-manage {
  font-size: 12px;
  color: rgba(12, 11, 8, 0.48);
  font-family: var(--font-body);
  line-height: 1.6;
}
.bk-sticket-manage a {
  color: #6e5016;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bk-sticket-manage a[hidden] { display: none; }

/* ================= manage page ================= */
.mg-page { background: var(--ink); color: var(--cream); }

.mg-main {
  min-height: calc(100vh - 64px);
  padding-top: 88px;
  padding-bottom: 60px;
}

.mg-state[hidden] { display: none; }

/* --- entry form --- */
.mg-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 152px);
  padding: 24px;
}
.mg-entry-wrap {
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mg-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin: 0;
}
.mg-eyebrow--red { color: var(--danger); }
.mg-headline {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--cream);
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
}
.mg-sub {
  font-size: 14px;
  color: var(--cream-dim);
  line-height: 1.6;
  margin: 0;
}
.mg-err {
  font-size: 13px;
  color: var(--danger);
  min-height: 18px;
  line-height: 1.5;
}
.mg-find-btn {
  margin-top: 6px;
  align-self: flex-start;
  min-width: 160px;
}
.mg-rebook-btn { align-self: flex-start; }

/* --- ticket state --- */
.mg-ticket-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 24px 48px;
  gap: 32px;
}
.mg-center-wrap {
  width: min(480px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Cream ticket (mirrors bk-sticket) */
.mg-sticket {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--r);
  font-family: var(--font-mono);
  width: 100%;
}
.mg-sticket-stub {
  height: 16px;
  border-radius: var(--r) var(--r) 0 0;
  background:
    radial-gradient(circle 7px at 10px 8px, var(--ink) 7px, var(--cream) 7.5px),
    var(--cream);
  background-size: 20px 16px;
  background-repeat: repeat-x;
  position: relative;
}
.mg-sticket-stub::before,
.mg-sticket-stub::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 12px; height: 12px;
  background: var(--ink);
  border-radius: 50%;
}
.mg-sticket-stub::before { left: -6px; }
.mg-sticket-stub::after  { right: -6px; }
.mg-sticket-inner {
  padding: 22px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.mg-sticket-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #6e5016;
  border: 2px solid #6e5016;
  border-radius: var(--r);
  padding: 6px 14px;
  transform: rotate(-1.8deg);
}
.mg-sticket-code {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #6e5016;
  line-height: 1;
}
.mg-sticket-lines {
  width: 100%;
  border-top: 1px dashed rgba(12, 11, 8, 0.16);
  padding-top: 14px;
  margin-top: 4px;
}
.mg-sticket-lines .bk-tline-k { color: rgba(12, 11, 8, 0.42); }
.mg-sticket-lines .bk-tline-v { color: var(--ink); }
.mg-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- reschedule panel --- */
.mg-resched {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 24px;
}
.mg-resched[hidden] { display: none; }
.mg-resched-head {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cream);
  margin: 0 0 18px;
  text-wrap: balance;
}
.mg-resched-foot {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mg-resched-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- cancelled state --- */
.mg-cancelled {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 152px);
  padding: 24px;
}

@media (max-width: 520px) {
  .mg-headline { font-size: 28px; }
  .mg-sticket-inner { padding: 18px 18px 22px; }
  .mg-resched { padding: 16px; }
  .mg-actions { flex-direction: column; }
  .mg-resched-btns { flex-direction: column; }
  .mg-find-btn { align-self: stretch; }
  .mg-rebook-btn { align-self: stretch; }
}

/* ---- Per-barber menu: screen 2 description text ---- */
.bk-svc-desc {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  padding: 0 18px 12px 18px;
  font-family: var(--font-body);
}

/* "from $X" pricing on wall and ticket (single-price vs range) */
.wall-price-range { color: var(--gold); }

/* Wall price: no extra styles needed; static text handles it */
