@import url('/assets/type.css');

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #111111;
  --panel2: #1c1c1c;
  --line: #282828;
  --gold: #d9b976;
  --gold-light: #e7ca8e;
  --text: #f5f5f5;
  --muted: #969696;
  --green: #96c7a5;
  --danger: #eea39d;
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(15px, calc(13px + .208333vw), 21px);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .4; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 0.25rem; }
svg { width: 1.3125rem; height: 1.3125rem; flex-shrink: 0; vertical-align: middle; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; }
h1 { font-size: 1.875rem; letter-spacing: -.7px; line-height: 1.2; }
h2 { font-size: 1.25rem; letter-spacing: -.4px; line-height: 1.3; }
h3 { font-size: 1rem; line-height: 1.4; }
p { line-height: 1.65; }
small { font-size: 0.75rem; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.small { font-size: 0.8125rem; }
.eyebrow { color: var(--muted); font-size: 0.75rem; font-weight: 500; letter-spacing: .7px; }
.row { display: flex; align-items: center; gap: 0.75rem; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 1.125rem; }
.hidden { display: none !important; }
.panel { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); }
.divider { height: 1px; margin: 1.5rem 0; background: var(--line); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem; min-height: 2.875rem; padding: 0.75rem 1.4375rem; border: 1px solid transparent; border-radius: .45rem; background: var(--gold); color: #18150f; font-size: 0.875rem; font-weight: 700; line-height: 1.4; transition: background 120ms; }
.btn:hover { background: var(--gold-light); }
.btn svg { width: 1.125rem; height: 1.125rem; }
.btn.secondary { background: transparent; border-color: #3a3a3a; color: var(--text); }
.btn.secondary:hover { background: var(--panel2); border-color: #555; }
.btn.danger { background: transparent; border-color: #573834; color: var(--danger); }
.btn.danger:hover { background: #eea39d0a; }
.btn.full { width: 100%; }
.btn.sm { min-height: 2.5rem; padding: 0.5625rem 1.0625rem; font-size: 0.8125rem; }
.text-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 0; min-height: 2.625rem; border: 0; background: none; color: var(--gold); font-size: 0.8125rem; font-weight: 500; }
.text-btn svg { width: 1.0625rem; height: 1.0625rem; }
.icon-btn { display: inline-grid; place-items: center; min-width: 2.625rem; min-height: 2.625rem; padding: 0.5625rem; background: var(--panel2); border: 1px solid #303030; border-radius: .45rem; color: #c7c7c7; }
.icon-btn:hover { color: var(--text); background: #262626; }
.tag { display: inline-flex; align-items: center; gap: 0.3125rem; padding: 0.3125rem 0.625rem; border: 1px solid #343434; border-radius: 1.25rem; color: #aaa; font-size: 0.75rem; font-weight: 400; line-height: 1.4; white-space: nowrap; }
.tag.confirmed, .tag.active { color: var(--green); background: #0e261b; border-color: #214532; }
.tag.cancelled, .tag.no_show { background: #291b1b; color: var(--danger); border-color: #4f3030; }
.tag.completed { color: var(--gold); background: #292317; border-color: #4c4027; }
.dot { display: inline-block; width: 0.3125rem; height: 0.3125rem; background: currentColor; border-radius: 50%; }
.notice { border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.9375rem 1.0625rem; background: #141414; color: #aaa; font-size: 0.8125rem; line-height: 1.65; }
.notice svg { width: 1.0625rem; height: 1.0625rem; margin-right: 0.3125rem; color: var(--gold); }
.error { color: var(--danger); font-size: 0.8125rem; line-height: 1.6; }
.error:empty { display: none; }
.empty { padding: 2.875rem 1.375rem; text-align: center; }
.empty > svg { width: 2.125rem; height: 2.125rem; color: var(--muted); margin-bottom: 1.125rem; }
.empty h3 { margin-bottom: 0.5625rem; }
.empty p { max-width: 23.125rem; margin: 0 auto 1.375rem; font-size: 0.875rem; color: var(--muted); }
.empty .row { justify-content: center; flex-wrap: wrap; }
.field { display: grid; gap: 0.5625rem; margin-bottom: 1.1875rem; }
.field label, .field > span { color: #b8b8b8; font-size: 0.8125rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 3rem; padding: 0.75rem 0.9375rem; border: 1px solid #333; border-radius: 0.625rem; background: #0c0c0c; color: var(--text); font-size: 0.9375rem; }
.field textarea { min-height: 5.9375rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #8d7850; }
.field input:disabled { color: #858585; }
input[type='checkbox'] { width: 1.0625rem; height: 1.0625rem; accent-color: var(--gold); }
.field input[type='checkbox'] { width: 1.0625rem; min-height: 1.0625rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.0625rem; }
.form-grid .span2 { grid-column: 1 / -1; }
.skip-link { position: fixed; top: -6.25rem; left: 1.25rem; z-index: 100; padding: 0.75rem 1.25rem; background: var(--gold); color: #111; }
.skip-link:focus { top: 0.625rem; }
.boot { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.125rem; padding: 1.5625rem; text-align: center; }
.boot p { font: 700 3rem 'Inter', sans-serif; text-transform: uppercase; }
.boot span { font-size: 0.875rem; color: var(--muted); }

/* App shell */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; width: 13.75rem; padding: 2.125rem 1.25rem 1.5rem; border-right: 1px solid #242424; background: #0d0d0d; }
.brand { display: flex; align-items: center; gap: 0.6875rem; }
.brand-symbol { display: grid; place-items: center; width: 2.3125rem; height: 2.625rem; color: var(--gold); }
.brand-symbol svg { width: 1.9375rem; height: 1.9375rem; }
.brand-name { font: 800 1.75rem / .95 'Inter', sans-serif; letter-spacing: .3px; }
.brand-name > span { display: block; margin-top: 0.5rem; color: #868686; font: 500 0.5rem 'Inter', sans-serif; letter-spacing: 0.1875rem; }
.nav-caption { margin: 3.3125rem 0 1.0625rem 0.9375rem; color: #626262; font-size: 0.75rem; letter-spacing: 1.6px; }
.sidebar nav { display: grid; gap: 0.4375rem; }
.nav-item { display: flex; align-items: center; gap: 0.875rem; min-height: 3rem; padding: 0.8125rem 1rem; border-radius: 0.6875rem; color: #9b9b9b; font-size: 0.875rem; }
.nav-item svg { width: 1.1875rem; height: 1.1875rem; }
.nav-item.active { background: #242016; color: var(--gold); }
.nav-item:hover { color: var(--text); }
.side-bottom { margin-top: auto; }
.side-bottom .btn { font-size: 0.8125rem; }
.side-location { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 1.125rem; font-size: 0.75rem; color: #777; }
.side-location svg { width: 0.875rem; height: 0.875rem; }
.sidebar-foot { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); text-align: center; }
.sidebar-foot span { display: block; color: #555; font: 700 1.5625rem 'Inter', sans-serif; letter-spacing: 1px; }
.sidebar-foot small { color: #555; font-size: 0.75rem; letter-spacing: 0.1875rem; }
.workspace { margin-left: 13.75rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.75rem; padding: 0.9375rem 2.375rem; border-bottom: 1px solid #202020; }
.desktop-context { display: flex; align-items: center; gap: 0.875rem; color: #777; font-size: 0.8125rem; }
.desktop-context strong { color: #c9c9c9; font-weight: 500; }
.desktop-context svg { width: 0.8125rem; height: 0.8125rem; color: #555; }
.top-actions { display: flex; align-items: center; gap: 0.9375rem; }
.top-actions .icon-btn { border-color: transparent; background: transparent; min-width: 2.25rem; min-height: 2.25rem; }
.account { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border: 1px solid #54472e; border-radius: 50%; background: #292317; color: var(--gold); font-size: 0.75rem; }
.account svg { width: 1.125rem; height: 1.125rem; }
.preview-link { display: inline-flex; align-items: center; gap: 0.4375rem; color: #888; font-size: 0.75rem; }
.preview-link:hover { color: var(--text); }
.preview-link svg { width: 0.9375rem; height: 0.9375rem; }
.mobile-brand { display: none; }
.demo-bar { display: flex; align-items: center; gap: 1.0625rem; max-width: 78.125rem; margin: 1.125rem auto 0; padding: 0 2.375rem; min-height: 2.3125rem; }
.demo-indicator { display: inline-flex; align-items: center; gap: 0.4375rem; color: #777; font-size: 0.75rem; white-space: nowrap; }
.demo-indicator i { width: 0.3125rem; height: 0.3125rem; border-radius: 50%; background: var(--gold); }
.demo-controls { display: flex; align-items: center; padding: 0.1875rem; background: #171717; border: 1px solid #272727; border-radius: .45rem; }
.demo-controls button { min-height: 1.875rem; border: 0; border-radius: .45rem; padding: 0.3125rem 0.8125rem; background: none; color: #929292; font-size: 0.75rem; }
.demo-controls button.active { background: #2c271d; color: var(--gold); }
.demo-exit { display: inline-grid; place-items: center; margin-left: auto; padding: 0.5rem; background: none; border: 0; color: #666; }
.demo-exit:hover { color: var(--text); }
.demo-exit svg { width: 1rem; height: 1rem; }
main { max-width: 78.125rem; min-height: calc(100dvh - 8.4375rem); margin: auto; padding: 2.0625rem 2.375rem 1.875rem; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.75rem; }
.page-heading h1 { margin-bottom: 0.5rem; }
.page-heading p { color: var(--muted); font-size: 0.875rem; }
.page-heading .eyebrow { display: block; margin-bottom: 0.5625rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.875rem; margin-bottom: 1.1875rem; }
.section-heading > span { color: #777; font-size: 0.75rem; }
.section-heading > svg { width: 1.125rem; height: 1.125rem; color: #777; }
.section-heading .text-btn { padding: 0; min-height: 1.5rem; }
.page-foot { display: flex; justify-content: space-between; gap: 1.125rem; margin-top: 2.375rem; padding-top: 1.4375rem; border-top: 1px solid #222; color: #606060; font-size: 0.75rem; line-height: 1.7; }
.page-foot > span:last-child { display: flex; gap: 1.25rem; }
.page-foot button { padding: 0; border: 0; background: none; color: #777; font-size: 0.75rem; }
.mobile-nav { display: none; }

/* Customer home */
.home-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.5625rem; }
.home-heading p { margin-bottom: 0.4375rem; color: #888; font-size: 0.75rem; text-transform: capitalize; }
.home-heading h1 { font-size: 1.75rem; font-weight: 500; }
.salon-hours { display: inline-flex; align-items: center; gap: 0.4375rem; color: #979797; font-size: 0.75rem; }
.salon-hours svg { width: 1rem; height: 1rem; }
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18.75rem; align-items: start; gap: 1.875rem; }
.home-primary, .home-secondary { min-width: 0; }
.booking-feature { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 16.875rem; padding: 1.75rem; overflow: hidden; border-radius: 0.9375rem; background: #1c1c1c; }
.booking-feature > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 36%; filter: grayscale(1); }
.booking-feature::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #080808eb, #08080885 48%, #08080818); }
.feature-content { width: 100%; }
.feature-kicker { font-size: 0.75rem; letter-spacing: 1.7px; font-weight: 500; color: #c1b8a8; }
.booking-feature h2 { margin: 1.125rem 0 1.375rem; font: 600 2.3rem / 1.15 'Inter', sans-serif; letter-spacing: -.3px; }
.booking-feature .btn { min-height: 2.5625rem; padding: 0.625rem 1.1875rem; font-size: 0.8125rem; }
.services-section { margin-top: 1.875rem; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5625rem; margin-bottom: 1.4375rem; }
.filter { min-height: 2.5rem; padding: 0.5625rem 1.125rem; border: 1px solid transparent; border-radius: .45rem; background: #1b1b1b; color: #999; font-size: 0.8125rem; }
.filter.active { color: #1b170e; background: var(--gold); }
.filter:hover:not(.active) { color: #ddd; background: #242424; }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.service-card { display: flex; flex-direction: column; position: relative; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #292929; border-radius: 0.875rem; background: #131313; color: var(--text); text-align: left; }
.service-card:hover { border-color: #64605a; }
.service-card.selected { border-color: var(--gold); background: #1e1c16; }
.service-photo { display: block; position: relative; width: 100%; aspect-ratio: 1.55; overflow: hidden; background: #222; }
.service-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 33%; filter: saturate(.6); transition: filter 150ms; }
.service-card:hover .service-photo > img { filter: saturate(1); }
.service-card:nth-child(2) .service-photo > img { object-position: 50% 30%; }
.service-copy { display: grid; gap: 0.5rem; padding: 1.0625rem 1.0625rem 1.125rem; }
.service-title-row { display: flex; align-items: center; justify-content: space-between; gap: 0.3125rem; }
.service-title-row h3 { font-size: 1rem; font-weight: 500; }
.service-title-row > svg { width: 1rem; height: 1rem; color: #777; }
.service-detail { display: flex; align-items: center; gap: 0.5rem; color: #969696; font-size: 0.8125rem; }
.service-detail > span { color: #555; }
.home-secondary { display: grid; gap: 1.6875rem; }
.next-appointment { padding: 1.25rem; }
.next-appointment .section-heading { margin-bottom: 1.4375rem; }
.next-appointment h2 { font-size: 1rem; font-weight: 500; }
.next-service { display: flex; align-items: center; gap: 0.8125rem; }
.next-service > img { width: 4rem; height: 4.625rem; object-fit: cover; border-radius: 0.5rem; filter: saturate(.5); }
.next-service h3 { font-size: 0.9375rem; font-weight: 500; }
.next-service p { margin: 0.3125rem 0 0.5625rem; font-size: 0.8125rem; color: #a7a7a7; }
.next-service .tag { padding: 0.1875rem 0.5625rem; font-size: 0.75rem; }
.appointment-barber { display: flex; align-items: center; gap: 0.5625rem; margin-top: 1.375rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.appointment-barber .avatar { width: 1.8125rem; height: 1.8125rem; font-size: 0.75rem; }
.appointment-barber > span { font-size: 0.75rem; color: #929292; }
.appointment-barber strong { font-weight: 500; color: #ddd; }
.appointment-barber .icon-btn { margin-left: auto; min-width: 2.0625rem; min-height: 2.0625rem; padding: 0.4375rem; }
.appointment-barber .icon-btn svg { width: 1rem; height: 1rem; }
.no-appointment { padding: 0.625rem 0 0; }
.no-appointment > span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1.0625rem; border-radius: 50%; background: #1e1e1e; color: #888; }
.no-appointment p { color: #999; font-size: 0.875rem; }
.no-appointment .text-btn { font-size: 0.75rem; }
.team-section .section-heading h2 { font-size: 1.0625rem; font-weight: 500; }
.barber-grid { display: grid; gap: 0.6875rem; }
.barber-card { display: flex; align-items: center; gap: 0.8125rem; position: relative; min-width: 0; padding: 0.9375rem; border: 1px solid #2c2c2c; border-radius: 0.8125rem; background: #141414; text-align: left; }
.barber-card:hover, .barber-card.selected { border-color: #8a7651; }
.barber-card.selected { background: #211d15; }
.avatar { display: inline-grid; place-items: center; width: 2.875rem; height: 2.875rem; flex-shrink: 0; border: 1px solid #50442e; border-radius: 50%; background: #262118; color: var(--gold); font-size: 0.9375rem; font-weight: 500; overflow: hidden; }
.photo-avatar { background: #222; border-color: #444; }
.photo-avatar > img { width: 100%; height: 100%; object-fit: cover; object-position: center 29%; filter: saturate(.6); }
.barber-info { min-width: 0; }
.barber-card h3 { font-size: 0.9375rem; font-weight: 500; margin-bottom: 0.3125rem; }
.barber-card p { color: #929292; font-size: 0.75rem; line-height: 1.45; }
.barber-card > svg { width: 1rem; height: 1rem; margin-left: auto; color: #777; }
.salon-card { padding: 0; overflow: hidden; }
.salon-cover { width: 100%; height: 8.125rem; object-fit: cover; filter: saturate(.55); }
.salon-card-body { padding: 1.25rem; }
.salon-card-body .section-heading { margin-bottom: 0.5625rem; }
.salon-card-body h2 { font-size: 1.0625rem; font-weight: 500; }
.salon-card-body > p { font-size: 0.8125rem; color: #888; }
.salon-hours-details { margin-top: 1.125rem; border-top: 1px solid #2a2a2a; }
.salon-hours-details > summary { display: flex; align-items: center; justify-content: space-between; min-height: 2.875rem; color: #aaa; font-size: 0.75rem; cursor: pointer; list-style: none; }
.salon-hours-details > summary::-webkit-details-marker { display: none; }
.salon-hours-details summary svg { width: 1rem; height: 1rem; }
.salon-hours-details[open] summary svg { transform: rotate(90deg); }
.hours-list { display: grid; gap: 0.75rem; padding-top: 0.625rem; }
.hours-list > div { display: flex; justify-content: space-between; gap: 0.625rem; color: #969696; font-size: 0.75rem; }
.hours-list > div.today { color: var(--gold); }
.salon-hours-details > p { margin: 1.0625rem 0 0; font-size: 0.75rem; }

/* Booking flow */
.steps { display: flex; align-items: center; gap: 0; max-width: 39.375rem; margin: 0.25rem 0 2.1875rem; }
.step { display: flex; align-items: center; gap: 0.5625rem; flex-shrink: 0; color: #777; font-size: 0.8125rem; }
.step b { display: grid; place-items: center; width: 1.875rem; height: 1.875rem; border: 1px solid #353535; border-radius: 50%; font-size: 0.75rem; font-weight: 500; }
.step b svg { width: 0.9375rem; height: 0.9375rem; }
.step.active { color: #eee; }
.step.active b { background: var(--gold); border-color: var(--gold); color: #17140e; }
.step.done b { border-color: #766342; color: var(--gold); }
.step-line { flex: 1; min-width: 0.8125rem; height: 1px; margin: 0 0.875rem; background: #303030; }
.booking-grid { display: grid; grid-template-columns: minmax(0, 1fr) 18.125rem; align-items: start; gap: 1.875rem; }
.booking-content { min-width: 0; }
.booking-content > h2 { margin-bottom: 0.5625rem; font-size: 1.3125rem; font-weight: 500; }
.booking-content > p { margin-bottom: 1.4375rem; color: #929292; font-size: 0.875rem; }
.booking-services { gap: 0.9375rem; }
.selection-check { position: absolute; top: 0.75rem; right: 0.75rem; display: grid; place-items: center; width: 1.4375rem; height: 1.4375rem; border: 1px solid #fff9; border-radius: 50%; background: #1119; color: #111; }
.selection-check svg { width: 0.9375rem; height: 0.9375rem; }
.selected .selection-check { background: var(--gold); border-color: var(--gold); }
.booking-summary { position: sticky; top: 1.5625rem; padding: 1.5rem; }
.booking-summary > .eyebrow { display: none; }
.booking-summary h3 { margin-bottom: 1.5625rem; font-size: 1.125rem; font-weight: 500; }
.summary-row { display: flex; align-items: start; justify-content: space-between; gap: 1.125rem; margin-bottom: 1.0625rem; font-size: 0.8125rem; line-height: 1.5; }
.summary-row > span:first-child { color: #8d8d8d; }
.summary-row strong { text-align: right; font-weight: 400; }
.summary-total { display: flex; justify-content: space-between; align-items: center; gap: 0.9375rem; font-size: 0.875rem; }
.summary-total > strong { color: var(--gold); font-size: 1.5625rem; font-weight: 500; }
.summary-total small { font-size: 0.8125rem; }
.booking-summary .notice { margin-top: 1.4375rem; padding: 0; border: 0; background: none; font-size: 0.75rem; color: #8a8a8a; }
.booking-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.8125rem; padding-top: 1.5625rem; margin-top: 1.75rem; border-top: 1px solid #292929; }
.barber-options { display: grid; gap: 0.875rem; }
.barber-options .barber-card { min-height: 5.625rem; padding: 1.25rem; }
.barber-options .barber-card > span:nth-child(2) { min-width: 0; }
.barber-options .barber-card .avatar { width: 3.25rem; height: 3.25rem; }
.barber-options .barber-card .tag { margin-left: auto; font-size: 0.75rem; }
.auto-avatar { border-color: #4b412e; background: #272117; }
.auto-avatar svg { color: var(--gold); width: 1.5rem; height: 1.5rem; }
.date-head { display: flex; align-items: center; justify-content: space-between; gap: 0.9375rem; margin: 1.8125rem 0 1.25rem; }
.date-head h3 { text-transform: capitalize; font-size: 1.0625rem; font-weight: 500; }
.date-head .icon-btn { min-width: 2.25rem; min-height: 2.25rem; padding: 0.4375rem; border-radius: .45rem; }
.date-head .icon-btn svg { width: 1.0625rem; height: 1.0625rem; }
.date-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5625rem; margin-bottom: 1.875rem; }
.date-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.625rem; min-width: 0; min-height: 5.375rem; padding: 0.75rem 0.25rem; border: 1px solid #2a2a2a; border-radius: .45rem; background: transparent; color: #929292; }
.date-button > span { font-size: 0.75rem; text-transform: capitalize; }
.date-button > strong { color: #ddd; font-size: 1.1875rem; font-weight: 500; }
.date-button.selected { background: var(--gold); border-color: var(--gold); color: #4b4028; }
.date-button.selected > strong { color: #18140d; }
.date-button:hover { border-color: #777; }
.date-button.selected:hover { border-color: var(--gold); }
.slot-subtitle { margin: 1.375rem 0 0.75rem; color: #929292; font-size: 0.8125rem; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6875rem; }
.slot { min-height: 2.75rem; padding: 0.75rem; border: 1px solid #313131; border-radius: .45rem; background: #141414; color: #c6c6c6; font-size: 0.875rem; }
.slot:hover { border-color: #89764f; }
.slot.selected { background: var(--gold); border-color: var(--gold); color: #17140d; }
.booking-review { margin-bottom: 1.4375rem; padding: 1.5rem; border: 1px solid #2c2c2c; border-radius: 0.9375rem; background: #121212; }
.review-heading { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1.4375rem; }
.review-heading .service-icon { display: grid; place-items: center; width: 2.875rem; height: 2.875rem; border: 1px solid #4b3f28; border-radius: 50%; background: #292317; color: var(--gold); }
.review-heading h3 { margin-bottom: 0.375rem; font-size: 1.125rem; font-weight: 500; }
.review-heading p { color: #969696; font-size: 0.75rem; }
.review-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #2a2a2a; }
.review-info span { display: block; margin-bottom: 0.5rem; font-size: 0.75rem; color: #7d7d7d; letter-spacing: .5px; }
.review-info p { font-size: 0.875rem; }
.booking-content > .notice { margin-bottom: 1.3125rem; }
.booking-content > .field { margin-top: 1.5rem; }
.booking-content > #booking-error { margin-top: 1.125rem; }
.success-view { max-width: 35rem; margin: 1.25rem auto 2.1875rem; text-align: center; }
.success-icon { display: grid; place-items: center; width: 4.125rem; height: 4.125rem; margin: 0 auto 1.5625rem; border-radius: 50%; background: #292317; border: 1px solid #74613d; color: var(--gold); }
.success-icon svg { width: 1.8125rem; height: 1.8125rem; }
.success-view > .eyebrow { display: none; }
.success-view h1 { font-size: 1.75rem; margin-bottom: 0.875rem; }
.success-view > p { margin-bottom: 1.375rem; color: #929292; font-size: 0.875rem; }
.success-view .booking-review { margin: 1.75rem 0 1.375rem; text-align: left; }
.success-view .row { justify-content: center; flex-wrap: wrap; margin: 1.5rem 0; }
.date-tile { min-width: 3.75rem; padding: 0.75rem 0.5625rem; border: 1px solid #4c412c; border-radius: 0.75rem; background: #262117; color: var(--gold); text-align: center; }
.date-tile strong { display: block; font-size: 1.5625rem; font-weight: 500; }
.date-tile span { font-size: 0.75rem; letter-spacing: .5px; text-transform: uppercase; }
.booking-cards { display: grid; gap: 1rem; }
.booking-card { display: grid; grid-template-columns: 4.0625rem minmax(0, 1fr) auto; align-items: start; gap: 1.3125rem; }
.booking-card h3 { font-weight: 500; font-size: 1.125rem; margin: 0.1875rem 0 0.5rem; }
.booking-card p { color: #929292; font-size: 0.8125rem; margin: 0 0 0.4375rem; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; margin-top: 1.0625rem; }
.card-actions .text-btn { font-size: 0.75rem; }
.booking-price { margin-bottom: 0.8125rem; text-align: right; color: #ddd; font-size: 1.3125rem; }
.booking-price small { font-size: 0.8125rem; }

/* Owner calendar: the appointment list is usable without a wide table on phones. */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.875rem; margin-bottom: 2rem; }
.stat { display: flex; flex-direction: column; gap: 0.6875rem; padding: 1.3125rem 1.4375rem; border-radius: 0.8125rem; }
.stat > span { color: #949494; font-size: 0.75rem; }
.stat > strong { font-size: 1.9375rem; line-height: 1.1; font-weight: 500; }
.stat > strong > small { font-size: 1.0625rem; color: #858585; font-weight: 400; }
.stat > small { color: #686868; font-size: 0.75rem; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.5rem; }
.calendar-date { display: flex; align-items: center; gap: 0.8125rem; }
.calendar-date .icon-btn { min-width: 2.1875rem; min-height: 2.1875rem; border-radius: .45rem; padding: 0.4375rem; }
.calendar-date .icon-btn svg { width: 1.0625rem; height: 1.0625rem; }
.calendar-date-label { display: flex; align-items: center; position: relative; cursor: pointer; }
.calendar-date-label > span { text-transform: capitalize; font-size: 1.0625rem; }
.calendar-date-label > input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.calendar-date-label:focus-within { outline: 2px solid var(--gold); outline-offset: 0.375rem; border-radius: 0.1875rem; }
.segmented { display: flex; align-items: center; gap: 0.25rem; padding: 0.3125rem; border: 1px solid #303030; border-radius: .45rem; background: #1c1c1c; }
.segmented button { padding: 0.5625rem 1.25rem; min-height: 2.25rem; border: 0; border-radius: .45rem; background: none; color: #929292; font-size: 0.75rem; }
.segmented button.active { background: var(--gold); color: #221c0e; }
.admin-date-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.8125rem; max-width: 39.375rem; margin: 0 0 2.125rem; }
.admin-date-strip .date-button { min-height: 5.5rem; gap: 0.5rem; }
.date-button i { width: 0.1875rem; height: 0.1875rem; border-radius: .45rem; background: transparent; }
.date-button i.has-bookings { background: var(--gold); }
.date-button.selected i.has-bookings { background: #5d4925; }
.agenda { margin-top: 0.5rem; }
.agenda-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.9375rem; padding-bottom: 1.4375rem; margin-bottom: 0.625rem; border-bottom: 1px solid #242424; }
.agenda-heading h2 { font-size: 0.9375rem; font-weight: 500; text-transform: capitalize; }
.agenda-heading > span { font-size: 0.75rem; color: #777; }
.agenda-row { display: grid; grid-template-columns: 4.1875rem 1fr; gap: 1.25rem; margin-top: 1.125rem; }
.agenda-time { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4375rem; padding-top: 1.25rem; }
.agenda-time strong { font-size: 0.8125rem; font-weight: 500; color: #aaa; }
.agenda-time > span { font-size: 0.75rem; color: #5e5e5e; }
.agenda-card { display: flex; align-items: center; gap: 1rem; width: 100%; min-width: 0; min-height: 5.875rem; padding: 1.125rem; border: 1px solid #303030; border-radius: 0.75rem; background: #1b1b1b; text-align: left; }
.agenda-card:hover { border-color: #6c5b3a; }
.agenda-customer-avatar { width: 2.625rem; height: 2.625rem; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: #2e2b23; color: #ceb77e; font-size: 0.75rem; }
.agenda-customer { flex: 1; min-width: 0; }
.agenda-customer > strong { display: block; margin-bottom: 0.4375rem; font-size: 0.9375rem; font-weight: 500; }
.agenda-customer > span { font-size: 0.75rem; color: #969696; }
.agenda-customer i { font-style: normal; padding: 0 0.3125rem; }
.agenda-barber { display: flex; align-items: center; gap: 0.5625rem; min-width: 6.5625rem; }
.agenda-barber .avatar { width: 1.8125rem; height: 1.8125rem; }
.agenda-barber > span { font-size: 0.75rem; color: #aaa; }
.agenda-card-end { display: flex; flex-direction: column; align-items: flex-end; gap: 0.625rem; }
.agenda-card-end small { font-size: 0.75rem; color: #aaa; }
.agenda-card > svg { margin-left: 0.4375rem; width: 1.0625rem; height: 1.0625rem; color: #777; }
.agenda-card.cancelled { opacity: .55; }
.agenda-add { display: flex; align-items: center; justify-content: center; gap: 0.5625rem; width: calc(100% - 5.4375rem); min-height: 3.625rem; margin: 1.375rem 0 0 5.4375rem; border: 1px dashed #4c412e; border-radius: 0.75rem; background: transparent; color: var(--gold); font-size: 0.8125rem; }
.agenda-add svg { width: 1.0625rem; height: 1.0625rem; }
.agenda-add:hover { background: #d9b97605; }
.week-wrap { overflow: auto; padding-bottom: 0.5rem; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(8.125rem, 1fr)); gap: 0.625rem; min-width: 60rem; }
.week-day { min-height: 17.5rem; padding: 0.75rem; border: 1px solid #2c2c2c; border-radius: 0.8125rem; background: #121212; }
.week-heading { width: 100%; padding: 0.25rem 0 1.0625rem; margin-bottom: 0.9375rem; border: 0; border-bottom: 1px solid #2a2a2a; background: transparent; color: #888; text-align: left; font-size: 0.75rem; text-transform: capitalize; }
.week-heading strong { display: block; margin-top: 0.625rem; color: #ddd; font-size: 1.4375rem; font-weight: 500; }
.week-booking { display: block; width: 100%; margin-bottom: 0.625rem; padding: 0.75rem 0.625rem; border: 1px solid #3d3524; border-left: 2px solid var(--gold); border-radius: 0.5rem; background: #211e17; color: #ccc; font-size: 0.75rem; line-height: 1.7; text-align: left; }
.week-booking strong { color: var(--gold); font-size: 0.75rem; font-weight: 500; }
.week-booking span { display: block; color: #888; font-size: 0.75rem; }

/* Profile and management */
.profile-wrap { display: grid; grid-template-columns: 16.25rem minmax(0, 1fr); align-items: start; gap: 1.625rem; }
.profile-intro { text-align: center; padding-top: 2rem; }
.profile-intro .avatar { width: 4.75rem; height: 4.75rem; margin-bottom: 1.3125rem; font-size: 1.6875rem; }
.profile-intro h2 { margin-bottom: 0.5625rem; font-size: 1.375rem; font-weight: 500; }
.profile-intro p { margin-bottom: 1.5rem; color: #929292; font-size: 0.8125rem; }
.profile-wrap > section > h2 { margin-bottom: 1.5625rem; font-size: 1.1875rem; font-weight: 500; }
.profile-wrap form h3 { margin-bottom: 1.375rem; font-size: 0.9375rem; font-weight: 500; }
.profile-wrap form > p { margin-bottom: 1.25rem; }
.manage-tabs { margin-bottom: 1.875rem; }
.manage-list { display: grid; gap: 0.8125rem; }
.manage-row { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: 1.25rem 1.4375rem; }
.manage-row h3 { margin-bottom: 0.375rem; font-size: 1rem; font-weight: 500; }
.manage-row p { color: #929292; font-size: 0.8125rem; }
.manage-row .service-icon { display: grid; place-items: center; width: 2.6875rem; height: 2.6875rem; border-radius: 50%; background: #242018; color: var(--gold); }
.manage-list + p { margin-top: 1.25rem; }
#manage-content > .section-heading h2 { font-size: 1.1875rem; font-weight: 500; }
#manage-content > .panel > h2 { margin-bottom: 1.5rem; font-size: 1.25rem; font-weight: 500; }
.hours-table { display: grid; gap: 0.8125rem; }
.hours-row { display: grid; grid-template-columns: 6.5625rem repeat(4, 1fr) 3.875rem; gap: 0.8125rem; align-items: center; padding-bottom: 0.9375rem; border-bottom: 1px solid #292929; }
.hours-row > span { font-size: 0.8125rem; }
.hours-row .field { margin: 0; }
.hours-row .field label { font-size: 0.75rem; }
.hours-row input { min-width: 0; padding: 0.625rem; font-size: 0.8125rem; }
.hours-row .closed-check { display: grid; gap: 0.75rem; font-size: 0.75rem; color: #929292; }
#hours-form > p, #settings-form > p { margin: 1.25rem 0; }
.block-row { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: 1.125rem 1.25rem; border: 1px solid #2c2c2c; border-radius: 0.75rem; background: #131313; }
.block-row p { margin-bottom: 0.3125rem; font-size: 0.875rem; }
.block-row span { font-size: 0.75rem; color: #929292; }

/* Dialogs and feedback */
dialog { width: min(30.625rem, calc(100% - 2rem)); max-height: 90dvh; padding: 1.8125rem; border: 1px solid #393939; border-radius: 1.25rem; background: #121212; color: var(--text); box-shadow: 0 1.5rem 6.25rem #0009; }
dialog::backdrop { background: #000b; backdrop-filter: blur(0.25rem); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 0.9375rem; margin-bottom: 1.4375rem; }
.dialog-head h2 { font-size: 1.4375rem; font-weight: 500; }
.dialog-head .icon-btn { border: 0; min-width: 2.125rem; min-height: 2.125rem; padding: 0.4375rem; }
.dialog-head .icon-btn svg { width: 1.125rem; height: 1.125rem; }
.dialog-subtitle { margin-bottom: 1.5rem; color: #9d9d9d; font-size: 0.875rem; line-height: 1.7; }
.dialog-subtitle p { margin-bottom: 1.0625rem; }
dialog form > .row { margin-bottom: 1.375rem; font-size: 0.8125rem; line-height: 1.6; }
dialog form > .small { margin-bottom: 1.25rem; }
dialog form > .error { margin: 1.125rem 0; }
dialog .booking-review { padding: 1.1875rem; }
dialog > .small { margin-bottom: 1.0625rem; }
dialog .stack > .row { flex-wrap: wrap; }
.auth-dialog::before { content: ''; display: block; width: 100%; height: 9.0625rem; margin-bottom: 1.75rem; border-radius: 0.8125rem; background: #222 url('/assets/photos/session.jpg') center 50% / cover; filter: grayscale(1); }
.auth-tabs { display: flex; gap: 0.25rem; padding: 0.25rem; margin-bottom: 1.5625rem; border: 1px solid #303030; border-radius: .45rem; background: #1c1c1c; }
.auth-tabs button { flex: 1; min-height: 2.4375rem; padding: 0.5625rem 1.0625rem; border: 0; border-radius: .45rem; background: transparent; color: #999; font-size: 0.8125rem; }
.auth-tabs button.active { background: var(--gold); color: #1d180e; }
#toast { position: fixed; z-index: 100; bottom: 1.5625rem; left: calc(50% + 6.875rem); display: none; max-width: calc(100% - 2.1875rem); padding: 0.9375rem 1.375rem; border: 1px solid #635435; border-radius: 0.75rem; background: #26231c; color: #eee; font-size: 0.875rem; line-height: 1.6; box-shadow: 0 0.9375rem 2.8125rem #0008; transform: translateX(-50%); }
#toast.visible { display: block; }
.loading { padding: 2.8125rem 1.25rem; color: #929292; font-size: 0.875rem; text-align: center; }
.loading::before { content: ''; display: block; width: 1.4375rem; height: 1.4375rem; margin: 0 auto 1.0625rem; border: 2px solid #333; border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1600px) {
  main { padding-top: 2.5rem; }
  .home-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.1875rem; }
  .booking-feature { min-height: 18.4375rem; padding: 2.0625rem; }
  .booking-feature h2 { font-size: 3.5625rem; }
}

@media (max-width: 1150px) {
  .sidebar { width: 12.1875rem; padding-left: 0.9375rem; padding-right: 0.9375rem; }
  .brand-name { font-size: 1.5625rem; }
  .brand-symbol { width: 1.9375rem; }
  .brand-symbol svg { width: 1.6875rem; height: 1.6875rem; }
  .brand { gap: 0.5rem; }
  .workspace { margin-left: 12.1875rem; }
  main, .topbar { padding-left: 1.6875rem; padding-right: 1.6875rem; }
  .demo-bar { padding-left: 1.6875rem; padding-right: 1.6875rem; }
  .home-layout { grid-template-columns: minmax(0, 1fr) 16.25rem; gap: 1.4375rem; }
  .booking-feature { min-height: 15.9375rem; padding: 1.5rem; }
  .booking-feature h2 { font-size: 2.6875rem; }
  .service-copy { padding: 0.9375rem; }
  .service-title-row h3 { font-size: 0.9375rem; }
  .booking-grid { grid-template-columns: minmax(0, 1fr) 15.625rem; gap: 1.4375rem; }
  .booking-summary { padding: 1.25rem; }
  .step-line { margin: 0 0.625rem; }
  .step { font-size: 0.75rem; }
  .agenda-barber { min-width: 4.6875rem; }
  .agenda-card { gap: 0.75rem; }
  #toast { left: calc(50% + 6.0625rem); }
}

@media (max-width: 960px) {
  .sidebar { width: 4.875rem; padding: 1.6875rem 0.75rem; }
  .sidebar .brand { justify-content: center; }
  .sidebar .brand-name, .nav-caption, .sidebar .nav-item > span, .side-location, .sidebar-foot, .side-bottom .btn { display: none; }
  .sidebar nav { margin-top: 3.4375rem; }
  .nav-item { justify-content: center; padding: 0.875rem 0.625rem; }
  .workspace { margin-left: 4.875rem; }
  .home-layout { grid-template-columns: minmax(0, 1fr) 16.875rem; gap: 1.4375rem; }
  .booking-grid { grid-template-columns: minmax(0, 1fr) 16.25rem; }
  .preview-link { display: none; }
  #toast { left: calc(50% + 2.4375rem); }
  .hours-row { grid-template-columns: 5.625rem repeat(4, 1fr) 2.8125rem; gap: 0.5625rem; }
  .profile-wrap { grid-template-columns: 14.375rem 1fr; }
}

@media (max-width: 780px) {
  .home-layout { grid-template-columns: minmax(0, 1fr); }
  .home-secondary { grid-template-columns: 1fr 1fr; align-items: start; gap: 1.5rem; }
  .salon-card { grid-column: 1 / -1; display: grid; grid-template-columns: 12.5rem 1fr; }
  .salon-cover { height: 100%; }
  .booking-feature { min-height: 15.625rem; }
  .booking-grid { grid-template-columns: minmax(0, 1fr); }
  .booking-summary { position: static; margin-top: 0.3125rem; }
  .booking-summary .summary-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5625rem; }
  .booking-summary .notice { display: none; }
  .booking-summary .divider { margin: 0.625rem 0 1.1875rem; }
  .booking-summary h3 { font-size: 1rem; margin-bottom: 1.4375rem; }
  .agenda-barber { display: none; }
  .profile-wrap { grid-template-columns: minmax(0, 1fr); }
  .profile-intro { display: flex; align-items: center; flex-wrap: wrap; gap: 1.0625rem; text-align: left; padding: 1.4375rem; }
  .profile-intro .avatar { width: 3.6875rem; height: 3.6875rem; font-size: 1.4375rem; margin: 0; }
  .profile-intro h2 { font-size: 1.25rem; }
  .profile-intro p { margin: 0; font-size: 0.75rem; }
  .profile-intro .btn { width: auto; margin-left: auto; min-height: 2.5rem; padding: 0.5625rem 1.0625rem; font-size: 0.75rem; }
  .stats-grid { gap: 0.6875rem; }
  .stat { padding: 1.125rem; }
  .stat > span { font-size: 0.75rem; }
}

@media (max-width: 600px) {
  .sidebar { display: none; }
  .workspace { margin-left: 0; }
  .topbar { min-height: 4.875rem; border: 0; padding: calc(0.875rem + env(safe-area-inset-top)) 1.375rem 0.75rem; }
  .desktop-context { display: none; }
  .mobile-brand { display: block; }
  .mobile-brand .brand { gap: 0.5625rem; }
  .mobile-brand .brand-name { font-size: 1.625rem; }
  .mobile-brand .brand-name > span { font-size: 0.75rem; letter-spacing: 0.15rem; margin-top: 0.375rem; }
  .mobile-brand .brand-symbol { width: 1.875rem; height: 2.1875rem; }
  .mobile-brand .brand-symbol svg { width: 1.6875rem; height: 1.6875rem; }
  .top-actions { gap: 0.6875rem; }
  .top-actions .icon-btn { min-width: 2rem; min-height: 2rem; padding: 0.375rem; }
  .top-actions .icon-btn svg { width: 1.1875rem; height: 1.1875rem; }
  .account { width: 2.125rem; height: 2.125rem; font-size: 0.75rem; }
  .demo-bar { margin: 0; padding: 0.5625rem 1.3125rem; min-height: 3rem; gap: 0.625rem; border-top: 1px solid #202020; border-bottom: 1px solid #202020; }
  .demo-description { display: none; }
  .demo-indicator { font-size: 0.75rem; gap: 0.3125rem; }
  .demo-controls { padding: 2px; }
  .demo-controls button { min-height: 1.875rem; padding: 0.3125rem 0.625rem; font-size: 0.75rem; }
  .demo-exit { padding: 0.375rem 0 0.375rem 0.375rem; }
  .demo-exit svg { width: 0.9375rem; height: 0.9375rem; }
  main { min-height: calc(100dvh - 7.8125rem); padding: 1.5625rem 1.375rem 7.1875rem; }
  .mobile-nav { position: fixed; z-index: 30; left: 1rem; right: 1rem; bottom: max(0.75rem, env(safe-area-inset-bottom)); display: flex; justify-content: space-around; align-items: center; min-height: 4.375rem; padding: 0.5rem 0.3125rem; border: 1px solid #333; border-radius: .45rem; background: #0e0e0ef5; box-shadow: 0 0.5rem 1.5625rem #000a; }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4375rem; min-width: 3.875rem; min-height: 3.0625rem; color: #777; font-size: 0.75rem; }
  .mobile-nav a.active { color: var(--gold); }
  .mobile-nav a svg { width: 1.3125rem; height: 1.3125rem; }
  .page-heading { align-items: flex-start; gap: 0.9375rem; margin-bottom: 1.5625rem; }
  .page-heading h1 { font-size: 1.5625rem; letter-spacing: -.5px; margin-bottom: 0.5rem; }
  .page-heading p { font-size: 0.8125rem; line-height: 1.5; }
  .page-heading .eyebrow { display: none; }
  .page-heading > .btn { min-height: 2.4375rem; padding: 0.625rem 0.8125rem; font-size: 0.75rem; white-space: nowrap; }
  .page-heading > .btn svg { width: 0.9375rem; height: 0.9375rem; }
  .page-heading .desktop-only { display: none; }
  .home-heading { align-items: flex-end; margin-bottom: 1.4375rem; gap: 0.75rem; }
  .home-heading h1 { font-size: 1.5rem; letter-spacing: -.5px; }
  .home-heading p { font-size: 0.75rem; margin-bottom: 0.4375rem; }
  .salon-hours { font-size: 0.75rem; gap: 0.3125rem; padding-bottom: 0.1875rem; white-space: nowrap; }
  .salon-hours svg { width: 0.75rem; height: 0.75rem; }
  .booking-feature { min-height: 14.0625rem; padding: 1.4375rem; border-radius: 0.875rem; }
  .booking-feature > img { object-position: 65% 35%; }
  .booking-feature h2 { font-size: 2.6875rem; margin: 0.9375rem 0 1.25rem; }
  .feature-kicker { font-size: 0.75rem; letter-spacing: 1.3px; }
  .booking-feature .btn { padding: 0.625rem 1rem; font-size: 0.75rem; min-height: 2.4375rem; }
  .booking-feature .btn svg { width: 1rem; height: 1rem; }
  .services-section { margin-top: 1.75rem; }
  .section-heading { margin-bottom: 1.0625rem; }
  .section-heading h2 { font-size: 1.1875rem; font-weight: 500; }
  .section-heading > span { font-size: 0.75rem; }
  .service-filters { gap: 0.5rem; margin-bottom: 1.0625rem; }
  .filter { font-size: 0.75rem; min-height: 2.3125rem; padding: 0.5rem 1.0625rem; }
  .service-grid { gap: 0.8125rem; }
  .service-card { border-radius: 0.75rem; }
  .service-photo { aspect-ratio: 1.15; }
  .service-copy { padding: 0.8125rem 0.75rem 0.9375rem; gap: 0.4375rem; }
  .service-title-row h3 { font-size: 0.875rem; }
  .service-title-row > svg { width: 0.8125rem; height: 0.8125rem; }
  .service-detail { gap: 0.375rem; font-size: 0.75rem; }
  .home-layout { display: flex; flex-direction: column; align-items: stretch; gap: 1.75rem; }
  .home-primary, .home-secondary { display: contents; }
  .booking-feature { order: 0; }
  .services-section { order: 1; margin-top: 0; }
  .next-appointment { order: 2; }
  .team-section { order: 3; }
  .salon-card { order: 4; }
  .has-upcoming .booking-feature { display: none; }
  .has-upcoming .next-appointment { order: 0; }
  .next-appointment { padding: 1.25rem; }
  .next-appointment .section-heading h2 { font-size: 1.0625rem; }
  .next-service > img { width: 4.0625rem; height: 4.375rem; }
  .next-service h3 { font-size: 1rem; }
  .next-service p { font-size: 0.8125rem; }
  .barber-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .barber-grid .barber-card { flex-direction: column; align-items: center; gap: 0.8125rem; padding: 1.25rem 0.75rem; text-align: center; }
  .barber-grid .barber-card > svg { display: none; }
  .barber-grid .avatar { width: 3.5625rem; height: 3.5625rem; }
  .barber-grid .barber-card p { font-size: 0.75rem; line-height: 1.5; }
  .barber-grid .barber-card h3 { font-size: 1rem; }
  .salon-card { display: block; grid-column: auto; }
  .salon-cover { height: 10rem; }
  .salon-card-body { padding: 1.25rem; }
  .page-foot { flex-direction: column; gap: 0.625rem; margin-top: 1.875rem; padding-top: 1.25rem; font-size: 0.75rem; }
  .page-foot > span:last-child { gap: 1.25rem; }
  .page-foot button { font-size: 0.75rem; }
  .panel { border-radius: 0.875rem; }
  .steps { margin: 0 0 1.8125rem; }
  .step { font-size: 0; gap: 0; }
  .step.active { font-size: 0.75rem; gap: 0.5rem; }
  .step b { width: 1.8125rem; height: 1.8125rem; font-size: 0.75rem; }
  .step-line { margin: 0 0.625rem; min-width: 0.625rem; }
  .booking-content > h2 { font-size: 1.25rem; margin-bottom: 0.5625rem; }
  .booking-content > p { font-size: 0.8125rem; margin-bottom: 1.375rem; }
  .booking-services { gap: 0.8125rem; }
  .selection-check { width: 1.3125rem; height: 1.3125rem; top: 0.625rem; right: 0.625rem; }
  .booking-grid { gap: 1.5625rem; }
  .booking-actions { margin-top: 1.5625rem; padding-top: 1.375rem; gap: 0.625rem; }
  .booking-actions .btn { padding: 0.75rem 1rem; min-height: 2.75rem; font-size: 0.75rem; gap: 0.5rem; }
  .booking-actions .btn svg { width: 1rem; height: 1rem; }
  .booking-summary { padding: 1.3125rem; }
  .booking-summary .summary-row { margin-bottom: 0.8125rem; gap: 0.75rem; font-size: 0.75rem; }
  .booking-summary h3 { font-size: 1rem; }
  .barber-options { gap: 0.8125rem; }
  .barber-options .barber-card { gap: 0.75rem; min-height: 5.4375rem; padding: 1.0625rem 0.9375rem; }
  .barber-options .barber-card .avatar { width: 2.875rem; height: 2.875rem; }
  .barber-options h3 { font-size: 0.9375rem; }
  .barber-options p { font-size: 0.75rem; }
  .barber-options .barber-card .tag { font-size: 0.75rem; padding: 0.3125rem 0.4375rem; }
  .barber-options .tag svg { width: 0.75rem; height: 0.75rem; }
  .date-head { margin-top: 1.625rem; margin-bottom: 1.1875rem; }
  .date-head h3 { font-size: 1rem; }
  .date-head .row { gap: 0.5rem; }
  .date-head .icon-btn { min-width: 2.125rem; min-height: 2.125rem; }
  .date-strip { gap: 0.4375rem; }
  .date-button { min-height: 5.0625rem; gap: 0.6875rem; padding: 0.75rem 0.1875rem; }
  .date-button > span { font-size: 0.75rem; }
  .date-button > strong { font-size: 1.0625rem; }
  .slot-grid { gap: 0.5625rem; grid-template-columns: repeat(4, 1fr); }
  .slot { padding: 0.6875rem 0.5rem; font-size: 0.75rem; min-height: 2.625rem; }
  .slot-subtitle { font-size: 0.75rem; margin-top: 1.375rem; }
  .booking-review { padding: 1.25rem 1.0625rem; }
  .review-heading { gap: 0.75rem; }
  .review-heading .service-icon { width: 2.5625rem; height: 2.5625rem; }
  .review-heading h3 { font-size: 1rem; }
  .review-heading p { font-size: 0.75rem; }
  .review-info { gap: 1.5rem 0.9375rem; }
  .review-info p { font-size: 0.8125rem; }
  .review-info span { font-size: 0.75rem; }
  .notice { font-size: 0.75rem; padding: 0.9375rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span2 { grid-column: auto; }
  .field input, .field select, .field textarea { font-size: 1rem; }
  .field label { font-size: 0.75rem; }
  .success-view { margin-top: 0.4375rem; }
  .success-view h1 { font-size: 1.5625rem; }
  .success-view > p { font-size: 0.8125rem; }
  .success-view .btn { font-size: 0.75rem; }
  .booking-card { grid-template-columns: 3.25rem minmax(0, 1fr); padding: 1.1875rem 0.9375rem; gap: 0.9375rem; }
  .date-tile { min-width: 0; padding: 0.75rem 0.375rem; }
  .date-tile strong { font-size: 1.5rem; }
  .date-tile span { font-size: 0.75rem; }
  .booking-card h3 { font-size: 1rem; margin-top: 0; }
  .booking-card p { font-size: 0.75rem; }
  .card-actions { gap: 0.5rem; margin-top: 0.875rem; }
  .card-actions .btn { font-size: 0.75rem; min-height: 2.3125rem; padding: 0.5625rem 0.8125rem; gap: 0.4375rem; }
  .card-actions .btn svg { width: 0.875rem; height: 0.875rem; }
  .card-actions .text-btn { font-size: 0.75rem; }
  .booking-card-end { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 0.625rem; }
  .booking-price { margin: 0; font-size: 1.125rem; }
  .booking-price small { font-size: 0.75rem; }
  .booking-card .tag { font-size: 0.75rem; }
  .stats-grid { gap: 0.5rem; margin-bottom: 1.6875rem; }
  .stat { gap: 0.75rem; padding: 1rem 0.75rem; border-radius: 0.75rem; }
  .stat > span { min-height: 1.8125rem; line-height: 1.4; font-size: 0.75rem; }
  .stat > strong { font-size: 1.625rem; }
  .stat > strong > small { font-size: 0.75rem; }
  .stat > small { display: none; }
  .calendar-toolbar { flex-wrap: wrap; gap: 1.1875rem; margin-bottom: 1.5625rem; }
  .calendar-date { justify-content: space-between; gap: 0.625rem; width: 100%; }
  .calendar-date-label { flex: 1; justify-content: center; }
  .calendar-date-label > span { font-size: 1.0625rem; }
  .calendar-date .text-btn { display: none; }
  .segmented { margin: 0 auto; }
  .segmented button { min-height: 2.1875rem; padding: 0.5rem 1.4375rem; font-size: 0.75rem; }
  .admin-date-strip { gap: 0.4375rem; margin-bottom: 1.875rem; }
  .admin-date-strip .date-button { min-height: 5.1875rem; gap: 0.5rem; }
  .agenda-heading { padding-bottom: 1.125rem; }
  .agenda-heading h2 { font-size: 0.8125rem; }
  .agenda-heading > span { font-size: 0.75rem; }
  .agenda-row { grid-template-columns: 2.625rem minmax(0, 1fr); gap: 0.6875rem; margin-top: 1rem; }
  .agenda-time { padding-top: 1.125rem; gap: 0.375rem; }
  .agenda-time strong { font-size: 0.75rem; }
  .agenda-time > span { font-size: 0.75rem; }
  .agenda-card { min-height: 5.6875rem; padding: 0.8125rem 0.6875rem; gap: 0.625rem; border-radius: 0.625rem; flex-wrap: wrap; }
  .agenda-customer-avatar { width: 1.9375rem; height: 1.9375rem; font-size: 0.75rem; }
  .agenda-customer { flex-basis: calc(100% - 2.8125rem); }
  .agenda-customer > strong { font-size: 0.8125rem; margin-bottom: 0.25rem; }
  .agenda-customer > span { font-size: 0.75rem; }
  .agenda-customer i { padding: 0 0.1875rem; }
  .agenda-card-end { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; padding-left: 2.5625rem; }
  .agenda-card-end small { font-size: 0.75rem; }
  .agenda-card .tag { padding: 0.1875rem 0.5rem; font-size: 0.75rem; }
  .agenda-card > svg { display: none; }
  .agenda-add { width: calc(100% - 3.3125rem); margin-left: 3.3125rem; min-height: 3.4375rem; font-size: 0.75rem; }
  .agenda-add svg { width: 0.9375rem; height: 0.9375rem; }
  .profile-wrap { gap: 1.375rem; }
  .profile-intro { padding: 1.375rem; gap: 1rem; }
  .profile-intro .btn { width: 100%; margin-left: 0; margin-top: 0.25rem; }
  .profile-wrap > .panel { padding: 1.375rem; }
  .profile-wrap > section > h2 { font-size: 1.125rem; }
  .manage-tabs { gap: 0.4375rem; margin-bottom: 1.5625rem; }
  .manage-tabs .filter { font-size: 0.75rem; padding: 0.5rem 0.875rem; }
  .manage-row { padding: 1.0625rem 0.9375rem; gap: 0.8125rem; }
  .manage-row .row { gap: 0.75rem; }
  .manage-row h3 { font-size: 0.875rem; }
  .manage-row p { font-size: 0.75rem; }
  .manage-row .btn { padding: 0.5rem 0.75rem; font-size: 0.75rem; min-height: 2.375rem; }
  .manage-row .btn svg { width: 0.875rem; height: 0.875rem; }
  .manage-row .service-icon { width: 2.0625rem; height: 2.0625rem; }
  .manage-row .service-icon svg { width: 1.0625rem; height: 1.0625rem; }
  .manage-row .avatar { width: 2.375rem; height: 2.375rem; }
  #manage-content > .panel { padding: 1.3125rem; }
  #manage-content > .section-heading h2 { font-size: 1rem; }
  #manage-content > .section-heading .btn { font-size: 0.75rem; padding: 0.5rem 0.75rem; }
  .hours-row { grid-template-columns: 1fr 1fr; gap: 0.9375rem; padding: 1.0625rem; border: 1px solid #303030; border-radius: 0.75rem; background: #141414; }
  .hours-row > span { grid-column: 1; font-size: 0.875rem; }
  .hours-row .closed-check { grid-column: 2; grid-row: 1; display: flex; justify-content: flex-end; align-items: center; gap: 0.5625rem; font-size: 0.75rem; }
  .hours-row .field { grid-row: auto; }
  .hours-row input { width: 100%; padding: 0.625rem; font-size: 0.875rem; }
  .hours-row input[type='checkbox'] { width: 1rem; }
  .block-row { padding: 1.0625rem; gap: 0.875rem; }
  .block-row p { font-size: 0.75rem; }
  .block-row span { font-size: 0.75rem; }
  dialog { padding: 1.5rem 1.3125rem; border-radius: 1.1875rem; }
  .dialog-head { margin-bottom: 1.4375rem; }
  .dialog-head h2 { font-size: 1.375rem; }
  .dialog-subtitle { font-size: 0.8125rem; }
  .auth-dialog::before { height: 8.125rem; }
  #toast { bottom: 6.125rem; left: 50%; width: max-content; padding: 0.8125rem 1.1875rem; font-size: 0.75rem; }
}

@media (max-width: 360px) {
  main { padding-left: 1.0625rem; padding-right: 1.0625rem; }
  .demo-bar { padding-left: 1.0625rem; padding-right: 1.0625rem; gap: 0.4375rem; }
  .demo-controls button { font-size: 0.75rem; padding-left: 0.5625rem; padding-right: 0.5625rem; }
  .service-copy { padding-left: 0.6875rem; padding-right: 0.6875rem; }
  .service-title-row h3 { font-size: 0.8125rem; }
  .salon-hours { font-size: 0.75rem; }
  .salon-hours svg { display: none; }
  .booking-actions .btn { font-size: 0.75rem; padding: 0.6875rem 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
