@font-face {
  font-family: "Tajawal";
  src: url("/fonts/Tajawal-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("/fonts/Tajawal-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Tajawal";
  src: url("/fonts/Tajawal-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/CormorantGaramond-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/CormorantGaramond-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --wine: #5e604c;
  --wine-deep: #4b4d3c;
  --cream: #faf8f3;
  --cream-deep: #f3e5cc;
  --beige: #e9ebe1;
  --beige-2: #b5b9a0;
  --gold: #a89580;
  --ink: #2f3027;
  --muted: #4b4d3c;
  --line: #d5d8c6;
  --white: #fffdfb;
  --ok: #1c7a45;
  --ok-soft: #e7f5ec;
  --wa: #1e8a46;
  --shadow: 0 12px 30px rgba(75, 77, 60, 0.10);
  --font: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream-deep);
  line-height: 1.55;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.shell {
  width: min(100%, 460px);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--cream);
  position: relative;
  padding-bottom: env(safe-area-inset-bottom);
}
.brand-lockup, .desk-nav, .site-footer { display: none; }
html, body { overflow-x: clip; max-width: 100%; }
iframe, img, video, table { max-width: 100%; }
.topbar {
  min-height: calc(64px + env(safe-area-inset-top));
  height: auto;
  background: var(--wine);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: env(safe-area-inset-top);
  padding-inline: max(8px, env(safe-area-inset-left), env(safe-area-inset-right));
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar .brand-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 20px;
}
.brand svg { width: 28px; height: 28px; }
.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--cream);
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.drawer, .backdrop { display: none; }
.nav-toggle:checked ~ .backdrop,
.nav-toggle:checked ~ .drawer { display: block; }
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(58, 36, 48, 0.35);
  z-index: 40;
}
.drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: min(100%, 320px);
  background: var(--cream);
  padding: 22px 18px;
  box-shadow: var(--shadow);
}
.drawer a, .drawer button.linkish {
  display: block;
  width: 100%;
  text-align: start;
  background: transparent;
  border: 0;
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--wine);
}
.drawer a:hover, .drawer button.linkish:hover { background: var(--beige); }
.lang-row { display: flex; gap: 8px; margin-top: 16px; }
.lang-row button, .lang-row span {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  padding: 8px;
  text-align: center;
  font-weight: 700;
}
.lang-row .on { background: var(--wine); color: var(--cream); border-color: var(--wine); }

.hero {
  margin: 14px;
  min-height: 460px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background-color: #5e604c;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-color: #5e604c;
  background-image: url("/images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(75, 77, 60, 0.82), rgba(94, 96, 76, 0.06) 58%);
}
.live-status {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: calc(100% - 28px);
}
.live-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 253, 251, 0.95);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  max-width: 100%;
}
.live-hours {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 253, 251, 0.95);
  border-radius: 999px;
  padding: 5px 12px;
  line-height: 1.4;
}
.hourglass {
  display: none;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: inherit;
}
.live-status.is-imminent .hourglass { display: inline-flex; }
.hourglass svg {
  display: block;
  transform-origin: 50% 50%;
  animation: hourglass-flip 1.6s ease-in-out infinite;
}
@keyframes hourglass-flip {
  0% { transform: rotate(0deg); }
  30% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  80% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hourglass svg { animation: none; }
}
.live-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live-badge.is-open { color: #2e7d32; font-weight: 700; }
.live-badge.is-open .dot { background: #2e7d32; }
.live-badge.is-closed { color: #c62828; font-weight: 700; }
.live-badge.is-closed .dot { background: #c62828; }
.hero-copy {
  position: absolute;
  z-index: 2;
  inset-inline: 18px;
  bottom: 22px;
  color: white;
}
.hero-copy h1 { margin: 0; font-size: 40px; font-weight: 700; line-height: 1.15; }
.hero-copy p { margin: 6px 0 0; font-size: 16px; opacity: 0.92; }
.pad { padding: 4px 16px 28px; }
.sub { color: var(--muted); margin: 4px 16px 0; }
h1.page, h2.page { margin: 18px 16px 0; font-size: 28px; color: var(--wine); }

.btn, button.btn, a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: var(--wine);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  margin-top: 10px;
}
.btn.wa { background: var(--wa); }
.btn.beige { background: var(--beige); color: var(--wine); }
.btn.ghost { background: transparent; color: var(--wine); border: 1px solid var(--beige-2); }
.chevron::before { content: "‹"; font-size: 22px; line-height: 1; }
[dir="ltr"] .chevron::before { content: "›"; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; justify-content: center; }
.socials a {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--beige); color: var(--wine);
  display: grid; place-items: center; text-decoration: none;
}
.socials svg { width: 22px; height: 22px; }
.hint { text-align: center; color: var(--muted); font-size: 14px; }

.notice {
  margin: 12px 16px;
  background: #fff6ea;
  border: 1px solid #efd7b4;
  color: var(--wine);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 14px;
}
.alert { margin: 12px 16px; background: #fdecea; color: #8a1c14; border-radius: 14px; padding: 10px 12px; }
.ok { margin: 12px 16px; background: var(--ok-soft); color: var(--ok); border-radius: 14px; padding: 10px 12px; }

.service-card {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 16px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  text-decoration: none;
}
.service-card img { width: 108px; height: 108px; object-fit: cover; border-radius: 16px; flex: none; }
.service-card h3 { margin: 0 0 8px; font-size: 18px; }
.service-card p { margin: 0; color: var(--muted); font-size: 13px; }
.service-main { flex: 1; min-width: 0; }
.price-pill {
  display: inline-flex;
  margin-top: 8px;
  background: var(--beige);
  color: var(--wine);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
}
.tag {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--gold);
  color: var(--wine);
  border-radius: 999px;
  font-size: 11px;
  padding: 1px 8px;
  margin-inline-start: 6px;
  font-weight: 700;
}

.map-card { margin: 14px 16px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: white; position: relative; }
.map-card iframe { width: 100%; height: 230px; border: 0; }
.map-pin {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  background: white;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  color: var(--wine);
  box-shadow: var(--shadow);
}
.hour-row, .choice, .field, select.field, input.field, textarea.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: calc(100% - 32px);
  margin: 10px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 58px;
  padding: 10px 14px;
}
.hour-row strong { color: var(--wine); }
.check-list { margin: 8px 16px; display: grid; gap: 8px; }
.check-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
}
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 16px 16px; }
.slots form { margin: 0; }
.slots .slot { width: 100%; }
.slot {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 8px;
  text-align: center;
  color: var(--wine);
  font-weight: 700;
  cursor: pointer;
}
.slot small { display: block; font-weight: 500; color: var(--muted); }
.slot:hover { border-color: var(--wine); }

.pass {
  margin: 16px;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--beige-2);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.pass img.word { width: 200px; height: auto; margin-bottom: 8px; }
.brand-logo { display: inline-flex; align-items: center; background: #faf8f3; border-radius: 12px; padding: 4px 10px; line-height: 0; text-decoration: none; }
.brand-logo img { height: 36px; width: auto; display: block; }
.topbar .brand-logo { position: absolute; left: 50%; transform: translateX(-50%); max-width: 58%; }
.topbar .brand-logo img { max-height: 36px; }
.pass .gold { color: var(--wine); font-size: 13px; letter-spacing: 0.12em; }
.pass .points { font-size: 48px; font-weight: 700; line-height: 1; margin: 8px 0; }
.pass .row { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.pass .qr { background: white; border-radius: 12px; padding: 8px; margin-top: 14px; }
.pass .qr svg { width: 100%; height: auto; }

.admin-shell { min-height: 100vh; display: flex; }
.side {
  width: 240px;
  background: var(--wine);
  color: var(--cream);
  padding: 18px 12px 28px;
  flex: none;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.side .brand-logo { margin: 4px 8px 16px; }
.side .brand-logo img { height: 44px; }
.side a, .side button.linkish {
  display: block;
  width: 100%;
  text-align: start;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 500;
  cursor: pointer;
}
.side a.active, .side a:hover { background: rgba(255,255,255,.12); }
.admin-main { flex: 1; padding: 18px; min-width: 0; }
.admin-main form svg { width: 28px; height: 28px; flex: none; }
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.panel h1, .panel h2 { margin: 0 0 8px; color: var(--wine); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi { background: var(--beige); border-radius: 16px; padding: 12px; }
.kpi b { display: block; font-size: 22px; color: var(--wine); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: start; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
.row-actions, .filters, .inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters input, .filters select, .inline input, .inline select, .stack input, .stack select, .stack textarea {
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 12px;
  padding: 8px 10px;
  min-height: 42px;
}
.stack { display: grid; gap: 8px; }
.stack label { font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.stack input, .stack select, .stack textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.stack input[type="checkbox"],
.stack input[type="radio"] {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
}
.stack input[type="file"] {
  width: 100%;
  max-width: 100%;
}
.stack label.check-row,
.inline label.check-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.inline { max-width: 100%; min-width: 0; }
.inline input, .inline select {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 12rem;
}
.catalog-form { margin-top: 10px; }
.field-hint {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.stack label.check-row {
  flex-wrap: wrap;
}
.stack label.check-row .field-hint {
  flex: 1 1 100%;
}
.btn.slim { width: auto; min-height: 42px; padding: 0 14px; margin: 0; font-size: 14px; }
.pill { border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; background: var(--beige); color: var(--wine); }
.pill.confirmed { background: #e9ebe1; }
.pill.unconfirmed { background: #f8efd8; }
.pill.completed { background: var(--ok-soft); color: var(--ok); }
.pill.cancelled, .pill.refunded { background: #eee; color: #777; }

.cal-switch { display: flex; gap: 6px; margin-bottom: 10px; }
.cal-scroll { overflow-x: auto; }
.day-board { display: flex; gap: 8px; min-width: 680px; }
.time-col { width: 64px; position: relative; flex: none; }
.tick { position: absolute; inset-inline-start: 0; font-size: 12px; color: var(--muted); }
.day-col { flex: 1; min-width: 140px; overflow: hidden; }
.day-col header { font-weight: 700; color: var(--wine); margin-bottom: 6px; }
.day-track { position: relative; background: linear-gradient(to bottom, transparent 47px, var(--line) 48px); background-size: 100% 48px; border-radius: 12px; border: 1px solid var(--line); }
.appt {
  position: absolute;
  inset-inline: 4px;
  border-radius: 10px;
  padding: 4px 6px;
  color: white;
  background: var(--wine);
  text-decoration: none;
  font-size: 12px;
  overflow: hidden;
}
.appt.unconfirmed { background: var(--gold); color: var(--ink); }
.appt.completed { background: var(--ok); }
.appt.cancelled { background: #ddd; color: #777; text-decoration: line-through; }
.week-grid, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(90px, 1fr)); gap: 6px; }
.day-cell { background: var(--cream); border-radius: 12px; padding: 8px; min-height: 88px; text-decoration: none; display: block; }
.day-cell strong { color: var(--wine); }
.bar { height: 8px; background: var(--beige); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--wine); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 420px); background: white; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.login-card img { width: 220px; margin: 0 auto 8px; }
.login-card .lang-row { margin-top: 0; margin-bottom: 14px; }

.sheet { background: white; margin: 0 auto; color: #222; }
.sheet.a4 { width: min(100%, 720px); padding: 28px; }
.sheet.thermal { width: 72mm; padding: 8px; font-size: 12px; }
.sheet h1 { font-family: var(--serif); letter-spacing: 0.14em; font-weight: 400; text-align: center; color: var(--wine); margin: 8px 0; }
.sheet table td:last-child, .sheet table th:last-child { text-align: end; }
.sheet tr.total th { font-weight: 700; font-size: 16px; color: var(--ink); }
.sheet .thanks { text-align: center; margin: 14px 0 4px; }
.toolbar { display: flex; gap: 8px; justify-content: center; margin: 12px; }

.site-credit {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  color: var(--wine);
  opacity: 0.78;
}
.site-credit, .site-credit a { color: #1e5631; opacity: 1; }
.site-credit a { text-decoration: none; font-weight: 600; }
.site-credit a:hover, .site-credit a:focus-visible { color: #143d22; }
.site-credit a:hover, .site-credit a:focus-visible { text-decoration: underline; text-underline-offset: 3px; opacity: 1; }
body.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
body.auth-page .login-wrap { flex: 1; min-height: auto; }
body.admin { min-height: 100vh; display: flex; flex-direction: column; }
body.admin .admin-shell { flex: 1; }
@media print {
  .site-credit, .hourglass { display: none !important; }

  body { background: white; }
  .toolbar, .side, .topbar, .no-print { display: none !important; }
  .admin-shell { display: block; }
  .admin-main { padding: 0; }
  .sheet { box-shadow: none; }
}

@media (max-width: 767px) {
  .admin-shell { display: block; }
  .side {
    width: auto;
    height: auto;
    position: relative;
    display: flex;
    gap: 4px;
    overflow: auto;
    padding: 8px;
    padding-top: calc(8px + env(safe-area-inset-top));
  }
  .side .brand-logo { display: none; }
  .side .lang-row { margin-top: 0; flex: 0 0 auto; }
  .side .lang-row button { padding: 8px 12px; flex: 0 0 auto; }
  .side a { white-space: nowrap; padding: 8px 10px; min-height: 44px; }
  .admin-main { padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); overflow-x: hidden; }
  .week-grid, .month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { overflow-x: auto; max-width: 100%; }
  .panel > form.stack,
  .panel > form.inline,
  .stack, .inline, .catalog-form { max-width: 100%; min-width: 0; }
  .inline input, .inline select { flex: 1 1 100%; width: 100%; }
  .panel table { display: block; width: 100%; overflow-x: auto; }
}

@media (min-width: 768px) {
  body.public { background: var(--cream); }
  .shell { width: 100%; max-width: none; background: transparent; }
  .icon-btn, .drawer, .backdrop { display: none !important; }
  .topbar .brand-logo { position: static; transform: none; max-width: none; }
  .topbar .brand-logo img { height: 44px; max-height: none; }
  .desk-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; }
  .desk-nav > a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 700;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
  }
  .desk-nav > a.active, .desk-nav > a:hover { background: rgba(255,255,255,.14); }
  .desk-lang { margin: 0; }
  .desk-lang button { min-height: 44px; min-width: 44px; padding: 8px 12px; background: transparent; color: var(--cream); border-color: rgba(255,255,255,.35); }
  .desk-lang .on { background: var(--cream); color: var(--wine); }
  .topbar { justify-content: flex-start; gap: 16px; padding-inline: 22px; }
  .canvas { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 28px; }
  .canvas > .page, .canvas > .sub, .canvas > .notice, .canvas > .alert { margin-inline: 0; }
  .hero { margin: 8px 0 18px; min-height: 420px; border-radius: 28px; }
  .home-actions { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 18px; align-items: center; padding-inline: 0; }
  .home-actions .btn { margin-top: 0; }
  .home-actions .hint { text-align: start; }
  .service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 12px 0 28px; }
  .service-card { margin: 0; flex-direction: column; align-items: stretch; height: 100%; }
  .service-card img { width: 100%; height: 180px; }
  .catalog-cta .btn { max-width: 280px; }
  .book-form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
  .book-form .field, .book-form .check-list, .book-form .pad { width: 100%; margin-inline: 0; }
  .times-layout { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 24px; align-items: start; }
  .times-summary { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 8px 8px 16px; }
  .times-slots .slots { margin: 0; grid-template-columns: 1fr 1fr; }
  .slot { min-height: 64px; }
  .location-layout { display: grid; grid-template-columns: 1.35fr .75fr; gap: 16px; align-items: stretch; margin-bottom: 16px; }
  .location-side { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
  .location-side .hour-row, .location-side .pad, .map-card { width: 100%; margin: 0; }
  .map-card iframe { height: 100%; min-height: 320px; }
  .hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hours-grid .hour-row { width: 100%; margin: 0; }
  .site-footer { display: block; background: var(--wine); color: var(--cream); padding: 36px 20px 28px; }
  .footer-grid { width: min(1200px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 22px; }
  .site-footer h2 { margin: 0 0 8px; font-size: 16px; }
  .site-footer p { margin: 0 0 8px; }
  .site-footer .brand-logo { margin-bottom: 8px; background: #faf8f3; }
  .footer-directions { color: #f3e5cc; font-weight: 700; }
  .site-footer .socials { justify-content: flex-start; }
  .site-footer .socials a { background: rgba(255,255,255,.12); color: var(--cream); }
  body.public .site-credit { background: var(--cream); padding: 16px 16px 22px; }
  .pass { max-width: 440px; }
  .side { width: 220px; }
  .admin-main { padding: 28px; }
  .week-grid, .month-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .day-board { min-width: 0; }
  .day-col { min-width: 0; }
}
@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    grid-template-rows: auto 1fr;
    min-height: 520px;
    background: white;
    border: 1px solid var(--line);
  }
  .hero-media { position: relative; inset: auto; min-height: 520px; border-radius: 0; grid-column: 1; grid-row: 1 / span 2; }
  .hero-shade { display: none; }
  .live-status { position: static; grid-column: 2; grid-row: 1; margin: 28px 36px 0; justify-self: start; }
  .live-badge { position: static; }
  .hero-copy { position: static; grid-column: 2; grid-row: 2; color: var(--ink); display: flex; flex-direction: column; justify-content: center; padding: 8px 36px 36px; }
  .hero-copy h1 { color: var(--wine); font-size: 56px; }
  .hero-copy p { color: var(--muted); font-size: 18px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card img { height: 200px; }
  .times-slots .slots { grid-template-columns: repeat(3, 1fr); }
  .week-grid, .month-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .side { width: 248px; }
}
@media (min-width: 1280px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .times-slots .slots { grid-template-columns: repeat(4, 1fr); }
}

/* one-page booking: time chips + waitlist */
.slot-area { padding: 4px 16px 8px; }
.slot-area .slot-title { margin: 8px 0; font-size: 18px; color: var(--wine); }
.slot-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; padding: 8px 6px; border-radius: 14px; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--beige-2); color: var(--wine); font-weight: 700; font-size: 15px;
}
.slot-chip small { font-size: 11px; font-weight: 500; color: var(--muted); }
.slot-chip:hover, .slot-chip:focus-visible { border-color: var(--wine); }
.slot-chip.is-selected { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.slot-chip.is-selected small { color: var(--cream); }
.slot-chip.is-booked { background: var(--beige); border-style: dashed; border-color: var(--line); color: #8b8d7c; font-weight: 500; }
.slot-chip.is-booked small { color: #c62828; font-weight: 700; }
.slot-chip.is-booked.is-selected { background: #e1e3d6; border-color: var(--wine); color: var(--wine); }
.wl-panel { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--cream-deep); border: 1px solid var(--line); text-align: center; }
.wl-panel p { margin: 0 0 8px; }
.wl-ok { color: var(--ok); font-weight: 700; }
.wl-bad { color: #c62828; font-weight: 700; }
tr.wl-offered { background: #fff7dd; }
.wl-flag { color: #a15c00; font-weight: 700; }
.wl-banner { display: block; background: #fff1c9; border: 1px solid #e3c25a; color: #6a4300; font-weight: 700; text-decoration: none; padding: 10px 14px; border-radius: 12px; margin: 8px 0; }
@media (min-width: 768px) {
  .book-form .slot-area { grid-column: 1 / -1; padding-inline: 0; }
  .slot-chips { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}

.side a.nav-cashier { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.side a.nav-cashier svg { flex: none; }
.cashier-today { margin: 0 0 14px; padding: 10px 12px; background: var(--beige); border-radius: 14px; }
.cashier-today h2 { margin: 0 0 6px; font-size: 15px; }
.cashier-booking { display: block; padding: 8px 10px; margin: 4px 0; border-radius: 10px; background: var(--white); text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.cashier-booking.on { border-color: var(--wine); background: var(--cream); }

/* service checkbox cards */
.svc-picker { border: 0; padding: 0; margin: 0; min-width: 0; }
.svc-picker legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.svc-card { position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--line); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.svc-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.svc-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.svc-name { font-weight: 700; color: var(--ink); }
.svc-meta { font-size: 13px; color: var(--muted); }
.svc-meta b { color: var(--wine); }
.svc-tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; font-size: 15px; flex: none; }
.svc-card:has(input:checked) { background: var(--wine); border-color: var(--wine); }
.svc-card:has(input:checked) .svc-name, .svc-card:has(input:checked) .svc-meta, .svc-card:has(input:checked) .svc-meta b { color: var(--cream); }
.svc-card:has(input:checked) .svc-tick { background: var(--cream); border-color: var(--cream); color: var(--wine); }
.svc-card:has(input:focus-visible) { outline: 3px solid #2e7d32; outline-offset: 2px; }
.svc-total { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--beige); font-weight: 700; color: var(--wine); }

/* admin cashier cart */
.svc-cart { display: grid; gap: 8px; }
.cart-h { font-size: 15px; margin: 8px 0 0; color: var(--wine); }
.cart-search { width: 100%; }
.cart-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding: 2px; }
.cart-svc { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; min-height: 56px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); }
.cart-svc[hidden] { display: none; }
.cart-svc-name { display: flex; flex-direction: column; font-weight: 700; color: var(--ink); min-width: 0; }
.cart-svc-name small { font-weight: 500; color: var(--wine); font-size: 13px; }
.cart-add { min-width: 74px; min-height: 40px; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 8px; padding: 8px 12px; background: var(--cream); border: 1.5px solid var(--wine); border-radius: 14px; }
.cl-name { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.cl-qty { display: inline-flex; align-items: center; gap: 4px; }
.cl-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--wine); background: var(--white); color: var(--wine); font-size: 20px; line-height: 1; cursor: pointer; }
.cl-n { min-width: 24px; text-align: center; }
.cl-price { font-weight: 700; color: var(--wine); white-space: nowrap; }
.cl-remove { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f3d6d6; color: #c62828; font-size: 22px; line-height: 1; cursor: pointer; }
.cart-empty { margin: 0; color: var(--muted); text-align: center; }
.cart-total { margin: 4px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--wine); color: var(--cream); font-weight: 700; font-size: 17px; text-align: center; }
button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 520px) { .cart-line { grid-template-columns: 1fr auto; } .cl-qty { grid-column: 1; } }

/* void / refund */
.btn.danger, summary.btn.danger { background: #c62828; color: #fff; border-color: #c62828; cursor: pointer; list-style: none; }
summary.btn.danger::-webkit-details-marker { display: none; }
.void-box { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: flex-start; }
.void-opt { flex: 1 1 260px; }
.void-opt[open] { flex-basis: 100%; }
.void-form { margin-top: 8px; padding: 12px; border: 1.5px solid #c62828; border-radius: 14px; background: #fff5f5; display: grid; gap: 8px; }
.void-form p { margin: 0; }
.pill.ord-cancelled, .pill.ord-refunded { background: #fde8e8; color: #c62828; }
.void-link { margin-inline-start: 8px; font-size: 12px; color: #c62828; text-decoration: underline; }

/* password show/hide */
.pw-wrap { position: relative; display: block; width: 100%; }
.pw-wrap input { width: 100%; padding-inline-end: 44px; box-sizing: border-box; }
.pw-toggle { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--wine); cursor: pointer; }
.pw-toggle:hover { background: var(--beige); }
.pw-toggle:focus-visible { outline: 2px solid var(--wine); outline-offset: 1px; }
html[dir="rtl"] .pw-toggle { inset-inline-end: auto; left: 6px; }
html[dir="rtl"] .pw-wrap input { padding-inline-end: 12px; padding-left: 44px; }

/* ---- Offline mode (admin) ---- */
.offline-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #fff4e0; border: 1px solid #e7c98f; color: #5a3d00; font-weight: 700; }
.offline-banner[hidden] { display: none; }
.offline-banner.is-off { background: #fdecea; border-color: #e6a6a1; color: #8a1c14; }
.offline-banner .ob-text { flex: 1 1 260px; }
.offline-banner .ob-warn { flex-basis: 100%; font-weight: 600; opacity: .9; }
.offline-banner .ob-login { color: inherit; text-decoration: underline; }
.olive-toasts { position: fixed; inset-inline: 0; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 9999; pointer-events: none; }
.olive-toast { background: #2e7d32; color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: opacity .35s, transform .35s; }
.olive-toast.warn { background: #8a1c14; }
.olive-toast.out { opacity: 0; transform: translateY(8px); }
body.is-offline .online-only, body.is-offline a.online-only { opacity: .42; cursor: not-allowed; filter: grayscale(1); }
body.is-offline .void-box.online-only { pointer-events: none; }
.side .nav-offline[hidden] { display: none; }
.nav-badge:not(:empty) { display: inline-block; min-width: 1.5em; padding: 0 6px; border-radius: 999px; background: #c62828; color: #fff; font-size: 12px; text-align: center; margin-inline-start: 4px; }
.pill.off-pending { background: #fff4e0; color: #8a5a00; }
.pill.off-synced { background: var(--ok-soft); color: var(--ok); }
.pill.off-error { background: #fde8e8; color: #c62828; }
.offline-map { background: #f3e5cc; border-radius: 10px; padding: 6px 10px; display: inline-block; }
.offline-setting { border: 1px solid var(--beige); border-radius: 12px; padding: 10px 12px; }
.offline-setting .check-row { display: flex; gap: 8px; align-items: center; }
.offline-print .inv { margin-top: 10px; }
form.is-busy { opacity: .7; }
