/* ---------- Themes (pick one in config.js, or switch live from the demo bar) ---------- */
:root,
[data-theme="classic"] {
  --bg: #0e0d0c;
  --bg-alt: #151311;
  --surface: #1c1917;
  --surface-2: #26221f;
  --line: #322d28;
  --text: #f3ede4;
  --muted: #a39b8f;
  --accent: #c9a25e;
  --accent-ink: #1a1408;
  --accent-soft: rgba(201, 162, 94, 0.14);
  --ok: #6fbf8a;
  --warn: #e0b04f;
  --bad: #e06a5a;
  --info: #7aa7e0;
  --pole-a: #b3261e;
  --pole-b: #f3ede4;
  --pole-c: #1d3f8f;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
[data-theme="modern"] {
  --bg: #f5f4f0;
  --bg-alt: #ebe9e3;
  --surface: #ffffff;
  --surface-2: #f2f1ec;
  --line: #dddad2;
  --text: #121212;
  --muted: #66635c;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 90, 31, 0.1);
  --ok: #1f9d55;
  --warn: #c98a00;
  --bad: #d23c2a;
  --info: #2f6fd6;
  --shadow: 0 20px 60px rgba(20, 20, 20, 0.12);
  color-scheme: light;
}
[data-theme="vintage"] {
  --bg: #f1e8d8;
  --bg-alt: #e8dcc6;
  --surface: #fbf6ec;
  --surface-2: #f3eadb;
  --line: #d9c9ac;
  --text: #2a1d14;
  --muted: #76614d;
  --accent: #a8231b;
  --accent-ink: #fbf6ec;
  --accent-soft: rgba(168, 35, 27, 0.1);
  --ok: #2e7d4f;
  --warn: #b07d14;
  --bad: #a8231b;
  --info: #1d3f8f;
  --shadow: 0 20px 60px rgba(60, 40, 20, 0.16);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-alt); }
.kicker { margin: 0 0 10px; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.h2 {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font: 800 clamp(40px, 6vw, 72px)/0.95 "Big Shoulders Display", Impact, sans-serif;
  letter-spacing: 0.005em; text-transform: uppercase; text-wrap: balance;
}
.lead { color: var(--muted); font-size: 18px; max-width: 52ch; margin: -18px 0 24px; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-btn:hover { border-color: var(--text); }

/* ---------- Demo bar + nav ---------- */
.demo-bar {
  position: relative; z-index: 60; display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 7px 16px; font-size: 12.5px; color: #e9e4da; background: #000; text-align: center;
}
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.25); flex: none; }
.demo-theme select { background: #1b1b1b; color: #e9e4da; border: 1px solid #333; border-radius: 6px; padding: 2px 6px; font-size: 12px; }
@media (max-width: 640px) { .demo-bar > span:nth-child(2) { font-size: 11.5px; text-align: left; } }

.nav {
  position: fixed; top: 34px; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100% - 1160px) / 2));
  color: #fff; transition: background 0.3s, top 0.3s, color 0.3s, box-shadow 0.3s;
}
.nav.solid { background: color-mix(in srgb, var(--bg) 88%, transparent); color: var(--text); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 22px/1 "Big Shoulders Display", sans-serif; letter-spacing: 0.06em; }
.brand-pole {
  width: 10px; height: 26px; border-radius: 5px;
  background: repeating-linear-gradient(-45deg, var(--pole-a, #b3261e) 0 5px, #fff 5px 10px, var(--pole-c, #1d3f8f) 10px 15px, #fff 15px 20px);
  background-size: 100% 28px; animation: pole 1.6s linear infinite;
}
@keyframes pole { to { background-position: 0 28px; } }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; font-weight: 550; }
.nav-links a { text-decoration: none; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-admin { padding-left: 26px; border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 30%, transparent); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { background: none; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 999px; padding: 6px 11px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; height: 320vh; background: #050505; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: -3%; will-change: transform; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.hero-media video, .hero-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0) 70%),
    linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 35%),
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 22%);
}
.hero-spot { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 40%), rgba(255,240,210,0.35), transparent 60%); }
.hero-copy { position: absolute; left: max(16px, calc((100% - 1160px) / 2)); right: 16px; top: 50%; transform: translateY(-56%); max-width: 640px; }
.chapter { position: absolute; inset: auto 0 auto 0; top: 0; transform: translateY(-50%); opacity: 0; pointer-events: none; }
.chapter .kicker { color: var(--accent); }
.chapter h1, .chapter h2 {
  margin: 0; white-space: pre-line;
  font: 900 clamp(56px, 10vw, 128px)/0.86 "Big Shoulders Display", Impact, sans-serif; text-transform: uppercase; letter-spacing: 0.005em;
}
.chapter p:last-child { margin: 18px 0 0; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,0.82); max-width: 40ch; }
.chapter .line { display: block; overflow: hidden; }
.chapter .line > span { display: block; }
.hero-cta { position: absolute; left: max(16px, calc((100% - 1160px) / 2)); bottom: max(36px, 7vh); display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-phone { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.35); padding-bottom: 2px; }
.hero-progress { position: absolute; right: max(16px, calc((100% - 1160px) / 2)); top: 50%; transform: translateY(-50%); width: 3px; height: 140px; background: rgba(255,255,255,0.18); border-radius: 3px; overflow: hidden; }
.hero-progress i { position: absolute; left: 0; right: 0; top: 0; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.hero-scroll { position: absolute; right: max(16px, calc((100% - 1160px) / 2)); bottom: max(36px, 7vh); display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); transition: opacity 0.4s; }
.hero-scroll i { width: 1px; height: 36px; background: linear-gradient(rgba(255,255,255,0.8), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero-badge { position: absolute; top: 110px; right: max(16px, calc((100% - 1160px) / 2)); padding: 6px 12px; font-size: 12px; border-radius: 999px; background: rgba(0,0,0,0.5); border: 1px dashed rgba(255,255,255,0.35); color: rgba(255,255,255,0.8); backdrop-filter: blur(6px); }
@media (max-width: 720px) {
  .hero-copy { top: 46%; }
  .hero-progress { display: none; }
  .hero-scroll { display: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.5) 100%); }
  .hero-badge { top: 118px; left: 16px; right: auto; }
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.svc { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 26px; background: var(--bg); cursor: pointer; text-align: left; border: 0; transition: background 0.2s; }
.section-alt .svc { background: var(--bg-alt); }
.svc:hover { background: var(--surface); }
.svc h3 { margin: 0; font: 800 26px/1.05 "Big Shoulders Display", sans-serif; text-transform: uppercase; letter-spacing: 0.01em; }
.svc .price { font: 800 26px/1.05 "Big Shoulders Display", sans-serif; color: var(--accent); }
.svc p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14.5px; }
.svc .meta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--muted); }
.svc .go { font-weight: 650; color: var(--text); opacity: 0; transform: translateX(-6px); transition: 0.2s; }
.svc:hover .go, .svc:focus-visible .go { opacity: 1; transform: none; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent); letter-spacing: 0.02em; }
@media (hover: none) { .svc .go { opacity: 1; transform: none; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.barber { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.avatar {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: 12px; margin-bottom: 18px; overflow: hidden;
  display: grid; place-items: center; font: 900 88px/1 "Big Shoulders Display", sans-serif; color: rgba(255,255,255,0.92);
  background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--c) 85%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 45%, #000) 100%);
}
.avatar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 9px); }
.barber h3 { margin: 0; font: 800 28px/1 "Big Shoulders Display", sans-serif; text-transform: uppercase; }
.barber .role { margin: 4px 0 16px; color: var(--muted); font-size: 14px; }
.barber .days { display: flex; gap: 4px; margin-bottom: 18px; }
.barber .days span { flex: 1; text-align: center; padding: 5px 0; border-radius: 6px; font-size: 11px; font-weight: 650; background: var(--surface-2); color: var(--muted); }
.barber .days span.on { background: var(--accent-soft); color: var(--accent); }
.barber .btn { width: 100%; }

/* ---------- Reminder promo + phone mock ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.phone-stage { display: grid; place-items: center; padding: 10px 0; }
.phone {
  --pw: 300px;
  position: relative; width: var(--pw); max-width: 100%; height: 600px; border-radius: 46px; padding: 12px;
  background: #0b0b0b; box-shadow: var(--shadow), inset 0 0 0 2px #2a2a2a; color: #111;
}
.phone-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #f2f2f7; display: flex; flex-direction: column; }
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #0b0b0b; z-index: 3; }
.phone-head { padding: 44px 16px 10px; text-align: center; background: rgba(248,248,250,0.94); border-bottom: 1px solid #e3e3e8; }
.phone-head .av { width: 40px; height: 40px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(#a9adb7, #868b96); color: #fff; font-weight: 700; font-size: 15px; }
.phone-head b { display: block; font-size: 12.5px; font-weight: 600; }
.phone-head small { font-size: 10.5px; color: #8a8a8e; }
.phone.wa .phone-screen { background: #efe7de; }
.phone.wa .phone-head { background: #075e54; color: #fff; border: 0; }
.phone.wa .phone-head small { color: rgba(255,255,255,0.75); }
.phone-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: none; }
.phone-msgs::-webkit-scrollbar { display: none; }
.stamp { align-self: center; font-size: 10.5px; color: #8a8a8e; margin: 8px 0 2px; text-align: center; }
.bubble { max-width: 82%; padding: 8px 12px; border-radius: 18px; font-size: 13.5px; line-height: 1.35; animation: pop 0.35s cubic-bezier(.2,.9,.3,1.3) both; }
.bubble.in { align-self: flex-start; background: #e5e5ea; color: #111; border-bottom-left-radius: 6px; }
.bubble.out { align-self: flex-end; background: #0a84ff; color: #fff; border-bottom-right-radius: 6px; }
.phone.wa .bubble.in { background: #fff; }
.phone.wa .bubble.out { background: #d9fdd3; color: #111; }
.bubble .hint { display: block; margin-top: 4px; font-size: 11.5px; opacity: 0.65; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9aa0; animation: blink 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.96); } }
.phone-actions { display: flex; gap: 8px; padding: 10px 12px 18px; background: rgba(248,248,250,0.94); border-top: 1px solid #e3e3e8; }
.phone.wa .phone-actions { background: #f0f0f0; }
.phone-actions button { flex: 1; min-height: 40px; border-radius: 20px; border: 1px solid #c7c7cc; background: #fff; font-size: 13px; font-weight: 600; color: #0a84ff; cursor: pointer; }
.phone-actions button.no { color: #d33; }
.phone-actions button:hover { background: #f4f8ff; }
.phone-time { position: absolute; top: 13px; left: 30px; z-index: 4; font-size: 12px; font-weight: 650; color: #111; }
.phone.wa .phone-time { color: #fff; }
.phone-lock { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; padding-top: 70px; background: linear-gradient(160deg, #1d2b3a, #3b2a3f 60%, #5b3b2f); color: #fff; transition: opacity 0.4s, transform 0.4s; }
.phone-lock .clock { font-size: 64px; font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.phone-lock .date { font-size: 13px; opacity: 0.8; margin-bottom: 26px; }
.notif { width: calc(100% - 24px); padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,0.22); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 12.5px; line-height: 1.35; animation: pop 0.45s cubic-bezier(.2,.9,.3,1.3) both; cursor: pointer; }
.notif b { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 3px; }
.notif b small { opacity: 0.7; font-weight: 500; }
.phone-lock.gone { opacity: 0; transform: translateY(-20px); pointer-events: none; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.review { margin: 0; padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.review .stars { color: var(--accent); letter-spacing: 3px; font-size: 15px; }
.review blockquote { margin: 12px 0 18px; font-size: 17px; line-height: 1.5; }
.review figcaption { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- Hours ---------- */
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours td { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today td { color: var(--accent); font-weight: 700; }
.hours tr.closed td:last-child { color: var(--muted); }

.footer { padding: 34px 0 100px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-in { display: flex; gap: 22px; flex-wrap: wrap; justify-content: space-between; }
.footer a { text-decoration: none; }
.fab { position: fixed; z-index: 40; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: 0.3s; }
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 821px) { .fab { display: none; } }

/* ---------- Booking dialog ---------- */
.booking { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--text); }
.booking::backdrop { background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.booking[open] .bk-shell { animation: rise 0.35s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.bk-shell {
  position: absolute; inset: 0; margin: auto; width: min(1020px, 100% - 32px); height: min(700px, 100% - 48px);
  display: grid; grid-template-columns: 300px 1fr; border-radius: 22px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.bk-side { padding: 28px; background: var(--surface-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.bk-side .shop { display: flex; align-items: center; gap: 10px; font: 900 20px/1 "Big Shoulders Display", sans-serif; letter-spacing: 0.05em; }
.bk-side h4 { margin: 0; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sum-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.sum-row svg { flex: none; margin-top: 2px; color: var(--muted); }
.sum-row .empty { color: var(--muted); }
.sum-total { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-weight: 700; }
.bk-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.bk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.bk-steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 13px; overflow-x: auto; scrollbar-width: none; }
.bk-steps li { display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.bk-steps li b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); font-size: 11.5px; }
.bk-steps li.on { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.bk-steps li.on b { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bk-steps li.done b { background: var(--surface-2); color: var(--accent); }
.bk-steps li.done { cursor: pointer; }
.bk-body { flex: 1; overflow-y: auto; padding: 26px; }
.bk-body h3 { margin: 0 0 18px; font: 800 30px/1 "Big Shoulders Display", sans-serif; text-transform: uppercase; }
.bk-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.opt-list { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; cursor: pointer;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color 0.15s, background 0.15s;
}
.opt:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.opt .o-main { flex: 1; min-width: 0; }
.opt .o-main b { display: block; font-size: 15.5px; }
.opt .o-main small { color: var(--muted); font-size: 13px; }
.opt .o-end { text-align: right; font-weight: 700; white-space: nowrap; }
.opt .o-end small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.opt .dot-av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 900 20px/1 "Big Shoulders Display", sans-serif; color: #fff; background: var(--c, var(--muted)); }

.picker { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-weight: 700; }
.cal-head .icon-btn { width: 34px; height: 34px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: 11.5px; color: var(--muted); padding: 4px 0 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.cal-grid button { aspect-ratio: 1; border: 0; border-radius: 10px; background: var(--surface-2); font-weight: 650; font-size: 14px; cursor: pointer; position: relative; }
.cal-grid button:hover:not([disabled]) { outline: 1px solid var(--accent); }
.cal-grid button[disabled] { background: transparent; color: color-mix(in srgb, var(--muted) 55%, transparent); cursor: default; font-weight: 450; }
.cal-grid button.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-grid button.sel { background: var(--accent); color: var(--accent-ink); }
.slots { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.slots .day-label { font-weight: 700; margin-bottom: 4px; font-size: 14px; }
.slot { min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 650; font-variant-numeric: tabular-nums; cursor: pointer; }
.slot:hover { border-color: var(--accent); }
.slot.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slots .none { color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .picker { grid-template-columns: 1fr; } .slots { max-height: none; display: grid; grid-template-columns: repeat(3, 1fr); } .slots .day-label, .slots .none { grid-column: 1 / -1; } }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .lbl { font-size: 13.5px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 70px; resize: vertical; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.seg input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--accent); }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin: 4px 0 0; }

.done { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; }
.done-mark { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); margin-bottom: 14px; }
.done-mark svg { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.5s 0.15s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done .ref { display: inline-block; margin: 6px 0 18px; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.done .muted { color: var(--muted); }
.preview-box { margin-top: 22px; padding: 18px; border-radius: 16px; border: 1px dashed var(--line); background: var(--surface-2); }
.preview-box b { display: block; margin-bottom: 4px; }
.preview-box p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.done .phone { --pw: 260px; height: 520px; }
.status-note { margin-top: 12px; font-size: 14px; font-weight: 600; }
@media (max-width: 900px) { .done { grid-template-columns: 1fr; } .done .phone { margin: 0 auto; } }

@media (max-width: 820px) {
  .bk-shell { inset: 0; width: 100%; height: 100%; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: auto 1fr; border: 0; }
  .bk-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .bk-side .shop, .bk-side h4, .bk-side .sum-row.is-empty { display: none; }
  .bk-side .sum-row { font-size: 13px; gap: 6px; }
  .bk-side .sum-row svg { width: 14px; height: 14px; margin-top: 1px; }
  .bk-side .sum-total { margin: 0 0 0 auto; padding: 0; border: 0; gap: 6px; }
  .bk-top { padding: 12px 16px; }
  .bk-body { padding: 20px 16px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Barber view (admin.html) ---------- */
.admin .demo-bar { position: sticky; top: 0; }
.adm-top { position: sticky; top: 33px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(16px, calc((100% - 1160px) / 2)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.adm-date { display: flex; align-items: center; gap: 6px; }
.adm-date .icon-btn { width: 34px; height: 34px; }
.adm-date-label { background: none; border: 0; font-weight: 700; font-size: 15px; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.adm-date-label:hover { background: var(--surface); }
.adm { padding: 36px 0 80px; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.adm-head .h2 { margin: 0 0 6px; font-size: clamp(36px, 5vw, 56px); }
.adm-sub { margin: 0; color: var(--muted); font-size: 14px; }
.adm-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 550; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; }
.toggle input { accent-color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px; }
.stat { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font: 800 34px/1 "Big Shoulders Display", sans-serif; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:last-child { grid-column: 1 / -1; } }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .adm-grid { grid-template-columns: 1fr; } }
.sched-card, .card { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.card { padding: 18px; margin-bottom: 18px; }
.card h3 { margin: 0 0 12px; font: 800 22px/1 "Big Shoulders Display", sans-serif; text-transform: uppercase; }
.sched { overflow-x: auto; }
.sched-closed { padding: 60px; text-align: center; color: var(--muted); }
.sched-in { position: relative; display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(150px, 1fr)); min-width: calc(56px + var(--cols) * 150px); padding: 0 12px 16px 0; }
.col-head { position: sticky; top: 0; height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 10px; font-weight: 700; border-bottom: 1px solid var(--line); background: var(--surface); z-index: 3; }
.col-head .dot-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 900 14px/1 "Big Shoulders Display", sans-serif; color: #fff; background: var(--c); }
.col-body { position: relative; margin-top: 10px; }
.col { border-left: 1px solid var(--line); }
.col.off .col-body { background: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--line) 50%, transparent) 8px 9px); }
.off-label { position: absolute; top: 12px; left: 10px; font-size: 12px; color: var(--muted); }
.axis .col-body span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.grid-lines { position: absolute; left: 56px; right: 12px; top: 62px; pointer-events: none; }
.grid-lines i { position: absolute; left: 0; right: 0; border-top: 1px dashed color-mix(in srgb, var(--line) 80%, transparent); }
.now { position: absolute; left: -6px; right: 0; border-top: 2px solid var(--bad); z-index: 2; }
.now::before { content: ""; position: absolute; left: -4px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.now em { position: absolute; right: 0; top: -20px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--bad); }
.blk { position: absolute; left: 6px; right: 6px; z-index: 1; display: flex; flex-direction: column; gap: 1px; padding: 5px 8px 5px 10px; border-radius: 8px; overflow: hidden; text-align: left; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--sc) 40%, transparent); background: color-mix(in srgb, var(--sc) 14%, var(--surface)); font-size: 12px; line-height: 1.25; transition: transform 0.15s, box-shadow 0.15s; }
.blk::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--sc); }
.blk:hover { transform: translateX(2px); box-shadow: 0 6px 18px rgba(0,0,0,0.2); z-index: 2; }
.blk-t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk-s, .blk-st { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk-st { color: var(--sc); font-weight: 650; }
.blk.st-cancelled { opacity: 0.55; background: transparent; border-style: dashed; }
.blk.st-cancelled .blk-t { text-decoration: line-through; }
.blk.st-completed { opacity: 0.6; }
.blk.is-web { box-shadow: 0 0 0 2px var(--accent); }
.feed { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow-y: auto; }
.feed li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.feed li:last-child { border: 0; }
.feed li.empty { display: block; color: var(--muted); cursor: default; }
.feed time { font-weight: 700; font-variant-numeric: tabular-nums; }
.feed time small { display: block; font-weight: 500; color: var(--muted); font-size: 10.5px; }
.feed b { display: block; font-weight: 650; }
.feed span { color: var(--muted); }
.feed .ev-reminded b, .tl .ev-reminded { color: var(--warn); }
.feed .ev-confirmed b, .tl .ev-confirmed { color: var(--ok); }
.feed .ev-cancelled b, .feed .ev-cancelled_shop b, .feed .ev-noshow b, .tl .ev-cancelled, .tl .ev-noshow { color: var(--bad); }
.flow { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: f; }
.flow li { position: relative; padding: 0 0 14px 34px; font-size: 13.5px; counter-increment: f; }
.flow li::before { content: counter(f); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 10.5px; top: 24px; bottom: 2px; border-left: 1px dashed var(--line); }
.flow b { display: block; }
.flow span { color: var(--muted); }
.flow code { font-size: 11.5px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.drawer { margin: 0 0 0 auto; height: 100%; max-height: none; width: min(440px, 100%); padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--surface); color: var(--text); }
.drawer::backdrop { background: rgba(0,0,0,0.45); }
.drawer[open] { animation: slide 0.3s cubic-bezier(.2,.8,.2,1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-in { padding: 22px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer h2 { margin: 0 0 4px; font: 800 34px/1 "Big Shoulders Display", sans-serif; text-transform: uppercase; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--sc); background: color-mix(in srgb, var(--sc) 15%, transparent); }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 20px 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.tl { list-style: none; margin: 0 0 22px; padding: 0 0 0 16px; border-left: 2px solid var(--line); font-size: 13.5px; }
.tl li { position: relative; padding: 0 0 12px; }
.tl li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid currentColor; }
.tl time { display: block; font-size: 11.5px; color: var(--muted); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: 0.3s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) { .adm-top .brand span:last-child { display: none; } .adm-date-label { font-size: 13px; } }
