:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --tint: #f3f1ec;
  --ink: #0c0e14;
  --muted: #5b5f6b;
  --faint: #a9adb7;
  --line: #e4e0d6;
  --navy: #16296e;
  --navy-deep: #0e1c50;
  --navy-soft: #e9ecf7;
  --danger: #b3261e;
  --ok: #1f7a4d;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(12, 14, 20, .05), 0 10px 30px rgba(12, 14, 20, .06);
  --display: 'Cinzel', 'Times New Roman', serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --stripes: repeating-linear-gradient(-45deg, var(--navy) 0 9px, #fff 9px 18px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(22, 41, 110, .4); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* The logo has a white background; multiply lets it sit on the warm paper. */
.logo { mix-blend-mode: multiply; filter: brightness(1.015); }

.pole-bar { height: 6px; background: var(--stripes); border-bottom: 1px solid var(--ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 15px/1 var(--body); letter-spacing: .02em; text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: #0c0e14; }
.btn-light:hover { background: var(--navy-soft); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--paper); /* solid: the logo image needs an opaque backdrop to blend into */
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }
.brand { display: block; flex: none; width: 96px; text-decoration: none; }

/* The header logo: the same LIVIS + "✦ BLADEZ ✦" lockup as the hero, with BLADEZ
   set larger relative to the logo so it stays readable at this small size. */
.lockup-compact { display: block; }
.lockup-compact .lockup-name { margin: 3cqw -4cqw 0; padding: 0; gap: 2cqw; }
.lockup-compact .lockup-name::before, .lockup-compact .lockup-name::after { height: 1px; }
.lockup-compact .lockup-name span { gap: 2.5cqw; font-size: 8.5cqw; letter-spacing: 3.6cqw; }
.lockup-compact .lockup-name span::before, .lockup-compact .lockup-name span::after { font-size: 4.5cqw; }
.lockup-compact .lockup-name span::after { margin-left: -3.6cqw; }
.nav { display: flex; gap: 32px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.header-end { display: flex; align-items: center; gap: 10px; }
.header-end .btn { white-space: nowrap; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.lang-switch button {
  padding: 7px 10px; border: 0; border-radius: 7px; background: transparent; cursor: pointer;
  font: 700 12px/1 var(--body); letter-spacing: .08em; color: var(--muted);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */

.hero { padding: 56px 0 80px; text-align: center; }
/* Logo lockup: the pole wordmark from the original logo, with live "BLADEZ" text
   where the logo image said "BARBER". Sized in container units so it scales as one piece. */
/* container-type makes a stacking context, so the multiply blend needs a backdrop inside it. */
.lockup { container-type: inline-size; margin: 0 auto; background: var(--paper); }
.lockup img { width: 100%; }
.lockup-name {
  display: flex; align-items: center; gap: 1.2cqw;
  margin: .9cqw 0 0; padding: 0 2.5cqw; color: var(--navy);
}
.lockup-name::before, .lockup-name::after { content: ""; flex: 1; height: max(1px, .3cqw); background: currentColor; }
.lockup-name span {
  display: flex; align-items: center; gap: 4.3cqw;
  font: 700 5.6cqw/1 var(--display); letter-spacing: 4.6cqw; text-transform: uppercase; color: var(--ink);
}
.lockup-name span::before, .lockup-name span::after { content: "✦"; font-size: 3cqw; letter-spacing: 0; color: var(--navy); }
.lockup-name span::after { margin-left: -4.6cqw; }
.lockup .lockup-scissors { width: 42.7%; margin: 1.3cqw auto 0; }
.hero-lockup { width: min(600px, 100%); }
.hero-tag {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px .9em;
  margin-top: 12px; font: 600 14px/1.5 var(--display);
  letter-spacing: .28em; text-transform: uppercase; color: var(--navy);
}
.hero-tag span + span::before { content: "·"; margin-right: .9em; }
.hero-sub { max-width: 500px; margin: 16px auto 0; font-size: 17px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero-meta {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px;
  font-size: 14px; color: var(--muted);
}
.hero-meta a { text-decoration: none; }
.hero-meta a:hover { color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status.is-open { color: var(--ok); }
.status.is-open::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(31, 122, 77, .15); }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
section[id] { scroll-margin-top: 74px; }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }
.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }

/* Echoes the "—✦ BLADEZ ✦—" rule in the logo. */
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font: 600 13px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--navy);
}
.eyebrow::before, .eyebrow::after { content: "✦"; font-size: 10px; letter-spacing: 0; }
.eyebrow::before { padding-left: 42px; background: linear-gradient(currentColor, currentColor) left center / 34px 1px no-repeat; }
.eyebrow::after { padding-right: 42px; background: linear-gradient(currentColor, currentColor) right center / 34px 1px no-repeat; }
.eyebrow-left { justify-content: flex-start; }
.eyebrow-left::before { display: none; }

h2 {
  margin-top: 14px; font: 600 clamp(30px, 4.2vw, 44px)/1.15 var(--display); letter-spacing: .02em;
}
.lede { margin-top: 12px; color: var(--muted); font-size: 17px; }

/* ---------- Services menu ---------- */

.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.menu-item { padding: 24px 0; border-bottom: 1px solid var(--line); }
.menu-row { display: flex; align-items: baseline; gap: 12px; }
.menu-row h3 { font: 600 19px/1.3 var(--display); letter-spacing: .03em; }
.leader { flex: 1; border-bottom: 2px dotted #c9c6bd; transform: translateY(-5px); min-width: 20px; }
.price { font: 700 20px/1 var(--display); color: var(--navy); }
.menu-meta { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.menu-desc { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 44ch; }
.menu-book { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 14px; color: var(--navy); text-decoration: none; }
.menu-book:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Gallery ---------- */

.lede a { color: var(--navy); font-weight: 600; text-decoration: none; }
.lede a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shot { margin: 0; overflow: hidden; aspect-ratio: 3 / 4; border-radius: var(--radius); background: var(--tint); box-shadow: var(--shadow); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.03); }

/* ---------- Booking ---------- */

.booking { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.booking[hidden] { display: none; }
.booking-steps { display: grid; gap: 16px; min-width: 0; }

.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); scroll-margin-top: 96px;
}
.step h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font: 600 18px/1.3 var(--display); letter-spacing: .03em; }
.step-num {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--navy); color: var(--navy); font: 700 14px/1 var(--body); transition: background-color .2s, color .2s;
}
.step.done .step-num { background: var(--navy); color: #fff; }

/* Service picker */
.svc-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.svc {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.svc input { position: absolute; opacity: 0; pointer-events: none; }
.svc:hover { border-color: var(--faint); }
.svc:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); box-shadow: inset 0 0 0 1px var(--navy); }
.svc:has(input:focus-visible) { outline: 3px solid rgba(22, 41, 110, .4); outline-offset: 2px; }
.svc-name { display: block; font-weight: 600; line-height: 1.3; }
.svc-meta { display: block; font-size: 13px; color: var(--muted); }
.svc-price { font: 700 17px/1 var(--display); color: var(--navy); }

/* Calendar + time slots */
.datetime { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font: 600 16px/1 var(--display); letter-spacing: .04em; }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0 0 2px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 20px; line-height: 1; cursor: pointer;
}
.icon-btn:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.icon-btn:disabled { opacity: .35; cursor: default; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { padding: 4px 0; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.day {
  position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px;
  background: transparent; font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background-color .12s;
}
.day:hover:not(:disabled) { background: var(--navy-soft); }
.day:disabled { color: #c3c5cc; cursor: default; }
.day.full { text-decoration: line-through; }
.day.today { box-shadow: inset 0 0 0 1px var(--faint); }
.day[aria-pressed="true"], .day[aria-pressed="true"]:hover { background: var(--navy); color: #fff; box-shadow: none; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }
.day .dot { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); }
.day[aria-pressed="true"] .dot { background: #fff; }
.cal-legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }

.slots-title { margin: 6px 0 14px; font-weight: 700; }
.slot-group + .slot-group { margin-top: 16px; }
.slot-group h4 { margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot {
  padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color .12s, background-color .12s, color .12s;
}
.slot:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.slot[aria-pressed="true"], .slot[aria-pressed="true"]:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.slot:disabled { background: var(--tint); border-color: transparent; color: #b4b7bf; text-decoration: line-through; cursor: not-allowed; }
.slots-empty { padding: 28px 20px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); font-size: 15px; }

/* Details form */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22, 41, 110, .15); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin-top: 6px; font-size: 13px; color: var(--danger); }
.field-error:empty { display: none; }

/* Summary */
.summary {
  position: sticky; top: 92px; overflow: hidden;
  padding: 24px; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: var(--shadow);
}
.summary::before { content: ""; display: block; height: 8px; margin: -24px -24px 22px; background: var(--stripes); }
.summary h3 { margin-bottom: 8px; font: 600 18px/1.3 var(--display); letter-spacing: .05em; }
.summary dl { margin: 0 0 20px; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.sum-row dt { color: rgba(255, 255, 255, .6); }
.sum-row dd { margin: 0; text-align: right; font-weight: 500; }
.sum-total { border-bottom: 0; align-items: baseline; }
.sum-total dd { font: 700 24px/1 var(--display); }
.summary-error { margin-top: 12px; font-size: 14px; color: #ffb4ab; }
.summary-error:empty { display: none; }
.summary-note { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* Confirmation */
.confirmation {
  max-width: 580px; margin: 0 auto; padding: 44px 32px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  scroll-margin-top: 96px;
}
.confirmation:focus { outline: none; }
.check { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy); color: #fff; }
.confirmation h3 { font: 600 26px/1.25 var(--display); letter-spacing: .02em; }
.conf-details { margin: 24px 0 28px; padding: 6px 20px; border-radius: 12px; background: var(--tint); text-align: left; }
.conf-details div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.conf-details div:last-child { border-bottom: 0; }
.conf-details dt { color: var(--muted); }
.conf-details dd { margin: 0; text-align: right; font-weight: 600; }
.conf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Visit ---------- */

.map { position: relative; overflow: hidden; aspect-ratio: 16 / 7; border: 1px solid var(--line); border-radius: var(--radius); background: #1a1d25; }
.map::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 6px; background: var(--stripes); pointer-events: none; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

.visit-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; margin-top: 48px; }
.visit-heading { font: 600 13px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--navy); }
.hours { width: 100%; margin-top: 12px; border-collapse: collapse; }
.hours th, .hours td { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.hours .is-today th, .hours .is-today td { font-weight: 700; color: var(--navy); }
.today-tag {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; vertical-align: 2px;
  background: var(--navy-soft); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

.visit-card { position: relative; overflow: hidden; padding: 36px 32px 32px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.visit-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--stripes); }
.visit-label { font: 600 13px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.visit-address { margin: 14px 0 22px; font: 600 24px/1.35 var(--display); letter-spacing: .02em; }
.visit-links { list-style: none; margin: 28px 0 0; padding: 0; }
.visit-links li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.visit-links span:first-child { color: rgba(255, 255, 255, .6); }
.visit-links a { text-decoration: none; font-weight: 500; }
.visit-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.visit-note { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .6); }

/* ---------- Footer ---------- */

.site-footer { padding: 56px 0 48px; background: #07080b; color: #f4f2ed; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.footer-lockup { width: min(300px, 100%); margin: 0; }

/* The logo on black: inverting it turns the black letters white, and screen blending drops the
   (now black) background into the footer. Hue-rotate brings the navy back to a light blue. */
.lockup-dark { background: #07080b; }
.lockup-dark .logo { filter: invert(1) hue-rotate(180deg) brightness(1.05); mix-blend-mode: screen; }
.lockup-dark .lockup-name, .lockup-dark .lockup-name span::before, .lockup-dark .lockup-name span::after { color: #9fb0f2; }
.lockup-dark .lockup-name span { color: #fff; }
.footer-text { font-size: 14px; color: rgba(255, 255, 255, .6); }
.footer-credit { margin-top: 4px; }
.footer-credit a { color: #9fb0f2; font-weight: 600; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* ---------- Ever's schedule (admin.html) ---------- */

.header-actions { display: flex; gap: 8px; }
.login { max-width: 440px; padding: 56px 0 88px; }
.login h1 { margin-top: 14px; font: 600 clamp(28px, 4vw, 40px)/1.15 var(--display); letter-spacing: .02em; }
.login-card {
  display: grid; gap: 16px; margin-top: 24px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.admin-error { margin-top: 16px; font-size: 14px; color: var(--danger); }
.admin-error:empty { display: none; }
.admin-notice { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: rgba(31, 122, 77, .1); color: var(--ok); font-size: 14px; font-weight: 600; }
.admin-notice:empty { display: none; }

.admin-top { padding: 48px 0 24px; }
.admin-top h1 { margin-top: 14px; font: 600 clamp(28px, 4vw, 40px)/1.15 var(--display); letter-spacing: .02em; }
.demo-note {
  margin-top: 16px; padding: 12px 16px; border-radius: 10px; background: var(--navy-soft);
  color: var(--navy-deep); font-size: 14px;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.stat { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.stat-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat-value { margin-top: 6px; font: 600 32px/1.1 var(--body); letter-spacing: -.01em; color: var(--ink); }
.stat-sub { margin-top: 6px; font-size: 13px; color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 8px; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.seg button { padding: 8px 14px; border: 0; border-radius: 8px; background: transparent; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.link-btn { border: 0; background: none; padding: 6px 0; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.link-btn:hover { color: var(--danger); }
.link-btn.armed { color: var(--danger); }

.appt-day { margin-top: 28px; }
.appt-day h2 { margin: 0 0 12px; font: 600 15px/1.3 var(--body); letter-spacing: .02em; color: var(--muted); }
.appt-day h2 strong { color: var(--ink); }
.appt {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 16px 20px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.appt-time strong { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.appt-time span { font-size: 13px; color: var(--muted); }
.appt-name { font-weight: 700; }
.appt-svc { font-size: 14px; color: var(--muted); }
.appt-notes { margin-top: 4px; font-size: 14px; font-style: italic; color: var(--ink); }
.appt-new { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.appt-actions { display: flex; gap: 8px; }
.appt.cancelled { opacity: .6; }
.appt.cancelled .appt-time strong { text-decoration: line-through; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.empty { margin-top: 28px; padding: 48px 24px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); }

/* ---------- Dark sections (the black of the Livis Bladez banner) ---------- */

/* Tokens are swapped locally so the components inside keep working unchanged. */
.section-dark {
  --ink: #f4f2ed;
  --muted: #a3a7b3;
  --line: rgba(255, 255, 255, .1);
  --navy: #9fb0f2; /* navy lifted so accents stay readable on black */
  --navy-soft: rgba(159, 176, 242, .14);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(22, 41, 110, .5), transparent 70%),
    #0a0c11;
}
.section-dark :focus-visible { outline-color: rgba(159, 176, 242, .6); }
.section-dark .leader { border-bottom-color: rgba(255, 255, 255, .2); }
.section-dark .price { color: #fff; }
.section-dark .visit-card { background: #14171f; border: 1px solid var(--line); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking { grid-template-columns: 1fr; }
  .summary { position: static; }
}

@media (max-width: 860px) {
  .menu { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; gap: 40px; }
  .datetime { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  /* Photos become a swipeable row on phones: the row scrolls sideways, never the page. */
  .gallery {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 78%; scroll-snap-align: start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: 66px; }
  .brand { width: 86px; }
  .header-end { gap: 6px; }
  .header-end .btn { padding: 10px 12px; }
  .lang-switch button { padding: 7px 8px; }
  .hero { padding: 36px 0 56px; }
  .hero-tag span + span::before { display: none; }
  .hero-sub { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .step { padding: 20px 16px; }
  .fields { grid-template-columns: 1fr; }
  .map { aspect-ratio: 1 / 1; }
  .visit-grid { margin-top: 32px; }
  .confirmation { padding: 32px 20px; }
  .conf-details { padding: 4px 14px; }
  .footer-inner { gap: 20px; }
  .appt { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .appt-time { display: flex; align-items: baseline; gap: 10px; }
}

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

/* ---------- Guide (guide.html) and help links ---------- */

.admin-help, .login-help { margin-top: 10px; font-size: 15px; }
.login-help { margin-top: 18px; }
.admin-help a, .login-help a { color: var(--navy); font-weight: 600; text-decoration: none; }
.admin-help a:hover, .login-help a:hover { text-decoration: underline; text-underline-offset: 3px; }

.guide { max-width: 760px; padding-block: 48px 80px; }
.guide h1 { margin-top: 14px; font: 600 clamp(28px, 4vw, 40px)/1.15 var(--display); letter-spacing: .02em; text-wrap: balance; }
.guide .lede { max-width: 60ch; }
.guide-section { margin-top: 40px; }
.guide-section h2 { margin: 0 0 12px; font: 600 20px/1.3 var(--display); letter-spacing: .03em; text-wrap: balance; }
.guide-section p, .guide-section li { max-width: 65ch; color: var(--muted); }
.guide-section p + p, .guide-section ol + p, .guide-section .guide-devices + p { margin-top: 12px; }
.guide-section ol, .guide-section ul { display: grid; gap: 8px; margin: 0; padding-left: 22px; }
.guide-section strong { color: var(--ink); font-weight: 600; }
.guide-url {
  display: inline-block; margin-top: 4px; padding: 8px 12px; border-radius: 8px;
  background: var(--navy-soft); color: var(--navy-deep); font-weight: 600; word-break: break-all;
}
.guide-devices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.guide-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.guide-card h3 { margin-bottom: 10px; font: 700 15px/1.3 var(--body); color: var(--ink); }
.guide-back { margin-top: 44px; }

@media (max-width: 640px) {
  .guide-devices { grid-template-columns: 1fr; }
}

/* ---------- Earnings dashboard and website photos (admin.html) ---------- */

.btn:disabled { opacity: .5; cursor: not-allowed; }

.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 18px; }
.panel-title { margin: 0; font: 600 18px/1.3 var(--display); letter-spacing: .04em; color: var(--ink); }
.panel-note { font-size: 13px; color: var(--muted); }

.earn {
  margin-top: 24px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
}
.earn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; }
.earn-value { margin-top: 6px; font: 600 52px/1 var(--body); letter-spacing: -.02em; color: var(--ink); }
.earn-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.earn-tile { padding: 16px; border-radius: 12px; background: var(--tint); }
.earn-tile-value { margin-top: 6px; font: 600 26px/1.1 var(--body); letter-spacing: -.01em; color: var(--ink); }

.earn-chart { position: relative; grid-column: 1 / -1; margin: 8px 0 0; }
.earn-chart-title { margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.chart svg { display: block; max-width: 100%; }
.chart-tick { font: 500 11px var(--body); fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart-x { font: 500 12px var(--body); fill: var(--muted); }
.chart-x.is-today { font-weight: 700; fill: var(--ink); }
.chart-value { font: 700 12px var(--body); fill: var(--ink); font-variant-numeric: tabular-nums; }
.chart-hit { cursor: pointer; }
.chart-tip {
  position: absolute; z-index: 2; transform: translate(-50%, -100%);
  padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none;
}

.coming-up { margin-top: 32px; }
.coming-up + .stats { margin-top: 12px; }

.photos { margin-top: 48px; padding: 28px 0 24px; border-top: 1px solid var(--line); }
.photos-head { align-items: center; margin-bottom: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.photo-grid .empty { grid-column: 1 / -1; margin-top: 0; }
.photo { position: relative; margin: 0; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 12px; background: var(--tint); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove { position: absolute; right: 8px; bottom: 8px; left: 8px; }

@media (max-width: 760px) {
  .earn-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .earn { padding: 18px 16px; }
  .earn-value { font-size: 48px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Booking alerts box (admin.html) ---------- */

.notify {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--navy-soft);
}
.notify.is-on { background: rgba(31, 122, 77, .09); }
.notify-text { display: grid; gap: 2px; min-width: 0; }
.notify-title { font-weight: 700; color: var(--ink); }
.notify.is-on .notify-title::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 2px;
  border-radius: 50%; background: var(--ok);
}
.notify-sub { font-size: 14px; color: var(--muted); }
.notify-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
